Home | History | Annotate | Download | only in bochs
      1 #! /bin/sh
      2 # From configure.in Id: configure.in,v 1.388 2009/02/02 13:02:47 vruppert Exp .
      3 # Guess values for system-dependent variables and create Makefiles.
      4 # Generated by GNU Autoconf 2.61.
      5 #
      6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      8 # This configure script is free software; the Free Software Foundation
      9 # gives unlimited permission to copy, distribute and modify it.
     10 ## --------------------- ##
     11 ## M4sh Initialization.  ##
     12 ## --------------------- ##
     13 
     14 # Be more Bourne compatible
     15 DUALCASE=1; export DUALCASE # for MKS sh
     16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     17   emulate sh
     18   NULLCMD=:
     19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20   # is contrary to our usage.  Disable this feature.
     21   alias -g '${1+"$@"}'='"$@"'
     22   setopt NO_GLOB_SUBST
     23 else
     24   case `(set -o) 2>/dev/null` in
     25   *posix*) set -o posix ;;
     26 esac
     27 
     28 fi
     29 
     30 
     31 
     32 
     33 # PATH needs CR
     34 # Avoid depending upon Character Ranges.
     35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     38 as_cr_digits='0123456789'
     39 as_cr_alnum=$as_cr_Letters$as_cr_digits
     40 
     41 # The user is always right.
     42 if test "${PATH_SEPARATOR+set}" != set; then
     43   echo "#! /bin/sh" >conf$$.sh
     44   echo  "exit 0"   >>conf$$.sh
     45   chmod +x conf$$.sh
     46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     47     PATH_SEPARATOR=';'
     48   else
     49     PATH_SEPARATOR=:
     50   fi
     51   rm -f conf$$.sh
     52 fi
     53 
     54 # Support unset when possible.
     55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     56   as_unset=unset
     57 else
     58   as_unset=false
     59 fi
     60 
     61 
     62 # IFS
     63 # We need space, tab and new line, in precisely that order.  Quoting is
     64 # there to prevent editors from complaining about space-tab.
     65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     66 # splitting by setting IFS to empty value.)
     67 as_nl='
     68 '
     69 IFS=" ""	$as_nl"
     70 
     71 # Find who we are.  Look in the path if we contain no directory separator.
     72 case $0 in
     73   *[\\/]* ) as_myself=$0 ;;
     74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     75 for as_dir in $PATH
     76 do
     77   IFS=$as_save_IFS
     78   test -z "$as_dir" && as_dir=.
     79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     80 done
     81 IFS=$as_save_IFS
     82 
     83      ;;
     84 esac
     85 # We did not find ourselves, most probably we were run as `sh COMMAND'
     86 # in which case we are not to be found in the path.
     87 if test "x$as_myself" = x; then
     88   as_myself=$0
     89 fi
     90 if test ! -f "$as_myself"; then
     91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     92   { (exit 1); exit 1; }
     93 fi
     94 
     95 # Work around bugs in pre-3.0 UWIN ksh.
     96 for as_var in ENV MAIL MAILPATH
     97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     98 done
     99 PS1='$ '
    100 PS2='> '
    101 PS4='+ '
    102 
    103 # NLS nuisances.
    104 for as_var in \
    105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    107   LC_TELEPHONE LC_TIME
    108 do
    109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    110     eval $as_var=C; export $as_var
    111   else
    112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    113   fi
    114 done
    115 
    116 # Required to use basename.
    117 if expr a : '\(a\)' >/dev/null 2>&1 &&
    118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    119   as_expr=expr
    120 else
    121   as_expr=false
    122 fi
    123 
    124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    125   as_basename=basename
    126 else
    127   as_basename=false
    128 fi
    129 
    130 
    131 # Name of the executable.
    132 as_me=`$as_basename -- "$0" ||
    133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    134 	 X"$0" : 'X\(//\)$' \| \
    135 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    136 echo X/"$0" |
    137     sed '/^.*\/\([^/][^/]*\)\/*$/{
    138 	    s//\1/
    139 	    q
    140 	  }
    141 	  /^X\/\(\/\/\)$/{
    142 	    s//\1/
    143 	    q
    144 	  }
    145 	  /^X\/\(\/\).*/{
    146 	    s//\1/
    147 	    q
    148 	  }
    149 	  s/.*/./; q'`
    150 
    151 # CDPATH.
    152 $as_unset CDPATH
    153 
    154 
    155 if test "x$CONFIG_SHELL" = x; then
    156   if (eval ":") 2>/dev/null; then
    157   as_have_required=yes
    158 else
    159   as_have_required=no
    160 fi
    161 
    162   if test $as_have_required = yes && 	 (eval ":
    163 (as_func_return () {
    164   (exit \$1)
    165 }
    166 as_func_success () {
    167   as_func_return 0
    168 }
    169 as_func_failure () {
    170   as_func_return 1
    171 }
    172 as_func_ret_success () {
    173   return 0
    174 }
    175 as_func_ret_failure () {
    176   return 1
    177 }
    178 
    179 exitcode=0
    180 if as_func_success; then
    181   :
    182 else
    183   exitcode=1
    184   echo as_func_success failed.
    185 fi
    186 
    187 if as_func_failure; then
    188   exitcode=1
    189   echo as_func_failure succeeded.
    190 fi
    191 
    192 if as_func_ret_success; then
    193   :
    194 else
    195   exitcode=1
    196   echo as_func_ret_success failed.
    197 fi
    198 
    199 if as_func_ret_failure; then
    200   exitcode=1
    201   echo as_func_ret_failure succeeded.
    202 fi
    203 
    204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    205   :
    206 else
    207   exitcode=1
    208   echo positional parameters were not saved.
    209 fi
    210 
    211 test \$exitcode = 0) || { (exit 1); exit 1; }
    212 
    213 (
    214   as_lineno_1=\$LINENO
    215   as_lineno_2=\$LINENO
    216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    218 ") 2> /dev/null; then
    219   :
    220 else
    221   as_candidate_shells=
    222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    224 do
    225   IFS=$as_save_IFS
    226   test -z "$as_dir" && as_dir=.
    227   case $as_dir in
    228 	 /*)
    229 	   for as_base in sh bash ksh sh5; do
    230 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    231 	   done;;
    232        esac
    233 done
    234 IFS=$as_save_IFS
    235 
    236 
    237       for as_shell in $as_candidate_shells $SHELL; do
    238 	 # Try only shells that exist, to save several forks.
    239 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    240 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    242   emulate sh
    243   NULLCMD=:
    244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    245   # is contrary to our usage.  Disable this feature.
    246   alias -g '${1+"$@"}'='"$@"'
    247   setopt NO_GLOB_SUBST
    248 else
    249   case `(set -o) 2>/dev/null` in
    250   *posix*) set -o posix ;;
    251 esac
    252 
    253 fi
    254 
    255 
    256 :
    257 _ASEOF
    258 }; then
    259   CONFIG_SHELL=$as_shell
    260 	       as_have_required=yes
    261 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    263   emulate sh
    264   NULLCMD=:
    265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    266   # is contrary to our usage.  Disable this feature.
    267   alias -g '${1+"$@"}'='"$@"'
    268   setopt NO_GLOB_SUBST
    269 else
    270   case `(set -o) 2>/dev/null` in
    271   *posix*) set -o posix ;;
    272 esac
    273 
    274 fi
    275 
    276 
    277 :
    278 (as_func_return () {
    279   (exit $1)
    280 }
    281 as_func_success () {
    282   as_func_return 0
    283 }
    284 as_func_failure () {
    285   as_func_return 1
    286 }
    287 as_func_ret_success () {
    288   return 0
    289 }
    290 as_func_ret_failure () {
    291   return 1
    292 }
    293 
    294 exitcode=0
    295 if as_func_success; then
    296   :
    297 else
    298   exitcode=1
    299   echo as_func_success failed.
    300 fi
    301 
    302 if as_func_failure; then
    303   exitcode=1
    304   echo as_func_failure succeeded.
    305 fi
    306 
    307 if as_func_ret_success; then
    308   :
    309 else
    310   exitcode=1
    311   echo as_func_ret_success failed.
    312 fi
    313 
    314 if as_func_ret_failure; then
    315   exitcode=1
    316   echo as_func_ret_failure succeeded.
    317 fi
    318 
    319 if ( set x; as_func_ret_success y && test x = "$1" ); then
    320   :
    321 else
    322   exitcode=1
    323   echo positional parameters were not saved.
    324 fi
    325 
    326 test $exitcode = 0) || { (exit 1); exit 1; }
    327 
    328 (
    329   as_lineno_1=$LINENO
    330   as_lineno_2=$LINENO
    331   test "x$as_lineno_1" != "x$as_lineno_2" &&
    332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    333 
    334 _ASEOF
    335 }; then
    336   break
    337 fi
    338 
    339 fi
    340 
    341       done
    342 
    343       if test "x$CONFIG_SHELL" != x; then
    344   for as_var in BASH_ENV ENV
    345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    346         done
    347         export CONFIG_SHELL
    348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    349 fi
    350 
    351 
    352     if test $as_have_required = no; then
    353   echo This script requires a shell more modern than all the
    354       echo shells that I found on your system.  Please install a
    355       echo modern shell, or manually run the script under such a
    356       echo shell if you do have one.
    357       { (exit 1); exit 1; }
    358 fi
    359 
    360 
    361 fi
    362 
    363 fi
    364 
    365 
    366 
    367 (eval "as_func_return () {
    368   (exit \$1)
    369 }
    370 as_func_success () {
    371   as_func_return 0
    372 }
    373 as_func_failure () {
    374   as_func_return 1
    375 }
    376 as_func_ret_success () {
    377   return 0
    378 }
    379 as_func_ret_failure () {
    380   return 1
    381 }
    382 
    383 exitcode=0
    384 if as_func_success; then
    385   :
    386 else
    387   exitcode=1
    388   echo as_func_success failed.
    389 fi
    390 
    391 if as_func_failure; then
    392   exitcode=1
    393   echo as_func_failure succeeded.
    394 fi
    395 
    396 if as_func_ret_success; then
    397   :
    398 else
    399   exitcode=1
    400   echo as_func_ret_success failed.
    401 fi
    402 
    403 if as_func_ret_failure; then
    404   exitcode=1
    405   echo as_func_ret_failure succeeded.
    406 fi
    407 
    408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    409   :
    410 else
    411   exitcode=1
    412   echo positional parameters were not saved.
    413 fi
    414 
    415 test \$exitcode = 0") || {
    416   echo No shell found that supports shell functions.
    417   echo Please tell autoconf@gnu.org about your system,
    418   echo including any error possibly output before this
    419   echo message
    420 }
    421 
    422 
    423 
    424   as_lineno_1=$LINENO
    425   as_lineno_2=$LINENO
    426   test "x$as_lineno_1" != "x$as_lineno_2" &&
    427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    428 
    429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    430   # uniformly replaced by the line number.  The first 'sed' inserts a
    431   # line-number line after each line using $LINENO; the second 'sed'
    432   # does the real work.  The second script uses 'N' to pair each
    433   # line-number line with the line containing $LINENO, and appends
    434   # trailing '-' during substitution so that $LINENO is not a special
    435   # case at line end.
    436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    438   # E. McMahon (1931-1989) for sed's syntax.  :-)
    439   sed -n '
    440     p
    441     /[$]LINENO/=
    442   ' <$as_myself |
    443     sed '
    444       s/[$]LINENO.*/&-/
    445       t lineno
    446       b
    447       :lineno
    448       N
    449       :loop
    450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    451       t loop
    452       s/-\n.*//
    453     ' >$as_me.lineno &&
    454   chmod +x "$as_me.lineno" ||
    455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    456    { (exit 1); exit 1; }; }
    457 
    458   # Don't try to exec as it changes $[0], causing all sort of problems
    459   # (the dirname of $[0] is not the place where we might find the
    460   # original and so on.  Autoconf is especially sensitive to this).
    461   . "./$as_me.lineno"
    462   # Exit status is that of the last command.
    463   exit
    464 }
    465 
    466 
    467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    468   as_dirname=dirname
    469 else
    470   as_dirname=false
    471 fi
    472 
    473 ECHO_C= ECHO_N= ECHO_T=
    474 case `echo -n x` in
    475 -n*)
    476   case `echo 'x\c'` in
    477   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    478   *)   ECHO_C='\c';;
    479   esac;;
    480 *)
    481   ECHO_N='-n';;
    482 esac
    483 
    484 if expr a : '\(a\)' >/dev/null 2>&1 &&
    485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    486   as_expr=expr
    487 else
    488   as_expr=false
    489 fi
    490 
    491 rm -f conf$$ conf$$.exe conf$$.file
    492 if test -d conf$$.dir; then
    493   rm -f conf$$.dir/conf$$.file
    494 else
    495   rm -f conf$$.dir
    496   mkdir conf$$.dir
    497 fi
    498 echo >conf$$.file
    499 if ln -s conf$$.file conf$$ 2>/dev/null; then
    500   as_ln_s='ln -s'
    501   # ... but there are two gotchas:
    502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    504   # In both cases, we have to default to `cp -p'.
    505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    506     as_ln_s='cp -p'
    507 elif ln conf$$.file conf$$ 2>/dev/null; then
    508   as_ln_s=ln
    509 else
    510   as_ln_s='cp -p'
    511 fi
    512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    513 rmdir conf$$.dir 2>/dev/null
    514 
    515 if mkdir -p . 2>/dev/null; then
    516   as_mkdir_p=:
    517 else
    518   test -d ./-p && rmdir ./-p
    519   as_mkdir_p=false
    520 fi
    521 
    522 if test -x / >/dev/null 2>&1; then
    523   as_test_x='test -x'
    524 else
    525   if ls -dL / >/dev/null 2>&1; then
    526     as_ls_L_option=L
    527   else
    528     as_ls_L_option=
    529   fi
    530   as_test_x='
    531     eval sh -c '\''
    532       if test -d "$1"; then
    533         test -d "$1/.";
    534       else
    535 	case $1 in
    536         -*)set "./$1";;
    537 	esac;
    538 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    539 	???[sx]*):;;*)false;;esac;fi
    540     '\'' sh
    541   '
    542 fi
    543 as_executable_p=$as_test_x
    544 
    545 # Sed expression to map a string onto a valid CPP name.
    546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    547 
    548 # Sed expression to map a string onto a valid variable name.
    549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    550 
    551 
    552 
    553 
    554 # Check that we are running under the correct shell.
    555 SHELL=${CONFIG_SHELL-/bin/sh}
    556 
    557 case X$ECHO in
    558 X*--fallback-echo)
    559   # Remove one level of quotation (which was required for Make).
    560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
    561   ;;
    562 esac
    563 
    564 echo=${ECHO-echo}
    565 if test "X$1" = X--no-reexec; then
    566   # Discard the --no-reexec flag, and continue.
    567   shift
    568 elif test "X$1" = X--fallback-echo; then
    569   # Avoid inline document here, it may be left over
    570   :
    571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
    572   # Yippee, $echo works!
    573   :
    574 else
    575   # Restart under the correct shell.
    576   exec $SHELL "$0" --no-reexec ${1+"$@"}
    577 fi
    578 
    579 if test "X$1" = X--fallback-echo; then
    580   # used as fallback echo
    581   shift
    582   cat <<EOF
    583 $*
    584 EOF
    585   exit 0
    586 fi
    587 
    588 # The HP-UX ksh and POSIX shell print the target directory to stdout
    589 # if CDPATH is set.
    590 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    591 
    592 if test -z "$ECHO"; then
    593 if test "X${echo_test_string+set}" != Xset; then
    594 # find a string as large as possible, as long as the shell can cope with it
    595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    597     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
    598        echo_test_string="`eval $cmd`" &&
    599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    600     then
    601       break
    602     fi
    603   done
    604 fi
    605 
    606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
    607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
    608    test "X$echo_testing_string" = "X$echo_test_string"; then
    609   :
    610 else
    611   # The Solaris, AIX, and Digital Unix default echo programs unquote
    612   # backslashes.  This makes it impossible to quote backslashes using
    613   #   echo "$something" | sed 's/\\/\\\\/g'
    614   #
    615   # So, first we look for a working echo in the user's PATH.
    616 
    617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    618   for dir in $PATH /usr/ucb; do
    619     IFS="$lt_save_ifs"
    620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    623        test "X$echo_testing_string" = "X$echo_test_string"; then
    624       echo="$dir/echo"
    625       break
    626     fi
    627   done
    628   IFS="$lt_save_ifs"
    629 
    630   if test "X$echo" = Xecho; then
    631     # We didn't find a better echo, so look for alternatives.
    632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
    633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
    634        test "X$echo_testing_string" = "X$echo_test_string"; then
    635       # This shell has a builtin print -r that does the trick.
    636       echo='print -r'
    637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
    638 	 test "X$CONFIG_SHELL" != X/bin/ksh; then
    639       # If we have ksh, try running configure again with it.
    640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    641       export ORIGINAL_CONFIG_SHELL
    642       CONFIG_SHELL=/bin/ksh
    643       export CONFIG_SHELL
    644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
    645     else
    646       # Try using printf.
    647       echo='printf %s\n'
    648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
    649 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
    650 	 test "X$echo_testing_string" = "X$echo_test_string"; then
    651 	# Cool, printf works
    652 	:
    653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    654 	   test "X$echo_testing_string" = 'X\t' &&
    655 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    656 	   test "X$echo_testing_string" = "X$echo_test_string"; then
    657 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    658 	export CONFIG_SHELL
    659 	SHELL="$CONFIG_SHELL"
    660 	export SHELL
    661 	echo="$CONFIG_SHELL $0 --fallback-echo"
    662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    663 	   test "X$echo_testing_string" = 'X\t' &&
    664 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    665 	   test "X$echo_testing_string" = "X$echo_test_string"; then
    666 	echo="$CONFIG_SHELL $0 --fallback-echo"
    667       else
    668 	# maybe with a smaller string...
    669 	prev=:
    670 
    671 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
    672 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
    673 	  then
    674 	    break
    675 	  fi
    676 	  prev="$cmd"
    677 	done
    678 
    679 	if test "$prev" != 'sed 50q "$0"'; then
    680 	  echo_test_string=`eval $prev`
    681 	  export echo_test_string
    682 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
    683 	else
    684 	  # Oops.  We lost completely, so just stick with echo.
    685 	  echo=echo
    686 	fi
    687       fi
    688     fi
    689   fi
    690 fi
    691 fi
    692 
    693 # Copy echo and quote the copy suitably for passing to libtool from
    694 # the Makefile, instead of quoting the original, which is used later.
    695 ECHO=$echo
    696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
    697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
    698 fi
    699 
    700 
    701 
    702 
    703 tagnames=${tagnames+${tagnames},}CXX
    704 
    705 tagnames=${tagnames+${tagnames},}F77
    706 
    707 exec 7<&0 </dev/null 6>&1
    708 
    709 # Name of the host.
    710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    711 # so uname gets run too.
    712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    713 
    714 #
    715 # Initializations.
    716 #
    717 ac_default_prefix=/usr/local
    718 ac_clean_files=
    719 ac_config_libobj_dir=.
    720 LIBOBJS=
    721 cross_compiling=no
    722 subdirs=
    723 MFLAGS=
    724 MAKEFLAGS=
    725 SHELL=${CONFIG_SHELL-/bin/sh}
    726 
    727 # Identity of this package.
    728 PACKAGE_NAME=
    729 PACKAGE_TARNAME=
    730 PACKAGE_VERSION=
    731 PACKAGE_STRING=
    732 PACKAGE_BUGREPORT=
    733 
    734 ac_unique_file="bochs.h"
    735 # Factoring default headers for most tests.
    736 ac_includes_default="\
    737 #include <stdio.h>
    738 #ifdef HAVE_SYS_TYPES_H
    739 # include <sys/types.h>
    740 #endif
    741 #ifdef HAVE_SYS_STAT_H
    742 # include <sys/stat.h>
    743 #endif
    744 #ifdef STDC_HEADERS
    745 # include <stdlib.h>
    746 # include <stddef.h>
    747 #else
    748 # ifdef HAVE_STDLIB_H
    749 #  include <stdlib.h>
    750 # endif
    751 #endif
    752 #ifdef HAVE_STRING_H
    753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    754 #  include <memory.h>
    755 # endif
    756 # include <string.h>
    757 #endif
    758 #ifdef HAVE_STRINGS_H
    759 # include <strings.h>
    760 #endif
    761 #ifdef HAVE_INTTYPES_H
    762 # include <inttypes.h>
    763 #endif
    764 #ifdef HAVE_STDINT_H
    765 # include <stdint.h>
    766 #endif
    767 #ifdef HAVE_UNISTD_H
    768 # include <unistd.h>
    769 #endif"
    770 
    771 ac_subst_vars='SHELL
    772 PATH_SEPARATOR
    773 PACKAGE_NAME
    774 PACKAGE_TARNAME
    775 PACKAGE_VERSION
    776 PACKAGE_STRING
    777 PACKAGE_BUGREPORT
    778 exec_prefix
    779 prefix
    780 program_transform_name
    781 bindir
    782 sbindir
    783 libexecdir
    784 datarootdir
    785 datadir
    786 sysconfdir
    787 sharedstatedir
    788 localstatedir
    789 includedir
    790 oldincludedir
    791 docdir
    792 infodir
    793 htmldir
    794 dvidir
    795 pdfdir
    796 psdir
    797 libdir
    798 localedir
    799 mandir
    800 DEFS
    801 ECHO_C
    802 ECHO_N
    803 ECHO_T
    804 LIBS
    805 build_alias
    806 host_alias
    807 target_alias
    808 build
    809 build_cpu
    810 build_vendor
    811 build_os
    812 host
    813 host_cpu
    814 host_vendor
    815 host_os
    816 target
    817 target_cpu
    818 target_vendor
    819 target_os
    820 CC
    821 CFLAGS
    822 LDFLAGS
    823 CPPFLAGS
    824 ac_ct_CC
    825 EXEEXT
    826 OBJEXT
    827 CXX
    828 CXXFLAGS
    829 ac_ct_CXX
    830 SET_MAKE
    831 GREP
    832 EGREP
    833 LN_S
    834 ECHO
    835 AR
    836 RANLIB
    837 STRIP
    838 CPP
    839 CXXCPP
    840 F77
    841 FFLAGS
    842 ac_ct_F77
    843 LIBTOOL
    844 LIBADD_DL
    845 XMKMF
    846 X_CFLAGS
    847 X_PRE_LIBS
    848 X_LIBS
    849 X_EXTRA_LIBS
    850 BX_USE_IDLE_HACK
    851 DEFINE_PLUGIN_PATH
    852 NONPLUGIN_GUI_LINK_OPTS
    853 OBJS64
    854 IOAPIC_OBJS
    855 BX_COMPRESSED_HD_SUPPORT
    856 NE2K_OBJS
    857 BX_SUPPORT_ACPI
    858 PCI_OBJ
    859 KERNELDIR
    860 LSMOD
    861 INSMOD
    862 RMMOD
    863 DEPMOD
    864 PCIDEV_MODULE_MAKE_ALL
    865 KERNEL_MODULE_SUFFIX
    866 USBDEV_OBJS
    867 SCSI_OBJS
    868 NETLOW_OBJS
    869 SUFFIX_LINE
    870 CPP_SUFFIX
    871 DEBUGGER_VAR
    872 DISASM_VAR
    873 READLINE_LIB
    874 INSTRUMENT_DIR
    875 INSTRUMENT_VAR
    876 FPU_VAR
    877 CDROM_OBJS
    878 SB16_OBJS
    879 SOUNDLOW_OBJS
    880 SOUND_LINK_OPTS
    881 GAME_OBJS
    882 GDBSTUB_VAR
    883 IODEBUG_OBJS
    884 DOCBOOK2HTML
    885 BUILD_DOCBOOK_VAR
    886 INSTALL_DOCBOOK_VAR
    887 IODEV_LIB_VAR
    888 EXTRA_BX_OBJS
    889 NONINLINE_VAR
    890 INLINE_VAR
    891 EXTERNAL_DEPENDENCY
    892 RC_CMD
    893 WX_CONFIG
    894 XPM_LIB
    895 GUI_CFLAGS
    896 GUI_CXXFLAGS
    897 WX_CFLAGS
    898 WX_CXXFLAGS
    899 TOOLKIT_CXXFLAGS
    900 WGET
    901 ENH_DBG_OBJS
    902 DIALOG_OBJS
    903 EXPORT_DYNAMIC
    904 PTHREAD_CC
    905 PTHREAD_LIBS
    906 PTHREAD_CFLAGS
    907 INSTALL_TARGET
    908 INSTALL_LIST_FOR_PLATFORM
    909 RFB_LIBS
    910 GUI_OBJS
    911 DEVICE_LINK_OPTS
    912 GUI_LINK_OPTS
    913 GUI_LINK_OPTS_TERM
    914 GUI_LINK_OPTS_WX
    915 BXIMAGE_LINK_OPTS
    916 DASH
    917 SLASH
    918 CXXFP
    919 CFP
    920 OFP
    921 MAKELIB
    922 RMCOMMAND
    923 LINK
    924 LINK_CONSOLE
    925 EXE
    926 PRIMARY_TARGET
    927 PLUGIN_LIBNAME_TRANSFORMATION
    928 COMMAND_SEPARATOR
    929 CD_UP_ONE
    930 CD_UP_TWO
    931 CD_UP_THREE
    932 VERSION
    933 VER_STRING
    934 WIN_VER_STRING
    935 REL_STRING
    936 EXTRA_LINK_OPTS
    937 GUI_NON_PLUGIN_OBJS
    938 GUI_PLUGIN_OBJS
    939 IODEV_NON_PLUGIN_OBJS
    940 IODEV_PLUGIN_OBJS
    941 PLUGIN_VAR
    942 PLUGIN_TARGET
    943 INSTALL_PLUGINS_VAR
    944 GZIP
    945 TAR
    946 LIBOBJS
    947 LTLIBOBJS'
    948 ac_subst_files=''
    949       ac_precious_vars='build_alias
    950 host_alias
    951 target_alias
    952 CC
    953 CFLAGS
    954 LDFLAGS
    955 LIBS
    956 CPPFLAGS
    957 CXX
    958 CXXFLAGS
    959 CCC
    960 CPP
    961 CXXCPP
    962 F77
    963 FFLAGS
    964 XMKMF'
    965 
    966 
    967 # Initialize some variables set by options.
    968 ac_init_help=
    969 ac_init_version=false
    970 # The variables have the same names as the options, with
    971 # dashes changed to underlines.
    972 cache_file=/dev/null
    973 exec_prefix=NONE
    974 no_create=
    975 no_recursion=
    976 prefix=NONE
    977 program_prefix=NONE
    978 program_suffix=NONE
    979 program_transform_name=s,x,x,
    980 silent=
    981 site=
    982 srcdir=
    983 verbose=
    984 x_includes=NONE
    985 x_libraries=NONE
    986 
    987 # Installation directory options.
    988 # These are left unexpanded so users can "make install exec_prefix=/foo"
    989 # and all the variables that are supposed to be based on exec_prefix
    990 # by default will actually change.
    991 # Use braces instead of parens because sh, perl, etc. also accept them.
    992 # (The list follows the same order as the GNU Coding Standards.)
    993 bindir='${exec_prefix}/bin'
    994 sbindir='${exec_prefix}/sbin'
    995 libexecdir='${exec_prefix}/libexec'
    996 datarootdir='${prefix}/share'
    997 datadir='${datarootdir}'
    998 sysconfdir='${prefix}/etc'
    999 sharedstatedir='${prefix}/com'
   1000 localstatedir='${prefix}/var'
   1001 includedir='${prefix}/include'
   1002 oldincludedir='/usr/include'
   1003 docdir='${datarootdir}/doc/${PACKAGE}'
   1004 infodir='${datarootdir}/info'
   1005 htmldir='${docdir}'
   1006 dvidir='${docdir}'
   1007 pdfdir='${docdir}'
   1008 psdir='${docdir}'
   1009 libdir='${exec_prefix}/lib'
   1010 localedir='${datarootdir}/locale'
   1011 mandir='${datarootdir}/man'
   1012 
   1013 ac_prev=
   1014 ac_dashdash=
   1015 for ac_option
   1016 do
   1017   # If the previous option needs an argument, assign it.
   1018   if test -n "$ac_prev"; then
   1019     eval $ac_prev=\$ac_option
   1020     ac_prev=
   1021     continue
   1022   fi
   1023 
   1024   case $ac_option in
   1025   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1026   *)	ac_optarg=yes ;;
   1027   esac
   1028 
   1029   # Accept the important Cygnus configure options, so we can diagnose typos.
   1030 
   1031   case $ac_dashdash$ac_option in
   1032   --)
   1033     ac_dashdash=yes ;;
   1034 
   1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1036     ac_prev=bindir ;;
   1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1038     bindir=$ac_optarg ;;
   1039 
   1040   -build | --build | --buil | --bui | --bu)
   1041     ac_prev=build_alias ;;
   1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1043     build_alias=$ac_optarg ;;
   1044 
   1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1047     ac_prev=cache_file ;;
   1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1050     cache_file=$ac_optarg ;;
   1051 
   1052   --config-cache | -C)
   1053     cache_file=config.cache ;;
   1054 
   1055   -datadir | --datadir | --datadi | --datad)
   1056     ac_prev=datadir ;;
   1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1058     datadir=$ac_optarg ;;
   1059 
   1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1061   | --dataroo | --dataro | --datar)
   1062     ac_prev=datarootdir ;;
   1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1065     datarootdir=$ac_optarg ;;
   1066 
   1067   -disable-* | --disable-*)
   1068     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1069     # Reject names that are not valid shell variable names.
   1070     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   1072    { (exit 1); exit 1; }; }
   1073     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   1074     eval enable_$ac_feature=no ;;
   1075 
   1076   -docdir | --docdir | --docdi | --doc | --do)
   1077     ac_prev=docdir ;;
   1078   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1079     docdir=$ac_optarg ;;
   1080 
   1081   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1082     ac_prev=dvidir ;;
   1083   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1084     dvidir=$ac_optarg ;;
   1085 
   1086   -enable-* | --enable-*)
   1087     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1088     # Reject names that are not valid shell variable names.
   1089     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1090       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   1091    { (exit 1); exit 1; }; }
   1092     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   1093     eval enable_$ac_feature=\$ac_optarg ;;
   1094 
   1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1097   | --exec | --exe | --ex)
   1098     ac_prev=exec_prefix ;;
   1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1101   | --exec=* | --exe=* | --ex=*)
   1102     exec_prefix=$ac_optarg ;;
   1103 
   1104   -gas | --gas | --ga | --g)
   1105     # Obsolete; use --with-gas.
   1106     with_gas=yes ;;
   1107 
   1108   -help | --help | --hel | --he | -h)
   1109     ac_init_help=long ;;
   1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1111     ac_init_help=recursive ;;
   1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1113     ac_init_help=short ;;
   1114 
   1115   -host | --host | --hos | --ho)
   1116     ac_prev=host_alias ;;
   1117   -host=* | --host=* | --hos=* | --ho=*)
   1118     host_alias=$ac_optarg ;;
   1119 
   1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1121     ac_prev=htmldir ;;
   1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1123   | --ht=*)
   1124     htmldir=$ac_optarg ;;
   1125 
   1126   -includedir | --includedir | --includedi | --included | --include \
   1127   | --includ | --inclu | --incl | --inc)
   1128     ac_prev=includedir ;;
   1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1131     includedir=$ac_optarg ;;
   1132 
   1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1134     ac_prev=infodir ;;
   1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1136     infodir=$ac_optarg ;;
   1137 
   1138   -libdir | --libdir | --libdi | --libd)
   1139     ac_prev=libdir ;;
   1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1141     libdir=$ac_optarg ;;
   1142 
   1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1144   | --libexe | --libex | --libe)
   1145     ac_prev=libexecdir ;;
   1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1147   | --libexe=* | --libex=* | --libe=*)
   1148     libexecdir=$ac_optarg ;;
   1149 
   1150   -localedir | --localedir | --localedi | --localed | --locale)
   1151     ac_prev=localedir ;;
   1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1153     localedir=$ac_optarg ;;
   1154 
   1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1156   | --localstate | --localstat | --localsta | --localst | --locals)
   1157     ac_prev=localstatedir ;;
   1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1160     localstatedir=$ac_optarg ;;
   1161 
   1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1163     ac_prev=mandir ;;
   1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1165     mandir=$ac_optarg ;;
   1166 
   1167   -nfp | --nfp | --nf)
   1168     # Obsolete; use --without-fp.
   1169     with_fp=no ;;
   1170 
   1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1172   | --no-cr | --no-c | -n)
   1173     no_create=yes ;;
   1174 
   1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1177     no_recursion=yes ;;
   1178 
   1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1181   | --oldin | --oldi | --old | --ol | --o)
   1182     ac_prev=oldincludedir ;;
   1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1186     oldincludedir=$ac_optarg ;;
   1187 
   1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1189     ac_prev=prefix ;;
   1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1191     prefix=$ac_optarg ;;
   1192 
   1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1194   | --program-pre | --program-pr | --program-p)
   1195     ac_prev=program_prefix ;;
   1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1198     program_prefix=$ac_optarg ;;
   1199 
   1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1201   | --program-suf | --program-su | --program-s)
   1202     ac_prev=program_suffix ;;
   1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1205     program_suffix=$ac_optarg ;;
   1206 
   1207   -program-transform-name | --program-transform-name \
   1208   | --program-transform-nam | --program-transform-na \
   1209   | --program-transform-n | --program-transform- \
   1210   | --program-transform | --program-transfor \
   1211   | --program-transfo | --program-transf \
   1212   | --program-trans | --program-tran \
   1213   | --progr-tra | --program-tr | --program-t)
   1214     ac_prev=program_transform_name ;;
   1215   -program-transform-name=* | --program-transform-name=* \
   1216   | --program-transform-nam=* | --program-transform-na=* \
   1217   | --program-transform-n=* | --program-transform-=* \
   1218   | --program-transform=* | --program-transfor=* \
   1219   | --program-transfo=* | --program-transf=* \
   1220   | --program-trans=* | --program-tran=* \
   1221   | --progr-tra=* | --program-tr=* | --program-t=*)
   1222     program_transform_name=$ac_optarg ;;
   1223 
   1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1225     ac_prev=pdfdir ;;
   1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1227     pdfdir=$ac_optarg ;;
   1228 
   1229   -psdir | --psdir | --psdi | --psd | --ps)
   1230     ac_prev=psdir ;;
   1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1232     psdir=$ac_optarg ;;
   1233 
   1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1235   | -silent | --silent | --silen | --sile | --sil)
   1236     silent=yes ;;
   1237 
   1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1239     ac_prev=sbindir ;;
   1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1241   | --sbi=* | --sb=*)
   1242     sbindir=$ac_optarg ;;
   1243 
   1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1246   | --sharedst | --shareds | --shared | --share | --shar \
   1247   | --sha | --sh)
   1248     ac_prev=sharedstatedir ;;
   1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1252   | --sha=* | --sh=*)
   1253     sharedstatedir=$ac_optarg ;;
   1254 
   1255   -site | --site | --sit)
   1256     ac_prev=site ;;
   1257   -site=* | --site=* | --sit=*)
   1258     site=$ac_optarg ;;
   1259 
   1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1261     ac_prev=srcdir ;;
   1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1263     srcdir=$ac_optarg ;;
   1264 
   1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1266   | --syscon | --sysco | --sysc | --sys | --sy)
   1267     ac_prev=sysconfdir ;;
   1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1270     sysconfdir=$ac_optarg ;;
   1271 
   1272   -target | --target | --targe | --targ | --tar | --ta | --t)
   1273     ac_prev=target_alias ;;
   1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1275     target_alias=$ac_optarg ;;
   1276 
   1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1278     verbose=yes ;;
   1279 
   1280   -version | --version | --versio | --versi | --vers | -V)
   1281     ac_init_version=: ;;
   1282 
   1283   -with-* | --with-*)
   1284     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1285     # Reject names that are not valid shell variable names.
   1286     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1288    { (exit 1); exit 1; }; }
   1289     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1290     eval with_$ac_package=\$ac_optarg ;;
   1291 
   1292   -without-* | --without-*)
   1293     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1294     # Reject names that are not valid shell variable names.
   1295     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1297    { (exit 1); exit 1; }; }
   1298     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1299     eval with_$ac_package=no ;;
   1300 
   1301   --x)
   1302     # Obsolete; use --with-x.
   1303     with_x=yes ;;
   1304 
   1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1306   | --x-incl | --x-inc | --x-in | --x-i)
   1307     ac_prev=x_includes ;;
   1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1310     x_includes=$ac_optarg ;;
   1311 
   1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1314     ac_prev=x_libraries ;;
   1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1317     x_libraries=$ac_optarg ;;
   1318 
   1319   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1320 Try \`$0 --help' for more information." >&2
   1321    { (exit 1); exit 1; }; }
   1322     ;;
   1323 
   1324   *=*)
   1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1326     # Reject names that are not valid shell variable names.
   1327     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1328       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1329    { (exit 1); exit 1; }; }
   1330     eval $ac_envvar=\$ac_optarg
   1331     export $ac_envvar ;;
   1332 
   1333   *)
   1334     # FIXME: should be removed in autoconf 3.0.
   1335     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1337       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1339     ;;
   1340 
   1341   esac
   1342 done
   1343 
   1344 if test -n "$ac_prev"; then
   1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1346   { echo "$as_me: error: missing argument to $ac_option" >&2
   1347    { (exit 1); exit 1; }; }
   1348 fi
   1349 
   1350 # Be sure to have absolute directory names.
   1351 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1352 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1353 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1354 		libdir localedir mandir
   1355 do
   1356   eval ac_val=\$$ac_var
   1357   case $ac_val in
   1358     [\\/$]* | ?:[\\/]* )  continue;;
   1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1360   esac
   1361   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1362    { (exit 1); exit 1; }; }
   1363 done
   1364 
   1365 # There might be people who depend on the old broken behavior: `$host'
   1366 # used to hold the argument of --host etc.
   1367 # FIXME: To remove some day.
   1368 build=$build_alias
   1369 host=$host_alias
   1370 target=$target_alias
   1371 
   1372 # FIXME: To remove some day.
   1373 if test "x$host_alias" != x; then
   1374   if test "x$build_alias" = x; then
   1375     cross_compiling=maybe
   1376     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1377     If a cross compiler is detected then cross compile mode will be used." >&2
   1378   elif test "x$build_alias" != "x$host_alias"; then
   1379     cross_compiling=yes
   1380   fi
   1381 fi
   1382 
   1383 ac_tool_prefix=
   1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1385 
   1386 test "$silent" = yes && exec 6>/dev/null
   1387 
   1388 
   1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1390 ac_ls_di=`ls -di .` &&
   1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1392   { echo "$as_me: error: Working directory cannot be determined" >&2
   1393    { (exit 1); exit 1; }; }
   1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1395   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1396    { (exit 1); exit 1; }; }
   1397 
   1398 
   1399 # Find the source files, if location was not specified.
   1400 if test -z "$srcdir"; then
   1401   ac_srcdir_defaulted=yes
   1402   # Try the directory containing this script, then the parent directory.
   1403   ac_confdir=`$as_dirname -- "$0" ||
   1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1405 	 X"$0" : 'X\(//\)[^/]' \| \
   1406 	 X"$0" : 'X\(//\)$' \| \
   1407 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1408 echo X"$0" |
   1409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1410 	    s//\1/
   1411 	    q
   1412 	  }
   1413 	  /^X\(\/\/\)[^/].*/{
   1414 	    s//\1/
   1415 	    q
   1416 	  }
   1417 	  /^X\(\/\/\)$/{
   1418 	    s//\1/
   1419 	    q
   1420 	  }
   1421 	  /^X\(\/\).*/{
   1422 	    s//\1/
   1423 	    q
   1424 	  }
   1425 	  s/.*/./; q'`
   1426   srcdir=$ac_confdir
   1427   if test ! -r "$srcdir/$ac_unique_file"; then
   1428     srcdir=..
   1429   fi
   1430 else
   1431   ac_srcdir_defaulted=no
   1432 fi
   1433 if test ! -r "$srcdir/$ac_unique_file"; then
   1434   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1435   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1436    { (exit 1); exit 1; }; }
   1437 fi
   1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1439 ac_abs_confdir=`(
   1440 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1441    { (exit 1); exit 1; }; }
   1442 	pwd)`
   1443 # When building in place, set srcdir=.
   1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1445   srcdir=.
   1446 fi
   1447 # Remove unnecessary trailing slashes from srcdir.
   1448 # Double slashes in file names in object file debugging info
   1449 # mess up M-x gdb in Emacs.
   1450 case $srcdir in
   1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1452 esac
   1453 for ac_var in $ac_precious_vars; do
   1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1455   eval ac_env_${ac_var}_value=\$${ac_var}
   1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1458 done
   1459 
   1460 #
   1461 # Report the --help message.
   1462 #
   1463 if test "$ac_init_help" = "long"; then
   1464   # Omit some internal or obsolete options to make the list less imposing.
   1465   # This message is too long to be a string in the A/UX 3.1 sh.
   1466   cat <<_ACEOF
   1467 \`configure' configures this package to adapt to many kinds of systems.
   1468 
   1469 Usage: $0 [OPTION]... [VAR=VALUE]...
   1470 
   1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1473 
   1474 Defaults for the options are specified in brackets.
   1475 
   1476 Configuration:
   1477   -h, --help              display this help and exit
   1478       --help=short        display options specific to this package
   1479       --help=recursive    display the short help of all the included packages
   1480   -V, --version           display version information and exit
   1481   -q, --quiet, --silent   do not print \`checking...' messages
   1482       --cache-file=FILE   cache test results in FILE [disabled]
   1483   -C, --config-cache      alias for \`--cache-file=config.cache'
   1484   -n, --no-create         do not create output files
   1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1486 
   1487 Installation directories:
   1488   --prefix=PREFIX         install architecture-independent files in PREFIX
   1489 			  [$ac_default_prefix]
   1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1491 			  [PREFIX]
   1492 
   1493 By default, \`make install' will install all the files in
   1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1496 for instance \`--prefix=\$HOME'.
   1497 
   1498 For better control, use the options below.
   1499 
   1500 Fine tuning of the installation directories:
   1501   --bindir=DIR           user executables [EPREFIX/bin]
   1502   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1503   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1504   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1505   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1506   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1507   --libdir=DIR           object code libraries [EPREFIX/lib]
   1508   --includedir=DIR       C header files [PREFIX/include]
   1509   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1510   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1511   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1512   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1513   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1514   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1515   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
   1516   --htmldir=DIR          html documentation [DOCDIR]
   1517   --dvidir=DIR           dvi documentation [DOCDIR]
   1518   --pdfdir=DIR           pdf documentation [DOCDIR]
   1519   --psdir=DIR            ps documentation [DOCDIR]
   1520 _ACEOF
   1521 
   1522   cat <<\_ACEOF
   1523 
   1524 X features:
   1525   --x-includes=DIR    X include files are in DIR
   1526   --x-libraries=DIR   X library files are in DIR
   1527 
   1528 System types:
   1529   --build=BUILD     configure for building on BUILD [guessed]
   1530   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1531   --target=TARGET   configure for building compilers for TARGET [HOST]
   1532 _ACEOF
   1533 fi
   1534 
   1535 if test -n "$ac_init_help"; then
   1536 
   1537   cat <<\_ACEOF
   1538 
   1539 Optional Features:
   1540   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1541   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1542   --enable-static[=PKGS]  build static libraries [default=no]
   1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1544   --enable-fast-install[=PKGS]
   1545                           optimize for fast installation [default=yes]
   1546   --disable-libtool-lock  avoid locking (might break parallel builds)
   1547   --enable-ltdl-install   install libltdl
   1548   --disable-largefile     omit support for large files
   1549   --enable-idle-hack                use Roland Mainz's idle hack
   1550   --enable-plugins                  enable plugins
   1551   --enable-x86-64                   compile in support for x86-64 instructions
   1552   --enable-smp                      compile in support for SMP configurations
   1553   --enable-cpu-level                select cpu level (3,4,5,6)
   1554   --enable-apic                     enable APIC support
   1555   --enable-compressed-hd            allows compressed (zlib) hard disk image (not implemented yet)
   1556   --enable-ne2000                   enable limited ne2000 support
   1557   --enable-acpi                     enable ACPI support
   1558   --enable-pci                      enable limited i440FX PCI support
   1559   --enable-pcidev                   enable PCI host device mapping support (linux host only)
   1560   --enable-usb                      enable limited USB UHCI support
   1561   --enable-usb-ohci                 enable limited USB OHCI support
   1562   --enable-pnic                     enable PCI pseudo NIC support
   1563   --enable-large-pages               support for large pages (2M/4M pages)
   1564   --enable-pae                      support Physical Address Extensions
   1565   --enable-global-pages             support for global pages in PDE/PTE
   1566   --enable-1g-pages                 support for 1G pages in long mode
   1567   --enable-mtrr                     support for MTRRs
   1568   --enable-repeat-speedups          support repeated IO and mem copy speedups
   1569   --enable-trace-cache              support instruction trace cache
   1570   --enable-icache                   support instruction cache
   1571   --enable-fast-function-calls      support for fast function calls (gcc on x86 only)
   1572   --enable-host-specific-asms       support for host specific inline assembly
   1573   --enable-configurable-msrs        support for configurable MSR registers
   1574   --enable-ignore-bad-msr           ignore bad MSR references
   1575   --enable-port-e9-hack             writes to port e9 go to console
   1576   --enable-show-ips                 show IPS in Bochs log file
   1577   --enable-cpp                      use .cpp as C++ suffix
   1578   --enable-debugger                 compile in support for Bochs internal debugger
   1579   --enable-disasm                   compile in support for disassembler
   1580   --enable-debugger-gui             compile in support for Bochs internal debugger GUI
   1581   --enable-all-optimizations        compile in all possible optimizations
   1582   --enable-readline                 use readline library, if available
   1583   --enable-instrumentation          compile in support for instrumentation
   1584   --enable-logging                  enable logging
   1585   --enable-assert-checks            enable BX_ASSERT checks
   1586   --enable-raw-serial               use raw serial port access
   1587   --enable-vbe                      use VESA BIOS extensions
   1588   --enable-clgd54xx                 enable CLGD54XX emulation
   1589   --enable-fpu                      compile in FPU emulation
   1590   --enable-vme                      virtual 8086 mode extensions
   1591   --enable-vmx                      virtualization extensions
   1592   --enable-mmx                      MMX support
   1593   --enable-3dnow                    3DNow! support (incomplete)
   1594   --enable-sse                      SSE support (--enable-sse=no|1|2|3|4)
   1595   --enable-sse-extension            support for SSE extensions
   1596   --enable-daz                      denormals-are-zeroes support
   1597   --enable-xsave                    support for XSAVE/XRSTOR extensions
   1598   --enable-aes                      support for AES instructions
   1599   --enable-alignment-check          alignment check (#AC) support
   1600   --enable-misaligned-sse           misaligned SSE support
   1601   --enable-sep                      SYSENTER/SYSEXIT support
   1602   --enable-popcnt                   support for POPCNT instruction
   1603   --enable-movbe                    support for MOVBE Intel Atom(R) instruction
   1604   --enable-monitor-mwait            support for MONITOR/MWAIT instructions (experimental)
   1605   --enable-x86-debugger             x86 debugger support
   1606   --enable-cdrom                    CDROM support
   1607   --enable-sb16=xxx                 Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
   1608   --enable-gameport                 enable standard PC gameport support
   1609   --enable-gdb-stub                 enable gdb stub support
   1610   --enable-iodebug                  enable I/O interface to debugger
   1611   --enable-docbook                  build the Docbook documentation
   1612   --enable-xpm                      enable the check for XPM support
   1613   --enable-guest2host-tlb          enables guest to host addr TLB for speed (deprecated)
   1614   --enable-external-debugger       enables external debugger interface (deprecated)
   1615   --enable-magic-breakpoints        enables magic breakpoints (deprecated)
   1616   --enable-save-restore             enables save/restore (deprecated)
   1617 
   1618 Optional Packages:
   1619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1621   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1622   --with-pic              try to use only PIC/non-PIC objects [default=use
   1623                           both]
   1624   --with-tags[=TAGS]      include additional configurations [automatic]
   1625   --with-x                use the X Window System
   1626   --with-x11                        use X11 GUI
   1627   --with-beos                       use BeOS GUI
   1628   --with-win32                      use Win32 GUI
   1629   --with-macos                      use Macintosh/CodeWarrior environment
   1630   --with-carbon                     compile for MacOS X with Carbon GUI
   1631   --with-nogui                      no native GUI, just use blank stubs
   1632   --with-term                       textmode terminal environment
   1633   --with-rfb                        use RFB protocol, works with VNC viewer
   1634   --with-amigaos                    use AmigaOS (or MorphOS) GUI
   1635   --with-sdl                        use SDL libraries
   1636   --with-svga                       use SVGALib libraries
   1637   --with-wx                         use wxWidgets libraries
   1638   --with-all-libs                   compile all guis that Bochs supports
   1639 
   1640 Some influential environment variables:
   1641   CC          C compiler command
   1642   CFLAGS      C compiler flags
   1643   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1644               nonstandard directory <lib dir>
   1645   LIBS        libraries to pass to the linker, e.g. -l<library>
   1646   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1647               you have headers in a nonstandard directory <include dir>
   1648   CXX         C++ compiler command
   1649   CXXFLAGS    C++ compiler flags
   1650   CPP         C preprocessor
   1651   CXXCPP      C++ preprocessor
   1652   F77         Fortran 77 compiler command
   1653   FFLAGS      Fortran 77 compiler flags
   1654   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1655 
   1656 Use these variables to override the choices made by `configure' or to help
   1657 it to find libraries and programs with nonstandard names/locations.
   1658 
   1659 _ACEOF
   1660 ac_status=$?
   1661 fi
   1662 
   1663 if test "$ac_init_help" = "recursive"; then
   1664   # If there are subdirs, report their specific --help.
   1665   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1666     test -d "$ac_dir" || continue
   1667     ac_builddir=.
   1668 
   1669 case "$ac_dir" in
   1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1671 *)
   1672   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1673   # A ".." for each directory in $ac_dir_suffix.
   1674   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1675   case $ac_top_builddir_sub in
   1676   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1677   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1678   esac ;;
   1679 esac
   1680 ac_abs_top_builddir=$ac_pwd
   1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1682 # for backward compatibility:
   1683 ac_top_builddir=$ac_top_build_prefix
   1684 
   1685 case $srcdir in
   1686   .)  # We are building in place.
   1687     ac_srcdir=.
   1688     ac_top_srcdir=$ac_top_builddir_sub
   1689     ac_abs_top_srcdir=$ac_pwd ;;
   1690   [\\/]* | ?:[\\/]* )  # Absolute name.
   1691     ac_srcdir=$srcdir$ac_dir_suffix;
   1692     ac_top_srcdir=$srcdir
   1693     ac_abs_top_srcdir=$srcdir ;;
   1694   *) # Relative name.
   1695     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1696     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1697     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1698 esac
   1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1700 
   1701     cd "$ac_dir" || { ac_status=$?; continue; }
   1702     # Check for guested configure.
   1703     if test -f "$ac_srcdir/configure.gnu"; then
   1704       echo &&
   1705       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1706     elif test -f "$ac_srcdir/configure"; then
   1707       echo &&
   1708       $SHELL "$ac_srcdir/configure" --help=recursive
   1709     else
   1710       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1711     fi || ac_status=$?
   1712     cd "$ac_pwd" || { ac_status=$?; break; }
   1713   done
   1714 fi
   1715 
   1716 test -n "$ac_init_help" && exit $ac_status
   1717 if $ac_init_version; then
   1718   cat <<\_ACEOF
   1719 configure
   1720 generated by GNU Autoconf 2.61
   1721 
   1722 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1723 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1724 This configure script is free software; the Free Software Foundation
   1725 gives unlimited permission to copy, distribute and modify it.
   1726 _ACEOF
   1727   exit
   1728 fi
   1729 cat >config.log <<_ACEOF
   1730 This file contains any messages produced by compilers while
   1731 running configure, to aid debugging if configure makes a mistake.
   1732 
   1733 It was created by $as_me, which was
   1734 generated by GNU Autoconf 2.61.  Invocation command line was
   1735 
   1736   $ $0 $@
   1737 
   1738 _ACEOF
   1739 exec 5>>config.log
   1740 {
   1741 cat <<_ASUNAME
   1742 ## --------- ##
   1743 ## Platform. ##
   1744 ## --------- ##
   1745 
   1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1751 
   1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1753 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1754 
   1755 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1756 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1758 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1759 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1760 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1761 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1762 
   1763 _ASUNAME
   1764 
   1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1766 for as_dir in $PATH
   1767 do
   1768   IFS=$as_save_IFS
   1769   test -z "$as_dir" && as_dir=.
   1770   echo "PATH: $as_dir"
   1771 done
   1772 IFS=$as_save_IFS
   1773 
   1774 } >&5
   1775 
   1776 cat >&5 <<_ACEOF
   1777 
   1778 
   1779 ## ----------- ##
   1780 ## Core tests. ##
   1781 ## ----------- ##
   1782 
   1783 _ACEOF
   1784 
   1785 
   1786 # Keep a trace of the command line.
   1787 # Strip out --no-create and --no-recursion so they do not pile up.
   1788 # Strip out --silent because we don't want to record it for future runs.
   1789 # Also quote any args containing shell meta-characters.
   1790 # Make two passes to allow for proper duplicate-argument suppression.
   1791 ac_configure_args=
   1792 ac_configure_args0=
   1793 ac_configure_args1=
   1794 ac_must_keep_next=false
   1795 for ac_pass in 1 2
   1796 do
   1797   for ac_arg
   1798   do
   1799     case $ac_arg in
   1800     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1801     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1802     | -silent | --silent | --silen | --sile | --sil)
   1803       continue ;;
   1804     *\'*)
   1805       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1806     esac
   1807     case $ac_pass in
   1808     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1809     2)
   1810       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1811       if test $ac_must_keep_next = true; then
   1812 	ac_must_keep_next=false # Got value, back to normal.
   1813       else
   1814 	case $ac_arg in
   1815 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1816 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1817 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1818 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1819 	    case "$ac_configure_args0 " in
   1820 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1821 	    esac
   1822 	    ;;
   1823 	  -* ) ac_must_keep_next=true ;;
   1824 	esac
   1825       fi
   1826       ac_configure_args="$ac_configure_args '$ac_arg'"
   1827       ;;
   1828     esac
   1829   done
   1830 done
   1831 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1832 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1833 
   1834 # When interrupted or exit'd, cleanup temporary files, and complete
   1835 # config.log.  We remove comments because anyway the quotes in there
   1836 # would cause problems or look ugly.
   1837 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1839 trap 'exit_status=$?
   1840   # Save into config.log some information that might help in debugging.
   1841   {
   1842     echo
   1843 
   1844     cat <<\_ASBOX
   1845 ## ---------------- ##
   1846 ## Cache variables. ##
   1847 ## ---------------- ##
   1848 _ASBOX
   1849     echo
   1850     # The following way of writing the cache mishandles newlines in values,
   1851 (
   1852   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1853     eval ac_val=\$$ac_var
   1854     case $ac_val in #(
   1855     *${as_nl}*)
   1856       case $ac_var in #(
   1857       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1859       esac
   1860       case $ac_var in #(
   1861       _ | IFS | as_nl) ;; #(
   1862       *) $as_unset $ac_var ;;
   1863       esac ;;
   1864     esac
   1865   done
   1866   (set) 2>&1 |
   1867     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1868     *${as_nl}ac_space=\ *)
   1869       sed -n \
   1870 	"s/'\''/'\''\\\\'\'''\''/g;
   1871 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1872       ;; #(
   1873     *)
   1874       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1875       ;;
   1876     esac |
   1877     sort
   1878 )
   1879     echo
   1880 
   1881     cat <<\_ASBOX
   1882 ## ----------------- ##
   1883 ## Output variables. ##
   1884 ## ----------------- ##
   1885 _ASBOX
   1886     echo
   1887     for ac_var in $ac_subst_vars
   1888     do
   1889       eval ac_val=\$$ac_var
   1890       case $ac_val in
   1891       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1892       esac
   1893       echo "$ac_var='\''$ac_val'\''"
   1894     done | sort
   1895     echo
   1896 
   1897     if test -n "$ac_subst_files"; then
   1898       cat <<\_ASBOX
   1899 ## ------------------- ##
   1900 ## File substitutions. ##
   1901 ## ------------------- ##
   1902 _ASBOX
   1903       echo
   1904       for ac_var in $ac_subst_files
   1905       do
   1906 	eval ac_val=\$$ac_var
   1907 	case $ac_val in
   1908 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1909 	esac
   1910 	echo "$ac_var='\''$ac_val'\''"
   1911       done | sort
   1912       echo
   1913     fi
   1914 
   1915     if test -s confdefs.h; then
   1916       cat <<\_ASBOX
   1917 ## ----------- ##
   1918 ## confdefs.h. ##
   1919 ## ----------- ##
   1920 _ASBOX
   1921       echo
   1922       cat confdefs.h
   1923       echo
   1924     fi
   1925     test "$ac_signal" != 0 &&
   1926       echo "$as_me: caught signal $ac_signal"
   1927     echo "$as_me: exit $exit_status"
   1928   } >&5
   1929   rm -f core *.core core.conftest.* &&
   1930     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1931     exit $exit_status
   1932 ' 0
   1933 for ac_signal in 1 2 13 15; do
   1934   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1935 done
   1936 ac_signal=0
   1937 
   1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1939 rm -f -r conftest* confdefs.h
   1940 
   1941 # Predefined preprocessor variables.
   1942 
   1943 cat >>confdefs.h <<_ACEOF
   1944 #define PACKAGE_NAME "$PACKAGE_NAME"
   1945 _ACEOF
   1946 
   1947 
   1948 cat >>confdefs.h <<_ACEOF
   1949 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1950 _ACEOF
   1951 
   1952 
   1953 cat >>confdefs.h <<_ACEOF
   1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1955 _ACEOF
   1956 
   1957 
   1958 cat >>confdefs.h <<_ACEOF
   1959 #define PACKAGE_STRING "$PACKAGE_STRING"
   1960 _ACEOF
   1961 
   1962 
   1963 cat >>confdefs.h <<_ACEOF
   1964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1965 _ACEOF
   1966 
   1967 
   1968 # Let the site file select an alternate cache file if it wants to.
   1969 # Prefer explicitly selected file to automatically selected ones.
   1970 if test -n "$CONFIG_SITE"; then
   1971   set x "$CONFIG_SITE"
   1972 elif test "x$prefix" != xNONE; then
   1973   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1974 else
   1975   set x "$ac_default_prefix/share/config.site" \
   1976 	"$ac_default_prefix/etc/config.site"
   1977 fi
   1978 shift
   1979 for ac_site_file
   1980 do
   1981   if test -r "$ac_site_file"; then
   1982     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1983 echo "$as_me: loading site script $ac_site_file" >&6;}
   1984     sed 's/^/| /' "$ac_site_file" >&5
   1985     . "$ac_site_file"
   1986   fi
   1987 done
   1988 
   1989 if test -r "$cache_file"; then
   1990   # Some versions of bash will fail to source /dev/null (special
   1991   # files actually), so we avoid doing that.
   1992   if test -f "$cache_file"; then
   1993     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1994 echo "$as_me: loading cache $cache_file" >&6;}
   1995     case $cache_file in
   1996       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1997       *)                      . "./$cache_file";;
   1998     esac
   1999   fi
   2000 else
   2001   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   2002 echo "$as_me: creating cache $cache_file" >&6;}
   2003   >$cache_file
   2004 fi
   2005 
   2006 # Check that the precious variables saved in the cache have kept the same
   2007 # value.
   2008 ac_cache_corrupted=false
   2009 for ac_var in $ac_precious_vars; do
   2010   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2011   eval ac_new_set=\$ac_env_${ac_var}_set
   2012   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2013   eval ac_new_val=\$ac_env_${ac_var}_value
   2014   case $ac_old_set,$ac_new_set in
   2015     set,)
   2016       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2017 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2018       ac_cache_corrupted=: ;;
   2019     ,set)
   2020       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   2021 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2022       ac_cache_corrupted=: ;;
   2023     ,);;
   2024     *)
   2025       if test "x$ac_old_val" != "x$ac_new_val"; then
   2026 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   2027 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2028 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   2029 echo "$as_me:   former value:  $ac_old_val" >&2;}
   2030 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   2031 echo "$as_me:   current value: $ac_new_val" >&2;}
   2032 	ac_cache_corrupted=:
   2033       fi;;
   2034   esac
   2035   # Pass precious variables to config.status.
   2036   if test "$ac_new_set" = set; then
   2037     case $ac_new_val in
   2038     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2039     *) ac_arg=$ac_var=$ac_new_val ;;
   2040     esac
   2041     case " $ac_configure_args " in
   2042       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2043       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   2044     esac
   2045   fi
   2046 done
   2047 if $ac_cache_corrupted; then
   2048   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   2049 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2050   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   2051 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   2052    { (exit 1); exit 1; }; }
   2053 fi
   2054 
   2055 
   2056 
   2057 
   2058 
   2059 
   2060 
   2061 
   2062 
   2063 
   2064 
   2065 
   2066 
   2067 
   2068 
   2069 
   2070 
   2071 ac_ext=c
   2072 ac_cpp='$CPP $CPPFLAGS'
   2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2076 
   2077 
   2078 
   2079 ac_config_headers="$ac_config_headers config.h"
   2080 
   2081 ac_config_headers="$ac_config_headers ltdlconf.h"
   2082 
   2083 
   2084 VERSION="2.3.7.cvs"
   2085 VER_STRING="2.3.7.cvs"
   2086 WIN_VER_STRING="2, 3, 7, 1"
   2087 REL_STRING="Build from CVS snapshot, after release 2.3.7"
   2088 
   2089 
   2090 
   2091 
   2092 ac_aux_dir=
   2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2094   if test -f "$ac_dir/install-sh"; then
   2095     ac_aux_dir=$ac_dir
   2096     ac_install_sh="$ac_aux_dir/install-sh -c"
   2097     break
   2098   elif test -f "$ac_dir/install.sh"; then
   2099     ac_aux_dir=$ac_dir
   2100     ac_install_sh="$ac_aux_dir/install.sh -c"
   2101     break
   2102   elif test -f "$ac_dir/shtool"; then
   2103     ac_aux_dir=$ac_dir
   2104     ac_install_sh="$ac_aux_dir/shtool install -c"
   2105     break
   2106   fi
   2107 done
   2108 if test -z "$ac_aux_dir"; then
   2109   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
   2110 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   2111    { (exit 1); exit 1; }; }
   2112 fi
   2113 
   2114 # These three variables are undocumented and unsupported,
   2115 # and are intended to be withdrawn in a future Autoconf release.
   2116 # They can cause serious problems if a builder's source tree is in a directory
   2117 # whose full name contains unusual characters.
   2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2120 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2121 
   2122 
   2123 # Make sure we can run config.sub.
   2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2125   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   2127    { (exit 1); exit 1; }; }
   2128 
   2129 { echo "$as_me:$LINENO: checking build system type" >&5
   2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   2131 if test "${ac_cv_build+set}" = set; then
   2132   echo $ECHO_N "(cached) $ECHO_C" >&6
   2133 else
   2134   ac_build_alias=$build_alias
   2135 test "x$ac_build_alias" = x &&
   2136   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2137 test "x$ac_build_alias" = x &&
   2138   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   2140    { (exit 1); exit 1; }; }
   2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2142   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   2144    { (exit 1); exit 1; }; }
   2145 
   2146 fi
   2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   2148 echo "${ECHO_T}$ac_cv_build" >&6; }
   2149 case $ac_cv_build in
   2150 *-*-*) ;;
   2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   2152 echo "$as_me: error: invalid value of canonical build" >&2;}
   2153    { (exit 1); exit 1; }; };;
   2154 esac
   2155 build=$ac_cv_build
   2156 ac_save_IFS=$IFS; IFS='-'
   2157 set x $ac_cv_build
   2158 shift
   2159 build_cpu=$1
   2160 build_vendor=$2
   2161 shift; shift
   2162 # Remember, the first character of IFS is used to create $*,
   2163 # except with old shells:
   2164 build_os=$*
   2165 IFS=$ac_save_IFS
   2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2167 
   2168 
   2169 { echo "$as_me:$LINENO: checking host system type" >&5
   2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   2171 if test "${ac_cv_host+set}" = set; then
   2172   echo $ECHO_N "(cached) $ECHO_C" >&6
   2173 else
   2174   if test "x$host_alias" = x; then
   2175   ac_cv_host=$ac_cv_build
   2176 else
   2177   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2178     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   2180    { (exit 1); exit 1; }; }
   2181 fi
   2182 
   2183 fi
   2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   2185 echo "${ECHO_T}$ac_cv_host" >&6; }
   2186 case $ac_cv_host in
   2187 *-*-*) ;;
   2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   2189 echo "$as_me: error: invalid value of canonical host" >&2;}
   2190    { (exit 1); exit 1; }; };;
   2191 esac
   2192 host=$ac_cv_host
   2193 ac_save_IFS=$IFS; IFS='-'
   2194 set x $ac_cv_host
   2195 shift
   2196 host_cpu=$1
   2197 host_vendor=$2
   2198 shift; shift
   2199 # Remember, the first character of IFS is used to create $*,
   2200 # except with old shells:
   2201 host_os=$*
   2202 IFS=$ac_save_IFS
   2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2204 
   2205 
   2206 { echo "$as_me:$LINENO: checking target system type" >&5
   2207 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   2208 if test "${ac_cv_target+set}" = set; then
   2209   echo $ECHO_N "(cached) $ECHO_C" >&6
   2210 else
   2211   if test "x$target_alias" = x; then
   2212   ac_cv_target=$ac_cv_host
   2213 else
   2214   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2215     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   2216 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   2217    { (exit 1); exit 1; }; }
   2218 fi
   2219 
   2220 fi
   2221 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   2222 echo "${ECHO_T}$ac_cv_target" >&6; }
   2223 case $ac_cv_target in
   2224 *-*-*) ;;
   2225 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   2226 echo "$as_me: error: invalid value of canonical target" >&2;}
   2227    { (exit 1); exit 1; }; };;
   2228 esac
   2229 target=$ac_cv_target
   2230 ac_save_IFS=$IFS; IFS='-'
   2231 set x $ac_cv_target
   2232 shift
   2233 target_cpu=$1
   2234 target_vendor=$2
   2235 shift; shift
   2236 # Remember, the first character of IFS is used to create $*,
   2237 # except with old shells:
   2238 target_os=$*
   2239 IFS=$ac_save_IFS
   2240 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2241 
   2242 
   2243 # The aliases save the names the user supplied, while $host etc.
   2244 # will get canonicalized.
   2245 test -n "$target_alias" &&
   2246   test "$program_prefix$program_suffix$program_transform_name" = \
   2247     NONENONEs,x,x, &&
   2248   program_prefix=${target_alias}-
   2249 
   2250 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
   2251 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
   2252 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
   2253   { echo "$as_me:$LINENO: result: yes" >&5
   2254 echo "${ECHO_T}yes" >&6; }
   2255   cross_configure=1
   2256 else
   2257   { echo "$as_me:$LINENO: result: no" >&5
   2258 echo "${ECHO_T}no" >&6; }
   2259   cross_configure=0
   2260 fi
   2261 
   2262 # this case statement defines the compile flags which are needed to
   2263 # compile bochs on a platform.  Don't put things like optimization settings
   2264 # into the configure.in file, since people will want to be able to change
   2265 # those settings by defining CFLAGS and CXXFLAGS before running configure.
   2266 NO_LT=0
   2267 need_dlcompat_for_plugins=0
   2268 case "$target" in
   2269   *-pc-windows* | *-pc-winnt*)
   2270     DEFAULT_GUI=win32                 # default to win32 gui
   2271     ;;
   2272   *-pc-cygwin* | *-pc-mingw32*)
   2273     NO_LT=1   # do not use libtool at all on cygwin
   2274     if test "$with_term" = yes; then
   2275       # ncurses won't compile with -mno-cygwin or -DWIN32
   2276       # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
   2277       # see /usr/include/curses.h for details.
   2278       ADD_FLAGS="-DBROKEN_LINKER=1"
   2279     else
   2280       # default case
   2281       ADD_FLAGS="-mno-cygwin -DWIN32"   # required for cygwin compile+win32 gui
   2282       DEFAULT_GUI=win32                 # default to win32 gui
   2283     fi
   2284     ;;
   2285   *-macosx* | *-darwin*)
   2286     ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh"      # required for macosx compile
   2287     DEFAULT_GUI=carbon                # default to carbon
   2288     need_dlcompat_for_plugins=1
   2289     ;;
   2290   *-macos*)
   2291     DEFAULT_GUI=macos                 # macos defaults to macos
   2292     ;;
   2293   *-beos*)
   2294     ADD_FLAGS="-Wno-multichar"
   2295     DEFAULT_GUI=beos                  # beos defaults to beos
   2296     ;;
   2297   *-amigaos* | *-morphos*)
   2298     DEFAULT_GUI=amigaos               # amigaos or morphos defaults to amigaos gui
   2299     ;;
   2300   *-solaris*)
   2301     ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__"      # required for correct function prototypes
   2302     LIBS="$LIBS -lsocket -lnsl"
   2303     DEFAULT_GUI=x11
   2304     ;;
   2305   *)
   2306     DEFAULT_GUI=x11
   2307     ;;
   2308 esac
   2309 if test "${ADD_FLAGS:+set}" = set; then
   2310       CFLAGS="$CFLAGS $ADD_FLAGS"
   2311       CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
   2312       CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
   2313 fi
   2314 
   2315 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
   2316 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
   2317 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
   2318 echo "${ECHO_T}$ADD_FLAGS" >&6; }
   2319 
   2320 if (test "$with_sdl" != yes) && \
   2321    (test "$with_svga" != yes) && \
   2322    (test "$with_x11" != yes) && \
   2323    (test "$with_beos" != yes) && \
   2324    (test "$with_win32" != yes) && \
   2325    (test "$with_nogui" != yes) && \
   2326    (test "$with_term" != yes) && \
   2327    (test "$with_rfb" != yes) && \
   2328    (test "$with_amigaos" != yes) && \
   2329    (test "$with_carbon" != yes) && \
   2330    (test "$with_wx" != yes) && \
   2331    (test "$with_macos" != yes); then
   2332   # use DEFAULT_GUI.  Set the appropriate variable.
   2333   # DEFAULT_GUI must be set to one of the names above.  Otherwise, no
   2334   # valid $with_* variable will be set and who knows what will happen?
   2335   eval "with_${DEFAULT_GUI}=yes"
   2336 fi
   2337 
   2338 ac_ext=c
   2339 ac_cpp='$CPP $CPPFLAGS'
   2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2343 if test -n "$ac_tool_prefix"; then
   2344   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2348 if test "${ac_cv_prog_CC+set}" = set; then
   2349   echo $ECHO_N "(cached) $ECHO_C" >&6
   2350 else
   2351   if test -n "$CC"; then
   2352   ac_cv_prog_CC="$CC" # Let the user override the test.
   2353 else
   2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2355 for as_dir in $PATH
   2356 do
   2357   IFS=$as_save_IFS
   2358   test -z "$as_dir" && as_dir=.
   2359   for ac_exec_ext in '' $ac_executable_extensions; do
   2360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2361     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2363     break 2
   2364   fi
   2365 done
   2366 done
   2367 IFS=$as_save_IFS
   2368 
   2369 fi
   2370 fi
   2371 CC=$ac_cv_prog_CC
   2372 if test -n "$CC"; then
   2373   { echo "$as_me:$LINENO: result: $CC" >&5
   2374 echo "${ECHO_T}$CC" >&6; }
   2375 else
   2376   { echo "$as_me:$LINENO: result: no" >&5
   2377 echo "${ECHO_T}no" >&6; }
   2378 fi
   2379 
   2380 
   2381 fi
   2382 if test -z "$ac_cv_prog_CC"; then
   2383   ac_ct_CC=$CC
   2384   # Extract the first word of "gcc", so it can be a program name with args.
   2385 set dummy gcc; ac_word=$2
   2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2389   echo $ECHO_N "(cached) $ECHO_C" >&6
   2390 else
   2391   if test -n "$ac_ct_CC"; then
   2392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2393 else
   2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2395 for as_dir in $PATH
   2396 do
   2397   IFS=$as_save_IFS
   2398   test -z "$as_dir" && as_dir=.
   2399   for ac_exec_ext in '' $ac_executable_extensions; do
   2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2401     ac_cv_prog_ac_ct_CC="gcc"
   2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2403     break 2
   2404   fi
   2405 done
   2406 done
   2407 IFS=$as_save_IFS
   2408 
   2409 fi
   2410 fi
   2411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2412 if test -n "$ac_ct_CC"; then
   2413   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2414 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2415 else
   2416   { echo "$as_me:$LINENO: result: no" >&5
   2417 echo "${ECHO_T}no" >&6; }
   2418 fi
   2419 
   2420   if test "x$ac_ct_CC" = x; then
   2421     CC=""
   2422   else
   2423     case $cross_compiling:$ac_tool_warned in
   2424 yes:)
   2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2426 whose name does not start with the host triplet.  If you think this
   2427 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2429 whose name does not start with the host triplet.  If you think this
   2430 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2431 ac_tool_warned=yes ;;
   2432 esac
   2433     CC=$ac_ct_CC
   2434   fi
   2435 else
   2436   CC="$ac_cv_prog_CC"
   2437 fi
   2438 
   2439 if test -z "$CC"; then
   2440           if test -n "$ac_tool_prefix"; then
   2441     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2442 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2445 if test "${ac_cv_prog_CC+set}" = set; then
   2446   echo $ECHO_N "(cached) $ECHO_C" >&6
   2447 else
   2448   if test -n "$CC"; then
   2449   ac_cv_prog_CC="$CC" # Let the user override the test.
   2450 else
   2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2452 for as_dir in $PATH
   2453 do
   2454   IFS=$as_save_IFS
   2455   test -z "$as_dir" && as_dir=.
   2456   for ac_exec_ext in '' $ac_executable_extensions; do
   2457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2458     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2460     break 2
   2461   fi
   2462 done
   2463 done
   2464 IFS=$as_save_IFS
   2465 
   2466 fi
   2467 fi
   2468 CC=$ac_cv_prog_CC
   2469 if test -n "$CC"; then
   2470   { echo "$as_me:$LINENO: result: $CC" >&5
   2471 echo "${ECHO_T}$CC" >&6; }
   2472 else
   2473   { echo "$as_me:$LINENO: result: no" >&5
   2474 echo "${ECHO_T}no" >&6; }
   2475 fi
   2476 
   2477 
   2478   fi
   2479 fi
   2480 if test -z "$CC"; then
   2481   # Extract the first word of "cc", so it can be a program name with args.
   2482 set dummy cc; ac_word=$2
   2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2485 if test "${ac_cv_prog_CC+set}" = set; then
   2486   echo $ECHO_N "(cached) $ECHO_C" >&6
   2487 else
   2488   if test -n "$CC"; then
   2489   ac_cv_prog_CC="$CC" # Let the user override the test.
   2490 else
   2491   ac_prog_rejected=no
   2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2493 for as_dir in $PATH
   2494 do
   2495   IFS=$as_save_IFS
   2496   test -z "$as_dir" && as_dir=.
   2497   for ac_exec_ext in '' $ac_executable_extensions; do
   2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2499     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2500        ac_prog_rejected=yes
   2501        continue
   2502      fi
   2503     ac_cv_prog_CC="cc"
   2504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2505     break 2
   2506   fi
   2507 done
   2508 done
   2509 IFS=$as_save_IFS
   2510 
   2511 if test $ac_prog_rejected = yes; then
   2512   # We found a bogon in the path, so make sure we never use it.
   2513   set dummy $ac_cv_prog_CC
   2514   shift
   2515   if test $# != 0; then
   2516     # We chose a different compiler from the bogus one.
   2517     # However, it has the same basename, so the bogon will be chosen
   2518     # first if we set CC to just the basename; use the full file name.
   2519     shift
   2520     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2521   fi
   2522 fi
   2523 fi
   2524 fi
   2525 CC=$ac_cv_prog_CC
   2526 if test -n "$CC"; then
   2527   { echo "$as_me:$LINENO: result: $CC" >&5
   2528 echo "${ECHO_T}$CC" >&6; }
   2529 else
   2530   { echo "$as_me:$LINENO: result: no" >&5
   2531 echo "${ECHO_T}no" >&6; }
   2532 fi
   2533 
   2534 
   2535 fi
   2536 if test -z "$CC"; then
   2537   if test -n "$ac_tool_prefix"; then
   2538   for ac_prog in cl.exe
   2539   do
   2540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2544 if test "${ac_cv_prog_CC+set}" = set; then
   2545   echo $ECHO_N "(cached) $ECHO_C" >&6
   2546 else
   2547   if test -n "$CC"; then
   2548   ac_cv_prog_CC="$CC" # Let the user override the test.
   2549 else
   2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2551 for as_dir in $PATH
   2552 do
   2553   IFS=$as_save_IFS
   2554   test -z "$as_dir" && as_dir=.
   2555   for ac_exec_ext in '' $ac_executable_extensions; do
   2556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2557     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2559     break 2
   2560   fi
   2561 done
   2562 done
   2563 IFS=$as_save_IFS
   2564 
   2565 fi
   2566 fi
   2567 CC=$ac_cv_prog_CC
   2568 if test -n "$CC"; then
   2569   { echo "$as_me:$LINENO: result: $CC" >&5
   2570 echo "${ECHO_T}$CC" >&6; }
   2571 else
   2572   { echo "$as_me:$LINENO: result: no" >&5
   2573 echo "${ECHO_T}no" >&6; }
   2574 fi
   2575 
   2576 
   2577     test -n "$CC" && break
   2578   done
   2579 fi
   2580 if test -z "$CC"; then
   2581   ac_ct_CC=$CC
   2582   for ac_prog in cl.exe
   2583 do
   2584   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2585 set dummy $ac_prog; ac_word=$2
   2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2589   echo $ECHO_N "(cached) $ECHO_C" >&6
   2590 else
   2591   if test -n "$ac_ct_CC"; then
   2592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2593 else
   2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2595 for as_dir in $PATH
   2596 do
   2597   IFS=$as_save_IFS
   2598   test -z "$as_dir" && as_dir=.
   2599   for ac_exec_ext in '' $ac_executable_extensions; do
   2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2601     ac_cv_prog_ac_ct_CC="$ac_prog"
   2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2603     break 2
   2604   fi
   2605 done
   2606 done
   2607 IFS=$as_save_IFS
   2608 
   2609 fi
   2610 fi
   2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2612 if test -n "$ac_ct_CC"; then
   2613   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2614 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2615 else
   2616   { echo "$as_me:$LINENO: result: no" >&5
   2617 echo "${ECHO_T}no" >&6; }
   2618 fi
   2619 
   2620 
   2621   test -n "$ac_ct_CC" && break
   2622 done
   2623 
   2624   if test "x$ac_ct_CC" = x; then
   2625     CC=""
   2626   else
   2627     case $cross_compiling:$ac_tool_warned in
   2628 yes:)
   2629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2630 whose name does not start with the host triplet.  If you think this
   2631 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2633 whose name does not start with the host triplet.  If you think this
   2634 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2635 ac_tool_warned=yes ;;
   2636 esac
   2637     CC=$ac_ct_CC
   2638   fi
   2639 fi
   2640 
   2641 fi
   2642 
   2643 
   2644 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2645 See \`config.log' for more details." >&5
   2646 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2647 See \`config.log' for more details." >&2;}
   2648    { (exit 1); exit 1; }; }
   2649 
   2650 # Provide some information about the compiler.
   2651 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2652 ac_compiler=`set X $ac_compile; echo $2`
   2653 { (ac_try="$ac_compiler --version >&5"
   2654 case "(($ac_try" in
   2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2656   *) ac_try_echo=$ac_try;;
   2657 esac
   2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2659   (eval "$ac_compiler --version >&5") 2>&5
   2660   ac_status=$?
   2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2662   (exit $ac_status); }
   2663 { (ac_try="$ac_compiler -v >&5"
   2664 case "(($ac_try" in
   2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2666   *) ac_try_echo=$ac_try;;
   2667 esac
   2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2669   (eval "$ac_compiler -v >&5") 2>&5
   2670   ac_status=$?
   2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2672   (exit $ac_status); }
   2673 { (ac_try="$ac_compiler -V >&5"
   2674 case "(($ac_try" in
   2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2676   *) ac_try_echo=$ac_try;;
   2677 esac
   2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2679   (eval "$ac_compiler -V >&5") 2>&5
   2680   ac_status=$?
   2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2682   (exit $ac_status); }
   2683 
   2684 cat >conftest.$ac_ext <<_ACEOF
   2685 /* confdefs.h.  */
   2686 _ACEOF
   2687 cat confdefs.h >>conftest.$ac_ext
   2688 cat >>conftest.$ac_ext <<_ACEOF
   2689 /* end confdefs.h.  */
   2690 
   2691 int
   2692 main ()
   2693 {
   2694 
   2695   ;
   2696   return 0;
   2697 }
   2698 _ACEOF
   2699 ac_clean_files_save=$ac_clean_files
   2700 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2701 # Try to create an executable without -o first, disregard a.out.
   2702 # It will help us diagnose broken compilers, and finding out an intuition
   2703 # of exeext.
   2704 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2705 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2706 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2707 #
   2708 # List of possible output files, starting from the most likely.
   2709 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2710 # only as a last resort.  b.out is created by i960 compilers.
   2711 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2712 #
   2713 # The IRIX 6 linker writes into existing files which may not be
   2714 # executable, retaining their permissions.  Remove them first so a
   2715 # subsequent execution test works.
   2716 ac_rmfiles=
   2717 for ac_file in $ac_files
   2718 do
   2719   case $ac_file in
   2720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2721     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2722   esac
   2723 done
   2724 rm -f $ac_rmfiles
   2725 
   2726 if { (ac_try="$ac_link_default"
   2727 case "(($ac_try" in
   2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2729   *) ac_try_echo=$ac_try;;
   2730 esac
   2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2732   (eval "$ac_link_default") 2>&5
   2733   ac_status=$?
   2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2735   (exit $ac_status); }; then
   2736   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2737 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2738 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2739 # so that the user can short-circuit this test for compilers unknown to
   2740 # Autoconf.
   2741 for ac_file in $ac_files ''
   2742 do
   2743   test -f "$ac_file" || continue
   2744   case $ac_file in
   2745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2746 	;;
   2747     [ab].out )
   2748 	# We found the default executable, but exeext='' is most
   2749 	# certainly right.
   2750 	break;;
   2751     *.* )
   2752         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2753 	then :; else
   2754 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2755 	fi
   2756 	# We set ac_cv_exeext here because the later test for it is not
   2757 	# safe: cross compilers may not add the suffix if given an `-o'
   2758 	# argument, so we may need to know it at that point already.
   2759 	# Even if this section looks crufty: it has the advantage of
   2760 	# actually working.
   2761 	break;;
   2762     * )
   2763 	break;;
   2764   esac
   2765 done
   2766 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2767 
   2768 else
   2769   ac_file=''
   2770 fi
   2771 
   2772 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2773 echo "${ECHO_T}$ac_file" >&6; }
   2774 if test -z "$ac_file"; then
   2775   echo "$as_me: failed program was:" >&5
   2776 sed 's/^/| /' conftest.$ac_ext >&5
   2777 
   2778 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2779 See \`config.log' for more details." >&5
   2780 echo "$as_me: error: C compiler cannot create executables
   2781 See \`config.log' for more details." >&2;}
   2782    { (exit 77); exit 77; }; }
   2783 fi
   2784 
   2785 ac_exeext=$ac_cv_exeext
   2786 
   2787 # Check that the compiler produces executables we can run.  If not, either
   2788 # the compiler is broken, or we cross compile.
   2789 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2790 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2791 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2792 # If not cross compiling, check that we can run a simple program.
   2793 if test "$cross_compiling" != yes; then
   2794   if { ac_try='./$ac_file'
   2795   { (case "(($ac_try" in
   2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2797   *) ac_try_echo=$ac_try;;
   2798 esac
   2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2800   (eval "$ac_try") 2>&5
   2801   ac_status=$?
   2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2803   (exit $ac_status); }; }; then
   2804     cross_compiling=no
   2805   else
   2806     if test "$cross_compiling" = maybe; then
   2807 	cross_compiling=yes
   2808     else
   2809 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2810 If you meant to cross compile, use \`--host'.
   2811 See \`config.log' for more details." >&5
   2812 echo "$as_me: error: cannot run C compiled programs.
   2813 If you meant to cross compile, use \`--host'.
   2814 See \`config.log' for more details." >&2;}
   2815    { (exit 1); exit 1; }; }
   2816     fi
   2817   fi
   2818 fi
   2819 { echo "$as_me:$LINENO: result: yes" >&5
   2820 echo "${ECHO_T}yes" >&6; }
   2821 
   2822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2823 ac_clean_files=$ac_clean_files_save
   2824 # Check that the compiler produces executables we can run.  If not, either
   2825 # the compiler is broken, or we cross compile.
   2826 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2828 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2829 echo "${ECHO_T}$cross_compiling" >&6; }
   2830 
   2831 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2833 if { (ac_try="$ac_link"
   2834 case "(($ac_try" in
   2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2836   *) ac_try_echo=$ac_try;;
   2837 esac
   2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2839   (eval "$ac_link") 2>&5
   2840   ac_status=$?
   2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2842   (exit $ac_status); }; then
   2843   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2844 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2845 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2846 # `rm'.
   2847 for ac_file in conftest.exe conftest conftest.*; do
   2848   test -f "$ac_file" || continue
   2849   case $ac_file in
   2850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2851     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2852 	  break;;
   2853     * ) break;;
   2854   esac
   2855 done
   2856 else
   2857   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2858 See \`config.log' for more details." >&5
   2859 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2860 See \`config.log' for more details." >&2;}
   2861    { (exit 1); exit 1; }; }
   2862 fi
   2863 
   2864 rm -f conftest$ac_cv_exeext
   2865 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2866 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2867 
   2868 rm -f conftest.$ac_ext
   2869 EXEEXT=$ac_cv_exeext
   2870 ac_exeext=$EXEEXT
   2871 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2872 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2873 if test "${ac_cv_objext+set}" = set; then
   2874   echo $ECHO_N "(cached) $ECHO_C" >&6
   2875 else
   2876   cat >conftest.$ac_ext <<_ACEOF
   2877 /* confdefs.h.  */
   2878 _ACEOF
   2879 cat confdefs.h >>conftest.$ac_ext
   2880 cat >>conftest.$ac_ext <<_ACEOF
   2881 /* end confdefs.h.  */
   2882 
   2883 int
   2884 main ()
   2885 {
   2886 
   2887   ;
   2888   return 0;
   2889 }
   2890 _ACEOF
   2891 rm -f conftest.o conftest.obj
   2892 if { (ac_try="$ac_compile"
   2893 case "(($ac_try" in
   2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2895   *) ac_try_echo=$ac_try;;
   2896 esac
   2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2898   (eval "$ac_compile") 2>&5
   2899   ac_status=$?
   2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2901   (exit $ac_status); }; then
   2902   for ac_file in conftest.o conftest.obj conftest.*; do
   2903   test -f "$ac_file" || continue;
   2904   case $ac_file in
   2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2906     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2907        break;;
   2908   esac
   2909 done
   2910 else
   2911   echo "$as_me: failed program was:" >&5
   2912 sed 's/^/| /' conftest.$ac_ext >&5
   2913 
   2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2915 See \`config.log' for more details." >&5
   2916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2917 See \`config.log' for more details." >&2;}
   2918    { (exit 1); exit 1; }; }
   2919 fi
   2920 
   2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2922 fi
   2923 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2924 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2925 OBJEXT=$ac_cv_objext
   2926 ac_objext=$OBJEXT
   2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2930   echo $ECHO_N "(cached) $ECHO_C" >&6
   2931 else
   2932   cat >conftest.$ac_ext <<_ACEOF
   2933 /* confdefs.h.  */
   2934 _ACEOF
   2935 cat confdefs.h >>conftest.$ac_ext
   2936 cat >>conftest.$ac_ext <<_ACEOF
   2937 /* end confdefs.h.  */
   2938 
   2939 int
   2940 main ()
   2941 {
   2942 #ifndef __GNUC__
   2943        choke me
   2944 #endif
   2945 
   2946   ;
   2947   return 0;
   2948 }
   2949 _ACEOF
   2950 rm -f conftest.$ac_objext
   2951 if { (ac_try="$ac_compile"
   2952 case "(($ac_try" in
   2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2954   *) ac_try_echo=$ac_try;;
   2955 esac
   2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2957   (eval "$ac_compile") 2>conftest.er1
   2958   ac_status=$?
   2959   grep -v '^ *+' conftest.er1 >conftest.err
   2960   rm -f conftest.er1
   2961   cat conftest.err >&5
   2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2963   (exit $ac_status); } && {
   2964 	 test -z "$ac_c_werror_flag" ||
   2965 	 test ! -s conftest.err
   2966        } && test -s conftest.$ac_objext; then
   2967   ac_compiler_gnu=yes
   2968 else
   2969   echo "$as_me: failed program was:" >&5
   2970 sed 's/^/| /' conftest.$ac_ext >&5
   2971 
   2972 	ac_compiler_gnu=no
   2973 fi
   2974 
   2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2977 
   2978 fi
   2979 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2981 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2982 ac_test_CFLAGS=${CFLAGS+set}
   2983 ac_save_CFLAGS=$CFLAGS
   2984 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2985 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2986 if test "${ac_cv_prog_cc_g+set}" = set; then
   2987   echo $ECHO_N "(cached) $ECHO_C" >&6
   2988 else
   2989   ac_save_c_werror_flag=$ac_c_werror_flag
   2990    ac_c_werror_flag=yes
   2991    ac_cv_prog_cc_g=no
   2992    CFLAGS="-g"
   2993    cat >conftest.$ac_ext <<_ACEOF
   2994 /* confdefs.h.  */
   2995 _ACEOF
   2996 cat confdefs.h >>conftest.$ac_ext
   2997 cat >>conftest.$ac_ext <<_ACEOF
   2998 /* end confdefs.h.  */
   2999 
   3000 int
   3001 main ()
   3002 {
   3003 
   3004   ;
   3005   return 0;
   3006 }
   3007 _ACEOF
   3008 rm -f conftest.$ac_objext
   3009 if { (ac_try="$ac_compile"
   3010 case "(($ac_try" in
   3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3012   *) ac_try_echo=$ac_try;;
   3013 esac
   3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3015   (eval "$ac_compile") 2>conftest.er1
   3016   ac_status=$?
   3017   grep -v '^ *+' conftest.er1 >conftest.err
   3018   rm -f conftest.er1
   3019   cat conftest.err >&5
   3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3021   (exit $ac_status); } && {
   3022 	 test -z "$ac_c_werror_flag" ||
   3023 	 test ! -s conftest.err
   3024        } && test -s conftest.$ac_objext; then
   3025   ac_cv_prog_cc_g=yes
   3026 else
   3027   echo "$as_me: failed program was:" >&5
   3028 sed 's/^/| /' conftest.$ac_ext >&5
   3029 
   3030 	CFLAGS=""
   3031       cat >conftest.$ac_ext <<_ACEOF
   3032 /* confdefs.h.  */
   3033 _ACEOF
   3034 cat confdefs.h >>conftest.$ac_ext
   3035 cat >>conftest.$ac_ext <<_ACEOF
   3036 /* end confdefs.h.  */
   3037 
   3038 int
   3039 main ()
   3040 {
   3041 
   3042   ;
   3043   return 0;
   3044 }
   3045 _ACEOF
   3046 rm -f conftest.$ac_objext
   3047 if { (ac_try="$ac_compile"
   3048 case "(($ac_try" in
   3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3050   *) ac_try_echo=$ac_try;;
   3051 esac
   3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3053   (eval "$ac_compile") 2>conftest.er1
   3054   ac_status=$?
   3055   grep -v '^ *+' conftest.er1 >conftest.err
   3056   rm -f conftest.er1
   3057   cat conftest.err >&5
   3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3059   (exit $ac_status); } && {
   3060 	 test -z "$ac_c_werror_flag" ||
   3061 	 test ! -s conftest.err
   3062        } && test -s conftest.$ac_objext; then
   3063   :
   3064 else
   3065   echo "$as_me: failed program was:" >&5
   3066 sed 's/^/| /' conftest.$ac_ext >&5
   3067 
   3068 	ac_c_werror_flag=$ac_save_c_werror_flag
   3069 	 CFLAGS="-g"
   3070 	 cat >conftest.$ac_ext <<_ACEOF
   3071 /* confdefs.h.  */
   3072 _ACEOF
   3073 cat confdefs.h >>conftest.$ac_ext
   3074 cat >>conftest.$ac_ext <<_ACEOF
   3075 /* end confdefs.h.  */
   3076 
   3077 int
   3078 main ()
   3079 {
   3080 
   3081   ;
   3082   return 0;
   3083 }
   3084 _ACEOF
   3085 rm -f conftest.$ac_objext
   3086 if { (ac_try="$ac_compile"
   3087 case "(($ac_try" in
   3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3089   *) ac_try_echo=$ac_try;;
   3090 esac
   3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3092   (eval "$ac_compile") 2>conftest.er1
   3093   ac_status=$?
   3094   grep -v '^ *+' conftest.er1 >conftest.err
   3095   rm -f conftest.er1
   3096   cat conftest.err >&5
   3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3098   (exit $ac_status); } && {
   3099 	 test -z "$ac_c_werror_flag" ||
   3100 	 test ! -s conftest.err
   3101        } && test -s conftest.$ac_objext; then
   3102   ac_cv_prog_cc_g=yes
   3103 else
   3104   echo "$as_me: failed program was:" >&5
   3105 sed 's/^/| /' conftest.$ac_ext >&5
   3106 
   3107 
   3108 fi
   3109 
   3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3111 fi
   3112 
   3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3114 fi
   3115 
   3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3117    ac_c_werror_flag=$ac_save_c_werror_flag
   3118 fi
   3119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   3120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   3121 if test "$ac_test_CFLAGS" = set; then
   3122   CFLAGS=$ac_save_CFLAGS
   3123 elif test $ac_cv_prog_cc_g = yes; then
   3124   if test "$GCC" = yes; then
   3125     CFLAGS="-g -O2"
   3126   else
   3127     CFLAGS="-g"
   3128   fi
   3129 else
   3130   if test "$GCC" = yes; then
   3131     CFLAGS="-O2"
   3132   else
   3133     CFLAGS=
   3134   fi
   3135 fi
   3136 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   3137 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   3138 if test "${ac_cv_prog_cc_c89+set}" = set; then
   3139   echo $ECHO_N "(cached) $ECHO_C" >&6
   3140 else
   3141   ac_cv_prog_cc_c89=no
   3142 ac_save_CC=$CC
   3143 cat >conftest.$ac_ext <<_ACEOF
   3144 /* confdefs.h.  */
   3145 _ACEOF
   3146 cat confdefs.h >>conftest.$ac_ext
   3147 cat >>conftest.$ac_ext <<_ACEOF
   3148 /* end confdefs.h.  */
   3149 #include <stdarg.h>
   3150 #include <stdio.h>
   3151 #include <sys/types.h>
   3152 #include <sys/stat.h>
   3153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3154 struct buf { int x; };
   3155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3156 static char *e (p, i)
   3157      char **p;
   3158      int i;
   3159 {
   3160   return p[i];
   3161 }
   3162 static char *f (char * (*g) (char **, int), char **p, ...)
   3163 {
   3164   char *s;
   3165   va_list v;
   3166   va_start (v,p);
   3167   s = g (p, va_arg (v,int));
   3168   va_end (v);
   3169   return s;
   3170 }
   3171 
   3172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3173    function prototypes and stuff, but not '\xHH' hex character constants.
   3174    These don't provoke an error unfortunately, instead are silently treated
   3175    as 'x'.  The following induces an error, until -std is added to get
   3176    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3177    array size at least.  It's necessary to write '\x00'==0 to get something
   3178    that's true only with -std.  */
   3179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3180 
   3181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3182    inside strings and character constants.  */
   3183 #define FOO(x) 'x'
   3184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3185 
   3186 int test (int i, double x);
   3187 struct s1 {int (*f) (int a);};
   3188 struct s2 {int (*f) (double a);};
   3189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3190 int argc;
   3191 char **argv;
   3192 int
   3193 main ()
   3194 {
   3195 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3196   ;
   3197   return 0;
   3198 }
   3199 _ACEOF
   3200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3201 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3202 do
   3203   CC="$ac_save_CC $ac_arg"
   3204   rm -f conftest.$ac_objext
   3205 if { (ac_try="$ac_compile"
   3206 case "(($ac_try" in
   3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3208   *) ac_try_echo=$ac_try;;
   3209 esac
   3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3211   (eval "$ac_compile") 2>conftest.er1
   3212   ac_status=$?
   3213   grep -v '^ *+' conftest.er1 >conftest.err
   3214   rm -f conftest.er1
   3215   cat conftest.err >&5
   3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3217   (exit $ac_status); } && {
   3218 	 test -z "$ac_c_werror_flag" ||
   3219 	 test ! -s conftest.err
   3220        } && test -s conftest.$ac_objext; then
   3221   ac_cv_prog_cc_c89=$ac_arg
   3222 else
   3223   echo "$as_me: failed program was:" >&5
   3224 sed 's/^/| /' conftest.$ac_ext >&5
   3225 
   3226 
   3227 fi
   3228 
   3229 rm -f core conftest.err conftest.$ac_objext
   3230   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3231 done
   3232 rm -f conftest.$ac_ext
   3233 CC=$ac_save_CC
   3234 
   3235 fi
   3236 # AC_CACHE_VAL
   3237 case "x$ac_cv_prog_cc_c89" in
   3238   x)
   3239     { echo "$as_me:$LINENO: result: none needed" >&5
   3240 echo "${ECHO_T}none needed" >&6; } ;;
   3241   xno)
   3242     { echo "$as_me:$LINENO: result: unsupported" >&5
   3243 echo "${ECHO_T}unsupported" >&6; } ;;
   3244   *)
   3245     CC="$CC $ac_cv_prog_cc_c89"
   3246     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   3247 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   3248 esac
   3249 
   3250 
   3251 ac_ext=c
   3252 ac_cpp='$CPP $CPPFLAGS'
   3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3256 
   3257 ac_ext=cpp
   3258 ac_cpp='$CXXCPP $CPPFLAGS'
   3259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3262 if test -z "$CXX"; then
   3263   if test -n "$CCC"; then
   3264     CXX=$CCC
   3265   else
   3266     if test -n "$ac_tool_prefix"; then
   3267   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3268   do
   3269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   3273 if test "${ac_cv_prog_CXX+set}" = set; then
   3274   echo $ECHO_N "(cached) $ECHO_C" >&6
   3275 else
   3276   if test -n "$CXX"; then
   3277   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3278 else
   3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3280 for as_dir in $PATH
   3281 do
   3282   IFS=$as_save_IFS
   3283   test -z "$as_dir" && as_dir=.
   3284   for ac_exec_ext in '' $ac_executable_extensions; do
   3285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3286     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3288     break 2
   3289   fi
   3290 done
   3291 done
   3292 IFS=$as_save_IFS
   3293 
   3294 fi
   3295 fi
   3296 CXX=$ac_cv_prog_CXX
   3297 if test -n "$CXX"; then
   3298   { echo "$as_me:$LINENO: result: $CXX" >&5
   3299 echo "${ECHO_T}$CXX" >&6; }
   3300 else
   3301   { echo "$as_me:$LINENO: result: no" >&5
   3302 echo "${ECHO_T}no" >&6; }
   3303 fi
   3304 
   3305 
   3306     test -n "$CXX" && break
   3307   done
   3308 fi
   3309 if test -z "$CXX"; then
   3310   ac_ct_CXX=$CXX
   3311   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3312 do
   3313   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3314 set dummy $ac_prog; ac_word=$2
   3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   3317 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   3318   echo $ECHO_N "(cached) $ECHO_C" >&6
   3319 else
   3320   if test -n "$ac_ct_CXX"; then
   3321   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3322 else
   3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3324 for as_dir in $PATH
   3325 do
   3326   IFS=$as_save_IFS
   3327   test -z "$as_dir" && as_dir=.
   3328   for ac_exec_ext in '' $ac_executable_extensions; do
   3329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3330     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3332     break 2
   3333   fi
   3334 done
   3335 done
   3336 IFS=$as_save_IFS
   3337 
   3338 fi
   3339 fi
   3340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3341 if test -n "$ac_ct_CXX"; then
   3342   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   3343 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   3344 else
   3345   { echo "$as_me:$LINENO: result: no" >&5
   3346 echo "${ECHO_T}no" >&6; }
   3347 fi
   3348 
   3349 
   3350   test -n "$ac_ct_CXX" && break
   3351 done
   3352 
   3353   if test "x$ac_ct_CXX" = x; then
   3354     CXX="g++"
   3355   else
   3356     case $cross_compiling:$ac_tool_warned in
   3357 yes:)
   3358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   3359 whose name does not start with the host triplet.  If you think this
   3360 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   3361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   3362 whose name does not start with the host triplet.  If you think this
   3363 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   3364 ac_tool_warned=yes ;;
   3365 esac
   3366     CXX=$ac_ct_CXX
   3367   fi
   3368 fi
   3369 
   3370   fi
   3371 fi
   3372 # Provide some information about the compiler.
   3373 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   3374 ac_compiler=`set X $ac_compile; echo $2`
   3375 { (ac_try="$ac_compiler --version >&5"
   3376 case "(($ac_try" in
   3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3378   *) ac_try_echo=$ac_try;;
   3379 esac
   3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3381   (eval "$ac_compiler --version >&5") 2>&5
   3382   ac_status=$?
   3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3384   (exit $ac_status); }
   3385 { (ac_try="$ac_compiler -v >&5"
   3386 case "(($ac_try" in
   3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3388   *) ac_try_echo=$ac_try;;
   3389 esac
   3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3391   (eval "$ac_compiler -v >&5") 2>&5
   3392   ac_status=$?
   3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3394   (exit $ac_status); }
   3395 { (ac_try="$ac_compiler -V >&5"
   3396 case "(($ac_try" in
   3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3398   *) ac_try_echo=$ac_try;;
   3399 esac
   3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3401   (eval "$ac_compiler -V >&5") 2>&5
   3402   ac_status=$?
   3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3404   (exit $ac_status); }
   3405 
   3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   3407 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   3408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   3409   echo $ECHO_N "(cached) $ECHO_C" >&6
   3410 else
   3411   cat >conftest.$ac_ext <<_ACEOF
   3412 /* confdefs.h.  */
   3413 _ACEOF
   3414 cat confdefs.h >>conftest.$ac_ext
   3415 cat >>conftest.$ac_ext <<_ACEOF
   3416 /* end confdefs.h.  */
   3417 
   3418 int
   3419 main ()
   3420 {
   3421 #ifndef __GNUC__
   3422        choke me
   3423 #endif
   3424 
   3425   ;
   3426   return 0;
   3427 }
   3428 _ACEOF
   3429 rm -f conftest.$ac_objext
   3430 if { (ac_try="$ac_compile"
   3431 case "(($ac_try" in
   3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3433   *) ac_try_echo=$ac_try;;
   3434 esac
   3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3436   (eval "$ac_compile") 2>conftest.er1
   3437   ac_status=$?
   3438   grep -v '^ *+' conftest.er1 >conftest.err
   3439   rm -f conftest.er1
   3440   cat conftest.err >&5
   3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3442   (exit $ac_status); } && {
   3443 	 test -z "$ac_cxx_werror_flag" ||
   3444 	 test ! -s conftest.err
   3445        } && test -s conftest.$ac_objext; then
   3446   ac_compiler_gnu=yes
   3447 else
   3448   echo "$as_me: failed program was:" >&5
   3449 sed 's/^/| /' conftest.$ac_ext >&5
   3450 
   3451 	ac_compiler_gnu=no
   3452 fi
   3453 
   3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3456 
   3457 fi
   3458 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   3459 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   3460 GXX=`test $ac_compiler_gnu = yes && echo yes`
   3461 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3462 ac_save_CXXFLAGS=$CXXFLAGS
   3463 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   3464 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   3465 if test "${ac_cv_prog_cxx_g+set}" = set; then
   3466   echo $ECHO_N "(cached) $ECHO_C" >&6
   3467 else
   3468   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3469    ac_cxx_werror_flag=yes
   3470    ac_cv_prog_cxx_g=no
   3471    CXXFLAGS="-g"
   3472    cat >conftest.$ac_ext <<_ACEOF
   3473 /* confdefs.h.  */
   3474 _ACEOF
   3475 cat confdefs.h >>conftest.$ac_ext
   3476 cat >>conftest.$ac_ext <<_ACEOF
   3477 /* end confdefs.h.  */
   3478 
   3479 int
   3480 main ()
   3481 {
   3482 
   3483   ;
   3484   return 0;
   3485 }
   3486 _ACEOF
   3487 rm -f conftest.$ac_objext
   3488 if { (ac_try="$ac_compile"
   3489 case "(($ac_try" in
   3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3491   *) ac_try_echo=$ac_try;;
   3492 esac
   3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3494   (eval "$ac_compile") 2>conftest.er1
   3495   ac_status=$?
   3496   grep -v '^ *+' conftest.er1 >conftest.err
   3497   rm -f conftest.er1
   3498   cat conftest.err >&5
   3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3500   (exit $ac_status); } && {
   3501 	 test -z "$ac_cxx_werror_flag" ||
   3502 	 test ! -s conftest.err
   3503        } && test -s conftest.$ac_objext; then
   3504   ac_cv_prog_cxx_g=yes
   3505 else
   3506   echo "$as_me: failed program was:" >&5
   3507 sed 's/^/| /' conftest.$ac_ext >&5
   3508 
   3509 	CXXFLAGS=""
   3510       cat >conftest.$ac_ext <<_ACEOF
   3511 /* confdefs.h.  */
   3512 _ACEOF
   3513 cat confdefs.h >>conftest.$ac_ext
   3514 cat >>conftest.$ac_ext <<_ACEOF
   3515 /* end confdefs.h.  */
   3516 
   3517 int
   3518 main ()
   3519 {
   3520 
   3521   ;
   3522   return 0;
   3523 }
   3524 _ACEOF
   3525 rm -f conftest.$ac_objext
   3526 if { (ac_try="$ac_compile"
   3527 case "(($ac_try" in
   3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3529   *) ac_try_echo=$ac_try;;
   3530 esac
   3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3532   (eval "$ac_compile") 2>conftest.er1
   3533   ac_status=$?
   3534   grep -v '^ *+' conftest.er1 >conftest.err
   3535   rm -f conftest.er1
   3536   cat conftest.err >&5
   3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3538   (exit $ac_status); } && {
   3539 	 test -z "$ac_cxx_werror_flag" ||
   3540 	 test ! -s conftest.err
   3541        } && test -s conftest.$ac_objext; then
   3542   :
   3543 else
   3544   echo "$as_me: failed program was:" >&5
   3545 sed 's/^/| /' conftest.$ac_ext >&5
   3546 
   3547 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3548 	 CXXFLAGS="-g"
   3549 	 cat >conftest.$ac_ext <<_ACEOF
   3550 /* confdefs.h.  */
   3551 _ACEOF
   3552 cat confdefs.h >>conftest.$ac_ext
   3553 cat >>conftest.$ac_ext <<_ACEOF
   3554 /* end confdefs.h.  */
   3555 
   3556 int
   3557 main ()
   3558 {
   3559 
   3560   ;
   3561   return 0;
   3562 }
   3563 _ACEOF
   3564 rm -f conftest.$ac_objext
   3565 if { (ac_try="$ac_compile"
   3566 case "(($ac_try" in
   3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3568   *) ac_try_echo=$ac_try;;
   3569 esac
   3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3571   (eval "$ac_compile") 2>conftest.er1
   3572   ac_status=$?
   3573   grep -v '^ *+' conftest.er1 >conftest.err
   3574   rm -f conftest.er1
   3575   cat conftest.err >&5
   3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3577   (exit $ac_status); } && {
   3578 	 test -z "$ac_cxx_werror_flag" ||
   3579 	 test ! -s conftest.err
   3580        } && test -s conftest.$ac_objext; then
   3581   ac_cv_prog_cxx_g=yes
   3582 else
   3583   echo "$as_me: failed program was:" >&5
   3584 sed 's/^/| /' conftest.$ac_ext >&5
   3585 
   3586 
   3587 fi
   3588 
   3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3590 fi
   3591 
   3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3593 fi
   3594 
   3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3596    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3597 fi
   3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3600 if test "$ac_test_CXXFLAGS" = set; then
   3601   CXXFLAGS=$ac_save_CXXFLAGS
   3602 elif test $ac_cv_prog_cxx_g = yes; then
   3603   if test "$GXX" = yes; then
   3604     CXXFLAGS="-g -O2"
   3605   else
   3606     CXXFLAGS="-g"
   3607   fi
   3608 else
   3609   if test "$GXX" = yes; then
   3610     CXXFLAGS="-O2"
   3611   else
   3612     CXXFLAGS=
   3613   fi
   3614 fi
   3615 ac_ext=c
   3616 ac_cpp='$CPP $CPPFLAGS'
   3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3620 
   3621 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
   3623 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3624 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
   3625   echo $ECHO_N "(cached) $ECHO_C" >&6
   3626 else
   3627   cat >conftest.make <<\_ACEOF
   3628 SHELL = /bin/sh
   3629 all:
   3630 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3631 _ACEOF
   3632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   3633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3634   *@@@%%%=?*=@@@%%%*)
   3635     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3636   *)
   3637     eval ac_cv_prog_make_${ac_make}_set=no;;
   3638 esac
   3639 rm -f conftest.make
   3640 fi
   3641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3642   { echo "$as_me:$LINENO: result: yes" >&5
   3643 echo "${ECHO_T}yes" >&6; }
   3644   SET_MAKE=
   3645 else
   3646   { echo "$as_me:$LINENO: result: no" >&5
   3647 echo "${ECHO_T}no" >&6; }
   3648   SET_MAKE="MAKE=${MAKE-make}"
   3649 fi
   3650 
   3651 
   3652 # Check whether --enable-static was given.
   3653 if test "${enable_static+set}" = set; then
   3654   enableval=$enable_static; p=${PACKAGE-default}
   3655     case $enableval in
   3656     yes) enable_static=yes ;;
   3657     no) enable_static=no ;;
   3658     *)
   3659      enable_static=no
   3660       # Look at the argument we got.  We use all the common list separators.
   3661       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   3662       for pkg in $enableval; do
   3663 	IFS="$lt_save_ifs"
   3664 	if test "X$pkg" = "X$p"; then
   3665 	  enable_static=yes
   3666 	fi
   3667       done
   3668       IFS="$lt_save_ifs"
   3669       ;;
   3670     esac
   3671 else
   3672   enable_static=no
   3673 fi
   3674 
   3675 
   3676 
   3677 
   3678 
   3679 # Check whether --enable-shared was given.
   3680 if test "${enable_shared+set}" = set; then
   3681   enableval=$enable_shared; p=${PACKAGE-default}
   3682     case $enableval in
   3683     yes) enable_shared=yes ;;
   3684     no) enable_shared=no ;;
   3685     *)
   3686       enable_shared=no
   3687       # Look at the argument we got.  We use all the common list separators.
   3688       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   3689       for pkg in $enableval; do
   3690 	IFS="$lt_save_ifs"
   3691 	if test "X$pkg" = "X$p"; then
   3692 	  enable_shared=yes
   3693 	fi
   3694       done
   3695       IFS="$lt_save_ifs"
   3696       ;;
   3697     esac
   3698 else
   3699   enable_shared=yes
   3700 fi
   3701 
   3702 
   3703 # Check whether --enable-fast-install was given.
   3704 if test "${enable_fast_install+set}" = set; then
   3705   enableval=$enable_fast_install; p=${PACKAGE-default}
   3706     case $enableval in
   3707     yes) enable_fast_install=yes ;;
   3708     no) enable_fast_install=no ;;
   3709     *)
   3710       enable_fast_install=no
   3711       # Look at the argument we got.  We use all the common list separators.
   3712       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   3713       for pkg in $enableval; do
   3714 	IFS="$lt_save_ifs"
   3715 	if test "X$pkg" = "X$p"; then
   3716 	  enable_fast_install=yes
   3717 	fi
   3718       done
   3719       IFS="$lt_save_ifs"
   3720       ;;
   3721     esac
   3722 else
   3723   enable_fast_install=yes
   3724 fi
   3725 
   3726 
   3727 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
   3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
   3729 if test "${lt_cv_path_SED+set}" = set; then
   3730   echo $ECHO_N "(cached) $ECHO_C" >&6
   3731 else
   3732   # Loop through the user's path and test for sed and gsed.
   3733 # Then use that list of sed's as ones to test for truncation.
   3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3735 for as_dir in $PATH
   3736 do
   3737   IFS=$as_save_IFS
   3738   test -z "$as_dir" && as_dir=.
   3739   for lt_ac_prog in sed gsed; do
   3740     for ac_exec_ext in '' $ac_executable_extensions; do
   3741       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
   3742         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
   3743       fi
   3744     done
   3745   done
   3746 done
   3747 lt_ac_max=0
   3748 lt_ac_count=0
   3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
   3750 # along with /bin/sed that truncates output.
   3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
   3752   test ! -f $lt_ac_sed && break
   3753   cat /dev/null > conftest.in
   3754   lt_ac_count=0
   3755   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
   3756   # Check for GNU sed and select it if it is found.
   3757   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
   3758     lt_cv_path_SED=$lt_ac_sed
   3759     break
   3760   fi
   3761   while true; do
   3762     cat conftest.in conftest.in >conftest.tmp
   3763     mv conftest.tmp conftest.in
   3764     cp conftest.in conftest.nl
   3765     echo >>conftest.nl
   3766     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
   3767     cmp -s conftest.out conftest.nl || break
   3768     # 10000 chars as input seems more than enough
   3769     test $lt_ac_count -gt 10 && break
   3770     lt_ac_count=`expr $lt_ac_count + 1`
   3771     if test $lt_ac_count -gt $lt_ac_max; then
   3772       lt_ac_max=$lt_ac_count
   3773       lt_cv_path_SED=$lt_ac_sed
   3774     fi
   3775   done
   3776 done
   3777 SED=$lt_cv_path_SED
   3778 
   3779 fi
   3780 
   3781 { echo "$as_me:$LINENO: result: $SED" >&5
   3782 echo "${ECHO_T}$SED" >&6; }
   3783 
   3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3786 if test "${ac_cv_path_GREP+set}" = set; then
   3787   echo $ECHO_N "(cached) $ECHO_C" >&6
   3788 else
   3789   # Extract the first word of "grep ggrep" to use in msg output
   3790 if test -z "$GREP"; then
   3791 set dummy grep ggrep; ac_prog_name=$2
   3792 if test "${ac_cv_path_GREP+set}" = set; then
   3793   echo $ECHO_N "(cached) $ECHO_C" >&6
   3794 else
   3795   ac_path_GREP_found=false
   3796 # Loop through the user's path and test for each of PROGNAME-LIST
   3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3799 do
   3800   IFS=$as_save_IFS
   3801   test -z "$as_dir" && as_dir=.
   3802   for ac_prog in grep ggrep; do
   3803   for ac_exec_ext in '' $ac_executable_extensions; do
   3804     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3805     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3806     # Check for GNU ac_path_GREP and select it if it is found.
   3807   # Check for GNU $ac_path_GREP
   3808 case `"$ac_path_GREP" --version 2>&1` in
   3809 *GNU*)
   3810   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3811 *)
   3812   ac_count=0
   3813   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3814   while :
   3815   do
   3816     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3817     mv "conftest.tmp" "conftest.in"
   3818     cp "conftest.in" "conftest.nl"
   3819     echo 'GREP' >> "conftest.nl"
   3820     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3821     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3822     ac_count=`expr $ac_count + 1`
   3823     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3824       # Best one so far, save it but keep looking for a better one
   3825       ac_cv_path_GREP="$ac_path_GREP"
   3826       ac_path_GREP_max=$ac_count
   3827     fi
   3828     # 10*(2^10) chars as input seems more than enough
   3829     test $ac_count -gt 10 && break
   3830   done
   3831   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3832 esac
   3833 
   3834 
   3835     $ac_path_GREP_found && break 3
   3836   done
   3837 done
   3838 
   3839 done
   3840 IFS=$as_save_IFS
   3841 
   3842 
   3843 fi
   3844 
   3845 GREP="$ac_cv_path_GREP"
   3846 if test -z "$GREP"; then
   3847   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3849    { (exit 1); exit 1; }; }
   3850 fi
   3851 
   3852 else
   3853   ac_cv_path_GREP=$GREP
   3854 fi
   3855 
   3856 
   3857 fi
   3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3860  GREP="$ac_cv_path_GREP"
   3861 
   3862 
   3863 { echo "$as_me:$LINENO: checking for egrep" >&5
   3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3865 if test "${ac_cv_path_EGREP+set}" = set; then
   3866   echo $ECHO_N "(cached) $ECHO_C" >&6
   3867 else
   3868   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3869    then ac_cv_path_EGREP="$GREP -E"
   3870    else
   3871      # Extract the first word of "egrep" to use in msg output
   3872 if test -z "$EGREP"; then
   3873 set dummy egrep; ac_prog_name=$2
   3874 if test "${ac_cv_path_EGREP+set}" = set; then
   3875   echo $ECHO_N "(cached) $ECHO_C" >&6
   3876 else
   3877   ac_path_EGREP_found=false
   3878 # Loop through the user's path and test for each of PROGNAME-LIST
   3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3881 do
   3882   IFS=$as_save_IFS
   3883   test -z "$as_dir" && as_dir=.
   3884   for ac_prog in egrep; do
   3885   for ac_exec_ext in '' $ac_executable_extensions; do
   3886     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3887     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3888     # Check for GNU ac_path_EGREP and select it if it is found.
   3889   # Check for GNU $ac_path_EGREP
   3890 case `"$ac_path_EGREP" --version 2>&1` in
   3891 *GNU*)
   3892   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3893 *)
   3894   ac_count=0
   3895   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3896   while :
   3897   do
   3898     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3899     mv "conftest.tmp" "conftest.in"
   3900     cp "conftest.in" "conftest.nl"
   3901     echo 'EGREP' >> "conftest.nl"
   3902     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3903     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3904     ac_count=`expr $ac_count + 1`
   3905     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3906       # Best one so far, save it but keep looking for a better one
   3907       ac_cv_path_EGREP="$ac_path_EGREP"
   3908       ac_path_EGREP_max=$ac_count
   3909     fi
   3910     # 10*(2^10) chars as input seems more than enough
   3911     test $ac_count -gt 10 && break
   3912   done
   3913   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3914 esac
   3915 
   3916 
   3917     $ac_path_EGREP_found && break 3
   3918   done
   3919 done
   3920 
   3921 done
   3922 IFS=$as_save_IFS
   3923 
   3924 
   3925 fi
   3926 
   3927 EGREP="$ac_cv_path_EGREP"
   3928 if test -z "$EGREP"; then
   3929   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3931    { (exit 1); exit 1; }; }
   3932 fi
   3933 
   3934 else
   3935   ac_cv_path_EGREP=$EGREP
   3936 fi
   3937 
   3938 
   3939    fi
   3940 fi
   3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3943  EGREP="$ac_cv_path_EGREP"
   3944 
   3945 
   3946 
   3947 # Check whether --with-gnu-ld was given.
   3948 if test "${with_gnu_ld+set}" = set; then
   3949   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   3950 else
   3951   with_gnu_ld=no
   3952 fi
   3953 
   3954 ac_prog=ld
   3955 if test "$GCC" = yes; then
   3956   # Check if gcc -print-prog-name=ld gives a path.
   3957   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
   3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
   3959   case $host in
   3960   *-*-mingw*)
   3961     # gcc leaves a trailing carriage return which upsets mingw
   3962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   3963   *)
   3964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   3965   esac
   3966   case $ac_prog in
   3967     # Accept absolute paths.
   3968     [\\/]* | ?:[\\/]*)
   3969       re_direlt='/[^/][^/]*/\.\./'
   3970       # Canonicalize the pathname of ld
   3971       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
   3972       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   3973 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
   3974       done
   3975       test -z "$LD" && LD="$ac_prog"
   3976       ;;
   3977   "")
   3978     # If it fails, then pretend we aren't using GCC.
   3979     ac_prog=ld
   3980     ;;
   3981   *)
   3982     # If it is relative, then search for the first ld in PATH.
   3983     with_gnu_ld=unknown
   3984     ;;
   3985   esac
   3986 elif test "$with_gnu_ld" = yes; then
   3987   { echo "$as_me:$LINENO: checking for GNU ld" >&5
   3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
   3989 else
   3990   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
   3992 fi
   3993 if test "${lt_cv_path_LD+set}" = set; then
   3994   echo $ECHO_N "(cached) $ECHO_C" >&6
   3995 else
   3996   if test -z "$LD"; then
   3997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   3998   for ac_dir in $PATH; do
   3999     IFS="$lt_save_ifs"
   4000     test -z "$ac_dir" && ac_dir=.
   4001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4002       lt_cv_path_LD="$ac_dir/$ac_prog"
   4003       # Check to see if the program is GNU ld.  I'd rather use --version,
   4004       # but apparently some GNU ld's only accept -v.
   4005       # Break only if it was the GNU/non-GNU ld that we prefer.
   4006       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4007       *GNU* | *'with BFD'*)
   4008 	test "$with_gnu_ld" != no && break
   4009 	;;
   4010       *)
   4011 	test "$with_gnu_ld" != yes && break
   4012 	;;
   4013       esac
   4014     fi
   4015   done
   4016   IFS="$lt_save_ifs"
   4017 else
   4018   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   4019 fi
   4020 fi
   4021 
   4022 LD="$lt_cv_path_LD"
   4023 if test -n "$LD"; then
   4024   { echo "$as_me:$LINENO: result: $LD" >&5
   4025 echo "${ECHO_T}$LD" >&6; }
   4026 else
   4027   { echo "$as_me:$LINENO: result: no" >&5
   4028 echo "${ECHO_T}no" >&6; }
   4029 fi
   4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   4032    { (exit 1); exit 1; }; }
   4033 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
   4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
   4036   echo $ECHO_N "(cached) $ECHO_C" >&6
   4037 else
   4038   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   4039 case `$LD -v 2>&1 </dev/null` in
   4040 *GNU* | *'with BFD'*)
   4041   lt_cv_prog_gnu_ld=yes
   4042   ;;
   4043 *)
   4044   lt_cv_prog_gnu_ld=no
   4045   ;;
   4046 esac
   4047 fi
   4048 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
   4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
   4050 with_gnu_ld=$lt_cv_prog_gnu_ld
   4051 
   4052 
   4053 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
   4054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
   4055 if test "${lt_cv_ld_reload_flag+set}" = set; then
   4056   echo $ECHO_N "(cached) $ECHO_C" >&6
   4057 else
   4058   lt_cv_ld_reload_flag='-r'
   4059 fi
   4060 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
   4061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
   4062 reload_flag=$lt_cv_ld_reload_flag
   4063 case $reload_flag in
   4064 "" | " "*) ;;
   4065 *) reload_flag=" $reload_flag" ;;
   4066 esac
   4067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4068 
   4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   4071 if test "${lt_cv_path_NM+set}" = set; then
   4072   echo $ECHO_N "(cached) $ECHO_C" >&6
   4073 else
   4074   if test -n "$NM"; then
   4075   # Let the user override the test.
   4076   lt_cv_path_NM="$NM"
   4077 else
   4078   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   4079   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
   4080     IFS="$lt_save_ifs"
   4081     test -z "$ac_dir" && ac_dir=.
   4082     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
   4083     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   4084       # Check to see if the nm accepts a BSD-compat flag.
   4085       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
   4086       #   nm: unknown option "B" ignored
   4087       # Tru64's nm complains that /dev/null is an invalid object file
   4088       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   4089       */dev/null* | *'Invalid file or object type'*)
   4090 	lt_cv_path_NM="$tmp_nm -B"
   4091 	break
   4092         ;;
   4093       *)
   4094 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4095 	*/dev/null*)
   4096 	  lt_cv_path_NM="$tmp_nm -p"
   4097 	  break
   4098 	  ;;
   4099 	*)
   4100 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4101 	  continue # so that we can try to find one that supports BSD flags
   4102 	  ;;
   4103 	esac
   4104       esac
   4105     fi
   4106   done
   4107   IFS="$lt_save_ifs"
   4108   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   4109 fi
   4110 fi
   4111 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   4112 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   4113 NM="$lt_cv_path_NM"
   4114 
   4115 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   4116 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   4117 LN_S=$as_ln_s
   4118 if test "$LN_S" = "ln -s"; then
   4119   { echo "$as_me:$LINENO: result: yes" >&5
   4120 echo "${ECHO_T}yes" >&6; }
   4121 else
   4122   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   4123 echo "${ECHO_T}no, using $LN_S" >&6; }
   4124 fi
   4125 
   4126 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
   4127 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
   4128 if test "${lt_cv_deplibs_check_method+set}" = set; then
   4129   echo $ECHO_N "(cached) $ECHO_C" >&6
   4130 else
   4131   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4132 lt_cv_file_magic_test_file=
   4133 lt_cv_deplibs_check_method='unknown'
   4134 # Need to set the preceding variable on all platforms that support
   4135 # interlibrary dependencies.
   4136 # 'none' -- dependencies not supported.
   4137 # `unknown' -- same as none, but documents that we really don't know.
   4138 # 'pass_all' -- all dependencies passed with no checks.
   4139 # 'test_compile' -- check by making test program.
   4140 # 'file_magic [[regex]]' -- check by looking for files in library path
   4141 # which responds to the $file_magic_cmd with a given extended regex.
   4142 # If you have `file' or equivalent on your system and you're not sure
   4143 # whether `pass_all' will *always* work, you probably want this one.
   4144 
   4145 case $host_os in
   4146 aix4* | aix5*)
   4147   lt_cv_deplibs_check_method=pass_all
   4148   ;;
   4149 
   4150 beos*)
   4151   lt_cv_deplibs_check_method=pass_all
   4152   ;;
   4153 
   4154 bsdi4*)
   4155   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4156   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4157   lt_cv_file_magic_test_file=/shlib/libc.so
   4158   ;;
   4159 
   4160 cygwin* | mingw* | pw32*)
   4161   # win32_libid is a shell function defined in ltmain.sh
   4162   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4163   lt_cv_file_magic_cmd='win32_libid'
   4164   ;;
   4165 
   4166 darwin* | rhapsody*)
   4167   # this will be overwritten by pass_all, but leave it in just in case
   4168   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
   4169   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4170   case "$host_os" in
   4171   rhapsody* | darwin1.[012])
   4172     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
   4173     ;;
   4174   *) # Darwin 1.3 on
   4175     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
   4176     ;;
   4177   esac
   4178   lt_cv_deplibs_check_method=pass_all
   4179   ;;
   4180 
   4181 freebsd* | kfreebsd*-gnu)
   4182   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   4183     case $host_cpu in
   4184     i*86 )
   4185       # Not sure whether the presence of OpenBSD here was a mistake.
   4186       # Let's accept both of them until this is cleared up.
   4187       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
   4188       lt_cv_file_magic_cmd=/usr/bin/file
   4189       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4190       ;;
   4191     esac
   4192   else
   4193     lt_cv_deplibs_check_method=pass_all
   4194   fi
   4195   ;;
   4196 
   4197 gnu*)
   4198   lt_cv_deplibs_check_method=pass_all
   4199   ;;
   4200 
   4201 hpux10.20* | hpux11*)
   4202   lt_cv_file_magic_cmd=/usr/bin/file
   4203   case "$host_cpu" in
   4204   ia64*)
   4205     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   4206     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   4207     ;;
   4208   hppa*64*)
   4209     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
   4210     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   4211     ;;
   4212   *)
   4213     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
   4214     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   4215     ;;
   4216   esac
   4217   ;;
   4218 
   4219 irix5* | irix6* | nonstopux*)
   4220   case $host_os in
   4221   irix5* | nonstopux*)
   4222     # this will be overridden with pass_all, but let us keep it just in case
   4223     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
   4224     ;;
   4225   *)
   4226     case $LD in
   4227     *-32|*"-32 ") libmagic=32-bit;;
   4228     *-n32|*"-n32 ") libmagic=N32;;
   4229     *-64|*"-64 ") libmagic=64-bit;;
   4230     *) libmagic=never-match;;
   4231     esac
   4232     # this will be overridden with pass_all, but let us keep it just in case
   4233     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
   4234     ;;
   4235   esac
   4236   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
   4237   lt_cv_deplibs_check_method=pass_all
   4238   ;;
   4239 
   4240 # This must be Linux ELF.
   4241 linux*)
   4242   case $host_cpu in
   4243   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
   4244     lt_cv_deplibs_check_method=pass_all ;;
   4245   *)
   4246     # glibc up to 2.1.1 does not perform some relocations on ARM
   4247     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
   4248   esac
   4249   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
   4250   ;;
   4251 
   4252 netbsd*)
   4253   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   4254     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   4255   else
   4256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   4257   fi
   4258   ;;
   4259 
   4260 newos6*)
   4261   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   4262   lt_cv_file_magic_cmd=/usr/bin/file
   4263   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   4264   ;;
   4265 
   4266 nto-qnx*)
   4267   lt_cv_deplibs_check_method=unknown
   4268   ;;
   4269 
   4270 openbsd*)
   4271   lt_cv_file_magic_cmd=/usr/bin/file
   4272   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   4274     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
   4275   else
   4276     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
   4277   fi
   4278   ;;
   4279 
   4280 osf3* | osf4* | osf5*)
   4281   # this will be overridden with pass_all, but let us keep it just in case
   4282   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
   4283   lt_cv_file_magic_test_file=/shlib/libc.so
   4284   lt_cv_deplibs_check_method=pass_all
   4285   ;;
   4286 
   4287 sco3.2v5*)
   4288   lt_cv_deplibs_check_method=pass_all
   4289   ;;
   4290 
   4291 solaris*)
   4292   lt_cv_deplibs_check_method=pass_all
   4293   lt_cv_file_magic_test_file=/lib/libc.so
   4294   ;;
   4295 
   4296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   4297   case $host_vendor in
   4298   motorola)
   4299     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
   4300     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   4301     ;;
   4302   ncr)
   4303     lt_cv_deplibs_check_method=pass_all
   4304     ;;
   4305   sequent)
   4306     lt_cv_file_magic_cmd='/bin/file'
   4307     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   4308     ;;
   4309   sni)
   4310     lt_cv_file_magic_cmd='/bin/file'
   4311     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   4312     lt_cv_file_magic_test_file=/lib/libc.so
   4313     ;;
   4314   siemens)
   4315     lt_cv_deplibs_check_method=pass_all
   4316     ;;
   4317   esac
   4318   ;;
   4319 
   4320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
   4321   lt_cv_deplibs_check_method=pass_all
   4322   ;;
   4323 esac
   4324 
   4325 fi
   4326 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
   4327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
   4328 file_magic_cmd=$lt_cv_file_magic_cmd
   4329 deplibs_check_method=$lt_cv_deplibs_check_method
   4330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   4331 
   4332 
   4333 
   4334 
   4335 # If no C compiler was specified, use CC.
   4336 LTCC=${LTCC-"$CC"}
   4337 
   4338 # Allow CC to be a program name with arguments.
   4339 compiler=$CC
   4340 
   4341 
   4342 # Check whether --enable-libtool-lock was given.
   4343 if test "${enable_libtool_lock+set}" = set; then
   4344   enableval=$enable_libtool_lock;
   4345 fi
   4346 
   4347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   4348 
   4349 # Some flags need to be propagated to the compiler or linker for good
   4350 # libtool support.
   4351 case $host in
   4352 ia64-*-hpux*)
   4353   # Find out which ABI we are using.
   4354   echo 'int i;' > conftest.$ac_ext
   4355   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4356   (eval $ac_compile) 2>&5
   4357   ac_status=$?
   4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4359   (exit $ac_status); }; then
   4360     case `/usr/bin/file conftest.$ac_objext` in
   4361     *ELF-32*)
   4362       HPUX_IA64_MODE="32"
   4363       ;;
   4364     *ELF-64*)
   4365       HPUX_IA64_MODE="64"
   4366       ;;
   4367     esac
   4368   fi
   4369   rm -rf conftest*
   4370   ;;
   4371 *-*-irix6*)
   4372   # Find out which ABI we are using.
   4373   echo '#line 4373 "configure"' > conftest.$ac_ext
   4374   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4375   (eval $ac_compile) 2>&5
   4376   ac_status=$?
   4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4378   (exit $ac_status); }; then
   4379    if test "$lt_cv_prog_gnu_ld" = yes; then
   4380     case `/usr/bin/file conftest.$ac_objext` in
   4381     *32-bit*)
   4382       LD="${LD-ld} -melf32bsmip"
   4383       ;;
   4384     *N32*)
   4385       LD="${LD-ld} -melf32bmipn32"
   4386       ;;
   4387     *64-bit*)
   4388       LD="${LD-ld} -melf64bmip"
   4389       ;;
   4390     esac
   4391    else
   4392     case `/usr/bin/file conftest.$ac_objext` in
   4393     *32-bit*)
   4394       LD="${LD-ld} -32"
   4395       ;;
   4396     *N32*)
   4397       LD="${LD-ld} -n32"
   4398       ;;
   4399     *64-bit*)
   4400       LD="${LD-ld} -64"
   4401       ;;
   4402     esac
   4403    fi
   4404   fi
   4405   rm -rf conftest*
   4406   ;;
   4407 
   4408 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   4409   # Find out which ABI we are using.
   4410   echo 'int i;' > conftest.$ac_ext
   4411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4412   (eval $ac_compile) 2>&5
   4413   ac_status=$?
   4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4415   (exit $ac_status); }; then
   4416     case "`/usr/bin/file conftest.o`" in
   4417     *32-bit*)
   4418       case $host in
   4419         x86_64-*linux*)
   4420           LD="${LD-ld} -m elf_i386"
   4421           ;;
   4422         ppc64-*linux*|powerpc64-*linux*)
   4423           LD="${LD-ld} -m elf32ppclinux"
   4424           ;;
   4425         s390x-*linux*)
   4426           LD="${LD-ld} -m elf_s390"
   4427           ;;
   4428         sparc64-*linux*)
   4429           LD="${LD-ld} -m elf32_sparc"
   4430           ;;
   4431       esac
   4432       ;;
   4433     *64-bit*)
   4434       case $host in
   4435         x86_64-*linux*)
   4436           LD="${LD-ld} -m elf_x86_64"
   4437           ;;
   4438         ppc*-*linux*|powerpc*-*linux*)
   4439           LD="${LD-ld} -m elf64ppc"
   4440           ;;
   4441         s390*-*linux*)
   4442           LD="${LD-ld} -m elf64_s390"
   4443           ;;
   4444         sparc*-*linux*)
   4445           LD="${LD-ld} -m elf64_sparc"
   4446           ;;
   4447       esac
   4448       ;;
   4449     esac
   4450   fi
   4451   rm -rf conftest*
   4452   ;;
   4453 
   4454 *-*-sco3.2v5*)
   4455   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   4456   SAVE_CFLAGS="$CFLAGS"
   4457   CFLAGS="$CFLAGS -belf"
   4458   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
   4459 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
   4460 if test "${lt_cv_cc_needs_belf+set}" = set; then
   4461   echo $ECHO_N "(cached) $ECHO_C" >&6
   4462 else
   4463   ac_ext=c
   4464 ac_cpp='$CPP $CPPFLAGS'
   4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4468 
   4469      cat >conftest.$ac_ext <<_ACEOF
   4470 /* confdefs.h.  */
   4471 _ACEOF
   4472 cat confdefs.h >>conftest.$ac_ext
   4473 cat >>conftest.$ac_ext <<_ACEOF
   4474 /* end confdefs.h.  */
   4475 
   4476 int
   4477 main ()
   4478 {
   4479 
   4480   ;
   4481   return 0;
   4482 }
   4483 _ACEOF
   4484 rm -f conftest.$ac_objext conftest$ac_exeext
   4485 if { (ac_try="$ac_link"
   4486 case "(($ac_try" in
   4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4488   *) ac_try_echo=$ac_try;;
   4489 esac
   4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4491   (eval "$ac_link") 2>conftest.er1
   4492   ac_status=$?
   4493   grep -v '^ *+' conftest.er1 >conftest.err
   4494   rm -f conftest.er1
   4495   cat conftest.err >&5
   4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4497   (exit $ac_status); } && {
   4498 	 test -z "$ac_c_werror_flag" ||
   4499 	 test ! -s conftest.err
   4500        } && test -s conftest$ac_exeext &&
   4501        $as_test_x conftest$ac_exeext; then
   4502   lt_cv_cc_needs_belf=yes
   4503 else
   4504   echo "$as_me: failed program was:" >&5
   4505 sed 's/^/| /' conftest.$ac_ext >&5
   4506 
   4507 	lt_cv_cc_needs_belf=no
   4508 fi
   4509 
   4510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   4511       conftest$ac_exeext conftest.$ac_ext
   4512      ac_ext=c
   4513 ac_cpp='$CPP $CPPFLAGS'
   4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4517 
   4518 fi
   4519 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
   4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
   4521   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   4522     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   4523     CFLAGS="$SAVE_CFLAGS"
   4524   fi
   4525   ;;
   4526 
   4527 esac
   4528 
   4529 need_locks="$enable_libtool_lock"
   4530 
   4531 
   4532 ac_ext=c
   4533 ac_cpp='$CPP $CPPFLAGS'
   4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   4538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   4539 # On Suns, sometimes $CPP names a directory.
   4540 if test -n "$CPP" && test -d "$CPP"; then
   4541   CPP=
   4542 fi
   4543 if test -z "$CPP"; then
   4544   if test "${ac_cv_prog_CPP+set}" = set; then
   4545   echo $ECHO_N "(cached) $ECHO_C" >&6
   4546 else
   4547       # Double quotes because CPP needs to be expanded
   4548     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4549     do
   4550       ac_preproc_ok=false
   4551 for ac_c_preproc_warn_flag in '' yes
   4552 do
   4553   # Use a header file that comes with gcc, so configuring glibc
   4554   # with a fresh cross-compiler works.
   4555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4556   # <limits.h> exists even on freestanding compilers.
   4557   # On the NeXT, cc -E runs the code through the compiler's parser,
   4558   # not just through cpp. "Syntax error" is here to catch this case.
   4559   cat >conftest.$ac_ext <<_ACEOF
   4560 /* confdefs.h.  */
   4561 _ACEOF
   4562 cat confdefs.h >>conftest.$ac_ext
   4563 cat >>conftest.$ac_ext <<_ACEOF
   4564 /* end confdefs.h.  */
   4565 #ifdef __STDC__
   4566 # include <limits.h>
   4567 #else
   4568 # include <assert.h>
   4569 #endif
   4570 		     Syntax error
   4571 _ACEOF
   4572 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4573 case "(($ac_try" in
   4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4575   *) ac_try_echo=$ac_try;;
   4576 esac
   4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4579   ac_status=$?
   4580   grep -v '^ *+' conftest.er1 >conftest.err
   4581   rm -f conftest.er1
   4582   cat conftest.err >&5
   4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4584   (exit $ac_status); } >/dev/null && {
   4585 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4586 	 test ! -s conftest.err
   4587        }; then
   4588   :
   4589 else
   4590   echo "$as_me: failed program was:" >&5
   4591 sed 's/^/| /' conftest.$ac_ext >&5
   4592 
   4593   # Broken: fails on valid input.
   4594 continue
   4595 fi
   4596 
   4597 rm -f conftest.err conftest.$ac_ext
   4598 
   4599   # OK, works on sane cases.  Now check whether nonexistent headers
   4600   # can be detected and how.
   4601   cat >conftest.$ac_ext <<_ACEOF
   4602 /* confdefs.h.  */
   4603 _ACEOF
   4604 cat confdefs.h >>conftest.$ac_ext
   4605 cat >>conftest.$ac_ext <<_ACEOF
   4606 /* end confdefs.h.  */
   4607 #include <ac_nonexistent.h>
   4608 _ACEOF
   4609 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4610 case "(($ac_try" in
   4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4612   *) ac_try_echo=$ac_try;;
   4613 esac
   4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4616   ac_status=$?
   4617   grep -v '^ *+' conftest.er1 >conftest.err
   4618   rm -f conftest.er1
   4619   cat conftest.err >&5
   4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4621   (exit $ac_status); } >/dev/null && {
   4622 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4623 	 test ! -s conftest.err
   4624        }; then
   4625   # Broken: success on invalid input.
   4626 continue
   4627 else
   4628   echo "$as_me: failed program was:" >&5
   4629 sed 's/^/| /' conftest.$ac_ext >&5
   4630 
   4631   # Passes both tests.
   4632 ac_preproc_ok=:
   4633 break
   4634 fi
   4635 
   4636 rm -f conftest.err conftest.$ac_ext
   4637 
   4638 done
   4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4640 rm -f conftest.err conftest.$ac_ext
   4641 if $ac_preproc_ok; then
   4642   break
   4643 fi
   4644 
   4645     done
   4646     ac_cv_prog_CPP=$CPP
   4647 
   4648 fi
   4649   CPP=$ac_cv_prog_CPP
   4650 else
   4651   ac_cv_prog_CPP=$CPP
   4652 fi
   4653 { echo "$as_me:$LINENO: result: $CPP" >&5
   4654 echo "${ECHO_T}$CPP" >&6; }
   4655 ac_preproc_ok=false
   4656 for ac_c_preproc_warn_flag in '' yes
   4657 do
   4658   # Use a header file that comes with gcc, so configuring glibc
   4659   # with a fresh cross-compiler works.
   4660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4661   # <limits.h> exists even on freestanding compilers.
   4662   # On the NeXT, cc -E runs the code through the compiler's parser,
   4663   # not just through cpp. "Syntax error" is here to catch this case.
   4664   cat >conftest.$ac_ext <<_ACEOF
   4665 /* confdefs.h.  */
   4666 _ACEOF
   4667 cat confdefs.h >>conftest.$ac_ext
   4668 cat >>conftest.$ac_ext <<_ACEOF
   4669 /* end confdefs.h.  */
   4670 #ifdef __STDC__
   4671 # include <limits.h>
   4672 #else
   4673 # include <assert.h>
   4674 #endif
   4675 		     Syntax error
   4676 _ACEOF
   4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4678 case "(($ac_try" in
   4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4680   *) ac_try_echo=$ac_try;;
   4681 esac
   4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4684   ac_status=$?
   4685   grep -v '^ *+' conftest.er1 >conftest.err
   4686   rm -f conftest.er1
   4687   cat conftest.err >&5
   4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4689   (exit $ac_status); } >/dev/null && {
   4690 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4691 	 test ! -s conftest.err
   4692        }; then
   4693   :
   4694 else
   4695   echo "$as_me: failed program was:" >&5
   4696 sed 's/^/| /' conftest.$ac_ext >&5
   4697 
   4698   # Broken: fails on valid input.
   4699 continue
   4700 fi
   4701 
   4702 rm -f conftest.err conftest.$ac_ext
   4703 
   4704   # OK, works on sane cases.  Now check whether nonexistent headers
   4705   # can be detected and how.
   4706   cat >conftest.$ac_ext <<_ACEOF
   4707 /* confdefs.h.  */
   4708 _ACEOF
   4709 cat confdefs.h >>conftest.$ac_ext
   4710 cat >>conftest.$ac_ext <<_ACEOF
   4711 /* end confdefs.h.  */
   4712 #include <ac_nonexistent.h>
   4713 _ACEOF
   4714 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4715 case "(($ac_try" in
   4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4717   *) ac_try_echo=$ac_try;;
   4718 esac
   4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4721   ac_status=$?
   4722   grep -v '^ *+' conftest.er1 >conftest.err
   4723   rm -f conftest.er1
   4724   cat conftest.err >&5
   4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4726   (exit $ac_status); } >/dev/null && {
   4727 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4728 	 test ! -s conftest.err
   4729        }; then
   4730   # Broken: success on invalid input.
   4731 continue
   4732 else
   4733   echo "$as_me: failed program was:" >&5
   4734 sed 's/^/| /' conftest.$ac_ext >&5
   4735 
   4736   # Passes both tests.
   4737 ac_preproc_ok=:
   4738 break
   4739 fi
   4740 
   4741 rm -f conftest.err conftest.$ac_ext
   4742 
   4743 done
   4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4745 rm -f conftest.err conftest.$ac_ext
   4746 if $ac_preproc_ok; then
   4747   :
   4748 else
   4749   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   4750 See \`config.log' for more details." >&5
   4751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   4752 See \`config.log' for more details." >&2;}
   4753    { (exit 1); exit 1; }; }
   4754 fi
   4755 
   4756 ac_ext=c
   4757 ac_cpp='$CPP $CPPFLAGS'
   4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4761 
   4762 
   4763 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   4765 if test "${ac_cv_header_stdc+set}" = set; then
   4766   echo $ECHO_N "(cached) $ECHO_C" >&6
   4767 else
   4768   cat >conftest.$ac_ext <<_ACEOF
   4769 /* confdefs.h.  */
   4770 _ACEOF
   4771 cat confdefs.h >>conftest.$ac_ext
   4772 cat >>conftest.$ac_ext <<_ACEOF
   4773 /* end confdefs.h.  */
   4774 #include <stdlib.h>
   4775 #include <stdarg.h>
   4776 #include <string.h>
   4777 #include <float.h>
   4778 
   4779 int
   4780 main ()
   4781 {
   4782 
   4783   ;
   4784   return 0;
   4785 }
   4786 _ACEOF
   4787 rm -f conftest.$ac_objext
   4788 if { (ac_try="$ac_compile"
   4789 case "(($ac_try" in
   4790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4791   *) ac_try_echo=$ac_try;;
   4792 esac
   4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4794   (eval "$ac_compile") 2>conftest.er1
   4795   ac_status=$?
   4796   grep -v '^ *+' conftest.er1 >conftest.err
   4797   rm -f conftest.er1
   4798   cat conftest.err >&5
   4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4800   (exit $ac_status); } && {
   4801 	 test -z "$ac_c_werror_flag" ||
   4802 	 test ! -s conftest.err
   4803        } && test -s conftest.$ac_objext; then
   4804   ac_cv_header_stdc=yes
   4805 else
   4806   echo "$as_me: failed program was:" >&5
   4807 sed 's/^/| /' conftest.$ac_ext >&5
   4808 
   4809 	ac_cv_header_stdc=no
   4810 fi
   4811 
   4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4813 
   4814 if test $ac_cv_header_stdc = yes; then
   4815   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4816   cat >conftest.$ac_ext <<_ACEOF
   4817 /* confdefs.h.  */
   4818 _ACEOF
   4819 cat confdefs.h >>conftest.$ac_ext
   4820 cat >>conftest.$ac_ext <<_ACEOF
   4821 /* end confdefs.h.  */
   4822 #include <string.h>
   4823 
   4824 _ACEOF
   4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4826   $EGREP "memchr" >/dev/null 2>&1; then
   4827   :
   4828 else
   4829   ac_cv_header_stdc=no
   4830 fi
   4831 rm -f conftest*
   4832 
   4833 fi
   4834 
   4835 if test $ac_cv_header_stdc = yes; then
   4836   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4837   cat >conftest.$ac_ext <<_ACEOF
   4838 /* confdefs.h.  */
   4839 _ACEOF
   4840 cat confdefs.h >>conftest.$ac_ext
   4841 cat >>conftest.$ac_ext <<_ACEOF
   4842 /* end confdefs.h.  */
   4843 #include <stdlib.h>
   4844 
   4845 _ACEOF
   4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4847   $EGREP "free" >/dev/null 2>&1; then
   4848   :
   4849 else
   4850   ac_cv_header_stdc=no
   4851 fi
   4852 rm -f conftest*
   4853 
   4854 fi
   4855 
   4856 if test $ac_cv_header_stdc = yes; then
   4857   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4858   if test "$cross_compiling" = yes; then
   4859   :
   4860 else
   4861   cat >conftest.$ac_ext <<_ACEOF
   4862 /* confdefs.h.  */
   4863 _ACEOF
   4864 cat confdefs.h >>conftest.$ac_ext
   4865 cat >>conftest.$ac_ext <<_ACEOF
   4866 /* end confdefs.h.  */
   4867 #include <ctype.h>
   4868 #include <stdlib.h>
   4869 #if ((' ' & 0x0FF) == 0x020)
   4870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4872 #else
   4873 # define ISLOWER(c) \
   4874 		   (('a' <= (c) && (c) <= 'i') \
   4875 		     || ('j' <= (c) && (c) <= 'r') \
   4876 		     || ('s' <= (c) && (c) <= 'z'))
   4877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4878 #endif
   4879 
   4880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4881 int
   4882 main ()
   4883 {
   4884   int i;
   4885   for (i = 0; i < 256; i++)
   4886     if (XOR (islower (i), ISLOWER (i))
   4887 	|| toupper (i) != TOUPPER (i))
   4888       return 2;
   4889   return 0;
   4890 }
   4891 _ACEOF
   4892 rm -f conftest$ac_exeext
   4893 if { (ac_try="$ac_link"
   4894 case "(($ac_try" in
   4895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4896   *) ac_try_echo=$ac_try;;
   4897 esac
   4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4899   (eval "$ac_link") 2>&5
   4900   ac_status=$?
   4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4903   { (case "(($ac_try" in
   4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4905   *) ac_try_echo=$ac_try;;
   4906 esac
   4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4908   (eval "$ac_try") 2>&5
   4909   ac_status=$?
   4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4911   (exit $ac_status); }; }; then
   4912   :
   4913 else
   4914   echo "$as_me: program exited with status $ac_status" >&5
   4915 echo "$as_me: failed program was:" >&5
   4916 sed 's/^/| /' conftest.$ac_ext >&5
   4917 
   4918 ( exit $ac_status )
   4919 ac_cv_header_stdc=no
   4920 fi
   4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4922 fi
   4923 
   4924 
   4925 fi
   4926 fi
   4927 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4928 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4929 if test $ac_cv_header_stdc = yes; then
   4930 
   4931 cat >>confdefs.h <<\_ACEOF
   4932 #define STDC_HEADERS 1
   4933 _ACEOF
   4934 
   4935 fi
   4936 
   4937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4938 
   4939 
   4940 
   4941 
   4942 
   4943 
   4944 
   4945 
   4946 
   4947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4948 		  inttypes.h stdint.h unistd.h
   4949 do
   4950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4954   echo $ECHO_N "(cached) $ECHO_C" >&6
   4955 else
   4956   cat >conftest.$ac_ext <<_ACEOF
   4957 /* confdefs.h.  */
   4958 _ACEOF
   4959 cat confdefs.h >>conftest.$ac_ext
   4960 cat >>conftest.$ac_ext <<_ACEOF
   4961 /* end confdefs.h.  */
   4962 $ac_includes_default
   4963 
   4964 #include <$ac_header>
   4965 _ACEOF
   4966 rm -f conftest.$ac_objext
   4967 if { (ac_try="$ac_compile"
   4968 case "(($ac_try" in
   4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4970   *) ac_try_echo=$ac_try;;
   4971 esac
   4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4973   (eval "$ac_compile") 2>conftest.er1
   4974   ac_status=$?
   4975   grep -v '^ *+' conftest.er1 >conftest.err
   4976   rm -f conftest.er1
   4977   cat conftest.err >&5
   4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4979   (exit $ac_status); } && {
   4980 	 test -z "$ac_c_werror_flag" ||
   4981 	 test ! -s conftest.err
   4982        } && test -s conftest.$ac_objext; then
   4983   eval "$as_ac_Header=yes"
   4984 else
   4985   echo "$as_me: failed program was:" >&5
   4986 sed 's/^/| /' conftest.$ac_ext >&5
   4987 
   4988 	eval "$as_ac_Header=no"
   4989 fi
   4990 
   4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4992 fi
   4993 ac_res=`eval echo '${'$as_ac_Header'}'`
   4994 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4995 echo "${ECHO_T}$ac_res" >&6; }
   4996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4997   cat >>confdefs.h <<_ACEOF
   4998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4999 _ACEOF
   5000 
   5001 fi
   5002 
   5003 done
   5004 
   5005 
   5006 
   5007 for ac_header in dlfcn.h
   5008 do
   5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   5011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   5013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   5014   echo $ECHO_N "(cached) $ECHO_C" >&6
   5015 fi
   5016 ac_res=`eval echo '${'$as_ac_Header'}'`
   5017 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5018 echo "${ECHO_T}$ac_res" >&6; }
   5019 else
   5020   # Is the header compilable?
   5021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   5022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   5023 cat >conftest.$ac_ext <<_ACEOF
   5024 /* confdefs.h.  */
   5025 _ACEOF
   5026 cat confdefs.h >>conftest.$ac_ext
   5027 cat >>conftest.$ac_ext <<_ACEOF
   5028 /* end confdefs.h.  */
   5029 $ac_includes_default
   5030 #include <$ac_header>
   5031 _ACEOF
   5032 rm -f conftest.$ac_objext
   5033 if { (ac_try="$ac_compile"
   5034 case "(($ac_try" in
   5035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5036   *) ac_try_echo=$ac_try;;
   5037 esac
   5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5039   (eval "$ac_compile") 2>conftest.er1
   5040   ac_status=$?
   5041   grep -v '^ *+' conftest.er1 >conftest.err
   5042   rm -f conftest.er1
   5043   cat conftest.err >&5
   5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5045   (exit $ac_status); } && {
   5046 	 test -z "$ac_c_werror_flag" ||
   5047 	 test ! -s conftest.err
   5048        } && test -s conftest.$ac_objext; then
   5049   ac_header_compiler=yes
   5050 else
   5051   echo "$as_me: failed program was:" >&5
   5052 sed 's/^/| /' conftest.$ac_ext >&5
   5053 
   5054 	ac_header_compiler=no
   5055 fi
   5056 
   5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   5059 echo "${ECHO_T}$ac_header_compiler" >&6; }
   5060 
   5061 # Is the header present?
   5062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   5064 cat >conftest.$ac_ext <<_ACEOF
   5065 /* confdefs.h.  */
   5066 _ACEOF
   5067 cat confdefs.h >>conftest.$ac_ext
   5068 cat >>conftest.$ac_ext <<_ACEOF
   5069 /* end confdefs.h.  */
   5070 #include <$ac_header>
   5071 _ACEOF
   5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5073 case "(($ac_try" in
   5074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5075   *) ac_try_echo=$ac_try;;
   5076 esac
   5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5079   ac_status=$?
   5080   grep -v '^ *+' conftest.er1 >conftest.err
   5081   rm -f conftest.er1
   5082   cat conftest.err >&5
   5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5084   (exit $ac_status); } >/dev/null && {
   5085 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   5086 	 test ! -s conftest.err
   5087        }; then
   5088   ac_header_preproc=yes
   5089 else
   5090   echo "$as_me: failed program was:" >&5
   5091 sed 's/^/| /' conftest.$ac_ext >&5
   5092 
   5093   ac_header_preproc=no
   5094 fi
   5095 
   5096 rm -f conftest.err conftest.$ac_ext
   5097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   5098 echo "${ECHO_T}$ac_header_preproc" >&6; }
   5099 
   5100 # So?  What about this header?
   5101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   5102   yes:no: )
   5103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   5104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   5105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   5106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   5107     ac_header_preproc=yes
   5108     ;;
   5109   no:yes:* )
   5110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   5111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   5112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   5113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   5114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   5115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   5116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   5117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   5118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   5119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   5120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   5121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   5122 
   5123     ;;
   5124 esac
   5125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   5128   echo $ECHO_N "(cached) $ECHO_C" >&6
   5129 else
   5130   eval "$as_ac_Header=\$ac_header_preproc"
   5131 fi
   5132 ac_res=`eval echo '${'$as_ac_Header'}'`
   5133 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5134 echo "${ECHO_T}$ac_res" >&6; }
   5135 
   5136 fi
   5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5138   cat >>confdefs.h <<_ACEOF
   5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5140 _ACEOF
   5141 
   5142 fi
   5143 
   5144 done
   5145 
   5146 ac_ext=cpp
   5147 ac_cpp='$CXXCPP $CPPFLAGS'
   5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5151 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
   5152 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
   5153 if test -z "$CXXCPP"; then
   5154   if test "${ac_cv_prog_CXXCPP+set}" = set; then
   5155   echo $ECHO_N "(cached) $ECHO_C" >&6
   5156 else
   5157       # Double quotes because CXXCPP needs to be expanded
   5158     for CXXCPP in "$CXX -E" "/lib/cpp"
   5159     do
   5160       ac_preproc_ok=false
   5161 for ac_cxx_preproc_warn_flag in '' yes
   5162 do
   5163   # Use a header file that comes with gcc, so configuring glibc
   5164   # with a fresh cross-compiler works.
   5165   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5166   # <limits.h> exists even on freestanding compilers.
   5167   # On the NeXT, cc -E runs the code through the compiler's parser,
   5168   # not just through cpp. "Syntax error" is here to catch this case.
   5169   cat >conftest.$ac_ext <<_ACEOF
   5170 /* confdefs.h.  */
   5171 _ACEOF
   5172 cat confdefs.h >>conftest.$ac_ext
   5173 cat >>conftest.$ac_ext <<_ACEOF
   5174 /* end confdefs.h.  */
   5175 #ifdef __STDC__
   5176 # include <limits.h>
   5177 #else
   5178 # include <assert.h>
   5179 #endif
   5180 		     Syntax error
   5181 _ACEOF
   5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5183 case "(($ac_try" in
   5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5185   *) ac_try_echo=$ac_try;;
   5186 esac
   5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5189   ac_status=$?
   5190   grep -v '^ *+' conftest.er1 >conftest.err
   5191   rm -f conftest.er1
   5192   cat conftest.err >&5
   5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5194   (exit $ac_status); } >/dev/null && {
   5195 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5196 	 test ! -s conftest.err
   5197        }; then
   5198   :
   5199 else
   5200   echo "$as_me: failed program was:" >&5
   5201 sed 's/^/| /' conftest.$ac_ext >&5
   5202 
   5203   # Broken: fails on valid input.
   5204 continue
   5205 fi
   5206 
   5207 rm -f conftest.err conftest.$ac_ext
   5208 
   5209   # OK, works on sane cases.  Now check whether nonexistent headers
   5210   # can be detected and how.
   5211   cat >conftest.$ac_ext <<_ACEOF
   5212 /* confdefs.h.  */
   5213 _ACEOF
   5214 cat confdefs.h >>conftest.$ac_ext
   5215 cat >>conftest.$ac_ext <<_ACEOF
   5216 /* end confdefs.h.  */
   5217 #include <ac_nonexistent.h>
   5218 _ACEOF
   5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5220 case "(($ac_try" in
   5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5222   *) ac_try_echo=$ac_try;;
   5223 esac
   5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5226   ac_status=$?
   5227   grep -v '^ *+' conftest.er1 >conftest.err
   5228   rm -f conftest.er1
   5229   cat conftest.err >&5
   5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5231   (exit $ac_status); } >/dev/null && {
   5232 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5233 	 test ! -s conftest.err
   5234        }; then
   5235   # Broken: success on invalid input.
   5236 continue
   5237 else
   5238   echo "$as_me: failed program was:" >&5
   5239 sed 's/^/| /' conftest.$ac_ext >&5
   5240 
   5241   # Passes both tests.
   5242 ac_preproc_ok=:
   5243 break
   5244 fi
   5245 
   5246 rm -f conftest.err conftest.$ac_ext
   5247 
   5248 done
   5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5250 rm -f conftest.err conftest.$ac_ext
   5251 if $ac_preproc_ok; then
   5252   break
   5253 fi
   5254 
   5255     done
   5256     ac_cv_prog_CXXCPP=$CXXCPP
   5257 
   5258 fi
   5259   CXXCPP=$ac_cv_prog_CXXCPP
   5260 else
   5261   ac_cv_prog_CXXCPP=$CXXCPP
   5262 fi
   5263 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
   5264 echo "${ECHO_T}$CXXCPP" >&6; }
   5265 ac_preproc_ok=false
   5266 for ac_cxx_preproc_warn_flag in '' yes
   5267 do
   5268   # Use a header file that comes with gcc, so configuring glibc
   5269   # with a fresh cross-compiler works.
   5270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5271   # <limits.h> exists even on freestanding compilers.
   5272   # On the NeXT, cc -E runs the code through the compiler's parser,
   5273   # not just through cpp. "Syntax error" is here to catch this case.
   5274   cat >conftest.$ac_ext <<_ACEOF
   5275 /* confdefs.h.  */
   5276 _ACEOF
   5277 cat confdefs.h >>conftest.$ac_ext
   5278 cat >>conftest.$ac_ext <<_ACEOF
   5279 /* end confdefs.h.  */
   5280 #ifdef __STDC__
   5281 # include <limits.h>
   5282 #else
   5283 # include <assert.h>
   5284 #endif
   5285 		     Syntax error
   5286 _ACEOF
   5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5288 case "(($ac_try" in
   5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5290   *) ac_try_echo=$ac_try;;
   5291 esac
   5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5294   ac_status=$?
   5295   grep -v '^ *+' conftest.er1 >conftest.err
   5296   rm -f conftest.er1
   5297   cat conftest.err >&5
   5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5299   (exit $ac_status); } >/dev/null && {
   5300 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5301 	 test ! -s conftest.err
   5302        }; then
   5303   :
   5304 else
   5305   echo "$as_me: failed program was:" >&5
   5306 sed 's/^/| /' conftest.$ac_ext >&5
   5307 
   5308   # Broken: fails on valid input.
   5309 continue
   5310 fi
   5311 
   5312 rm -f conftest.err conftest.$ac_ext
   5313 
   5314   # OK, works on sane cases.  Now check whether nonexistent headers
   5315   # can be detected and how.
   5316   cat >conftest.$ac_ext <<_ACEOF
   5317 /* confdefs.h.  */
   5318 _ACEOF
   5319 cat confdefs.h >>conftest.$ac_ext
   5320 cat >>conftest.$ac_ext <<_ACEOF
   5321 /* end confdefs.h.  */
   5322 #include <ac_nonexistent.h>
   5323 _ACEOF
   5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5325 case "(($ac_try" in
   5326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5327   *) ac_try_echo=$ac_try;;
   5328 esac
   5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5331   ac_status=$?
   5332   grep -v '^ *+' conftest.er1 >conftest.err
   5333   rm -f conftest.er1
   5334   cat conftest.err >&5
   5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5336   (exit $ac_status); } >/dev/null && {
   5337 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5338 	 test ! -s conftest.err
   5339        }; then
   5340   # Broken: success on invalid input.
   5341 continue
   5342 else
   5343   echo "$as_me: failed program was:" >&5
   5344 sed 's/^/| /' conftest.$ac_ext >&5
   5345 
   5346   # Passes both tests.
   5347 ac_preproc_ok=:
   5348 break
   5349 fi
   5350 
   5351 rm -f conftest.err conftest.$ac_ext
   5352 
   5353 done
   5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5355 rm -f conftest.err conftest.$ac_ext
   5356 if $ac_preproc_ok; then
   5357   :
   5358 else
   5359   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
   5360 See \`config.log' for more details." >&5
   5361 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
   5362 See \`config.log' for more details." >&2;}
   5363    { (exit 1); exit 1; }; }
   5364 fi
   5365 
   5366 ac_ext=cpp
   5367 ac_cpp='$CXXCPP $CPPFLAGS'
   5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5371 
   5372 
   5373 ac_ext=f
   5374 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
   5375 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5376 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
   5377 if test -n "$ac_tool_prefix"; then
   5378   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
   5379   do
   5380     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5384 if test "${ac_cv_prog_F77+set}" = set; then
   5385   echo $ECHO_N "(cached) $ECHO_C" >&6
   5386 else
   5387   if test -n "$F77"; then
   5388   ac_cv_prog_F77="$F77" # Let the user override the test.
   5389 else
   5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5391 for as_dir in $PATH
   5392 do
   5393   IFS=$as_save_IFS
   5394   test -z "$as_dir" && as_dir=.
   5395   for ac_exec_ext in '' $ac_executable_extensions; do
   5396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5397     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
   5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5399     break 2
   5400   fi
   5401 done
   5402 done
   5403 IFS=$as_save_IFS
   5404 
   5405 fi
   5406 fi
   5407 F77=$ac_cv_prog_F77
   5408 if test -n "$F77"; then
   5409   { echo "$as_me:$LINENO: result: $F77" >&5
   5410 echo "${ECHO_T}$F77" >&6; }
   5411 else
   5412   { echo "$as_me:$LINENO: result: no" >&5
   5413 echo "${ECHO_T}no" >&6; }
   5414 fi
   5415 
   5416 
   5417     test -n "$F77" && break
   5418   done
   5419 fi
   5420 if test -z "$F77"; then
   5421   ac_ct_F77=$F77
   5422   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
   5423 do
   5424   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5425 set dummy $ac_prog; ac_word=$2
   5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5428 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
   5429   echo $ECHO_N "(cached) $ECHO_C" >&6
   5430 else
   5431   if test -n "$ac_ct_F77"; then
   5432   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
   5433 else
   5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5435 for as_dir in $PATH
   5436 do
   5437   IFS=$as_save_IFS
   5438   test -z "$as_dir" && as_dir=.
   5439   for ac_exec_ext in '' $ac_executable_extensions; do
   5440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5441     ac_cv_prog_ac_ct_F77="$ac_prog"
   5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5443     break 2
   5444   fi
   5445 done
   5446 done
   5447 IFS=$as_save_IFS
   5448 
   5449 fi
   5450 fi
   5451 ac_ct_F77=$ac_cv_prog_ac_ct_F77
   5452 if test -n "$ac_ct_F77"; then
   5453   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
   5454 echo "${ECHO_T}$ac_ct_F77" >&6; }
   5455 else
   5456   { echo "$as_me:$LINENO: result: no" >&5
   5457 echo "${ECHO_T}no" >&6; }
   5458 fi
   5459 
   5460 
   5461   test -n "$ac_ct_F77" && break
   5462 done
   5463 
   5464   if test "x$ac_ct_F77" = x; then
   5465     F77=""
   5466   else
   5467     case $cross_compiling:$ac_tool_warned in
   5468 yes:)
   5469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5470 whose name does not start with the host triplet.  If you think this
   5471 configuration is useful to you, please write to autoconf@gnu.org." >&5
   5472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5473 whose name does not start with the host triplet.  If you think this
   5474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   5475 ac_tool_warned=yes ;;
   5476 esac
   5477     F77=$ac_ct_F77
   5478   fi
   5479 fi
   5480 
   5481 
   5482 # Provide some information about the compiler.
   5483 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
   5484 ac_compiler=`set X $ac_compile; echo $2`
   5485 { (ac_try="$ac_compiler --version >&5"
   5486 case "(($ac_try" in
   5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5488   *) ac_try_echo=$ac_try;;
   5489 esac
   5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5491   (eval "$ac_compiler --version >&5") 2>&5
   5492   ac_status=$?
   5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5494   (exit $ac_status); }
   5495 { (ac_try="$ac_compiler -v >&5"
   5496 case "(($ac_try" in
   5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5498   *) ac_try_echo=$ac_try;;
   5499 esac
   5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5501   (eval "$ac_compiler -v >&5") 2>&5
   5502   ac_status=$?
   5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5504   (exit $ac_status); }
   5505 { (ac_try="$ac_compiler -V >&5"
   5506 case "(($ac_try" in
   5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5508   *) ac_try_echo=$ac_try;;
   5509 esac
   5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5511   (eval "$ac_compiler -V >&5") 2>&5
   5512   ac_status=$?
   5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5514   (exit $ac_status); }
   5515 rm -f a.out
   5516 
   5517 # If we don't use `.F' as extension, the preprocessor is not run on the
   5518 # input file.  (Note that this only needs to work for GNU compilers.)
   5519 ac_save_ext=$ac_ext
   5520 ac_ext=F
   5521 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
   5522 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
   5523 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
   5524   echo $ECHO_N "(cached) $ECHO_C" >&6
   5525 else
   5526   cat >conftest.$ac_ext <<_ACEOF
   5527       program main
   5528 #ifndef __GNUC__
   5529        choke me
   5530 #endif
   5531 
   5532       end
   5533 _ACEOF
   5534 rm -f conftest.$ac_objext
   5535 if { (ac_try="$ac_compile"
   5536 case "(($ac_try" in
   5537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5538   *) ac_try_echo=$ac_try;;
   5539 esac
   5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5541   (eval "$ac_compile") 2>conftest.er1
   5542   ac_status=$?
   5543   grep -v '^ *+' conftest.er1 >conftest.err
   5544   rm -f conftest.er1
   5545   cat conftest.err >&5
   5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5547   (exit $ac_status); } && {
   5548 	 test -z "$ac_f77_werror_flag" ||
   5549 	 test ! -s conftest.err
   5550        } && test -s conftest.$ac_objext; then
   5551   ac_compiler_gnu=yes
   5552 else
   5553   echo "$as_me: failed program was:" >&5
   5554 sed 's/^/| /' conftest.$ac_ext >&5
   5555 
   5556 	ac_compiler_gnu=no
   5557 fi
   5558 
   5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5560 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
   5561 
   5562 fi
   5563 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
   5564 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
   5565 ac_ext=$ac_save_ext
   5566 ac_test_FFLAGS=${FFLAGS+set}
   5567 ac_save_FFLAGS=$FFLAGS
   5568 FFLAGS=
   5569 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
   5570 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
   5571 if test "${ac_cv_prog_f77_g+set}" = set; then
   5572   echo $ECHO_N "(cached) $ECHO_C" >&6
   5573 else
   5574   FFLAGS=-g
   5575 cat >conftest.$ac_ext <<_ACEOF
   5576       program main
   5577 
   5578       end
   5579 _ACEOF
   5580 rm -f conftest.$ac_objext
   5581 if { (ac_try="$ac_compile"
   5582 case "(($ac_try" in
   5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5584   *) ac_try_echo=$ac_try;;
   5585 esac
   5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5587   (eval "$ac_compile") 2>conftest.er1
   5588   ac_status=$?
   5589   grep -v '^ *+' conftest.er1 >conftest.err
   5590   rm -f conftest.er1
   5591   cat conftest.err >&5
   5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5593   (exit $ac_status); } && {
   5594 	 test -z "$ac_f77_werror_flag" ||
   5595 	 test ! -s conftest.err
   5596        } && test -s conftest.$ac_objext; then
   5597   ac_cv_prog_f77_g=yes
   5598 else
   5599   echo "$as_me: failed program was:" >&5
   5600 sed 's/^/| /' conftest.$ac_ext >&5
   5601 
   5602 	ac_cv_prog_f77_g=no
   5603 fi
   5604 
   5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5606 
   5607 fi
   5608 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
   5609 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
   5610 if test "$ac_test_FFLAGS" = set; then
   5611   FFLAGS=$ac_save_FFLAGS
   5612 elif test $ac_cv_prog_f77_g = yes; then
   5613   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
   5614     FFLAGS="-g -O2"
   5615   else
   5616     FFLAGS="-g"
   5617   fi
   5618 else
   5619   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
   5620     FFLAGS="-O2"
   5621   else
   5622     FFLAGS=
   5623   fi
   5624 fi
   5625 
   5626 G77=`test $ac_compiler_gnu = yes && echo yes`
   5627 ac_ext=c
   5628 ac_cpp='$CPP $CPPFLAGS'
   5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5632 
   5633 
   5634 
   5635 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
   5636 
   5637 # find the maximum length of command line arguments
   5638 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
   5639 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
   5640 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
   5641   echo $ECHO_N "(cached) $ECHO_C" >&6
   5642 else
   5643     i=0
   5644   testring="ABCD"
   5645 
   5646   case $build_os in
   5647   msdosdjgpp*)
   5648     # On DJGPP, this test can blow up pretty badly due to problems in libc
   5649     # (any single argument exceeding 2000 bytes causes a buffer overrun
   5650     # during glob expansion).  Even if it were fixed, the result of this
   5651     # check would be larger than it should be.
   5652     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   5653     ;;
   5654 
   5655   gnu*)
   5656     # Under GNU Hurd, this test is not required because there is
   5657     # no limit to the length of command line arguments.
   5658     # Libtool will interpret -1 as no limit whatsoever
   5659     lt_cv_sys_max_cmd_len=-1;
   5660     ;;
   5661 
   5662   cygwin* | mingw*)
   5663     # On Win9x/ME, this test blows up -- it succeeds, but takes
   5664     # about 5 minutes as the teststring grows exponentially.
   5665     # Worse, since 9x/ME are not pre-emptively multitasking,
   5666     # you end up with a "frozen" computer, even though with patience
   5667     # the test eventually succeeds (with a max line length of 256k).
   5668     # Instead, let's just punt: use the minimum linelength reported by
   5669     # all of the supported platforms: 8192 (on NT/2K/XP).
   5670     lt_cv_sys_max_cmd_len=8192;
   5671     ;;
   5672 
   5673   amigaos* | morphos*)
   5674     # On AmigaOS with pdksh, this test takes hours, literally.
   5675     # So we just punt and use a minimum line length of 8192.
   5676     lt_cv_sys_max_cmd_len=8192;
   5677     ;;
   5678 
   5679  *)
   5680     # If test is not a shell built-in, we'll probably end up computing a
   5681     # maximum length that is only half of the actual maximum length, but
   5682     # we can't tell.
   5683     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
   5684 	       = "XX$testring") >/dev/null 2>&1 &&
   5685 	    new_result=`expr "X$testring" : ".*" 2>&1` &&
   5686 	    lt_cv_sys_max_cmd_len=$new_result &&
   5687 	    test $i != 17 # 1/2 MB should be enough
   5688     do
   5689       i=`expr $i + 1`
   5690       testring=$testring$testring
   5691     done
   5692     testring=
   5693     # Add a significant safety factor because C++ compilers can tack on massive
   5694     # amounts of additional arguments before passing them to the linker.
   5695     # It appears as though 1/2 is a usable value.
   5696     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5697     ;;
   5698   esac
   5699 
   5700 fi
   5701 
   5702 if test -n $lt_cv_sys_max_cmd_len ; then
   5703   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
   5704 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
   5705 else
   5706   { echo "$as_me:$LINENO: result: none" >&5
   5707 echo "${ECHO_T}none" >&6; }
   5708 fi
   5709 
   5710 
   5711 
   5712 
   5713 # Check for command to grab the raw symbol name followed by C symbol from nm.
   5714 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   5715 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   5716 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   5717   echo $ECHO_N "(cached) $ECHO_C" >&6
   5718 else
   5719 
   5720 # These are sane defaults that work on at least a few old systems.
   5721 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5722 
   5723 # Character class describing NM global symbol codes.
   5724 symcode='[BCDEGRST]'
   5725 
   5726 # Regexp to match symbols that can be accessed directly from C.
   5727 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5728 
   5729 # Transform the above into a raw symbol and a C symbol.
   5730 symxfrm='\1 \2\3 \3'
   5731 
   5732 # Transform an extracted symbol line into a proper C declaration
   5733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
   5734 
   5735 # Transform an extracted symbol line into symbol name and symbol address
   5736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   5737 
   5738 # Define system-specific variables.
   5739 case $host_os in
   5740 aix*)
   5741   symcode='[BCDT]'
   5742   ;;
   5743 cygwin* | mingw* | pw32*)
   5744   symcode='[ABCDGISTW]'
   5745   ;;
   5746 hpux*) # Its linker distinguishes data from code symbols
   5747   if test "$host_cpu" = ia64; then
   5748     symcode='[ABCDEGRST]'
   5749   fi
   5750   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   5751   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   5752   ;;
   5753 irix* | nonstopux*)
   5754   symcode='[BCDEGRST]'
   5755   ;;
   5756 osf*)
   5757   symcode='[BCDEGQRST]'
   5758   ;;
   5759 solaris* | sysv5*)
   5760   symcode='[BDRT]'
   5761   ;;
   5762 sysv4)
   5763   symcode='[DFNSTU]'
   5764   ;;
   5765 esac
   5766 
   5767 # Handle CRLF in mingw tool chain
   5768 opt_cr=
   5769 case $build_os in
   5770 mingw*)
   5771   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5772   ;;
   5773 esac
   5774 
   5775 # If we're using GNU nm, then use its standard symbol codes.
   5776 case `$NM -V 2>&1` in
   5777 *GNU* | *'with BFD'*)
   5778   symcode='[ABCDGIRSTW]' ;;
   5779 esac
   5780 
   5781 # Try without a prefix undercore, then with it.
   5782 for ac_symprfx in "" "_"; do
   5783 
   5784   # Write the raw and C identifiers.
   5785   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
   5786 
   5787   # Check to see that the pipe works correctly.
   5788   pipe_works=no
   5789 
   5790   rm -f conftest*
   5791   cat > conftest.$ac_ext <<EOF
   5792 #ifdef __cplusplus
   5793 extern "C" {
   5794 #endif
   5795 char nm_test_var;
   5796 void nm_test_func(){}
   5797 #ifdef __cplusplus
   5798 }
   5799 #endif
   5800 int main(){nm_test_var='a';nm_test_func();return(0);}
   5801 EOF
   5802 
   5803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5804   (eval $ac_compile) 2>&5
   5805   ac_status=$?
   5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5807   (exit $ac_status); }; then
   5808     # Now try to grab the symbols.
   5809     nlist=conftest.nm
   5810     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   5811   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   5812   ac_status=$?
   5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5814   (exit $ac_status); } && test -s "$nlist"; then
   5815       # Try sorting and uniquifying the output.
   5816       if sort "$nlist" | uniq > "$nlist"T; then
   5817 	mv -f "$nlist"T "$nlist"
   5818       else
   5819 	rm -f "$nlist"T
   5820       fi
   5821 
   5822       # Make sure that we snagged all the symbols we need.
   5823       if grep ' nm_test_var$' "$nlist" >/dev/null; then
   5824 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
   5825 	  cat <<EOF > conftest.$ac_ext
   5826 #ifdef __cplusplus
   5827 extern "C" {
   5828 #endif
   5829 
   5830 EOF
   5831 	  # Now generate the symbol file.
   5832 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
   5833 
   5834 	  cat <<EOF >> conftest.$ac_ext
   5835 #if defined (__STDC__) && __STDC__
   5836 # define lt_ptr_t void *
   5837 #else
   5838 # define lt_ptr_t char *
   5839 # define const
   5840 #endif
   5841 
   5842 /* The mapping between symbol names and symbols. */
   5843 const struct {
   5844   const char *name;
   5845   lt_ptr_t address;
   5846 }
   5847 lt_preloaded_symbols[] =
   5848 {
   5849 EOF
   5850 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
   5851 	  cat <<\EOF >> conftest.$ac_ext
   5852   {0, (lt_ptr_t) 0}
   5853 };
   5854 
   5855 #ifdef __cplusplus
   5856 }
   5857 #endif
   5858 EOF
   5859 	  # Now try linking the two files.
   5860 	  mv conftest.$ac_objext conftstm.$ac_objext
   5861 	  lt_save_LIBS="$LIBS"
   5862 	  lt_save_CFLAGS="$CFLAGS"
   5863 	  LIBS="conftstm.$ac_objext"
   5864 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   5865 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5866   (eval $ac_link) 2>&5
   5867   ac_status=$?
   5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5869   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   5870 	    pipe_works=yes
   5871 	  fi
   5872 	  LIBS="$lt_save_LIBS"
   5873 	  CFLAGS="$lt_save_CFLAGS"
   5874 	else
   5875 	  echo "cannot find nm_test_func in $nlist" >&5
   5876 	fi
   5877       else
   5878 	echo "cannot find nm_test_var in $nlist" >&5
   5879       fi
   5880     else
   5881       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   5882     fi
   5883   else
   5884     echo "$progname: failed program was:" >&5
   5885     cat conftest.$ac_ext >&5
   5886   fi
   5887   rm -f conftest* conftst*
   5888 
   5889   # Do not use the global_symbol_pipe unless it works.
   5890   if test "$pipe_works" = yes; then
   5891     break
   5892   else
   5893     lt_cv_sys_global_symbol_pipe=
   5894   fi
   5895 done
   5896 
   5897 fi
   5898 
   5899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   5900   lt_cv_sys_global_symbol_to_cdecl=
   5901 fi
   5902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   5903   { echo "$as_me:$LINENO: result: failed" >&5
   5904 echo "${ECHO_T}failed" >&6; }
   5905 else
   5906   { echo "$as_me:$LINENO: result: ok" >&5
   5907 echo "${ECHO_T}ok" >&6; }
   5908 fi
   5909 
   5910 { echo "$as_me:$LINENO: checking for objdir" >&5
   5911 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   5912 if test "${lt_cv_objdir+set}" = set; then
   5913   echo $ECHO_N "(cached) $ECHO_C" >&6
   5914 else
   5915   rm -f .libs 2>/dev/null
   5916 mkdir .libs 2>/dev/null
   5917 if test -d .libs; then
   5918   lt_cv_objdir=.libs
   5919 else
   5920   # MS-DOS does not allow filenames that begin with a dot.
   5921   lt_cv_objdir=_libs
   5922 fi
   5923 rmdir .libs 2>/dev/null
   5924 fi
   5925 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
   5926 echo "${ECHO_T}$lt_cv_objdir" >&6; }
   5927 objdir=$lt_cv_objdir
   5928 
   5929 
   5930 
   5931 
   5932 
   5933 case $host_os in
   5934 aix3*)
   5935   # AIX sometimes has problems with the GCC collect2 program.  For some
   5936   # reason, if we set the COLLECT_NAMES environment variable, the problems
   5937   # vanish in a puff of smoke.
   5938   if test "X${COLLECT_NAMES+set}" != Xset; then
   5939     COLLECT_NAMES=
   5940     export COLLECT_NAMES
   5941   fi
   5942   ;;
   5943 esac
   5944 
   5945 # Sed substitution that helps us do robust quoting.  It backslashifies
   5946 # metacharacters that are still active within double-quoted strings.
   5947 Xsed='sed -e s/^X//'
   5948 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
   5949 
   5950 # Same as above, but do not quote variable references.
   5951 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
   5952 
   5953 # Sed substitution to delay expansion of an escaped shell variable in a
   5954 # double_quote_subst'ed string.
   5955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   5956 
   5957 # Sed substitution to avoid accidental globbing in evaled expressions
   5958 no_glob_subst='s/\*/\\\*/g'
   5959 
   5960 # Constants:
   5961 rm="rm -f"
   5962 
   5963 # Global variables:
   5964 default_ofile=libtool
   5965 can_build_shared=yes
   5966 
   5967 # All known linkers require a `.a' archive for static linking (except M$VC,
   5968 # which needs '.lib').
   5969 libext=a
   5970 ltmain="$ac_aux_dir/ltmain.sh"
   5971 ofile="$default_ofile"
   5972 with_gnu_ld="$lt_cv_prog_gnu_ld"
   5973 
   5974 if test -n "$ac_tool_prefix"; then
   5975   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   5976 set dummy ${ac_tool_prefix}ar; ac_word=$2
   5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5979 if test "${ac_cv_prog_AR+set}" = set; then
   5980   echo $ECHO_N "(cached) $ECHO_C" >&6
   5981 else
   5982   if test -n "$AR"; then
   5983   ac_cv_prog_AR="$AR" # Let the user override the test.
   5984 else
   5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5986 for as_dir in $PATH
   5987 do
   5988   IFS=$as_save_IFS
   5989   test -z "$as_dir" && as_dir=.
   5990   for ac_exec_ext in '' $ac_executable_extensions; do
   5991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5992     ac_cv_prog_AR="${ac_tool_prefix}ar"
   5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5994     break 2
   5995   fi
   5996 done
   5997 done
   5998 IFS=$as_save_IFS
   5999 
   6000 fi
   6001 fi
   6002 AR=$ac_cv_prog_AR
   6003 if test -n "$AR"; then
   6004   { echo "$as_me:$LINENO: result: $AR" >&5
   6005 echo "${ECHO_T}$AR" >&6; }
   6006 else
   6007   { echo "$as_me:$LINENO: result: no" >&5
   6008 echo "${ECHO_T}no" >&6; }
   6009 fi
   6010 
   6011 
   6012 fi
   6013 if test -z "$ac_cv_prog_AR"; then
   6014   ac_ct_AR=$AR
   6015   # Extract the first word of "ar", so it can be a program name with args.
   6016 set dummy ar; ac_word=$2
   6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6019 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   6020   echo $ECHO_N "(cached) $ECHO_C" >&6
   6021 else
   6022   if test -n "$ac_ct_AR"; then
   6023   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6024 else
   6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6026 for as_dir in $PATH
   6027 do
   6028   IFS=$as_save_IFS
   6029   test -z "$as_dir" && as_dir=.
   6030   for ac_exec_ext in '' $ac_executable_extensions; do
   6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6032     ac_cv_prog_ac_ct_AR="ar"
   6033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6034     break 2
   6035   fi
   6036 done
   6037 done
   6038 IFS=$as_save_IFS
   6039 
   6040 fi
   6041 fi
   6042 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6043 if test -n "$ac_ct_AR"; then
   6044   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   6045 echo "${ECHO_T}$ac_ct_AR" >&6; }
   6046 else
   6047   { echo "$as_me:$LINENO: result: no" >&5
   6048 echo "${ECHO_T}no" >&6; }
   6049 fi
   6050 
   6051   if test "x$ac_ct_AR" = x; then
   6052     AR="false"
   6053   else
   6054     case $cross_compiling:$ac_tool_warned in
   6055 yes:)
   6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6057 whose name does not start with the host triplet.  If you think this
   6058 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6060 whose name does not start with the host triplet.  If you think this
   6061 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6062 ac_tool_warned=yes ;;
   6063 esac
   6064     AR=$ac_ct_AR
   6065   fi
   6066 else
   6067   AR="$ac_cv_prog_AR"
   6068 fi
   6069 
   6070 if test -n "$ac_tool_prefix"; then
   6071   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6075 if test "${ac_cv_prog_RANLIB+set}" = set; then
   6076   echo $ECHO_N "(cached) $ECHO_C" >&6
   6077 else
   6078   if test -n "$RANLIB"; then
   6079   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6080 else
   6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6082 for as_dir in $PATH
   6083 do
   6084   IFS=$as_save_IFS
   6085   test -z "$as_dir" && as_dir=.
   6086   for ac_exec_ext in '' $ac_executable_extensions; do
   6087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6088     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6090     break 2
   6091   fi
   6092 done
   6093 done
   6094 IFS=$as_save_IFS
   6095 
   6096 fi
   6097 fi
   6098 RANLIB=$ac_cv_prog_RANLIB
   6099 if test -n "$RANLIB"; then
   6100   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   6101 echo "${ECHO_T}$RANLIB" >&6; }
   6102 else
   6103   { echo "$as_me:$LINENO: result: no" >&5
   6104 echo "${ECHO_T}no" >&6; }
   6105 fi
   6106 
   6107 
   6108 fi
   6109 if test -z "$ac_cv_prog_RANLIB"; then
   6110   ac_ct_RANLIB=$RANLIB
   6111   # Extract the first word of "ranlib", so it can be a program name with args.
   6112 set dummy ranlib; ac_word=$2
   6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   6116   echo $ECHO_N "(cached) $ECHO_C" >&6
   6117 else
   6118   if test -n "$ac_ct_RANLIB"; then
   6119   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6120 else
   6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6122 for as_dir in $PATH
   6123 do
   6124   IFS=$as_save_IFS
   6125   test -z "$as_dir" && as_dir=.
   6126   for ac_exec_ext in '' $ac_executable_extensions; do
   6127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6128     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6130     break 2
   6131   fi
   6132 done
   6133 done
   6134 IFS=$as_save_IFS
   6135 
   6136 fi
   6137 fi
   6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6139 if test -n "$ac_ct_RANLIB"; then
   6140   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   6141 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   6142 else
   6143   { echo "$as_me:$LINENO: result: no" >&5
   6144 echo "${ECHO_T}no" >&6; }
   6145 fi
   6146 
   6147   if test "x$ac_ct_RANLIB" = x; then
   6148     RANLIB=":"
   6149   else
   6150     case $cross_compiling:$ac_tool_warned in
   6151 yes:)
   6152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6153 whose name does not start with the host triplet.  If you think this
   6154 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6156 whose name does not start with the host triplet.  If you think this
   6157 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6158 ac_tool_warned=yes ;;
   6159 esac
   6160     RANLIB=$ac_ct_RANLIB
   6161   fi
   6162 else
   6163   RANLIB="$ac_cv_prog_RANLIB"
   6164 fi
   6165 
   6166 if test -n "$ac_tool_prefix"; then
   6167   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6168 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6171 if test "${ac_cv_prog_STRIP+set}" = set; then
   6172   echo $ECHO_N "(cached) $ECHO_C" >&6
   6173 else
   6174   if test -n "$STRIP"; then
   6175   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6176 else
   6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6178 for as_dir in $PATH
   6179 do
   6180   IFS=$as_save_IFS
   6181   test -z "$as_dir" && as_dir=.
   6182   for ac_exec_ext in '' $ac_executable_extensions; do
   6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6184     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6186     break 2
   6187   fi
   6188 done
   6189 done
   6190 IFS=$as_save_IFS
   6191 
   6192 fi
   6193 fi
   6194 STRIP=$ac_cv_prog_STRIP
   6195 if test -n "$STRIP"; then
   6196   { echo "$as_me:$LINENO: result: $STRIP" >&5
   6197 echo "${ECHO_T}$STRIP" >&6; }
   6198 else
   6199   { echo "$as_me:$LINENO: result: no" >&5
   6200 echo "${ECHO_T}no" >&6; }
   6201 fi
   6202 
   6203 
   6204 fi
   6205 if test -z "$ac_cv_prog_STRIP"; then
   6206   ac_ct_STRIP=$STRIP
   6207   # Extract the first word of "strip", so it can be a program name with args.
   6208 set dummy strip; ac_word=$2
   6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6211 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
   6212   echo $ECHO_N "(cached) $ECHO_C" >&6
   6213 else
   6214   if test -n "$ac_ct_STRIP"; then
   6215   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6216 else
   6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6218 for as_dir in $PATH
   6219 do
   6220   IFS=$as_save_IFS
   6221   test -z "$as_dir" && as_dir=.
   6222   for ac_exec_ext in '' $ac_executable_extensions; do
   6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6224     ac_cv_prog_ac_ct_STRIP="strip"
   6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6226     break 2
   6227   fi
   6228 done
   6229 done
   6230 IFS=$as_save_IFS
   6231 
   6232 fi
   6233 fi
   6234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6235 if test -n "$ac_ct_STRIP"; then
   6236   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
   6237 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
   6238 else
   6239   { echo "$as_me:$LINENO: result: no" >&5
   6240 echo "${ECHO_T}no" >&6; }
   6241 fi
   6242 
   6243   if test "x$ac_ct_STRIP" = x; then
   6244     STRIP=":"
   6245   else
   6246     case $cross_compiling:$ac_tool_warned in
   6247 yes:)
   6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6249 whose name does not start with the host triplet.  If you think this
   6250 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6252 whose name does not start with the host triplet.  If you think this
   6253 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6254 ac_tool_warned=yes ;;
   6255 esac
   6256     STRIP=$ac_ct_STRIP
   6257   fi
   6258 else
   6259   STRIP="$ac_cv_prog_STRIP"
   6260 fi
   6261 
   6262 
   6263 old_CC="$CC"
   6264 old_CFLAGS="$CFLAGS"
   6265 
   6266 # Set sane defaults for various variables
   6267 test -z "$AR" && AR=ar
   6268 test -z "$AR_FLAGS" && AR_FLAGS=cru
   6269 test -z "$AS" && AS=as
   6270 test -z "$CC" && CC=cc
   6271 test -z "$LTCC" && LTCC=$CC
   6272 test -z "$DLLTOOL" && DLLTOOL=dlltool
   6273 test -z "$LD" && LD=ld
   6274 test -z "$LN_S" && LN_S="ln -s"
   6275 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   6276 test -z "$NM" && NM=nm
   6277 test -z "$SED" && SED=sed
   6278 test -z "$OBJDUMP" && OBJDUMP=objdump
   6279 test -z "$RANLIB" && RANLIB=:
   6280 test -z "$STRIP" && STRIP=:
   6281 test -z "$ac_objext" && ac_objext=o
   6282 
   6283 # Determine commands to create old-style static archives.
   6284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
   6285 old_postinstall_cmds='chmod 644 $oldlib'
   6286 old_postuninstall_cmds=
   6287 
   6288 if test -n "$RANLIB"; then
   6289   case $host_os in
   6290   openbsd*)
   6291     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
   6292     ;;
   6293   *)
   6294     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
   6295     ;;
   6296   esac
   6297   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   6298 fi
   6299 
   6300 # Only perform the check for file, if the check method requires it
   6301 case $deplibs_check_method in
   6302 file_magic*)
   6303   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   6304     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
   6305 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
   6306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
   6307   echo $ECHO_N "(cached) $ECHO_C" >&6
   6308 else
   6309   case $MAGIC_CMD in
   6310 [\\/*] |  ?:[\\/]*)
   6311   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   6312   ;;
   6313 *)
   6314   lt_save_MAGIC_CMD="$MAGIC_CMD"
   6315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6316   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   6317   for ac_dir in $ac_dummy; do
   6318     IFS="$lt_save_ifs"
   6319     test -z "$ac_dir" && ac_dir=.
   6320     if test -f $ac_dir/${ac_tool_prefix}file; then
   6321       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   6322       if test -n "$file_magic_test_file"; then
   6323 	case $deplibs_check_method in
   6324 	"file_magic "*)
   6325 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   6326 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6327 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   6328 	    $EGREP "$file_magic_regex" > /dev/null; then
   6329 	    :
   6330 	  else
   6331 	    cat <<EOF 1>&2
   6332 
   6333 *** Warning: the command libtool uses to detect shared libraries,
   6334 *** $file_magic_cmd, produces output that libtool cannot recognize.
   6335 *** The result is that libtool may fail to recognize shared libraries
   6336 *** as such.  This will affect the creation of libtool libraries that
   6337 *** depend on shared libraries, but programs linked with such libtool
   6338 *** libraries will work regardless of this problem.  Nevertheless, you
   6339 *** may want to report the problem to your system manager and/or to
   6340 *** bug-libtool (at] gnu.org
   6341 
   6342 EOF
   6343 	  fi ;;
   6344 	esac
   6345       fi
   6346       break
   6347     fi
   6348   done
   6349   IFS="$lt_save_ifs"
   6350   MAGIC_CMD="$lt_save_MAGIC_CMD"
   6351   ;;
   6352 esac
   6353 fi
   6354 
   6355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6356 if test -n "$MAGIC_CMD"; then
   6357   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
   6358 echo "${ECHO_T}$MAGIC_CMD" >&6; }
   6359 else
   6360   { echo "$as_me:$LINENO: result: no" >&5
   6361 echo "${ECHO_T}no" >&6; }
   6362 fi
   6363 
   6364 if test -z "$lt_cv_path_MAGIC_CMD"; then
   6365   if test -n "$ac_tool_prefix"; then
   6366     { echo "$as_me:$LINENO: checking for file" >&5
   6367 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
   6368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
   6369   echo $ECHO_N "(cached) $ECHO_C" >&6
   6370 else
   6371   case $MAGIC_CMD in
   6372 [\\/*] |  ?:[\\/]*)
   6373   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   6374   ;;
   6375 *)
   6376   lt_save_MAGIC_CMD="$MAGIC_CMD"
   6377   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6378   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   6379   for ac_dir in $ac_dummy; do
   6380     IFS="$lt_save_ifs"
   6381     test -z "$ac_dir" && ac_dir=.
   6382     if test -f $ac_dir/file; then
   6383       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   6384       if test -n "$file_magic_test_file"; then
   6385 	case $deplibs_check_method in
   6386 	"file_magic "*)
   6387 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   6388 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6389 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   6390 	    $EGREP "$file_magic_regex" > /dev/null; then
   6391 	    :
   6392 	  else
   6393 	    cat <<EOF 1>&2
   6394 
   6395 *** Warning: the command libtool uses to detect shared libraries,
   6396 *** $file_magic_cmd, produces output that libtool cannot recognize.
   6397 *** The result is that libtool may fail to recognize shared libraries
   6398 *** as such.  This will affect the creation of libtool libraries that
   6399 *** depend on shared libraries, but programs linked with such libtool
   6400 *** libraries will work regardless of this problem.  Nevertheless, you
   6401 *** may want to report the problem to your system manager and/or to
   6402 *** bug-libtool (at] gnu.org
   6403 
   6404 EOF
   6405 	  fi ;;
   6406 	esac
   6407       fi
   6408       break
   6409     fi
   6410   done
   6411   IFS="$lt_save_ifs"
   6412   MAGIC_CMD="$lt_save_MAGIC_CMD"
   6413   ;;
   6414 esac
   6415 fi
   6416 
   6417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6418 if test -n "$MAGIC_CMD"; then
   6419   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
   6420 echo "${ECHO_T}$MAGIC_CMD" >&6; }
   6421 else
   6422   { echo "$as_me:$LINENO: result: no" >&5
   6423 echo "${ECHO_T}no" >&6; }
   6424 fi
   6425 
   6426   else
   6427     MAGIC_CMD=:
   6428   fi
   6429 fi
   6430 
   6431   fi
   6432   ;;
   6433 esac
   6434 
   6435 enable_dlopen=yes
   6436 enable_win32_dll=no
   6437 
   6438 # Check whether --enable-libtool-lock was given.
   6439 if test "${enable_libtool_lock+set}" = set; then
   6440   enableval=$enable_libtool_lock;
   6441 fi
   6442 
   6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   6444 
   6445 
   6446 # Check whether --with-pic was given.
   6447 if test "${with_pic+set}" = set; then
   6448   withval=$with_pic; pic_mode="$withval"
   6449 else
   6450   pic_mode=default
   6451 fi
   6452 
   6453 test -z "$pic_mode" && pic_mode=default
   6454 
   6455 # Use C for the default configuration in the libtool script
   6456 tagname=
   6457 lt_save_CC="$CC"
   6458 ac_ext=c
   6459 ac_cpp='$CPP $CPPFLAGS'
   6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6463 
   6464 
   6465 # Source file extension for C test sources.
   6466 ac_ext=c
   6467 
   6468 # Object file extension for compiled C test sources.
   6469 objext=o
   6470 objext=$objext
   6471 
   6472 # Code to be used in simple compile tests
   6473 lt_simple_compile_test_code="int some_variable = 0;\n"
   6474 
   6475 # Code to be used in simple link tests
   6476 lt_simple_link_test_code='int main(){return(0);}\n'
   6477 
   6478 
   6479 # If no C compiler was specified, use CC.
   6480 LTCC=${LTCC-"$CC"}
   6481 
   6482 # Allow CC to be a program name with arguments.
   6483 compiler=$CC
   6484 
   6485 
   6486 #
   6487 # Check for any special shared library compilation flags.
   6488 #
   6489 lt_prog_cc_shlib=
   6490 if test "$GCC" = no; then
   6491   case $host_os in
   6492   sco3.2v5*)
   6493     lt_prog_cc_shlib='-belf'
   6494     ;;
   6495   esac
   6496 fi
   6497 if test -n "$lt_prog_cc_shlib"; then
   6498   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
   6499 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
   6500   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
   6501   else
   6502     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
   6503 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
   6504     lt_cv_prog_cc_can_build_shared=no
   6505   fi
   6506 fi
   6507 
   6508 
   6509 #
   6510 # Check to make sure the static flag actually works.
   6511 #
   6512 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
   6513 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
   6514 if test "${lt_prog_compiler_static_works+set}" = set; then
   6515   echo $ECHO_N "(cached) $ECHO_C" >&6
   6516 else
   6517   lt_prog_compiler_static_works=no
   6518    save_LDFLAGS="$LDFLAGS"
   6519    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
   6520    printf "$lt_simple_link_test_code" > conftest.$ac_ext
   6521    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   6522      # The compiler can only warn and ignore the option if not recognized
   6523      # So say no if there are warnings
   6524      if test -s conftest.err; then
   6525        # Append any errors to the config.log.
   6526        cat conftest.err 1>&5
   6527      else
   6528        lt_prog_compiler_static_works=yes
   6529      fi
   6530    fi
   6531    $rm conftest*
   6532    LDFLAGS="$save_LDFLAGS"
   6533 
   6534 fi
   6535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
   6536 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
   6537 
   6538 if test x"$lt_prog_compiler_static_works" = xyes; then
   6539     :
   6540 else
   6541     lt_prog_compiler_static=
   6542 fi
   6543 
   6544 
   6545 
   6546 ## CAVEAT EMPTOR:
   6547 ## There is no encapsulation within the following macros, do not change
   6548 ## the running order or otherwise move them around unless you know exactly
   6549 ## what you are doing...
   6550 
   6551 lt_prog_compiler_no_builtin_flag=
   6552 
   6553 if test "$GCC" = yes; then
   6554   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
   6555 
   6556 
   6557 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   6558 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
   6559 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
   6560   echo $ECHO_N "(cached) $ECHO_C" >&6
   6561 else
   6562   lt_cv_prog_compiler_rtti_exceptions=no
   6563   ac_outfile=conftest.$ac_objext
   6564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   6565    lt_compiler_flag="-fno-rtti -fno-exceptions"
   6566    # Insert the option either (1) after the last *FLAGS variable, or
   6567    # (2) before a word containing "conftest.", or (3) at the end.
   6568    # Note that $ac_compile itself does not contain backslashes and begins
   6569    # with a dollar sign (not a hyphen), so the echo should work correctly.
   6570    # The option is referenced via a variable to avoid confusing sed.
   6571    lt_compile=`echo "$ac_compile" | $SED \
   6572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   6573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   6574    -e 's:$: $lt_compiler_flag:'`
   6575    (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
   6576    (eval "$lt_compile" 2>conftest.err)
   6577    ac_status=$?
   6578    cat conftest.err >&5
   6579    echo "$as_me:6579: \$? = $ac_status" >&5
   6580    if (exit $ac_status) && test -s "$ac_outfile"; then
   6581      # The compiler can only warn and ignore the option if not recognized
   6582      # So say no if there are warnings
   6583      if test ! -s conftest.err; then
   6584        lt_cv_prog_compiler_rtti_exceptions=yes
   6585      fi
   6586    fi
   6587    $rm conftest*
   6588 
   6589 fi
   6590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   6591 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   6592 
   6593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   6594     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   6595 else
   6596     :
   6597 fi
   6598 
   6599 fi
   6600 
   6601 lt_prog_compiler_wl=
   6602 lt_prog_compiler_pic=
   6603 lt_prog_compiler_static=
   6604 
   6605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   6606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   6607 
   6608   if test "$GCC" = yes; then
   6609     lt_prog_compiler_wl='-Wl,'
   6610     lt_prog_compiler_static='-static'
   6611 
   6612     case $host_os in
   6613       aix*)
   6614       # All AIX code is PIC.
   6615       if test "$host_cpu" = ia64; then
   6616 	# AIX 5 now supports IA64 processor
   6617 	lt_prog_compiler_static='-Bstatic'
   6618       fi
   6619       ;;
   6620 
   6621     amigaos*)
   6622       # FIXME: we need at least 68020 code to build shared libraries, but
   6623       # adding the `-m68020' flag to GCC prevents building anything better,
   6624       # like `-m68040'.
   6625       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   6626       ;;
   6627 
   6628     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   6629       # PIC is the default for these OSes.
   6630       ;;
   6631 
   6632     mingw* | pw32* | os2*)
   6633       # This hack is so that the source file can tell whether it is being
   6634       # built for inclusion in a dll (and should export symbols for example).
   6635       lt_prog_compiler_pic='-DDLL_EXPORT'
   6636       ;;
   6637 
   6638     darwin* | rhapsody*)
   6639       # PIC is the default on this platform
   6640       # Common symbols not allowed in MH_DYLIB files
   6641       lt_prog_compiler_pic='-fno-common'
   6642       ;;
   6643 
   6644     msdosdjgpp*)
   6645       # Just because we use GCC doesn't mean we suddenly get shared libraries
   6646       # on systems that don't support them.
   6647       lt_prog_compiler_can_build_shared=no
   6648       enable_shared=no
   6649       ;;
   6650 
   6651     sysv4*MP*)
   6652       if test -d /usr/nec; then
   6653 	lt_prog_compiler_pic=-Kconform_pic
   6654       fi
   6655       ;;
   6656 
   6657     hpux*)
   6658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   6659       # not for PA HP-UX.
   6660       case "$host_cpu" in
   6661       hppa*64*|ia64*)
   6662 	# +Z the default
   6663 	;;
   6664       *)
   6665 	lt_prog_compiler_pic='-fPIC'
   6666 	;;
   6667       esac
   6668       ;;
   6669 
   6670     *)
   6671       lt_prog_compiler_pic='-fPIC'
   6672       ;;
   6673     esac
   6674   else
   6675     # PORTME Check for flag to pass linker flags through the system compiler.
   6676     case $host_os in
   6677     aix*)
   6678       lt_prog_compiler_wl='-Wl,'
   6679       if test "$host_cpu" = ia64; then
   6680 	# AIX 5 now supports IA64 processor
   6681 	lt_prog_compiler_static='-Bstatic'
   6682       else
   6683 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   6684       fi
   6685       ;;
   6686 
   6687     mingw* | pw32* | os2*)
   6688       # This hack is so that the source file can tell whether it is being
   6689       # built for inclusion in a dll (and should export symbols for example).
   6690       lt_prog_compiler_pic='-DDLL_EXPORT'
   6691       ;;
   6692 
   6693     hpux9* | hpux10* | hpux11*)
   6694       lt_prog_compiler_wl='-Wl,'
   6695       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   6696       # not for PA HP-UX.
   6697       case "$host_cpu" in
   6698       hppa*64*|ia64*)
   6699 	# +Z the default
   6700 	;;
   6701       *)
   6702 	lt_prog_compiler_pic='+Z'
   6703 	;;
   6704       esac
   6705       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   6706       lt_prog_compiler_static='${wl}-a ${wl}archive'
   6707       ;;
   6708 
   6709     irix5* | irix6* | nonstopux*)
   6710       lt_prog_compiler_wl='-Wl,'
   6711       # PIC (with -KPIC) is the default.
   6712       lt_prog_compiler_static='-non_shared'
   6713       ;;
   6714 
   6715     newsos6)
   6716       lt_prog_compiler_pic='-KPIC'
   6717       lt_prog_compiler_static='-Bstatic'
   6718       ;;
   6719 
   6720     linux*)
   6721       case $CC in
   6722       icc* | ecc*)
   6723 	lt_prog_compiler_wl='-Wl,'
   6724 	lt_prog_compiler_pic='-KPIC'
   6725 	lt_prog_compiler_static='-static'
   6726         ;;
   6727       ccc*)
   6728         lt_prog_compiler_wl='-Wl,'
   6729         # All Alpha code is PIC.
   6730         lt_prog_compiler_static='-non_shared'
   6731         ;;
   6732       esac
   6733       ;;
   6734 
   6735     osf3* | osf4* | osf5*)
   6736       lt_prog_compiler_wl='-Wl,'
   6737       # All OSF/1 code is PIC.
   6738       lt_prog_compiler_static='-non_shared'
   6739       ;;
   6740 
   6741     sco3.2v5*)
   6742       lt_prog_compiler_pic='-Kpic'
   6743       lt_prog_compiler_static='-dn'
   6744       ;;
   6745 
   6746     solaris*)
   6747       lt_prog_compiler_wl='-Wl,'
   6748       lt_prog_compiler_pic='-KPIC'
   6749       lt_prog_compiler_static='-Bstatic'
   6750       ;;
   6751 
   6752     sunos4*)
   6753       lt_prog_compiler_wl='-Qoption ld '
   6754       lt_prog_compiler_pic='-PIC'
   6755       lt_prog_compiler_static='-Bstatic'
   6756       ;;
   6757 
   6758     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   6759       lt_prog_compiler_wl='-Wl,'
   6760       lt_prog_compiler_pic='-KPIC'
   6761       lt_prog_compiler_static='-Bstatic'
   6762       ;;
   6763 
   6764     sysv4*MP*)
   6765       if test -d /usr/nec ;then
   6766 	lt_prog_compiler_pic='-Kconform_pic'
   6767 	lt_prog_compiler_static='-Bstatic'
   6768       fi
   6769       ;;
   6770 
   6771     uts4*)
   6772       lt_prog_compiler_pic='-pic'
   6773       lt_prog_compiler_static='-Bstatic'
   6774       ;;
   6775 
   6776     *)
   6777       lt_prog_compiler_can_build_shared=no
   6778       ;;
   6779     esac
   6780   fi
   6781 
   6782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
   6783 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
   6784 
   6785 #
   6786 # Check to make sure the PIC flag actually works.
   6787 #
   6788 if test -n "$lt_prog_compiler_pic"; then
   6789 
   6790 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   6791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
   6792 if test "${lt_prog_compiler_pic_works+set}" = set; then
   6793   echo $ECHO_N "(cached) $ECHO_C" >&6
   6794 else
   6795   lt_prog_compiler_pic_works=no
   6796   ac_outfile=conftest.$ac_objext
   6797    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   6798    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   6799    # Insert the option either (1) after the last *FLAGS variable, or
   6800    # (2) before a word containing "conftest.", or (3) at the end.
   6801    # Note that $ac_compile itself does not contain backslashes and begins
   6802    # with a dollar sign (not a hyphen), so the echo should work correctly.
   6803    # The option is referenced via a variable to avoid confusing sed.
   6804    lt_compile=`echo "$ac_compile" | $SED \
   6805    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   6806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   6807    -e 's:$: $lt_compiler_flag:'`
   6808    (eval echo "\"\$as_me:6808: $lt_compile\"" >&5)
   6809    (eval "$lt_compile" 2>conftest.err)
   6810    ac_status=$?
   6811    cat conftest.err >&5
   6812    echo "$as_me:6812: \$? = $ac_status" >&5
   6813    if (exit $ac_status) && test -s "$ac_outfile"; then
   6814      # The compiler can only warn and ignore the option if not recognized
   6815      # So say no if there are warnings
   6816      if test ! -s conftest.err; then
   6817        lt_prog_compiler_pic_works=yes
   6818      fi
   6819    fi
   6820    $rm conftest*
   6821 
   6822 fi
   6823 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
   6824 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
   6825 
   6826 if test x"$lt_prog_compiler_pic_works" = xyes; then
   6827     case $lt_prog_compiler_pic in
   6828      "" | " "*) ;;
   6829      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   6830      esac
   6831 else
   6832     lt_prog_compiler_pic=
   6833      lt_prog_compiler_can_build_shared=no
   6834 fi
   6835 
   6836 fi
   6837 case "$host_os" in
   6838   # For platforms which do not support PIC, -DPIC is meaningless:
   6839   *djgpp*)
   6840     lt_prog_compiler_pic=
   6841     ;;
   6842   *)
   6843     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   6844     ;;
   6845 esac
   6846 
   6847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   6848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   6849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
   6850   echo $ECHO_N "(cached) $ECHO_C" >&6
   6851 else
   6852   lt_cv_prog_compiler_c_o=no
   6853    $rm -r conftest 2>/dev/null
   6854    mkdir conftest
   6855    cd conftest
   6856    mkdir out
   6857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   6858 
   6859    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   6860    # that will create temporary files in the current directory regardless of
   6861    # the output directory.  Thus, making CWD read-only will cause this test
   6862    # to fail, enabling locking or at least warning the user not to do parallel
   6863    # builds.
   6864    chmod -w .
   6865 
   6866    lt_compiler_flag="-o out/conftest2.$ac_objext"
   6867    # Insert the option either (1) after the last *FLAGS variable, or
   6868    # (2) before a word containing "conftest.", or (3) at the end.
   6869    # Note that $ac_compile itself does not contain backslashes and begins
   6870    # with a dollar sign (not a hyphen), so the echo should work correctly.
   6871    lt_compile=`echo "$ac_compile" | $SED \
   6872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   6873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   6874    -e 's:$: $lt_compiler_flag:'`
   6875    (eval echo "\"\$as_me:6875: $lt_compile\"" >&5)
   6876    (eval "$lt_compile" 2>out/conftest.err)
   6877    ac_status=$?
   6878    cat out/conftest.err >&5
   6879    echo "$as_me:6879: \$? = $ac_status" >&5
   6880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   6881    then
   6882      # The compiler can only warn and ignore the option if not recognized
   6883      # So say no if there are warnings
   6884      if test ! -s out/conftest.err; then
   6885        lt_cv_prog_compiler_c_o=yes
   6886      fi
   6887    fi
   6888    chmod u+w .
   6889    $rm conftest*
   6890    # SGI C++ compiler will create directory out/ii_files/ for
   6891    # template instantiation
   6892    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   6893    $rm out/* && rmdir out
   6894    cd ..
   6895    rmdir conftest
   6896    $rm conftest*
   6897 
   6898 fi
   6899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
   6900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
   6901 
   6902 
   6903 hard_links="nottested"
   6904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   6905   # do not overwrite the value of need_locks provided by the user
   6906   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   6907 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   6908   hard_links=yes
   6909   $rm conftest*
   6910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   6911   touch conftest.a
   6912   ln conftest.a conftest.b 2>&5 || hard_links=no
   6913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   6914   { echo "$as_me:$LINENO: result: $hard_links" >&5
   6915 echo "${ECHO_T}$hard_links" >&6; }
   6916   if test "$hard_links" = no; then
   6917     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   6918 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   6919     need_locks=warn
   6920   fi
   6921 else
   6922   need_locks=no
   6923 fi
   6924 
   6925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   6927 
   6928   runpath_var=
   6929   allow_undefined_flag=
   6930   enable_shared_with_static_runtimes=no
   6931   archive_cmds=
   6932   archive_expsym_cmds=
   6933   old_archive_From_new_cmds=
   6934   old_archive_from_expsyms_cmds=
   6935   export_dynamic_flag_spec=
   6936   whole_archive_flag_spec=
   6937   thread_safe_flag_spec=
   6938   hardcode_libdir_flag_spec=
   6939   hardcode_libdir_flag_spec_ld=
   6940   hardcode_libdir_separator=
   6941   hardcode_direct=no
   6942   hardcode_minus_L=no
   6943   hardcode_shlibpath_var=unsupported
   6944   link_all_deplibs=unknown
   6945   hardcode_automatic=no
   6946   module_cmds=
   6947   module_expsym_cmds=
   6948   always_export_symbols=no
   6949   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   6950   # include_expsyms should be a list of space-separated symbols to be *always*
   6951   # included in the symbol list
   6952   include_expsyms=
   6953   # exclude_expsyms can be an extended regexp of symbols to exclude
   6954   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   6955   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   6956   # as well as any symbol that contains `d'.
   6957   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
   6958   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   6959   # platforms (ab)use it in PIC code, but their linkers get confused if
   6960   # the symbol is explicitly referenced.  Since portable code cannot
   6961   # rely on this symbol name, it's probably fine to never include it in
   6962   # preloaded symbol tables.
   6963   extract_expsyms_cmds=
   6964 
   6965   case $host_os in
   6966   cygwin* | mingw* | pw32*)
   6967     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   6968     # When not using gcc, we currently assume that we are using
   6969     # Microsoft Visual C++.
   6970     if test "$GCC" != yes; then
   6971       with_gnu_ld=no
   6972     fi
   6973     ;;
   6974   openbsd*)
   6975     with_gnu_ld=no
   6976     ;;
   6977   esac
   6978 
   6979   ld_shlibs=yes
   6980   if test "$with_gnu_ld" = yes; then
   6981     # If archive_cmds runs LD, not CC, wlarc should be empty
   6982     wlarc='${wl}'
   6983 
   6984     # See if GNU ld supports shared libraries.
   6985     case $host_os in
   6986     aix3* | aix4* | aix5*)
   6987       # On AIX/PPC, the GNU linker is very broken
   6988       if test "$host_cpu" != ia64; then
   6989 	ld_shlibs=no
   6990 	cat <<EOF 1>&2
   6991 
   6992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   6993 *** to be unable to reliably create shared libraries on AIX.
   6994 *** Therefore, libtool is disabling shared libraries support.  If you
   6995 *** really care for shared libraries, you may want to modify your PATH
   6996 *** so that a non-GNU linker is found, and then restart.
   6997 
   6998 EOF
   6999       fi
   7000       ;;
   7001 
   7002     amigaos*)
   7003       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   7004       hardcode_libdir_flag_spec='-L$libdir'
   7005       hardcode_minus_L=yes
   7006 
   7007       # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
   7008       # that the semantics of dynamic libraries on AmigaOS, at least up
   7009       # to version 4, is to share data among multiple programs linked
   7010       # with the same dynamic library.  Since this doesn't match the
   7011       # behavior of shared libraries on other platforms, we can't use
   7012       # them.
   7013       ld_shlibs=no
   7014       ;;
   7015 
   7016     beos*)
   7017       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   7018 	allow_undefined_flag=unsupported
   7019 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   7020 	# support --undefined.  This deserves some investigation.  FIXME
   7021 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7022       else
   7023 	ld_shlibs=no
   7024       fi
   7025       ;;
   7026 
   7027     cygwin* | mingw* | pw32*)
   7028       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   7029       # as there is no search path for DLLs.
   7030       hardcode_libdir_flag_spec='-L$libdir'
   7031       allow_undefined_flag=unsupported
   7032       always_export_symbols=no
   7033       enable_shared_with_static_runtimes=yes
   7034       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   7035 
   7036       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   7037         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   7038 	# If the export-symbols file already is a .def file (1st line
   7039 	# is EXPORTS), use it as is; otherwise, prepend...
   7040 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   7041 	  cp $export_symbols $output_objdir/$soname.def;
   7042 	else
   7043 	  echo EXPORTS > $output_objdir/$soname.def;
   7044 	  cat $export_symbols >> $output_objdir/$soname.def;
   7045 	fi~
   7046 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
   7047       else
   7048 	ld_shlibs=no
   7049       fi
   7050       ;;
   7051 
   7052     netbsd*)
   7053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   7054 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   7055 	wlarc=
   7056       else
   7057 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7058 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   7059       fi
   7060       ;;
   7061 
   7062     solaris* | sysv5*)
   7063       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
   7064 	ld_shlibs=no
   7065 	cat <<EOF 1>&2
   7066 
   7067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   7068 *** create shared libraries on Solaris systems.  Therefore, libtool
   7069 *** is disabling shared libraries support.  We urge you to upgrade GNU
   7070 *** binutils to release 2.9.1 or newer.  Another option is to modify
   7071 *** your PATH or compiler configuration so that the native linker is
   7072 *** used, and then restart.
   7073 
   7074 EOF
   7075       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   7076 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7077 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   7078       else
   7079 	ld_shlibs=no
   7080       fi
   7081       ;;
   7082 
   7083     sunos4*)
   7084       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   7085       wlarc=
   7086       hardcode_direct=yes
   7087       hardcode_shlibpath_var=no
   7088       ;;
   7089 
   7090   linux*)
   7091     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
   7092         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7093 	archive_cmds="$tmp_archive_cmds"
   7094       supports_anon_versioning=no
   7095       case `$LD -v 2>/dev/null` in
   7096         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   7097         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   7098         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   7099         *\ 2.11.*) ;; # other 2.11 versions
   7100         *) supports_anon_versioning=yes ;;
   7101       esac
   7102       if test $supports_anon_versioning = yes; then
   7103         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
   7104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   7105 $echo "local: *; };" >> $output_objdir/$libname.ver~
   7106         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   7107       else
   7108         archive_expsym_cmds="$tmp_archive_cmds"
   7109       fi
   7110     else
   7111       ld_shlibs=no
   7112     fi
   7113     ;;
   7114 
   7115     *)
   7116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   7117 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7118 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   7119       else
   7120 	ld_shlibs=no
   7121       fi
   7122       ;;
   7123     esac
   7124 
   7125     if test "$ld_shlibs" = yes; then
   7126       runpath_var=LD_RUN_PATH
   7127       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
   7128       export_dynamic_flag_spec='${wl}--export-dynamic'
   7129       # ancient GNU ld didn't support --whole-archive et. al.
   7130       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
   7131  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   7132       else
   7133   	whole_archive_flag_spec=
   7134       fi
   7135     fi
   7136   else
   7137     # PORTME fill in a description of your system's linker (not GNU ld)
   7138     case $host_os in
   7139     aix3*)
   7140       allow_undefined_flag=unsupported
   7141       always_export_symbols=yes
   7142       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   7143       # Note: this linker hardcodes the directories in LIBPATH if there
   7144       # are no directories specified by -L.
   7145       hardcode_minus_L=yes
   7146       if test "$GCC" = yes && test -z "$link_static_flag"; then
   7147 	# Neither direct hardcoding nor static linking is supported with a
   7148 	# broken collect2.
   7149 	hardcode_direct=unsupported
   7150       fi
   7151       ;;
   7152 
   7153     aix4* | aix5*)
   7154       if test "$host_cpu" = ia64; then
   7155 	# On IA64, the linker does run time linking by default, so we don't
   7156 	# have to do anything special.
   7157 	aix_use_runtimelinking=no
   7158 	exp_sym_flag='-Bexport'
   7159 	no_entry_flag=""
   7160       else
   7161 	# If we're using GNU nm, then we don't want the "-C" option.
   7162 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   7163 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   7164 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   7165 	else
   7166 	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   7167 	fi
   7168 	aix_use_runtimelinking=no
   7169 
   7170 	# Test if we are trying to use run time linking or normal
   7171 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   7172 	# need to do runtime linking.
   7173 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   7174 	  for ld_flag in $LDFLAGS; do
   7175   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   7176   	    aix_use_runtimelinking=yes
   7177   	    break
   7178   	  fi
   7179 	  done
   7180 	esac
   7181 
   7182 	exp_sym_flag='-bexport'
   7183 	no_entry_flag='-bnoentry'
   7184       fi
   7185 
   7186       # When large executables or shared objects are built, AIX ld can
   7187       # have problems creating the table of contents.  If linking a library
   7188       # or program results in "error TOC overflow" add -mminimal-toc to
   7189       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   7190       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   7191 
   7192       archive_cmds=''
   7193       hardcode_direct=yes
   7194       hardcode_libdir_separator=':'
   7195       link_all_deplibs=yes
   7196 
   7197       if test "$GCC" = yes; then
   7198 	case $host_os in aix4.012|aix4.012.*)
   7199 	# We only want to do this on AIX 4.2 and lower, the check
   7200 	# below for broken collect2 doesn't work under 4.3+
   7201 	  collect2name=`${CC} -print-prog-name=collect2`
   7202 	  if test -f "$collect2name" && \
   7203   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   7204 	  then
   7205   	  # We have reworked collect2
   7206   	  hardcode_direct=yes
   7207 	  else
   7208   	  # We have old collect2
   7209   	  hardcode_direct=unsupported
   7210   	  # It fails to find uninstalled libraries when the uninstalled
   7211   	  # path is not listed in the libpath.  Setting hardcode_minus_L
   7212   	  # to unsupported forces relinking
   7213   	  hardcode_minus_L=yes
   7214   	  hardcode_libdir_flag_spec='-L$libdir'
   7215   	  hardcode_libdir_separator=
   7216 	  fi
   7217 	esac
   7218 	shared_flag='-shared'
   7219       else
   7220 	# not using gcc
   7221 	if test "$host_cpu" = ia64; then
   7222   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   7223   	# chokes on -Wl,-G. The following line is correct:
   7224 	  shared_flag='-G'
   7225 	else
   7226   	if test "$aix_use_runtimelinking" = yes; then
   7227 	    shared_flag='${wl}-G'
   7228 	  else
   7229 	    shared_flag='${wl}-bM:SRE'
   7230   	fi
   7231 	fi
   7232       fi
   7233 
   7234       # It seems that -bexpall does not export symbols beginning with
   7235       # underscore (_), so it is better to generate a list of symbols to export.
   7236       always_export_symbols=yes
   7237       if test "$aix_use_runtimelinking" = yes; then
   7238 	# Warning - without using the other runtime loading flags (-brtl),
   7239 	# -berok will link without error, but may produce a broken library.
   7240 	allow_undefined_flag='-berok'
   7241        # Determine the default libpath from the value encoded in an empty executable.
   7242        cat >conftest.$ac_ext <<_ACEOF
   7243 /* confdefs.h.  */
   7244 _ACEOF
   7245 cat confdefs.h >>conftest.$ac_ext
   7246 cat >>conftest.$ac_ext <<_ACEOF
   7247 /* end confdefs.h.  */
   7248 
   7249 int
   7250 main ()
   7251 {
   7252 
   7253   ;
   7254   return 0;
   7255 }
   7256 _ACEOF
   7257 rm -f conftest.$ac_objext conftest$ac_exeext
   7258 if { (ac_try="$ac_link"
   7259 case "(($ac_try" in
   7260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7261   *) ac_try_echo=$ac_try;;
   7262 esac
   7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7264   (eval "$ac_link") 2>conftest.er1
   7265   ac_status=$?
   7266   grep -v '^ *+' conftest.er1 >conftest.err
   7267   rm -f conftest.er1
   7268   cat conftest.err >&5
   7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7270   (exit $ac_status); } && {
   7271 	 test -z "$ac_c_werror_flag" ||
   7272 	 test ! -s conftest.err
   7273        } && test -s conftest$ac_exeext &&
   7274        $as_test_x conftest$ac_exeext; then
   7275 
   7276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7277 }'`
   7278 # Check for a 64-bit object if we didn't find anything.
   7279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7280 }'`; fi
   7281 else
   7282   echo "$as_me: failed program was:" >&5
   7283 sed 's/^/| /' conftest.$ac_ext >&5
   7284 
   7285 
   7286 fi
   7287 
   7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7289       conftest$ac_exeext conftest.$ac_ext
   7290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   7291 
   7292        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   7293 	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   7294        else
   7295 	if test "$host_cpu" = ia64; then
   7296 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   7297 	  allow_undefined_flag="-z nodefs"
   7298 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   7299 	else
   7300 	 # Determine the default libpath from the value encoded in an empty executable.
   7301 	 cat >conftest.$ac_ext <<_ACEOF
   7302 /* confdefs.h.  */
   7303 _ACEOF
   7304 cat confdefs.h >>conftest.$ac_ext
   7305 cat >>conftest.$ac_ext <<_ACEOF
   7306 /* end confdefs.h.  */
   7307 
   7308 int
   7309 main ()
   7310 {
   7311 
   7312   ;
   7313   return 0;
   7314 }
   7315 _ACEOF
   7316 rm -f conftest.$ac_objext conftest$ac_exeext
   7317 if { (ac_try="$ac_link"
   7318 case "(($ac_try" in
   7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7320   *) ac_try_echo=$ac_try;;
   7321 esac
   7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7323   (eval "$ac_link") 2>conftest.er1
   7324   ac_status=$?
   7325   grep -v '^ *+' conftest.er1 >conftest.err
   7326   rm -f conftest.er1
   7327   cat conftest.err >&5
   7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7329   (exit $ac_status); } && {
   7330 	 test -z "$ac_c_werror_flag" ||
   7331 	 test ! -s conftest.err
   7332        } && test -s conftest$ac_exeext &&
   7333        $as_test_x conftest$ac_exeext; then
   7334 
   7335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7336 }'`
   7337 # Check for a 64-bit object if we didn't find anything.
   7338 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7339 }'`; fi
   7340 else
   7341   echo "$as_me: failed program was:" >&5
   7342 sed 's/^/| /' conftest.$ac_ext >&5
   7343 
   7344 
   7345 fi
   7346 
   7347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7348       conftest$ac_exeext conftest.$ac_ext
   7349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   7350 
   7351 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   7352 	  # Warning - without using the other run time loading flags,
   7353 	  # -berok will link without error, but may produce a broken library.
   7354 	  no_undefined_flag=' ${wl}-bernotok'
   7355 	  allow_undefined_flag=' ${wl}-berok'
   7356 	  # -bexpall does not export symbols beginning with underscore (_)
   7357 	  always_export_symbols=yes
   7358 	  # Exported symbols can be pulled into shared objects from archives
   7359 	  whole_archive_flag_spec=' '
   7360 	  archive_cmds_need_lc=yes
   7361 	  # This is similar to how AIX traditionally builds it's shared libraries.
   7362 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   7363 	fi
   7364       fi
   7365       ;;
   7366 
   7367     amigaos*)
   7368       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   7369       hardcode_libdir_flag_spec='-L$libdir'
   7370       hardcode_minus_L=yes
   7371       # see comment about different semantics on the GNU ld section
   7372       ld_shlibs=no
   7373       ;;
   7374 
   7375     bsdi4*)
   7376       export_dynamic_flag_spec=-rdynamic
   7377       ;;
   7378 
   7379     cygwin* | mingw* | pw32*)
   7380       # When not using gcc, we currently assume that we are using
   7381       # Microsoft Visual C++.
   7382       # hardcode_libdir_flag_spec is actually meaningless, as there is
   7383       # no search path for DLLs.
   7384       hardcode_libdir_flag_spec=' '
   7385       allow_undefined_flag=unsupported
   7386       # Tell ltmain to make .lib files, not .a files.
   7387       libext=lib
   7388       # Tell ltmain to make .dll files, not .so files.
   7389       shrext=".dll"
   7390       # FIXME: Setting linknames here is a bad hack.
   7391       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
   7392       # The linker will automatically build a .lib file if we build a DLL.
   7393       old_archive_From_new_cmds='true'
   7394       # FIXME: Should let the user specify the lib program.
   7395       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
   7396       fix_srcfile_path='`cygpath -w "$srcfile"`'
   7397       enable_shared_with_static_runtimes=yes
   7398       ;;
   7399 
   7400     darwin* | rhapsody*)
   7401     if test "$GXX" = yes ; then
   7402       archive_cmds_need_lc=no
   7403       case "$host_os" in
   7404       rhapsody* | darwin1.[012])
   7405 	allow_undefined_flag='-undefined suppress'
   7406 	;;
   7407       *) # Darwin 1.3 on
   7408       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   7409       	allow_undefined_flag='-flat_namespace -undefined suppress'
   7410       else
   7411         case ${MACOSX_DEPLOYMENT_TARGET} in
   7412           10.[012])
   7413             allow_undefined_flag='-flat_namespace -undefined suppress'
   7414             ;;
   7415           10.*)
   7416             allow_undefined_flag='-undefined dynamic_lookup'
   7417             ;;
   7418         esac
   7419       fi
   7420 	;;
   7421       esac
   7422     	lt_int_apple_cc_single_mod=no
   7423     	output_verbose_link_cmd='echo'
   7424     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   7425     	  lt_int_apple_cc_single_mod=yes
   7426     	fi
   7427     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   7428     	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   7429     	else
   7430         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   7431       fi
   7432       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   7433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   7434         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   7435           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   7436         else
   7437           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   7438         fi
   7439           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   7440       hardcode_direct=no
   7441       hardcode_automatic=yes
   7442       hardcode_shlibpath_var=unsupported
   7443       whole_archive_flag_spec='-all_load $convenience'
   7444       link_all_deplibs=yes
   7445     else
   7446       ld_shlibs=no
   7447     fi
   7448       ;;
   7449 
   7450     dgux*)
   7451       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7452       hardcode_libdir_flag_spec='-L$libdir'
   7453       hardcode_shlibpath_var=no
   7454       ;;
   7455 
   7456     freebsd1*)
   7457       ld_shlibs=no
   7458       ;;
   7459 
   7460     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   7461     # support.  Future versions do this automatically, but an explicit c++rt0.o
   7462     # does not break anything, and helps significantly (at the cost of a little
   7463     # extra space).
   7464     freebsd2.2*)
   7465       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   7466       hardcode_libdir_flag_spec='-R$libdir'
   7467       hardcode_direct=yes
   7468       hardcode_shlibpath_var=no
   7469       ;;
   7470 
   7471     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   7472     freebsd2*)
   7473       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   7474       hardcode_direct=yes
   7475       hardcode_minus_L=yes
   7476       hardcode_shlibpath_var=no
   7477       ;;
   7478 
   7479     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   7480     freebsd* | kfreebsd*-gnu)
   7481       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   7482       hardcode_libdir_flag_spec='-R$libdir'
   7483       hardcode_direct=yes
   7484       hardcode_shlibpath_var=no
   7485       ;;
   7486 
   7487     hpux9*)
   7488       if test "$GCC" = yes; then
   7489 	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   7490       else
   7491 	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   7492       fi
   7493       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   7494       hardcode_libdir_separator=:
   7495       hardcode_direct=yes
   7496 
   7497       # hardcode_minus_L: Not really in the search PATH,
   7498       # but as the default location of the library.
   7499       hardcode_minus_L=yes
   7500       export_dynamic_flag_spec='${wl}-E'
   7501       ;;
   7502 
   7503     hpux10* | hpux11*)
   7504       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   7505 	case "$host_cpu" in
   7506 	hppa*64*|ia64*)
   7507 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7508 	  ;;
   7509 	*)
   7510 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   7511 	  ;;
   7512 	esac
   7513       else
   7514 	case "$host_cpu" in
   7515 	hppa*64*|ia64*)
   7516 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
   7517 	  ;;
   7518 	*)
   7519 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   7520 	  ;;
   7521 	esac
   7522       fi
   7523       if test "$with_gnu_ld" = no; then
   7524 	case "$host_cpu" in
   7525 	hppa*64*)
   7526 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   7527 	  hardcode_libdir_flag_spec_ld='+b $libdir'
   7528 	  hardcode_libdir_separator=:
   7529 	  hardcode_direct=no
   7530 	  hardcode_shlibpath_var=no
   7531 	  ;;
   7532 	ia64*)
   7533 	  hardcode_libdir_flag_spec='-L$libdir'
   7534 	  hardcode_direct=no
   7535 	  hardcode_shlibpath_var=no
   7536 
   7537 	  # hardcode_minus_L: Not really in the search PATH,
   7538 	  # but as the default location of the library.
   7539 	  hardcode_minus_L=yes
   7540 	  ;;
   7541 	*)
   7542 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   7543 	  hardcode_libdir_separator=:
   7544 	  hardcode_direct=yes
   7545 	  export_dynamic_flag_spec='${wl}-E'
   7546 
   7547 	  # hardcode_minus_L: Not really in the search PATH,
   7548 	  # but as the default location of the library.
   7549 	  hardcode_minus_L=yes
   7550 	  ;;
   7551 	esac
   7552       fi
   7553       ;;
   7554 
   7555     irix5* | irix6* | nonstopux*)
   7556       if test "$GCC" = yes; then
   7557 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   7558       else
   7559 	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   7560 	hardcode_libdir_flag_spec_ld='-rpath $libdir'
   7561       fi
   7562       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7563       hardcode_libdir_separator=:
   7564       link_all_deplibs=yes
   7565       ;;
   7566 
   7567     netbsd*)
   7568       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   7569 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   7570       else
   7571 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   7572       fi
   7573       hardcode_libdir_flag_spec='-R$libdir'
   7574       hardcode_direct=yes
   7575       hardcode_shlibpath_var=no
   7576       ;;
   7577 
   7578     newsos6)
   7579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7580       hardcode_direct=yes
   7581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7582       hardcode_libdir_separator=:
   7583       hardcode_shlibpath_var=no
   7584       ;;
   7585 
   7586     openbsd*)
   7587       hardcode_direct=yes
   7588       hardcode_shlibpath_var=no
   7589       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   7590 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   7591 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   7592 	export_dynamic_flag_spec='${wl}-E'
   7593       else
   7594        case $host_os in
   7595 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   7596 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   7597 	   hardcode_libdir_flag_spec='-R$libdir'
   7598 	   ;;
   7599 	 *)
   7600 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   7601 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   7602 	   ;;
   7603        esac
   7604       fi
   7605       ;;
   7606 
   7607     os2*)
   7608       hardcode_libdir_flag_spec='-L$libdir'
   7609       hardcode_minus_L=yes
   7610       allow_undefined_flag=unsupported
   7611       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   7612       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   7613       ;;
   7614 
   7615     osf3*)
   7616       if test "$GCC" = yes; then
   7617 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   7618 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   7619       else
   7620 	allow_undefined_flag=' -expect_unresolved \*'
   7621 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   7622       fi
   7623       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7624       hardcode_libdir_separator=:
   7625       ;;
   7626 
   7627     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   7628       if test "$GCC" = yes; then
   7629 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   7630 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   7631 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7632       else
   7633 	allow_undefined_flag=' -expect_unresolved \*'
   7634 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   7635 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
   7636 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
   7637 
   7638 	# Both c and cxx compiler support -rpath directly
   7639 	hardcode_libdir_flag_spec='-rpath $libdir'
   7640       fi
   7641       hardcode_libdir_separator=:
   7642       ;;
   7643 
   7644     sco3.2v5*)
   7645       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7646       hardcode_shlibpath_var=no
   7647       export_dynamic_flag_spec='${wl}-Bexport'
   7648       runpath_var=LD_RUN_PATH
   7649       hardcode_runpath_var=yes
   7650       ;;
   7651 
   7652     solaris*)
   7653       no_undefined_flag=' -z text'
   7654       if test "$GCC" = yes; then
   7655 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7656 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   7657 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
   7658       else
   7659 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7660 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   7661   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   7662       fi
   7663       hardcode_libdir_flag_spec='-R$libdir'
   7664       hardcode_shlibpath_var=no
   7665       case $host_os in
   7666       solaris2.[0-5] | solaris2.[0-5].*) ;;
   7667       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
   7668 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
   7669       esac
   7670       link_all_deplibs=yes
   7671       ;;
   7672 
   7673     sunos4*)
   7674       if test "x$host_vendor" = xsequent; then
   7675 	# Use $CC to link under sequent, because it throws in some extra .o
   7676 	# files that make .init and .fini sections work.
   7677 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   7678       else
   7679 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   7680       fi
   7681       hardcode_libdir_flag_spec='-L$libdir'
   7682       hardcode_direct=yes
   7683       hardcode_minus_L=yes
   7684       hardcode_shlibpath_var=no
   7685       ;;
   7686 
   7687     sysv4)
   7688       case $host_vendor in
   7689 	sni)
   7690 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7691 	  hardcode_direct=yes # is this really true???
   7692 	;;
   7693 	siemens)
   7694 	  ## LD is ld it makes a PLAMLIB
   7695 	  ## CC just makes a GrossModule.
   7696 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   7697 	  reload_cmds='$CC -r -o $output$reload_objs'
   7698 	  hardcode_direct=no
   7699         ;;
   7700 	motorola)
   7701 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7702 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   7703 	;;
   7704       esac
   7705       runpath_var='LD_RUN_PATH'
   7706       hardcode_shlibpath_var=no
   7707       ;;
   7708 
   7709     sysv4.3*)
   7710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7711       hardcode_shlibpath_var=no
   7712       export_dynamic_flag_spec='-Bexport'
   7713       ;;
   7714 
   7715     sysv4*MP*)
   7716       if test -d /usr/nec; then
   7717 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7718 	hardcode_shlibpath_var=no
   7719 	runpath_var=LD_RUN_PATH
   7720 	hardcode_runpath_var=yes
   7721 	ld_shlibs=yes
   7722       fi
   7723       ;;
   7724 
   7725     sysv4.2uw2*)
   7726       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   7727       hardcode_direct=yes
   7728       hardcode_minus_L=no
   7729       hardcode_shlibpath_var=no
   7730       hardcode_runpath_var=yes
   7731       runpath_var=LD_RUN_PATH
   7732       ;;
   7733 
   7734    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
   7735       no_undefined_flag='${wl}-z ${wl}text'
   7736       if test "$GCC" = yes; then
   7737 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7738       else
   7739 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7740       fi
   7741       runpath_var='LD_RUN_PATH'
   7742       hardcode_shlibpath_var=no
   7743       ;;
   7744 
   7745     sysv5*)
   7746       no_undefined_flag=' -z text'
   7747       # $CC -shared without GNU ld will not create a library from C++
   7748       # object files and a static libstdc++, better avoid it by now
   7749       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7750       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   7751   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   7752       hardcode_libdir_flag_spec=
   7753       hardcode_shlibpath_var=no
   7754       runpath_var='LD_RUN_PATH'
   7755       ;;
   7756 
   7757     uts4*)
   7758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7759       hardcode_libdir_flag_spec='-L$libdir'
   7760       hardcode_shlibpath_var=no
   7761       ;;
   7762 
   7763     *)
   7764       ld_shlibs=no
   7765       ;;
   7766     esac
   7767   fi
   7768 
   7769 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
   7770 echo "${ECHO_T}$ld_shlibs" >&6; }
   7771 test "$ld_shlibs" = no && can_build_shared=no
   7772 
   7773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   7774 if test "$GCC" = yes; then
   7775   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   7776 fi
   7777 
   7778 #
   7779 # Do we need to explicitly link libc?
   7780 #
   7781 case "x$archive_cmds_need_lc" in
   7782 x|xyes)
   7783   # Assume -lc should be added
   7784   archive_cmds_need_lc=yes
   7785 
   7786   if test "$enable_shared" = yes && test "$GCC" = yes; then
   7787     case $archive_cmds in
   7788     *'~'*)
   7789       # FIXME: we may have to deal with multi-command sequences.
   7790       ;;
   7791     '$CC '*)
   7792       # Test whether the compiler implicitly links with -lc since on some
   7793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   7794       # to ld, don't add -lc before -lgcc.
   7795       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   7796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   7797       $rm conftest*
   7798       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   7799 
   7800       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7801   (eval $ac_compile) 2>&5
   7802   ac_status=$?
   7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7804   (exit $ac_status); } 2>conftest.err; then
   7805         soname=conftest
   7806         lib=conftest
   7807         libobjs=conftest.$ac_objext
   7808         deplibs=
   7809         wl=$lt_prog_compiler_wl
   7810         compiler_flags=-v
   7811         linker_flags=-v
   7812         verstring=
   7813         output_objdir=.
   7814         libname=conftest
   7815         lt_save_allow_undefined_flag=$allow_undefined_flag
   7816         allow_undefined_flag=
   7817         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   7818   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   7819   ac_status=$?
   7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7821   (exit $ac_status); }
   7822         then
   7823 	  archive_cmds_need_lc=no
   7824         else
   7825 	  archive_cmds_need_lc=yes
   7826         fi
   7827         allow_undefined_flag=$lt_save_allow_undefined_flag
   7828       else
   7829         cat conftest.err 1>&5
   7830       fi
   7831       $rm conftest*
   7832       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
   7833 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
   7834       ;;
   7835     esac
   7836   fi
   7837   ;;
   7838 esac
   7839 
   7840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   7841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   7842 library_names_spec=
   7843 libname_spec='lib$name'
   7844 soname_spec=
   7845 shrext=".so"
   7846 postinstall_cmds=
   7847 postuninstall_cmds=
   7848 finish_cmds=
   7849 finish_eval=
   7850 shlibpath_var=
   7851 shlibpath_overrides_runpath=unknown
   7852 version_type=none
   7853 dynamic_linker="$host_os ld.so"
   7854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   7855 if test "$GCC" = yes; then
   7856   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   7857   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   7858     # if the path contains ";" then we assume it to be the separator
   7859     # otherwise default to the standard path separator (i.e. ":") - it is
   7860     # assumed that no part of a normal pathname contains ";" but that should
   7861     # okay in the real world where ";" in dirpaths is itself problematic.
   7862     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   7863   else
   7864     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   7865   fi
   7866 else
   7867   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   7868 fi
   7869 need_lib_prefix=unknown
   7870 hardcode_into_libs=no
   7871 
   7872 # when you set need_version to no, make sure it does not cause -set_version
   7873 # flags to be left without arguments
   7874 need_version=unknown
   7875 
   7876 case $host_os in
   7877 aix3*)
   7878   version_type=linux
   7879   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   7880   shlibpath_var=LIBPATH
   7881 
   7882   # AIX 3 has no versioning support, so we append a major version to the name.
   7883   soname_spec='${libname}${release}${shared_ext}$major'
   7884   ;;
   7885 
   7886 aix4* | aix5*)
   7887   version_type=linux
   7888   need_lib_prefix=no
   7889   need_version=no
   7890   hardcode_into_libs=yes
   7891   if test "$host_cpu" = ia64; then
   7892     # AIX 5 supports IA64
   7893     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   7894     shlibpath_var=LD_LIBRARY_PATH
   7895   else
   7896     # With GCC up to 2.95.x, collect2 would create an import file
   7897     # for dependence libraries.  The import file would start with
   7898     # the line `#! .'.  This would cause the generated library to
   7899     # depend on `.', always an invalid library.  This was fixed in
   7900     # development snapshots of GCC prior to 3.0.
   7901     case $host_os in
   7902       aix4 | aix4.[01] | aix4.[01].*)
   7903       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   7904 	   echo ' yes '
   7905 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   7906 	:
   7907       else
   7908 	can_build_shared=no
   7909       fi
   7910       ;;
   7911     esac
   7912     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   7913     # soname into executable. Probably we can add versioning support to
   7914     # collect2, so additional links can be useful in future.
   7915     if test "$aix_use_runtimelinking" = yes; then
   7916       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   7917       # instead of lib<name>.a to let people know that these are not
   7918       # typical AIX shared libraries.
   7919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   7920     else
   7921       # We preserve .a as extension for shared libraries through AIX4.2
   7922       # and later when we are not doing run time linking.
   7923       library_names_spec='${libname}${release}.a $libname.a'
   7924       soname_spec='${libname}${release}${shared_ext}$major'
   7925     fi
   7926     shlibpath_var=LIBPATH
   7927   fi
   7928   ;;
   7929 
   7930 amigaos*)
   7931   library_names_spec='$libname.ixlibrary $libname.a'
   7932   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   7933   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   7934   ;;
   7935 
   7936 beos*)
   7937   library_names_spec='${libname}${shared_ext}'
   7938   dynamic_linker="$host_os ld.so"
   7939   shlibpath_var=LIBRARY_PATH
   7940   ;;
   7941 
   7942 bsdi4*)
   7943   version_type=linux
   7944   need_version=no
   7945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   7946   soname_spec='${libname}${release}${shared_ext}$major'
   7947   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   7948   shlibpath_var=LD_LIBRARY_PATH
   7949   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   7950   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   7951   # the default ld.so.conf also contains /usr/contrib/lib and
   7952   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   7953   # libtool to hard-code these into programs
   7954   ;;
   7955 
   7956 cygwin* | mingw* | pw32*)
   7957   version_type=windows
   7958   shrext=".dll"
   7959   need_version=no
   7960   need_lib_prefix=no
   7961 
   7962   case $GCC,$host_os in
   7963   yes,cygwin* | yes,mingw* | yes,pw32*)
   7964     library_names_spec='$libname.dll.a'
   7965     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   7966     postinstall_cmds='base_file=`basename \${file}`~
   7967       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   7968       dldir=$destdir/`dirname \$dlpath`~
   7969       test -d \$dldir || mkdir -p \$dldir~
   7970       $install_prog $dir/$dlname \$dldir/$dlname'
   7971     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   7972       dlpath=$dir/\$dldll~
   7973        $rm \$dlpath'
   7974     shlibpath_overrides_runpath=yes
   7975 
   7976     case $host_os in
   7977     cygwin*)
   7978       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   7979       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   7980       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   7981       ;;
   7982     mingw*)
   7983       # MinGW DLLs use traditional 'lib' prefix
   7984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   7985       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   7986       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   7987         # It is most probably a Windows format PATH printed by
   7988         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   7989         # path with ; separators, and with drive letters. We can handle the
   7990         # drive letters (cygwin fileutils understands them), so leave them,
   7991         # especially as we might pass files found there to a mingw objdump,
   7992         # which wouldn't understand a cygwinified path. Ahh.
   7993         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   7994       else
   7995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   7996       fi
   7997       ;;
   7998     pw32*)
   7999       # pw32 DLLs use 'pw' prefix rather than 'lib'
   8000       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   8001       ;;
   8002     esac
   8003     ;;
   8004 
   8005   *)
   8006     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   8007     ;;
   8008   esac
   8009   dynamic_linker='Win32 ld.exe'
   8010   # FIXME: first we should search . and the directory the executable is in
   8011   shlibpath_var=PATH
   8012   ;;
   8013 
   8014 darwin* | rhapsody*)
   8015   dynamic_linker="$host_os dyld"
   8016   version_type=darwin
   8017   need_lib_prefix=no
   8018   need_version=no
   8019   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   8020   soname_spec='${libname}${release}${major}$shared_ext'
   8021   shlibpath_overrides_runpath=yes
   8022   shlibpath_var=DYLD_LIBRARY_PATH
   8023   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   8024   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   8025   if test "$GCC" = yes; then
   8026     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   8027   else
   8028     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   8029   fi
   8030   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   8031   ;;
   8032 
   8033 dgux*)
   8034   version_type=linux
   8035   need_lib_prefix=no
   8036   need_version=no
   8037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   8038   soname_spec='${libname}${release}${shared_ext}$major'
   8039   shlibpath_var=LD_LIBRARY_PATH
   8040   ;;
   8041 
   8042 freebsd1*)
   8043   dynamic_linker=no
   8044   ;;
   8045 
   8046 kfreebsd*-gnu)
   8047   version_type=linux
   8048   need_lib_prefix=no
   8049   need_version=no
   8050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8051   soname_spec='${libname}${release}${shared_ext}$major'
   8052   shlibpath_var=LD_LIBRARY_PATH
   8053   shlibpath_overrides_runpath=no
   8054   hardcode_into_libs=yes
   8055   dynamic_linker='GNU ld.so'
   8056   ;;
   8057 
   8058 freebsd*)
   8059   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   8060   version_type=freebsd-$objformat
   8061   case $version_type in
   8062     freebsd-elf*)
   8063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8064       need_version=no
   8065       need_lib_prefix=no
   8066       ;;
   8067     freebsd-*)
   8068       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   8069       need_version=yes
   8070       ;;
   8071   esac
   8072   shlibpath_var=LD_LIBRARY_PATH
   8073   case $host_os in
   8074   freebsd2*)
   8075     shlibpath_overrides_runpath=yes
   8076     ;;
   8077   freebsd3.01* | freebsdelf3.01*)
   8078     shlibpath_overrides_runpath=yes
   8079     hardcode_into_libs=yes
   8080     ;;
   8081   *) # from 3.2 on
   8082     shlibpath_overrides_runpath=no
   8083     hardcode_into_libs=yes
   8084     ;;
   8085   esac
   8086   ;;
   8087 
   8088 gnu*)
   8089   version_type=linux
   8090   need_lib_prefix=no
   8091   need_version=no
   8092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   8093   soname_spec='${libname}${release}${shared_ext}$major'
   8094   shlibpath_var=LD_LIBRARY_PATH
   8095   hardcode_into_libs=yes
   8096   ;;
   8097 
   8098 hpux9* | hpux10* | hpux11*)
   8099   # Give a soname corresponding to the major version so that dld.sl refuses to
   8100   # link against other versions.
   8101   version_type=sunos
   8102   need_lib_prefix=no
   8103   need_version=no
   8104   case "$host_cpu" in
   8105   ia64*)
   8106     shrext='.so'
   8107     hardcode_into_libs=yes
   8108     dynamic_linker="$host_os dld.so"
   8109     shlibpath_var=LD_LIBRARY_PATH
   8110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8112     soname_spec='${libname}${release}${shared_ext}$major'
   8113     if test "X$HPUX_IA64_MODE" = X32; then
   8114       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   8115     else
   8116       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   8117     fi
   8118     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8119     ;;
   8120    hppa*64*)
   8121      shrext='.sl'
   8122      hardcode_into_libs=yes
   8123      dynamic_linker="$host_os dld.sl"
   8124      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   8125      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8126      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8127      soname_spec='${libname}${release}${shared_ext}$major'
   8128      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   8129      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8130      ;;
   8131    *)
   8132     shrext='.sl'
   8133     dynamic_linker="$host_os dld.sl"
   8134     shlibpath_var=SHLIB_PATH
   8135     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   8136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8137     soname_spec='${libname}${release}${shared_ext}$major'
   8138     ;;
   8139   esac
   8140   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   8141   postinstall_cmds='chmod 555 $lib'
   8142   ;;
   8143 
   8144 irix5* | irix6* | nonstopux*)
   8145   case $host_os in
   8146     nonstopux*) version_type=nonstopux ;;
   8147     *)
   8148 	if test "$lt_cv_prog_gnu_ld" = yes; then
   8149 		version_type=linux
   8150 	else
   8151 		version_type=irix
   8152 	fi ;;
   8153   esac
   8154   need_lib_prefix=no
   8155   need_version=no
   8156   soname_spec='${libname}${release}${shared_ext}$major'
   8157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   8158   case $host_os in
   8159   irix5* | nonstopux*)
   8160     libsuff= shlibsuff=
   8161     ;;
   8162   *)
   8163     case $LD in # libtool.m4 will add one of these switches to LD
   8164     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   8165       libsuff= shlibsuff= libmagic=32-bit;;
   8166     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   8167       libsuff=32 shlibsuff=N32 libmagic=N32;;
   8168     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   8169       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   8170     *) libsuff= shlibsuff= libmagic=never-match;;
   8171     esac
   8172     ;;
   8173   esac
   8174   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   8175   shlibpath_overrides_runpath=no
   8176   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   8177   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   8178   hardcode_into_libs=yes
   8179   ;;
   8180 
   8181 # No shared lib support for Linux oldld, aout, or coff.
   8182 linux*oldld* | linux*aout* | linux*coff*)
   8183   dynamic_linker=no
   8184   ;;
   8185 
   8186 # This must be Linux ELF.
   8187 linux*)
   8188   version_type=linux
   8189   need_lib_prefix=no
   8190   need_version=no
   8191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8192   soname_spec='${libname}${release}${shared_ext}$major'
   8193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   8194   shlibpath_var=LD_LIBRARY_PATH
   8195   shlibpath_overrides_runpath=no
   8196   # This implies no fast_install, which is unacceptable.
   8197   # Some rework will be needed to allow for fast_install
   8198   # before this can be enabled.
   8199   hardcode_into_libs=yes
   8200 
   8201   # We used to test for /lib/ld.so.1 and disable shared libraries on
   8202   # powerpc, because MkLinux only supported shared libraries with the
   8203   # GNU dynamic linker.  Since this was broken with cross compilers,
   8204   # most powerpc-linux boxes support dynamic linking these days and
   8205   # people can always --disable-shared, the test was removed, and we
   8206   # assume the GNU/Linux dynamic linker is in use.
   8207   dynamic_linker='GNU/Linux ld.so'
   8208   ;;
   8209 
   8210 netbsd*)
   8211   version_type=sunos
   8212   need_lib_prefix=no
   8213   need_version=no
   8214   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   8215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8216     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8217     dynamic_linker='NetBSD (a.out) ld.so'
   8218   else
   8219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   8220     soname_spec='${libname}${release}${shared_ext}$major'
   8221     dynamic_linker='NetBSD ld.elf_so'
   8222   fi
   8223   shlibpath_var=LD_LIBRARY_PATH
   8224   shlibpath_overrides_runpath=yes
   8225   hardcode_into_libs=yes
   8226   ;;
   8227 
   8228 newsos6)
   8229   version_type=linux
   8230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8231   shlibpath_var=LD_LIBRARY_PATH
   8232   shlibpath_overrides_runpath=yes
   8233   ;;
   8234 
   8235 nto-qnx*)
   8236   version_type=linux
   8237   need_lib_prefix=no
   8238   need_version=no
   8239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8240   soname_spec='${libname}${release}${shared_ext}$major'
   8241   shlibpath_var=LD_LIBRARY_PATH
   8242   shlibpath_overrides_runpath=yes
   8243   ;;
   8244 
   8245 openbsd*)
   8246   version_type=sunos
   8247   need_lib_prefix=no
   8248   need_version=no
   8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8251   shlibpath_var=LD_LIBRARY_PATH
   8252   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   8253     case $host_os in
   8254       openbsd2.[89] | openbsd2.[89].*)
   8255 	shlibpath_overrides_runpath=no
   8256 	;;
   8257       *)
   8258 	shlibpath_overrides_runpath=yes
   8259 	;;
   8260       esac
   8261   else
   8262     shlibpath_overrides_runpath=yes
   8263   fi
   8264   ;;
   8265 
   8266 os2*)
   8267   libname_spec='$name'
   8268   shrext=".dll"
   8269   need_lib_prefix=no
   8270   library_names_spec='$libname${shared_ext} $libname.a'
   8271   dynamic_linker='OS/2 ld.exe'
   8272   shlibpath_var=LIBPATH
   8273   ;;
   8274 
   8275 osf3* | osf4* | osf5*)
   8276   version_type=osf
   8277   need_lib_prefix=no
   8278   need_version=no
   8279   soname_spec='${libname}${release}${shared_ext}$major'
   8280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8281   shlibpath_var=LD_LIBRARY_PATH
   8282   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   8283   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   8284   ;;
   8285 
   8286 sco3.2v5*)
   8287   version_type=osf
   8288   soname_spec='${libname}${release}${shared_ext}$major'
   8289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8290   shlibpath_var=LD_LIBRARY_PATH
   8291   ;;
   8292 
   8293 solaris*)
   8294   version_type=linux
   8295   need_lib_prefix=no
   8296   need_version=no
   8297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8298   soname_spec='${libname}${release}${shared_ext}$major'
   8299   shlibpath_var=LD_LIBRARY_PATH
   8300   shlibpath_overrides_runpath=yes
   8301   hardcode_into_libs=yes
   8302   # ldd complains unless libraries are executable
   8303   postinstall_cmds='chmod +x $lib'
   8304   ;;
   8305 
   8306 sunos4*)
   8307   version_type=sunos
   8308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8309   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   8310   shlibpath_var=LD_LIBRARY_PATH
   8311   shlibpath_overrides_runpath=yes
   8312   if test "$with_gnu_ld" = yes; then
   8313     need_lib_prefix=no
   8314   fi
   8315   need_version=yes
   8316   ;;
   8317 
   8318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   8319   version_type=linux
   8320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8321   soname_spec='${libname}${release}${shared_ext}$major'
   8322   shlibpath_var=LD_LIBRARY_PATH
   8323   case $host_vendor in
   8324     sni)
   8325       shlibpath_overrides_runpath=no
   8326       need_lib_prefix=no
   8327       export_dynamic_flag_spec='${wl}-Blargedynsym'
   8328       runpath_var=LD_RUN_PATH
   8329       ;;
   8330     siemens)
   8331       need_lib_prefix=no
   8332       ;;
   8333     motorola)
   8334       need_lib_prefix=no
   8335       need_version=no
   8336       shlibpath_overrides_runpath=no
   8337       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   8338       ;;
   8339   esac
   8340   ;;
   8341 
   8342 sysv4*MP*)
   8343   if test -d /usr/nec ;then
   8344     version_type=linux
   8345     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   8346     soname_spec='$libname${shared_ext}.$major'
   8347     shlibpath_var=LD_LIBRARY_PATH
   8348   fi
   8349   ;;
   8350 
   8351 uts4*)
   8352   version_type=linux
   8353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8354   soname_spec='${libname}${release}${shared_ext}$major'
   8355   shlibpath_var=LD_LIBRARY_PATH
   8356   ;;
   8357 
   8358 *)
   8359   dynamic_linker=no
   8360   ;;
   8361 esac
   8362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   8363 echo "${ECHO_T}$dynamic_linker" >&6; }
   8364 test "$dynamic_linker" = no && can_build_shared=no
   8365 
   8366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   8367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   8368 hardcode_action=
   8369 if test -n "$hardcode_libdir_flag_spec" || \
   8370    test -n "$runpath_var " || \
   8371    test "X$hardcode_automatic"="Xyes" ; then
   8372 
   8373   # We can hardcode non-existant directories.
   8374   if test "$hardcode_direct" != no &&
   8375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   8376      # have to relink, otherwise we might link with an installed library
   8377      # when we should be linking with a yet-to-be-installed one
   8378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
   8379      test "$hardcode_minus_L" != no; then
   8380     # Linking always hardcodes the temporary library directory.
   8381     hardcode_action=relink
   8382   else
   8383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   8384     hardcode_action=immediate
   8385   fi
   8386 else
   8387   # We cannot hardcode anything, or else we can only hardcode existing
   8388   # directories.
   8389   hardcode_action=unsupported
   8390 fi
   8391 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
   8392 echo "${ECHO_T}$hardcode_action" >&6; }
   8393 
   8394 if test "$hardcode_action" = relink; then
   8395   # Fast installation is not supported
   8396   enable_fast_install=no
   8397 elif test "$shlibpath_overrides_runpath" = yes ||
   8398      test "$enable_shared" = no; then
   8399   # Fast installation is not necessary
   8400   enable_fast_install=needless
   8401 fi
   8402 
   8403 striplib=
   8404 old_striplib=
   8405 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   8406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   8407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   8408   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   8409   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   8410   { echo "$as_me:$LINENO: result: yes" >&5
   8411 echo "${ECHO_T}yes" >&6; }
   8412 else
   8413 # FIXME - insert some real tests, host_os isn't really good enough
   8414   case $host_os in
   8415    darwin*)
   8416        if test -n "$STRIP" ; then
   8417          striplib="$STRIP -x"
   8418          { echo "$as_me:$LINENO: result: yes" >&5
   8419 echo "${ECHO_T}yes" >&6; }
   8420        else
   8421   { echo "$as_me:$LINENO: result: no" >&5
   8422 echo "${ECHO_T}no" >&6; }
   8423 fi
   8424        ;;
   8425    *)
   8426   { echo "$as_me:$LINENO: result: no" >&5
   8427 echo "${ECHO_T}no" >&6; }
   8428     ;;
   8429   esac
   8430 fi
   8431 
   8432 if test "x$enable_dlopen" != xyes; then
   8433   enable_dlopen=unknown
   8434   enable_dlopen_self=unknown
   8435   enable_dlopen_self_static=unknown
   8436 else
   8437   lt_cv_dlopen=no
   8438   lt_cv_dlopen_libs=
   8439 
   8440   case $host_os in
   8441   beos*)
   8442     lt_cv_dlopen="load_add_on"
   8443     lt_cv_dlopen_libs=
   8444     lt_cv_dlopen_self=yes
   8445     ;;
   8446 
   8447   mingw* | pw32*)
   8448     lt_cv_dlopen="LoadLibrary"
   8449     lt_cv_dlopen_libs=
   8450    ;;
   8451 
   8452   cygwin*)
   8453     lt_cv_dlopen="dlopen"
   8454     lt_cv_dlopen_libs=
   8455    ;;
   8456 
   8457   darwin*)
   8458   # if libdl is installed we need to link against it
   8459     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   8460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   8461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   8462   echo $ECHO_N "(cached) $ECHO_C" >&6
   8463 else
   8464   ac_check_lib_save_LIBS=$LIBS
   8465 LIBS="-ldl  $LIBS"
   8466 cat >conftest.$ac_ext <<_ACEOF
   8467 /* confdefs.h.  */
   8468 _ACEOF
   8469 cat confdefs.h >>conftest.$ac_ext
   8470 cat >>conftest.$ac_ext <<_ACEOF
   8471 /* end confdefs.h.  */
   8472 
   8473 /* Override any GCC internal prototype to avoid an error.
   8474    Use char because int might match the return type of a GCC
   8475    builtin and then its argument prototype would still apply.  */
   8476 #ifdef __cplusplus
   8477 extern "C"
   8478 #endif
   8479 char dlopen ();
   8480 int
   8481 main ()
   8482 {
   8483 return dlopen ();
   8484   ;
   8485   return 0;
   8486 }
   8487 _ACEOF
   8488 rm -f conftest.$ac_objext conftest$ac_exeext
   8489 if { (ac_try="$ac_link"
   8490 case "(($ac_try" in
   8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8492   *) ac_try_echo=$ac_try;;
   8493 esac
   8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8495   (eval "$ac_link") 2>conftest.er1
   8496   ac_status=$?
   8497   grep -v '^ *+' conftest.er1 >conftest.err
   8498   rm -f conftest.er1
   8499   cat conftest.err >&5
   8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8501   (exit $ac_status); } && {
   8502 	 test -z "$ac_c_werror_flag" ||
   8503 	 test ! -s conftest.err
   8504        } && test -s conftest$ac_exeext &&
   8505        $as_test_x conftest$ac_exeext; then
   8506   ac_cv_lib_dl_dlopen=yes
   8507 else
   8508   echo "$as_me: failed program was:" >&5
   8509 sed 's/^/| /' conftest.$ac_ext >&5
   8510 
   8511 	ac_cv_lib_dl_dlopen=no
   8512 fi
   8513 
   8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8515       conftest$ac_exeext conftest.$ac_ext
   8516 LIBS=$ac_check_lib_save_LIBS
   8517 fi
   8518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   8519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   8520 if test $ac_cv_lib_dl_dlopen = yes; then
   8521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   8522 else
   8523 
   8524     lt_cv_dlopen="dyld"
   8525     lt_cv_dlopen_libs=
   8526     lt_cv_dlopen_self=yes
   8527 
   8528 fi
   8529 
   8530    ;;
   8531 
   8532   *)
   8533     { echo "$as_me:$LINENO: checking for shl_load" >&5
   8534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   8535 if test "${ac_cv_func_shl_load+set}" = set; then
   8536   echo $ECHO_N "(cached) $ECHO_C" >&6
   8537 else
   8538   cat >conftest.$ac_ext <<_ACEOF
   8539 /* confdefs.h.  */
   8540 _ACEOF
   8541 cat confdefs.h >>conftest.$ac_ext
   8542 cat >>conftest.$ac_ext <<_ACEOF
   8543 /* end confdefs.h.  */
   8544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   8545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8546 #define shl_load innocuous_shl_load
   8547 
   8548 /* System header to define __stub macros and hopefully few prototypes,
   8549     which can conflict with char shl_load (); below.
   8550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8551     <limits.h> exists even on freestanding compilers.  */
   8552 
   8553 #ifdef __STDC__
   8554 # include <limits.h>
   8555 #else
   8556 # include <assert.h>
   8557 #endif
   8558 
   8559 #undef shl_load
   8560 
   8561 /* Override any GCC internal prototype to avoid an error.
   8562    Use char because int might match the return type of a GCC
   8563    builtin and then its argument prototype would still apply.  */
   8564 #ifdef __cplusplus
   8565 extern "C"
   8566 #endif
   8567 char shl_load ();
   8568 /* The GNU C library defines this for functions which it implements
   8569     to always fail with ENOSYS.  Some functions are actually named
   8570     something starting with __ and the normal name is an alias.  */
   8571 #if defined __stub_shl_load || defined __stub___shl_load
   8572 choke me
   8573 #endif
   8574 
   8575 int
   8576 main ()
   8577 {
   8578 return shl_load ();
   8579   ;
   8580   return 0;
   8581 }
   8582 _ACEOF
   8583 rm -f conftest.$ac_objext conftest$ac_exeext
   8584 if { (ac_try="$ac_link"
   8585 case "(($ac_try" in
   8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8587   *) ac_try_echo=$ac_try;;
   8588 esac
   8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8590   (eval "$ac_link") 2>conftest.er1
   8591   ac_status=$?
   8592   grep -v '^ *+' conftest.er1 >conftest.err
   8593   rm -f conftest.er1
   8594   cat conftest.err >&5
   8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8596   (exit $ac_status); } && {
   8597 	 test -z "$ac_c_werror_flag" ||
   8598 	 test ! -s conftest.err
   8599        } && test -s conftest$ac_exeext &&
   8600        $as_test_x conftest$ac_exeext; then
   8601   ac_cv_func_shl_load=yes
   8602 else
   8603   echo "$as_me: failed program was:" >&5
   8604 sed 's/^/| /' conftest.$ac_ext >&5
   8605 
   8606 	ac_cv_func_shl_load=no
   8607 fi
   8608 
   8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8610       conftest$ac_exeext conftest.$ac_ext
   8611 fi
   8612 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   8613 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   8614 if test $ac_cv_func_shl_load = yes; then
   8615   lt_cv_dlopen="shl_load"
   8616 else
   8617   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   8618 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   8619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   8620   echo $ECHO_N "(cached) $ECHO_C" >&6
   8621 else
   8622   ac_check_lib_save_LIBS=$LIBS
   8623 LIBS="-ldld  $LIBS"
   8624 cat >conftest.$ac_ext <<_ACEOF
   8625 /* confdefs.h.  */
   8626 _ACEOF
   8627 cat confdefs.h >>conftest.$ac_ext
   8628 cat >>conftest.$ac_ext <<_ACEOF
   8629 /* end confdefs.h.  */
   8630 
   8631 /* Override any GCC internal prototype to avoid an error.
   8632    Use char because int might match the return type of a GCC
   8633    builtin and then its argument prototype would still apply.  */
   8634 #ifdef __cplusplus
   8635 extern "C"
   8636 #endif
   8637 char shl_load ();
   8638 int
   8639 main ()
   8640 {
   8641 return shl_load ();
   8642   ;
   8643   return 0;
   8644 }
   8645 _ACEOF
   8646 rm -f conftest.$ac_objext conftest$ac_exeext
   8647 if { (ac_try="$ac_link"
   8648 case "(($ac_try" in
   8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8650   *) ac_try_echo=$ac_try;;
   8651 esac
   8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8653   (eval "$ac_link") 2>conftest.er1
   8654   ac_status=$?
   8655   grep -v '^ *+' conftest.er1 >conftest.err
   8656   rm -f conftest.er1
   8657   cat conftest.err >&5
   8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8659   (exit $ac_status); } && {
   8660 	 test -z "$ac_c_werror_flag" ||
   8661 	 test ! -s conftest.err
   8662        } && test -s conftest$ac_exeext &&
   8663        $as_test_x conftest$ac_exeext; then
   8664   ac_cv_lib_dld_shl_load=yes
   8665 else
   8666   echo "$as_me: failed program was:" >&5
   8667 sed 's/^/| /' conftest.$ac_ext >&5
   8668 
   8669 	ac_cv_lib_dld_shl_load=no
   8670 fi
   8671 
   8672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8673       conftest$ac_exeext conftest.$ac_ext
   8674 LIBS=$ac_check_lib_save_LIBS
   8675 fi
   8676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   8677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   8678 if test $ac_cv_lib_dld_shl_load = yes; then
   8679   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
   8680 else
   8681   { echo "$as_me:$LINENO: checking for dlopen" >&5
   8682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   8683 if test "${ac_cv_func_dlopen+set}" = set; then
   8684   echo $ECHO_N "(cached) $ECHO_C" >&6
   8685 else
   8686   cat >conftest.$ac_ext <<_ACEOF
   8687 /* confdefs.h.  */
   8688 _ACEOF
   8689 cat confdefs.h >>conftest.$ac_ext
   8690 cat >>conftest.$ac_ext <<_ACEOF
   8691 /* end confdefs.h.  */
   8692 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   8693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8694 #define dlopen innocuous_dlopen
   8695 
   8696 /* System header to define __stub macros and hopefully few prototypes,
   8697     which can conflict with char dlopen (); below.
   8698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8699     <limits.h> exists even on freestanding compilers.  */
   8700 
   8701 #ifdef __STDC__
   8702 # include <limits.h>
   8703 #else
   8704 # include <assert.h>
   8705 #endif
   8706 
   8707 #undef dlopen
   8708 
   8709 /* Override any GCC internal prototype to avoid an error.
   8710    Use char because int might match the return type of a GCC
   8711    builtin and then its argument prototype would still apply.  */
   8712 #ifdef __cplusplus
   8713 extern "C"
   8714 #endif
   8715 char dlopen ();
   8716 /* The GNU C library defines this for functions which it implements
   8717     to always fail with ENOSYS.  Some functions are actually named
   8718     something starting with __ and the normal name is an alias.  */
   8719 #if defined __stub_dlopen || defined __stub___dlopen
   8720 choke me
   8721 #endif
   8722 
   8723 int
   8724 main ()
   8725 {
   8726 return dlopen ();
   8727   ;
   8728   return 0;
   8729 }
   8730 _ACEOF
   8731 rm -f conftest.$ac_objext conftest$ac_exeext
   8732 if { (ac_try="$ac_link"
   8733 case "(($ac_try" in
   8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8735   *) ac_try_echo=$ac_try;;
   8736 esac
   8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8738   (eval "$ac_link") 2>conftest.er1
   8739   ac_status=$?
   8740   grep -v '^ *+' conftest.er1 >conftest.err
   8741   rm -f conftest.er1
   8742   cat conftest.err >&5
   8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8744   (exit $ac_status); } && {
   8745 	 test -z "$ac_c_werror_flag" ||
   8746 	 test ! -s conftest.err
   8747        } && test -s conftest$ac_exeext &&
   8748        $as_test_x conftest$ac_exeext; then
   8749   ac_cv_func_dlopen=yes
   8750 else
   8751   echo "$as_me: failed program was:" >&5
   8752 sed 's/^/| /' conftest.$ac_ext >&5
   8753 
   8754 	ac_cv_func_dlopen=no
   8755 fi
   8756 
   8757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8758       conftest$ac_exeext conftest.$ac_ext
   8759 fi
   8760 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   8761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   8762 if test $ac_cv_func_dlopen = yes; then
   8763   lt_cv_dlopen="dlopen"
   8764 else
   8765   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   8766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   8767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   8768   echo $ECHO_N "(cached) $ECHO_C" >&6
   8769 else
   8770   ac_check_lib_save_LIBS=$LIBS
   8771 LIBS="-ldl  $LIBS"
   8772 cat >conftest.$ac_ext <<_ACEOF
   8773 /* confdefs.h.  */
   8774 _ACEOF
   8775 cat confdefs.h >>conftest.$ac_ext
   8776 cat >>conftest.$ac_ext <<_ACEOF
   8777 /* end confdefs.h.  */
   8778 
   8779 /* Override any GCC internal prototype to avoid an error.
   8780    Use char because int might match the return type of a GCC
   8781    builtin and then its argument prototype would still apply.  */
   8782 #ifdef __cplusplus
   8783 extern "C"
   8784 #endif
   8785 char dlopen ();
   8786 int
   8787 main ()
   8788 {
   8789 return dlopen ();
   8790   ;
   8791   return 0;
   8792 }
   8793 _ACEOF
   8794 rm -f conftest.$ac_objext conftest$ac_exeext
   8795 if { (ac_try="$ac_link"
   8796 case "(($ac_try" in
   8797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8798   *) ac_try_echo=$ac_try;;
   8799 esac
   8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8801   (eval "$ac_link") 2>conftest.er1
   8802   ac_status=$?
   8803   grep -v '^ *+' conftest.er1 >conftest.err
   8804   rm -f conftest.er1
   8805   cat conftest.err >&5
   8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8807   (exit $ac_status); } && {
   8808 	 test -z "$ac_c_werror_flag" ||
   8809 	 test ! -s conftest.err
   8810        } && test -s conftest$ac_exeext &&
   8811        $as_test_x conftest$ac_exeext; then
   8812   ac_cv_lib_dl_dlopen=yes
   8813 else
   8814   echo "$as_me: failed program was:" >&5
   8815 sed 's/^/| /' conftest.$ac_ext >&5
   8816 
   8817 	ac_cv_lib_dl_dlopen=no
   8818 fi
   8819 
   8820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8821       conftest$ac_exeext conftest.$ac_ext
   8822 LIBS=$ac_check_lib_save_LIBS
   8823 fi
   8824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   8825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   8826 if test $ac_cv_lib_dl_dlopen = yes; then
   8827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   8828 else
   8829   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   8830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   8831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   8832   echo $ECHO_N "(cached) $ECHO_C" >&6
   8833 else
   8834   ac_check_lib_save_LIBS=$LIBS
   8835 LIBS="-lsvld  $LIBS"
   8836 cat >conftest.$ac_ext <<_ACEOF
   8837 /* confdefs.h.  */
   8838 _ACEOF
   8839 cat confdefs.h >>conftest.$ac_ext
   8840 cat >>conftest.$ac_ext <<_ACEOF
   8841 /* end confdefs.h.  */
   8842 
   8843 /* Override any GCC internal prototype to avoid an error.
   8844    Use char because int might match the return type of a GCC
   8845    builtin and then its argument prototype would still apply.  */
   8846 #ifdef __cplusplus
   8847 extern "C"
   8848 #endif
   8849 char dlopen ();
   8850 int
   8851 main ()
   8852 {
   8853 return dlopen ();
   8854   ;
   8855   return 0;
   8856 }
   8857 _ACEOF
   8858 rm -f conftest.$ac_objext conftest$ac_exeext
   8859 if { (ac_try="$ac_link"
   8860 case "(($ac_try" in
   8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8862   *) ac_try_echo=$ac_try;;
   8863 esac
   8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8865   (eval "$ac_link") 2>conftest.er1
   8866   ac_status=$?
   8867   grep -v '^ *+' conftest.er1 >conftest.err
   8868   rm -f conftest.er1
   8869   cat conftest.err >&5
   8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8871   (exit $ac_status); } && {
   8872 	 test -z "$ac_c_werror_flag" ||
   8873 	 test ! -s conftest.err
   8874        } && test -s conftest$ac_exeext &&
   8875        $as_test_x conftest$ac_exeext; then
   8876   ac_cv_lib_svld_dlopen=yes
   8877 else
   8878   echo "$as_me: failed program was:" >&5
   8879 sed 's/^/| /' conftest.$ac_ext >&5
   8880 
   8881 	ac_cv_lib_svld_dlopen=no
   8882 fi
   8883 
   8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8885       conftest$ac_exeext conftest.$ac_ext
   8886 LIBS=$ac_check_lib_save_LIBS
   8887 fi
   8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   8889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   8890 if test $ac_cv_lib_svld_dlopen = yes; then
   8891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   8892 else
   8893   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   8894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   8895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   8896   echo $ECHO_N "(cached) $ECHO_C" >&6
   8897 else
   8898   ac_check_lib_save_LIBS=$LIBS
   8899 LIBS="-ldld  $LIBS"
   8900 cat >conftest.$ac_ext <<_ACEOF
   8901 /* confdefs.h.  */
   8902 _ACEOF
   8903 cat confdefs.h >>conftest.$ac_ext
   8904 cat >>conftest.$ac_ext <<_ACEOF
   8905 /* end confdefs.h.  */
   8906 
   8907 /* Override any GCC internal prototype to avoid an error.
   8908    Use char because int might match the return type of a GCC
   8909    builtin and then its argument prototype would still apply.  */
   8910 #ifdef __cplusplus
   8911 extern "C"
   8912 #endif
   8913 char dld_link ();
   8914 int
   8915 main ()
   8916 {
   8917 return dld_link ();
   8918   ;
   8919   return 0;
   8920 }
   8921 _ACEOF
   8922 rm -f conftest.$ac_objext conftest$ac_exeext
   8923 if { (ac_try="$ac_link"
   8924 case "(($ac_try" in
   8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8926   *) ac_try_echo=$ac_try;;
   8927 esac
   8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8929   (eval "$ac_link") 2>conftest.er1
   8930   ac_status=$?
   8931   grep -v '^ *+' conftest.er1 >conftest.err
   8932   rm -f conftest.er1
   8933   cat conftest.err >&5
   8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8935   (exit $ac_status); } && {
   8936 	 test -z "$ac_c_werror_flag" ||
   8937 	 test ! -s conftest.err
   8938        } && test -s conftest$ac_exeext &&
   8939        $as_test_x conftest$ac_exeext; then
   8940   ac_cv_lib_dld_dld_link=yes
   8941 else
   8942   echo "$as_me: failed program was:" >&5
   8943 sed 's/^/| /' conftest.$ac_ext >&5
   8944 
   8945 	ac_cv_lib_dld_dld_link=no
   8946 fi
   8947 
   8948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8949       conftest$ac_exeext conftest.$ac_ext
   8950 LIBS=$ac_check_lib_save_LIBS
   8951 fi
   8952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   8953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   8954 if test $ac_cv_lib_dld_dld_link = yes; then
   8955   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
   8956 fi
   8957 
   8958 
   8959 fi
   8960 
   8961 
   8962 fi
   8963 
   8964 
   8965 fi
   8966 
   8967 
   8968 fi
   8969 
   8970 
   8971 fi
   8972 
   8973     ;;
   8974   esac
   8975 
   8976   if test "x$lt_cv_dlopen" != xno; then
   8977     enable_dlopen=yes
   8978   else
   8979     enable_dlopen=no
   8980   fi
   8981 
   8982   case $lt_cv_dlopen in
   8983   dlopen)
   8984     save_CPPFLAGS="$CPPFLAGS"
   8985     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   8986 
   8987     save_LDFLAGS="$LDFLAGS"
   8988     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   8989 
   8990     save_LIBS="$LIBS"
   8991     LIBS="$lt_cv_dlopen_libs $LIBS"
   8992 
   8993     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
   8994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
   8995 if test "${lt_cv_dlopen_self+set}" = set; then
   8996   echo $ECHO_N "(cached) $ECHO_C" >&6
   8997 else
   8998   	  if test "$cross_compiling" = yes; then :
   8999   lt_cv_dlopen_self=cross
   9000 else
   9001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   9002   lt_status=$lt_dlunknown
   9003   cat > conftest.$ac_ext <<EOF
   9004 #line 9004 "configure"
   9005 #include "confdefs.h"
   9006 
   9007 #if HAVE_DLFCN_H
   9008 #include <dlfcn.h>
   9009 #endif
   9010 
   9011 #include <stdio.h>
   9012 
   9013 #ifdef RTLD_GLOBAL
   9014 #  define LT_DLGLOBAL		RTLD_GLOBAL
   9015 #else
   9016 #  ifdef DL_GLOBAL
   9017 #    define LT_DLGLOBAL		DL_GLOBAL
   9018 #  else
   9019 #    define LT_DLGLOBAL		0
   9020 #  endif
   9021 #endif
   9022 
   9023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   9024    find out it does not work in some platform. */
   9025 #ifndef LT_DLLAZY_OR_NOW
   9026 #  ifdef RTLD_LAZY
   9027 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   9028 #  else
   9029 #    ifdef DL_LAZY
   9030 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   9031 #    else
   9032 #      ifdef RTLD_NOW
   9033 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   9034 #      else
   9035 #        ifdef DL_NOW
   9036 #          define LT_DLLAZY_OR_NOW	DL_NOW
   9037 #        else
   9038 #          define LT_DLLAZY_OR_NOW	0
   9039 #        endif
   9040 #      endif
   9041 #    endif
   9042 #  endif
   9043 #endif
   9044 
   9045 #ifdef __cplusplus
   9046 extern "C" void exit (int);
   9047 #endif
   9048 
   9049 void fnord() { int i=42;}
   9050 int main ()
   9051 {
   9052   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   9053   int status = $lt_dlunknown;
   9054 
   9055   if (self)
   9056     {
   9057       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   9058       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   9059       /* dlclose (self); */
   9060     }
   9061 
   9062     exit (status);
   9063 }
   9064 EOF
   9065   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9066   (eval $ac_link) 2>&5
   9067   ac_status=$?
   9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9069   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   9070     (./conftest; exit; ) 2>/dev/null
   9071     lt_status=$?
   9072     case x$lt_status in
   9073       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   9074       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   9075       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
   9076     esac
   9077   else :
   9078     # compilation failed
   9079     lt_cv_dlopen_self=no
   9080   fi
   9081 fi
   9082 rm -fr conftest*
   9083 
   9084 
   9085 fi
   9086 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
   9087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
   9088 
   9089     if test "x$lt_cv_dlopen_self" = xyes; then
   9090       LDFLAGS="$LDFLAGS $link_static_flag"
   9091       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
   9092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
   9093 if test "${lt_cv_dlopen_self_static+set}" = set; then
   9094   echo $ECHO_N "(cached) $ECHO_C" >&6
   9095 else
   9096   	  if test "$cross_compiling" = yes; then :
   9097   lt_cv_dlopen_self_static=cross
   9098 else
   9099   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   9100   lt_status=$lt_dlunknown
   9101   cat > conftest.$ac_ext <<EOF
   9102 #line 9102 "configure"
   9103 #include "confdefs.h"
   9104 
   9105 #if HAVE_DLFCN_H
   9106 #include <dlfcn.h>
   9107 #endif
   9108 
   9109 #include <stdio.h>
   9110 
   9111 #ifdef RTLD_GLOBAL
   9112 #  define LT_DLGLOBAL		RTLD_GLOBAL
   9113 #else
   9114 #  ifdef DL_GLOBAL
   9115 #    define LT_DLGLOBAL		DL_GLOBAL
   9116 #  else
   9117 #    define LT_DLGLOBAL		0
   9118 #  endif
   9119 #endif
   9120 
   9121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   9122    find out it does not work in some platform. */
   9123 #ifndef LT_DLLAZY_OR_NOW
   9124 #  ifdef RTLD_LAZY
   9125 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   9126 #  else
   9127 #    ifdef DL_LAZY
   9128 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   9129 #    else
   9130 #      ifdef RTLD_NOW
   9131 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   9132 #      else
   9133 #        ifdef DL_NOW
   9134 #          define LT_DLLAZY_OR_NOW	DL_NOW
   9135 #        else
   9136 #          define LT_DLLAZY_OR_NOW	0
   9137 #        endif
   9138 #      endif
   9139 #    endif
   9140 #  endif
   9141 #endif
   9142 
   9143 #ifdef __cplusplus
   9144 extern "C" void exit (int);
   9145 #endif
   9146 
   9147 void fnord() { int i=42;}
   9148 int main ()
   9149 {
   9150   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   9151   int status = $lt_dlunknown;
   9152 
   9153   if (self)
   9154     {
   9155       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   9156       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   9157       /* dlclose (self); */
   9158     }
   9159 
   9160     exit (status);
   9161 }
   9162 EOF
   9163   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9164   (eval $ac_link) 2>&5
   9165   ac_status=$?
   9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9167   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   9168     (./conftest; exit; ) 2>/dev/null
   9169     lt_status=$?
   9170     case x$lt_status in
   9171       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   9172       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   9173       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
   9174     esac
   9175   else :
   9176     # compilation failed
   9177     lt_cv_dlopen_self_static=no
   9178   fi
   9179 fi
   9180 rm -fr conftest*
   9181 
   9182 
   9183 fi
   9184 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
   9185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
   9186     fi
   9187 
   9188     CPPFLAGS="$save_CPPFLAGS"
   9189     LDFLAGS="$save_LDFLAGS"
   9190     LIBS="$save_LIBS"
   9191     ;;
   9192   esac
   9193 
   9194   case $lt_cv_dlopen_self in
   9195   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   9196   *) enable_dlopen_self=unknown ;;
   9197   esac
   9198 
   9199   case $lt_cv_dlopen_self_static in
   9200   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   9201   *) enable_dlopen_self_static=unknown ;;
   9202   esac
   9203 fi
   9204 
   9205 
   9206 # Report which librarie types wil actually be built
   9207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
   9208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
   9209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
   9210 echo "${ECHO_T}$can_build_shared" >&6; }
   9211 
   9212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
   9213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
   9214 test "$can_build_shared" = "no" && enable_shared=no
   9215 
   9216 # On AIX, shared libraries and static libraries use the same namespace, and
   9217 # are all built from PIC.
   9218 case "$host_os" in
   9219 aix3*)
   9220   test "$enable_shared" = yes && enable_static=no
   9221   if test -n "$RANLIB"; then
   9222     archive_cmds="$archive_cmds~\$RANLIB \$lib"
   9223     postinstall_cmds='$RANLIB $lib'
   9224   fi
   9225   ;;
   9226 
   9227 aix4*)
   9228   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   9229     test "$enable_shared" = yes && enable_static=no
   9230   fi
   9231   ;;
   9232   darwin* | rhapsody*)
   9233   if test "$GCC" = yes; then
   9234     archive_cmds_need_lc=no
   9235     case "$host_os" in
   9236     rhapsody* | darwin1.[012])
   9237       allow_undefined_flag='-undefined suppress'
   9238       ;;
   9239     *) # Darwin 1.3 on
   9240       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   9241       	allow_undefined_flag='-flat_namespace -undefined suppress'
   9242       else
   9243         case ${MACOSX_DEPLOYMENT_TARGET} in
   9244           10.[012])
   9245             allow_undefined_flag='-flat_namespace -undefined suppress'
   9246             ;;
   9247           10.*)
   9248             allow_undefined_flag='-undefined dynamic_lookup'
   9249             ;;
   9250         esac
   9251       fi
   9252       ;;
   9253     esac
   9254     output_verbose_link_cmd='echo'
   9255     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
   9256     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   9257     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   9258     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   9259     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   9260     hardcode_direct=no
   9261     hardcode_automatic=yes
   9262     hardcode_shlibpath_var=unsupported
   9263     whole_archive_flag_spec='-all_load $convenience'
   9264     link_all_deplibs=yes
   9265   else
   9266     ld_shlibs=no
   9267   fi
   9268     ;;
   9269 esac
   9270 { echo "$as_me:$LINENO: result: $enable_shared" >&5
   9271 echo "${ECHO_T}$enable_shared" >&6; }
   9272 
   9273 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
   9274 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
   9275 # Make sure either enable_shared or enable_static is yes.
   9276 test "$enable_shared" = yes || enable_static=yes
   9277 { echo "$as_me:$LINENO: result: $enable_static" >&5
   9278 echo "${ECHO_T}$enable_static" >&6; }
   9279 
   9280 # The else clause should only fire when bootstrapping the
   9281 # libtool distribution, otherwise you forgot to ship ltmain.sh
   9282 # with your package, and you will get complaints that there are
   9283 # no rules to generate ltmain.sh.
   9284 if test -f "$ltmain"; then
   9285   # See if we are running on zsh, and set the options which allow our commands through
   9286   # without removal of \ escapes.
   9287   if test -n "${ZSH_VERSION+set}" ; then
   9288     setopt NO_GLOB_SUBST
   9289   fi
   9290   # Now quote all the things that may contain metacharacters while being
   9291   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   9292   # variables and quote the copies for generation of the libtool script.
   9293   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   9294     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   9295     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   9296     deplibs_check_method reload_flag reload_cmds need_locks \
   9297     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   9298     lt_cv_sys_global_symbol_to_c_name_address \
   9299     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   9300     old_postinstall_cmds old_postuninstall_cmds \
   9301     compiler \
   9302     CC \
   9303     LD \
   9304     lt_prog_compiler_wl \
   9305     lt_prog_compiler_pic \
   9306     lt_prog_compiler_static \
   9307     lt_prog_compiler_no_builtin_flag \
   9308     export_dynamic_flag_spec \
   9309     thread_safe_flag_spec \
   9310     whole_archive_flag_spec \
   9311     enable_shared_with_static_runtimes \
   9312     old_archive_cmds \
   9313     old_archive_from_new_cmds \
   9314     predep_objects \
   9315     postdep_objects \
   9316     predeps \
   9317     postdeps \
   9318     compiler_lib_search_path \
   9319     archive_cmds \
   9320     archive_expsym_cmds \
   9321     postinstall_cmds \
   9322     postuninstall_cmds \
   9323     old_archive_from_expsyms_cmds \
   9324     allow_undefined_flag \
   9325     no_undefined_flag \
   9326     export_symbols_cmds \
   9327     hardcode_libdir_flag_spec \
   9328     hardcode_libdir_flag_spec_ld \
   9329     hardcode_libdir_separator \
   9330     hardcode_automatic \
   9331     module_cmds \
   9332     module_expsym_cmds \
   9333     lt_cv_prog_compiler_c_o \
   9334     exclude_expsyms \
   9335     include_expsyms; do
   9336 
   9337     case $var in
   9338     old_archive_cmds | \
   9339     old_archive_from_new_cmds | \
   9340     archive_cmds | \
   9341     archive_expsym_cmds | \
   9342     module_cmds | \
   9343     module_expsym_cmds | \
   9344     old_archive_from_expsyms_cmds | \
   9345     export_symbols_cmds | \
   9346     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   9347     postinstall_cmds | postuninstall_cmds | \
   9348     old_postinstall_cmds | old_postuninstall_cmds | \
   9349     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   9350       # Double-quote double-evaled strings.
   9351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   9352       ;;
   9353     *)
   9354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   9355       ;;
   9356     esac
   9357   done
   9358 
   9359   case $lt_echo in
   9360   *'\$0 --fallback-echo"')
   9361     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   9362     ;;
   9363   esac
   9364 
   9365 cfgfile="${ofile}T"
   9366   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
   9367   $rm -f "$cfgfile"
   9368   { echo "$as_me:$LINENO: creating $ofile" >&5
   9369 echo "$as_me: creating $ofile" >&6;}
   9370 
   9371   cat <<__EOF__ >> "$cfgfile"
   9372 #! $SHELL
   9373 
   9374 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
   9375 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
   9376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   9377 #
   9378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
   9379 # Free Software Foundation, Inc.
   9380 #
   9381 # This file is part of GNU Libtool:
   9382 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
   9383 #
   9384 # This program is free software; you can redistribute it and/or modify
   9385 # it under the terms of the GNU General Public License as published by
   9386 # the Free Software Foundation; either version 2 of the License, or
   9387 # (at your option) any later version.
   9388 #
   9389 # This program is distributed in the hope that it will be useful, but
   9390 # WITHOUT ANY WARRANTY; without even the implied warranty of
   9391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   9392 # General Public License for more details.
   9393 #
   9394 # You should have received a copy of the GNU General Public License
   9395 # along with this program; if not, write to the Free Software
   9396 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
   9397 #
   9398 # As a special exception to the GNU General Public License, if you
   9399 # distribute this file as part of a program that contains a
   9400 # configuration script generated by Autoconf, you may include it under
   9401 # the same distribution terms that you use for the rest of that program.
   9402 
   9403 # A sed program that does not truncate output.
   9404 SED=$lt_SED
   9405 
   9406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   9407 Xsed="$SED -e s/^X//"
   9408 
   9409 # The HP-UX ksh and POSIX shell print the target directory to stdout
   9410 # if CDPATH is set.
   9411 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   9412 
   9413 # The names of the tagged configurations supported by this script.
   9414 available_tags=
   9415 
   9416 # ### BEGIN LIBTOOL CONFIG
   9417 
   9418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   9419 
   9420 # Shell to use when invoking shell scripts.
   9421 SHELL=$lt_SHELL
   9422 
   9423 # Whether or not to build shared libraries.
   9424 build_libtool_libs=$enable_shared
   9425 
   9426 # Whether or not to build static libraries.
   9427 build_old_libs=$enable_static
   9428 
   9429 # Whether or not to add -lc for building shared libraries.
   9430 build_libtool_need_lc=$archive_cmds_need_lc
   9431 
   9432 # Whether or not to disallow shared libs when runtime libs are static
   9433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   9434 
   9435 # Whether or not to optimize for fast installation.
   9436 fast_install=$enable_fast_install
   9437 
   9438 # The host system.
   9439 host_alias=$host_alias
   9440 host=$host
   9441 
   9442 # An echo program that does not interpret backslashes.
   9443 echo=$lt_echo
   9444 
   9445 # The archiver.
   9446 AR=$lt_AR
   9447 AR_FLAGS=$lt_AR_FLAGS
   9448 
   9449 # A C compiler.
   9450 LTCC=$lt_LTCC
   9451 
   9452 # A language-specific compiler.
   9453 CC=$lt_compiler
   9454 
   9455 # Is the compiler the GNU C compiler?
   9456 with_gcc=$GCC
   9457 
   9458 # An ERE matcher.
   9459 EGREP=$lt_EGREP
   9460 
   9461 # The linker used to build libraries.
   9462 LD=$lt_LD
   9463 
   9464 # Whether we need hard or soft links.
   9465 LN_S=$lt_LN_S
   9466 
   9467 # A BSD-compatible nm program.
   9468 NM=$lt_NM
   9469 
   9470 # A symbol stripping program
   9471 STRIP="$STRIP"
   9472 
   9473 # Used to examine libraries when file_magic_cmd begins "file"
   9474 MAGIC_CMD=$MAGIC_CMD
   9475 
   9476 # Used on cygwin: DLL creation program.
   9477 DLLTOOL="$DLLTOOL"
   9478 
   9479 # Used on cygwin: object dumper.
   9480 OBJDUMP="$OBJDUMP"
   9481 
   9482 # Used on cygwin: assembler.
   9483 AS="$AS"
   9484 
   9485 # The name of the directory that contains temporary libtool files.
   9486 objdir=$objdir
   9487 
   9488 # How to create reloadable object files.
   9489 reload_flag=$lt_reload_flag
   9490 reload_cmds=$lt_reload_cmds
   9491 
   9492 # How to pass a linker flag through the compiler.
   9493 wl=$lt_lt_prog_compiler_wl
   9494 
   9495 # Object file suffix (normally "o").
   9496 objext="$ac_objext"
   9497 
   9498 # Old archive suffix (normally "a").
   9499 libext="$libext"
   9500 
   9501 # Shared library suffix (normally ".so").
   9502 shrext='$shrext'
   9503 
   9504 # Executable file suffix (normally "").
   9505 exeext="$exeext"
   9506 
   9507 # Additional compiler flags for building library objects.
   9508 pic_flag=$lt_lt_prog_compiler_pic
   9509 pic_mode=$pic_mode
   9510 
   9511 # What is the maximum length of a command?
   9512 max_cmd_len=$lt_cv_sys_max_cmd_len
   9513 
   9514 # Does compiler simultaneously support -c and -o options?
   9515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   9516 
   9517 # Must we lock files when doing compilation ?
   9518 need_locks=$lt_need_locks
   9519 
   9520 # Do we need the lib prefix for modules?
   9521 need_lib_prefix=$need_lib_prefix
   9522 
   9523 # Do we need a version for libraries?
   9524 need_version=$need_version
   9525 
   9526 # Whether dlopen is supported.
   9527 dlopen_support=$enable_dlopen
   9528 
   9529 # Whether dlopen of programs is supported.
   9530 dlopen_self=$enable_dlopen_self
   9531 
   9532 # Whether dlopen of statically linked programs is supported.
   9533 dlopen_self_static=$enable_dlopen_self_static
   9534 
   9535 # Compiler flag to prevent dynamic linking.
   9536 link_static_flag=$lt_lt_prog_compiler_static
   9537 
   9538 # Compiler flag to turn off builtin functions.
   9539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   9540 
   9541 # Compiler flag to allow reflexive dlopens.
   9542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   9543 
   9544 # Compiler flag to generate shared objects directly from archives.
   9545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   9546 
   9547 # Compiler flag to generate thread-safe objects.
   9548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
   9549 
   9550 # Library versioning type.
   9551 version_type=$version_type
   9552 
   9553 # Format of library name prefix.
   9554 libname_spec=$lt_libname_spec
   9555 
   9556 # List of archive names.  First name is the real one, the rest are links.
   9557 # The last name is the one that the linker finds with -lNAME.
   9558 library_names_spec=$lt_library_names_spec
   9559 
   9560 # The coded name of the library, if different from the real name.
   9561 soname_spec=$lt_soname_spec
   9562 
   9563 # Commands used to build and install an old-style archive.
   9564 RANLIB=$lt_RANLIB
   9565 old_archive_cmds=$lt_old_archive_cmds
   9566 old_postinstall_cmds=$lt_old_postinstall_cmds
   9567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   9568 
   9569 # Create an old-style archive from a shared archive.
   9570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   9571 
   9572 # Create a temporary old-style archive to link instead of a shared archive.
   9573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   9574 
   9575 # Commands used to build and install a shared archive.
   9576 archive_cmds=$lt_archive_cmds
   9577 archive_expsym_cmds=$lt_archive_expsym_cmds
   9578 postinstall_cmds=$lt_postinstall_cmds
   9579 postuninstall_cmds=$lt_postuninstall_cmds
   9580 
   9581 # Commands used to build a loadable module (assumed same as above if empty)
   9582 module_cmds=$lt_module_cmds
   9583 module_expsym_cmds=$lt_module_expsym_cmds
   9584 
   9585 # Commands to strip libraries.
   9586 old_striplib=$lt_old_striplib
   9587 striplib=$lt_striplib
   9588 
   9589 # Dependencies to place before the objects being linked to create a
   9590 # shared library.
   9591 predep_objects=$lt_predep_objects
   9592 
   9593 # Dependencies to place after the objects being linked to create a
   9594 # shared library.
   9595 postdep_objects=$lt_postdep_objects
   9596 
   9597 # Dependencies to place before the objects being linked to create a
   9598 # shared library.
   9599 predeps=$lt_predeps
   9600 
   9601 # Dependencies to place after the objects being linked to create a
   9602 # shared library.
   9603 postdeps=$lt_postdeps
   9604 
   9605 # The library search path used internally by the compiler when linking
   9606 # a shared library.
   9607 compiler_lib_search_path=$lt_compiler_lib_search_path
   9608 
   9609 # Method to check whether dependent libraries are shared objects.
   9610 deplibs_check_method=$lt_deplibs_check_method
   9611 
   9612 # Command to use when deplibs_check_method == file_magic.
   9613 file_magic_cmd=$lt_file_magic_cmd
   9614 
   9615 # Flag that allows shared libraries with undefined symbols to be built.
   9616 allow_undefined_flag=$lt_allow_undefined_flag
   9617 
   9618 # Flag that forces no undefined symbols.
   9619 no_undefined_flag=$lt_no_undefined_flag
   9620 
   9621 # Commands used to finish a libtool library installation in a directory.
   9622 finish_cmds=$lt_finish_cmds
   9623 
   9624 # Same as above, but a single script fragment to be evaled but not shown.
   9625 finish_eval=$lt_finish_eval
   9626 
   9627 # Take the output of nm and produce a listing of raw symbols and C names.
   9628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   9629 
   9630 # Transform the output of nm in a proper C declaration
   9631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   9632 
   9633 # Transform the output of nm in a C name address pair
   9634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   9635 
   9636 # This is the shared library runtime path variable.
   9637 runpath_var=$runpath_var
   9638 
   9639 # This is the shared library path variable.
   9640 shlibpath_var=$shlibpath_var
   9641 
   9642 # Is shlibpath searched before the hard-coded library search path?
   9643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   9644 
   9645 # How to hardcode a shared library path into an executable.
   9646 hardcode_action=$hardcode_action
   9647 
   9648 # Whether we should hardcode library paths into libraries.
   9649 hardcode_into_libs=$hardcode_into_libs
   9650 
   9651 # Flag to hardcode \$libdir into a binary during linking.
   9652 # This must work even if \$libdir does not exist.
   9653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   9654 
   9655 # If ld is used when linking, flag to hardcode \$libdir into
   9656 # a binary during linking. This must work even if \$libdir does
   9657 # not exist.
   9658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
   9659 
   9660 # Whether we need a single -rpath flag with a separated argument.
   9661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   9662 
   9663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   9664 # resulting binary.
   9665 hardcode_direct=$hardcode_direct
   9666 
   9667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   9668 # resulting binary.
   9669 hardcode_minus_L=$hardcode_minus_L
   9670 
   9671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   9672 # the resulting binary.
   9673 hardcode_shlibpath_var=$hardcode_shlibpath_var
   9674 
   9675 # Set to yes if building a shared library automatically hardcodes DIR into the library
   9676 # and all subsequent libraries and executables linked against it.
   9677 hardcode_automatic=$hardcode_automatic
   9678 
   9679 # Variables whose values should be saved in libtool wrapper scripts and
   9680 # restored at relink time.
   9681 variables_saved_for_relink="$variables_saved_for_relink"
   9682 
   9683 # Whether libtool must link a program against all its dependency libraries.
   9684 link_all_deplibs=$link_all_deplibs
   9685 
   9686 # Compile-time system search path for libraries
   9687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   9688 
   9689 # Run-time system search path for libraries
   9690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   9691 
   9692 # Fix the shell variable \$srcfile for the compiler.
   9693 fix_srcfile_path="$fix_srcfile_path"
   9694 
   9695 # Set to yes if exported symbols are required.
   9696 always_export_symbols=$always_export_symbols
   9697 
   9698 # The commands to list exported symbols.
   9699 export_symbols_cmds=$lt_export_symbols_cmds
   9700 
   9701 # The commands to extract the exported symbol list from a shared archive.
   9702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   9703 
   9704 # Symbols that should not be listed in the preloaded symbols.
   9705 exclude_expsyms=$lt_exclude_expsyms
   9706 
   9707 # Symbols that must always be exported.
   9708 include_expsyms=$lt_include_expsyms
   9709 
   9710 # ### END LIBTOOL CONFIG
   9711 
   9712 __EOF__
   9713 
   9714 
   9715   case $host_os in
   9716   aix3*)
   9717     cat <<\EOF >> "$cfgfile"
   9718 
   9719 # AIX sometimes has problems with the GCC collect2 program.  For some
   9720 # reason, if we set the COLLECT_NAMES environment variable, the problems
   9721 # vanish in a puff of smoke.
   9722 if test "X${COLLECT_NAMES+set}" != Xset; then
   9723   COLLECT_NAMES=
   9724   export COLLECT_NAMES
   9725 fi
   9726 EOF
   9727     ;;
   9728   esac
   9729 
   9730   # We use sed instead of cat because bash on DJGPP gets confused if
   9731   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   9732   # text mode, it properly converts lines to CR/LF.  This bash problem
   9733   # is reportedly fixed, but why not run on old versions too?
   9734   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
   9735 
   9736   mv -f "$cfgfile" "$ofile" || \
   9737     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   9738   chmod +x "$ofile"
   9739 
   9740 else
   9741   # If there is no Makefile yet, we rely on a make rule to execute
   9742   # `config.status --recheck' to rerun these tests and create the
   9743   # libtool script then.
   9744   test -f Makefile && make "$ltmain"
   9745 fi
   9746 
   9747 
   9748 ac_ext=c
   9749 ac_cpp='$CPP $CPPFLAGS'
   9750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9753 
   9754 CC="$lt_save_CC"
   9755 
   9756 
   9757 # Check whether --with-tags was given.
   9758 if test "${with_tags+set}" = set; then
   9759   withval=$with_tags; tagnames="$withval"
   9760 fi
   9761 
   9762 
   9763 if test -f "$ltmain" && test -n "$tagnames"; then
   9764   if test ! -f "${ofile}"; then
   9765     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
   9766 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
   9767   fi
   9768 
   9769   if test -z "$LTCC"; then
   9770     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
   9771     if test -z "$LTCC"; then
   9772       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
   9773 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
   9774     else
   9775       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
   9776 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
   9777     fi
   9778   fi
   9779 
   9780   # Extract list of available tagged configurations in $ofile.
   9781   # Note that this assumes the entire list is on one line.
   9782   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
   9783 
   9784   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   9785   for tagname in $tagnames; do
   9786     IFS="$lt_save_ifs"
   9787     # Check whether tagname contains only valid characters
   9788     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
   9789     "") ;;
   9790     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
   9791 echo "$as_me: error: invalid tag name: $tagname" >&2;}
   9792    { (exit 1); exit 1; }; }
   9793 	;;
   9794     esac
   9795 
   9796     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
   9797     then
   9798       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
   9799 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
   9800    { (exit 1); exit 1; }; }
   9801     fi
   9802 
   9803     # Update the list of available tags.
   9804     if test -n "$tagname"; then
   9805       echo appending configuration tag \"$tagname\" to $ofile
   9806 
   9807       case $tagname in
   9808       CXX)
   9809 	if test -n "$CXX" && test "X$CXX" != "Xno"; then
   9810 	  ac_ext=cpp
   9811 ac_cpp='$CXXCPP $CPPFLAGS'
   9812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9815 
   9816 
   9817 
   9818 
   9819 archive_cmds_need_lc_CXX=no
   9820 allow_undefined_flag_CXX=
   9821 always_export_symbols_CXX=no
   9822 archive_expsym_cmds_CXX=
   9823 export_dynamic_flag_spec_CXX=
   9824 hardcode_direct_CXX=no
   9825 hardcode_libdir_flag_spec_CXX=
   9826 hardcode_libdir_flag_spec_ld_CXX=
   9827 hardcode_libdir_separator_CXX=
   9828 hardcode_minus_L_CXX=no
   9829 hardcode_automatic_CXX=no
   9830 module_cmds_CXX=
   9831 module_expsym_cmds_CXX=
   9832 link_all_deplibs_CXX=unknown
   9833 old_archive_cmds_CXX=$old_archive_cmds
   9834 no_undefined_flag_CXX=
   9835 whole_archive_flag_spec_CXX=
   9836 enable_shared_with_static_runtimes_CXX=no
   9837 
   9838 # Dependencies to place before and after the object being linked:
   9839 predep_objects_CXX=
   9840 postdep_objects_CXX=
   9841 predeps_CXX=
   9842 postdeps_CXX=
   9843 compiler_lib_search_path_CXX=
   9844 
   9845 # Source file extension for C++ test sources.
   9846 ac_ext=cc
   9847 
   9848 # Object file extension for compiled C++ test sources.
   9849 objext=o
   9850 objext_CXX=$objext
   9851 
   9852 # Code to be used in simple compile tests
   9853 lt_simple_compile_test_code="int some_variable = 0;\n"
   9854 
   9855 # Code to be used in simple link tests
   9856 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
   9857 
   9858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   9859 
   9860 # If no C compiler was specified, use CC.
   9861 LTCC=${LTCC-"$CC"}
   9862 
   9863 # Allow CC to be a program name with arguments.
   9864 compiler=$CC
   9865 
   9866 
   9867 # Allow CC to be a program name with arguments.
   9868 lt_save_CC=$CC
   9869 lt_save_LD=$LD
   9870 lt_save_GCC=$GCC
   9871 GCC=$GXX
   9872 lt_save_with_gnu_ld=$with_gnu_ld
   9873 lt_save_path_LD=$lt_cv_path_LD
   9874 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
   9875   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
   9876 else
   9877   unset lt_cv_prog_gnu_ld
   9878 fi
   9879 if test -n "${lt_cv_path_LDCXX+set}"; then
   9880   lt_cv_path_LD=$lt_cv_path_LDCXX
   9881 else
   9882   unset lt_cv_path_LD
   9883 fi
   9884 test -z "${LDCXX+set}" || LD=$LDCXX
   9885 CC=${CXX-"c++"}
   9886 compiler=$CC
   9887 compiler_CXX=$CC
   9888 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   9889 
   9890 # We don't want -fno-exception wen compiling C++ code, so set the
   9891 # no_builtin_flag separately
   9892 if test "$GXX" = yes; then
   9893   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
   9894 else
   9895   lt_prog_compiler_no_builtin_flag_CXX=
   9896 fi
   9897 
   9898 if test "$GXX" = yes; then
   9899   # Set up default GNU C++ configuration
   9900 
   9901 
   9902 # Check whether --with-gnu-ld was given.
   9903 if test "${with_gnu_ld+set}" = set; then
   9904   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   9905 else
   9906   with_gnu_ld=no
   9907 fi
   9908 
   9909 ac_prog=ld
   9910 if test "$GCC" = yes; then
   9911   # Check if gcc -print-prog-name=ld gives a path.
   9912   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
   9913 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
   9914   case $host in
   9915   *-*-mingw*)
   9916     # gcc leaves a trailing carriage return which upsets mingw
   9917     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   9918   *)
   9919     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   9920   esac
   9921   case $ac_prog in
   9922     # Accept absolute paths.
   9923     [\\/]* | ?:[\\/]*)
   9924       re_direlt='/[^/][^/]*/\.\./'
   9925       # Canonicalize the pathname of ld
   9926       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
   9927       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   9928 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
   9929       done
   9930       test -z "$LD" && LD="$ac_prog"
   9931       ;;
   9932   "")
   9933     # If it fails, then pretend we aren't using GCC.
   9934     ac_prog=ld
   9935     ;;
   9936   *)
   9937     # If it is relative, then search for the first ld in PATH.
   9938     with_gnu_ld=unknown
   9939     ;;
   9940   esac
   9941 elif test "$with_gnu_ld" = yes; then
   9942   { echo "$as_me:$LINENO: checking for GNU ld" >&5
   9943 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
   9944 else
   9945   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   9946 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
   9947 fi
   9948 if test "${lt_cv_path_LD+set}" = set; then
   9949   echo $ECHO_N "(cached) $ECHO_C" >&6
   9950 else
   9951   if test -z "$LD"; then
   9952   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   9953   for ac_dir in $PATH; do
   9954     IFS="$lt_save_ifs"
   9955     test -z "$ac_dir" && ac_dir=.
   9956     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   9957       lt_cv_path_LD="$ac_dir/$ac_prog"
   9958       # Check to see if the program is GNU ld.  I'd rather use --version,
   9959       # but apparently some GNU ld's only accept -v.
   9960       # Break only if it was the GNU/non-GNU ld that we prefer.
   9961       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   9962       *GNU* | *'with BFD'*)
   9963 	test "$with_gnu_ld" != no && break
   9964 	;;
   9965       *)
   9966 	test "$with_gnu_ld" != yes && break
   9967 	;;
   9968       esac
   9969     fi
   9970   done
   9971   IFS="$lt_save_ifs"
   9972 else
   9973   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   9974 fi
   9975 fi
   9976 
   9977 LD="$lt_cv_path_LD"
   9978 if test -n "$LD"; then
   9979   { echo "$as_me:$LINENO: result: $LD" >&5
   9980 echo "${ECHO_T}$LD" >&6; }
   9981 else
   9982   { echo "$as_me:$LINENO: result: no" >&5
   9983 echo "${ECHO_T}no" >&6; }
   9984 fi
   9985 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   9986 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   9987    { (exit 1); exit 1; }; }
   9988 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   9989 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
   9990 if test "${lt_cv_prog_gnu_ld+set}" = set; then
   9991   echo $ECHO_N "(cached) $ECHO_C" >&6
   9992 else
   9993   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   9994 case `$LD -v 2>&1 </dev/null` in
   9995 *GNU* | *'with BFD'*)
   9996   lt_cv_prog_gnu_ld=yes
   9997   ;;
   9998 *)
   9999   lt_cv_prog_gnu_ld=no
   10000   ;;
   10001 esac
   10002 fi
   10003 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
   10004 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
   10005 with_gnu_ld=$lt_cv_prog_gnu_ld
   10006 
   10007 
   10008 
   10009   # Check if GNU C++ uses GNU ld as the underlying linker, since the
   10010   # archiving commands below assume that GNU ld is being used.
   10011   if test "$with_gnu_ld" = yes; then
   10012     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10013     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10014 
   10015     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
   10016     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   10017 
   10018     # If archive_cmds runs LD, not CC, wlarc should be empty
   10019     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
   10020     #     investigate it a little bit more. (MM)
   10021     wlarc='${wl}'
   10022 
   10023     # ancient GNU ld didn't support --whole-archive et. al.
   10024     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
   10025 	grep 'no-whole-archive' > /dev/null; then
   10026       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   10027     else
   10028       whole_archive_flag_spec_CXX=
   10029     fi
   10030   else
   10031     with_gnu_ld=no
   10032     wlarc=
   10033 
   10034     # A generic and very simple default shared library creation
   10035     # command for GNU C++ for the case where it uses the native
   10036     # linker, instead of GNU ld.  If possible, this setting should
   10037     # overridden to take advantage of the native linker features on
   10038     # the platform it is being used on.
   10039     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   10040   fi
   10041 
   10042   # Commands to make compiler produce verbose output that lists
   10043   # what "hidden" libraries, object files and flags are used when
   10044   # linking a shared library.
   10045   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
   10046 
   10047 else
   10048   GXX=no
   10049   with_gnu_ld=no
   10050   wlarc=
   10051 fi
   10052 
   10053 # PORTME: fill in a description of your system's C++ link characteristics
   10054 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   10055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   10056 ld_shlibs_CXX=yes
   10057 case $host_os in
   10058   aix3*)
   10059     # FIXME: insert proper C++ library support
   10060     ld_shlibs_CXX=no
   10061     ;;
   10062   aix4* | aix5*)
   10063     if test "$host_cpu" = ia64; then
   10064       # On IA64, the linker does run time linking by default, so we don't
   10065       # have to do anything special.
   10066       aix_use_runtimelinking=no
   10067       exp_sym_flag='-Bexport'
   10068       no_entry_flag=""
   10069     else
   10070       aix_use_runtimelinking=no
   10071 
   10072       # Test if we are trying to use run time linking or normal
   10073       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
   10074       # need to do runtime linking.
   10075       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   10076 	for ld_flag in $LDFLAGS; do
   10077 	  case $ld_flag in
   10078 	  *-brtl*)
   10079 	    aix_use_runtimelinking=yes
   10080 	    break
   10081 	    ;;
   10082 	  esac
   10083 	done
   10084       esac
   10085 
   10086       exp_sym_flag='-bexport'
   10087       no_entry_flag='-bnoentry'
   10088     fi
   10089 
   10090     # When large executables or shared objects are built, AIX ld can
   10091     # have problems creating the table of contents.  If linking a library
   10092     # or program results in "error TOC overflow" add -mminimal-toc to
   10093     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   10094     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   10095 
   10096     archive_cmds_CXX=''
   10097     hardcode_direct_CXX=yes
   10098     hardcode_libdir_separator_CXX=':'
   10099     link_all_deplibs_CXX=yes
   10100 
   10101     if test "$GXX" = yes; then
   10102       case $host_os in aix4.012|aix4.012.*)
   10103       # We only want to do this on AIX 4.2 and lower, the check
   10104       # below for broken collect2 doesn't work under 4.3+
   10105 	collect2name=`${CC} -print-prog-name=collect2`
   10106 	if test -f "$collect2name" && \
   10107 	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   10108 	then
   10109 	  # We have reworked collect2
   10110 	  hardcode_direct_CXX=yes
   10111 	else
   10112 	  # We have old collect2
   10113 	  hardcode_direct_CXX=unsupported
   10114 	  # It fails to find uninstalled libraries when the uninstalled
   10115 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   10116 	  # to unsupported forces relinking
   10117 	  hardcode_minus_L_CXX=yes
   10118 	  hardcode_libdir_flag_spec_CXX='-L$libdir'
   10119 	  hardcode_libdir_separator_CXX=
   10120 	fi
   10121       esac
   10122       shared_flag='-shared'
   10123     else
   10124       # not using gcc
   10125       if test "$host_cpu" = ia64; then
   10126 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   10127 	# chokes on -Wl,-G. The following line is correct:
   10128 	shared_flag='-G'
   10129       else
   10130 	if test "$aix_use_runtimelinking" = yes; then
   10131 	  shared_flag='${wl}-G'
   10132 	else
   10133 	  shared_flag='${wl}-bM:SRE'
   10134 	fi
   10135       fi
   10136     fi
   10137 
   10138     # It seems that -bexpall does not export symbols beginning with
   10139     # underscore (_), so it is better to generate a list of symbols to export.
   10140     always_export_symbols_CXX=yes
   10141     if test "$aix_use_runtimelinking" = yes; then
   10142       # Warning - without using the other runtime loading flags (-brtl),
   10143       # -berok will link without error, but may produce a broken library.
   10144       allow_undefined_flag_CXX='-berok'
   10145       # Determine the default libpath from the value encoded in an empty executable.
   10146       cat >conftest.$ac_ext <<_ACEOF
   10147 /* confdefs.h.  */
   10148 _ACEOF
   10149 cat confdefs.h >>conftest.$ac_ext
   10150 cat >>conftest.$ac_ext <<_ACEOF
   10151 /* end confdefs.h.  */
   10152 
   10153 int
   10154 main ()
   10155 {
   10156 
   10157   ;
   10158   return 0;
   10159 }
   10160 _ACEOF
   10161 rm -f conftest.$ac_objext conftest$ac_exeext
   10162 if { (ac_try="$ac_link"
   10163 case "(($ac_try" in
   10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10165   *) ac_try_echo=$ac_try;;
   10166 esac
   10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10168   (eval "$ac_link") 2>conftest.er1
   10169   ac_status=$?
   10170   grep -v '^ *+' conftest.er1 >conftest.err
   10171   rm -f conftest.er1
   10172   cat conftest.err >&5
   10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10174   (exit $ac_status); } && {
   10175 	 test -z "$ac_cxx_werror_flag" ||
   10176 	 test ! -s conftest.err
   10177        } && test -s conftest$ac_exeext &&
   10178        $as_test_x conftest$ac_exeext; then
   10179 
   10180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10181 }'`
   10182 # Check for a 64-bit object if we didn't find anything.
   10183 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10184 }'`; fi
   10185 else
   10186   echo "$as_me: failed program was:" >&5
   10187 sed 's/^/| /' conftest.$ac_ext >&5
   10188 
   10189 
   10190 fi
   10191 
   10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10193       conftest$ac_exeext conftest.$ac_ext
   10194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   10195 
   10196       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   10197 
   10198       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   10199      else
   10200       if test "$host_cpu" = ia64; then
   10201 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
   10202 	allow_undefined_flag_CXX="-z nodefs"
   10203 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   10204       else
   10205 	# Determine the default libpath from the value encoded in an empty executable.
   10206 	cat >conftest.$ac_ext <<_ACEOF
   10207 /* confdefs.h.  */
   10208 _ACEOF
   10209 cat confdefs.h >>conftest.$ac_ext
   10210 cat >>conftest.$ac_ext <<_ACEOF
   10211 /* end confdefs.h.  */
   10212 
   10213 int
   10214 main ()
   10215 {
   10216 
   10217   ;
   10218   return 0;
   10219 }
   10220 _ACEOF
   10221 rm -f conftest.$ac_objext conftest$ac_exeext
   10222 if { (ac_try="$ac_link"
   10223 case "(($ac_try" in
   10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10225   *) ac_try_echo=$ac_try;;
   10226 esac
   10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10228   (eval "$ac_link") 2>conftest.er1
   10229   ac_status=$?
   10230   grep -v '^ *+' conftest.er1 >conftest.err
   10231   rm -f conftest.er1
   10232   cat conftest.err >&5
   10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10234   (exit $ac_status); } && {
   10235 	 test -z "$ac_cxx_werror_flag" ||
   10236 	 test ! -s conftest.err
   10237        } && test -s conftest$ac_exeext &&
   10238        $as_test_x conftest$ac_exeext; then
   10239 
   10240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10241 }'`
   10242 # Check for a 64-bit object if we didn't find anything.
   10243 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10244 }'`; fi
   10245 else
   10246   echo "$as_me: failed program was:" >&5
   10247 sed 's/^/| /' conftest.$ac_ext >&5
   10248 
   10249 
   10250 fi
   10251 
   10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10253       conftest$ac_exeext conftest.$ac_ext
   10254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   10255 
   10256 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   10257 	# Warning - without using the other run time loading flags,
   10258 	# -berok will link without error, but may produce a broken library.
   10259 	no_undefined_flag_CXX=' ${wl}-bernotok'
   10260 	allow_undefined_flag_CXX=' ${wl}-berok'
   10261 	# -bexpall does not export symbols beginning with underscore (_)
   10262 	always_export_symbols_CXX=yes
   10263 	# Exported symbols can be pulled into shared objects from archives
   10264 	whole_archive_flag_spec_CXX=' '
   10265 	archive_cmds_need_lc_CXX=yes
   10266 	# This is similar to how AIX traditionally builds it's shared libraries.
   10267 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   10268       fi
   10269     fi
   10270     ;;
   10271   chorus*)
   10272     case $cc_basename in
   10273       *)
   10274 	# FIXME: insert proper C++ library support
   10275 	ld_shlibs_CXX=no
   10276 	;;
   10277     esac
   10278     ;;
   10279 
   10280   cygwin* | mingw* | pw32*)
   10281     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
   10282     # as there is no search path for DLLs.
   10283     hardcode_libdir_flag_spec_CXX='-L$libdir'
   10284     allow_undefined_flag_CXX=unsupported
   10285     always_export_symbols_CXX=no
   10286     enable_shared_with_static_runtimes_CXX=yes
   10287 
   10288     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   10289       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   10290       # If the export-symbols file already is a .def file (1st line
   10291       # is EXPORTS), use it as is; otherwise, prepend...
   10292       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   10293 	cp $export_symbols $output_objdir/$soname.def;
   10294       else
   10295 	echo EXPORTS > $output_objdir/$soname.def;
   10296 	cat $export_symbols >> $output_objdir/$soname.def;
   10297       fi~
   10298       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   10299     else
   10300       ld_shlibs_CXX=no
   10301     fi
   10302   ;;
   10303 
   10304   darwin* | rhapsody*)
   10305   if test "$GXX" = yes; then
   10306     archive_cmds_need_lc_CXX=no
   10307     case "$host_os" in
   10308     rhapsody* | darwin1.[012])
   10309       allow_undefined_flag_CXX='-undefined suppress'
   10310       ;;
   10311     *) # Darwin 1.3 on
   10312       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   10313       	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
   10314       else
   10315         case ${MACOSX_DEPLOYMENT_TARGET} in
   10316           10.[012])
   10317             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
   10318             ;;
   10319           10.*)
   10320             allow_undefined_flag_CXX='-undefined dynamic_lookup'
   10321             ;;
   10322         esac
   10323       fi
   10324       ;;
   10325     esac
   10326     lt_int_apple_cc_single_mod=no
   10327     output_verbose_link_cmd='echo'
   10328     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   10329       lt_int_apple_cc_single_mod=yes
   10330     fi
   10331     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   10332       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   10333     else
   10334       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   10335     fi
   10336     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   10337 
   10338     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   10339     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   10340       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   10341     else
   10342       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   10343     fi
   10344     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   10345     hardcode_direct_CXX=no
   10346     hardcode_automatic_CXX=yes
   10347     hardcode_shlibpath_var_CXX=unsupported
   10348     whole_archive_flag_spec_CXX='-all_load $convenience'
   10349     link_all_deplibs_CXX=yes
   10350   else
   10351     ld_shlibs_CXX=no
   10352   fi
   10353     ;;
   10354 
   10355   dgux*)
   10356     case $cc_basename in
   10357       ec++)
   10358 	# FIXME: insert proper C++ library support
   10359 	ld_shlibs_CXX=no
   10360 	;;
   10361       ghcx)
   10362 	# Green Hills C++ Compiler
   10363 	# FIXME: insert proper C++ library support
   10364 	ld_shlibs_CXX=no
   10365 	;;
   10366       *)
   10367 	# FIXME: insert proper C++ library support
   10368 	ld_shlibs_CXX=no
   10369 	;;
   10370     esac
   10371     ;;
   10372   freebsd12*)
   10373     # C++ shared libraries reported to be fairly broken before switch to ELF
   10374     ld_shlibs_CXX=no
   10375     ;;
   10376   freebsd-elf*)
   10377     archive_cmds_need_lc_CXX=no
   10378     ;;
   10379   freebsd* | kfreebsd*-gnu)
   10380     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
   10381     # conventions
   10382     ld_shlibs_CXX=yes
   10383     ;;
   10384   gnu*)
   10385     ;;
   10386   hpux9*)
   10387     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   10388     hardcode_libdir_separator_CXX=:
   10389     export_dynamic_flag_spec_CXX='${wl}-E'
   10390     hardcode_direct_CXX=yes
   10391     hardcode_minus_L_CXX=yes # Not in the search PATH,
   10392 				# but as the default
   10393 				# location of the library.
   10394 
   10395     case $cc_basename in
   10396     CC)
   10397       # FIXME: insert proper C++ library support
   10398       ld_shlibs_CXX=no
   10399       ;;
   10400     aCC)
   10401       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   10402       # Commands to make compiler produce verbose output that lists
   10403       # what "hidden" libraries, object files and flags are used when
   10404       # linking a shared library.
   10405       #
   10406       # There doesn't appear to be a way to prevent this compiler from
   10407       # explicitly linking system object files so we need to strip them
   10408       # from the output so that they don't get included in the library
   10409       # dependencies.
   10410       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10411       ;;
   10412     *)
   10413       if test "$GXX" = yes; then
   10414         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   10415       else
   10416         # FIXME: insert proper C++ library support
   10417         ld_shlibs_CXX=no
   10418       fi
   10419       ;;
   10420     esac
   10421     ;;
   10422   hpux10*|hpux11*)
   10423     if test $with_gnu_ld = no; then
   10424       case "$host_cpu" in
   10425       hppa*64*)
   10426 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   10427 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
   10428 	hardcode_libdir_separator_CXX=:
   10429         ;;
   10430       ia64*)
   10431 	hardcode_libdir_flag_spec_CXX='-L$libdir'
   10432         ;;
   10433       *)
   10434 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   10435 	hardcode_libdir_separator_CXX=:
   10436 	export_dynamic_flag_spec_CXX='${wl}-E'
   10437         ;;
   10438       esac
   10439     fi
   10440     case "$host_cpu" in
   10441     hppa*64*)
   10442       hardcode_direct_CXX=no
   10443       hardcode_shlibpath_var_CXX=no
   10444       ;;
   10445     ia64*)
   10446       hardcode_direct_CXX=no
   10447       hardcode_shlibpath_var_CXX=no
   10448       hardcode_minus_L_CXX=yes # Not in the search PATH,
   10449 					      # but as the default
   10450 					      # location of the library.
   10451       ;;
   10452     *)
   10453       hardcode_direct_CXX=yes
   10454       hardcode_minus_L_CXX=yes # Not in the search PATH,
   10455 					      # but as the default
   10456 					      # location of the library.
   10457       ;;
   10458     esac
   10459 
   10460     case $cc_basename in
   10461       CC)
   10462 	# FIXME: insert proper C++ library support
   10463 	ld_shlibs_CXX=no
   10464 	;;
   10465       aCC)
   10466 	case "$host_cpu" in
   10467 	hppa*64*|ia64*)
   10468 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
   10469 	  ;;
   10470 	*)
   10471 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   10472 	  ;;
   10473 	esac
   10474 	# Commands to make compiler produce verbose output that lists
   10475 	# what "hidden" libraries, object files and flags are used when
   10476 	# linking a shared library.
   10477 	#
   10478 	# There doesn't appear to be a way to prevent this compiler from
   10479 	# explicitly linking system object files so we need to strip them
   10480 	# from the output so that they don't get included in the library
   10481 	# dependencies.
   10482 	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10483 	;;
   10484       *)
   10485 	if test "$GXX" = yes; then
   10486 	  if test $with_gnu_ld = no; then
   10487 	    case "$host_cpu" in
   10488 	    ia64*|hppa*64*)
   10489 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
   10490 	      ;;
   10491 	    *)
   10492 	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   10493 	      ;;
   10494 	    esac
   10495 	  fi
   10496 	else
   10497 	  # FIXME: insert proper C++ library support
   10498 	  ld_shlibs_CXX=no
   10499 	fi
   10500 	;;
   10501     esac
   10502     ;;
   10503   irix5* | irix6*)
   10504     case $cc_basename in
   10505       CC)
   10506 	# SGI C++
   10507 	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
   10508 
   10509 	# Archives containing C++ object files must be created using
   10510 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
   10511 	# necessary to make sure instantiated templates are included
   10512 	# in the archive.
   10513 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
   10514 	;;
   10515       *)
   10516 	if test "$GXX" = yes; then
   10517 	  if test "$with_gnu_ld" = no; then
   10518 	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
   10519 	  else
   10520 	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
   10521 	  fi
   10522 	fi
   10523 	link_all_deplibs_CXX=yes
   10524 	;;
   10525     esac
   10526     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10527     hardcode_libdir_separator_CXX=:
   10528     ;;
   10529   linux*)
   10530     case $cc_basename in
   10531       KCC)
   10532 	# Kuck and Associates, Inc. (KAI) C++ Compiler
   10533 
   10534 	# KCC will only create a shared library if the output file
   10535 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
   10536 	# to its proper name (with version) after linking.
   10537 	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   10538 	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
   10539 	# Commands to make compiler produce verbose output that lists
   10540 	# what "hidden" libraries, object files and flags are used when
   10541 	# linking a shared library.
   10542 	#
   10543 	# There doesn't appear to be a way to prevent this compiler from
   10544 	# explicitly linking system object files so we need to strip them
   10545 	# from the output so that they don't get included in the library
   10546 	# dependencies.
   10547 	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10548 
   10549 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
   10550 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   10551 
   10552 	# Archives containing C++ object files must be created using
   10553 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
   10554 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
   10555 	;;
   10556       icpc)
   10557 	# Intel C++
   10558 	with_gnu_ld=yes
   10559 	archive_cmds_need_lc_CXX=no
   10560 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10561 	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10562 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   10563 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   10564 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   10565 	;;
   10566       cxx)
   10567 	# Compaq C++
   10568 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10569 	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
   10570 
   10571 	runpath_var=LD_RUN_PATH
   10572 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   10573 	hardcode_libdir_separator_CXX=:
   10574 
   10575 	# Commands to make compiler produce verbose output that lists
   10576 	# what "hidden" libraries, object files and flags are used when
   10577 	# linking a shared library.
   10578 	#
   10579 	# There doesn't appear to be a way to prevent this compiler from
   10580 	# explicitly linking system object files so we need to strip them
   10581 	# from the output so that they don't get included in the library
   10582 	# dependencies.
   10583 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10584 	;;
   10585     esac
   10586     ;;
   10587   lynxos*)
   10588     # FIXME: insert proper C++ library support
   10589     ld_shlibs_CXX=no
   10590     ;;
   10591   m88k*)
   10592     # FIXME: insert proper C++ library support
   10593     ld_shlibs_CXX=no
   10594     ;;
   10595   mvs*)
   10596     case $cc_basename in
   10597       cxx)
   10598 	# FIXME: insert proper C++ library support
   10599 	ld_shlibs_CXX=no
   10600 	;;
   10601       *)
   10602 	# FIXME: insert proper C++ library support
   10603 	ld_shlibs_CXX=no
   10604 	;;
   10605     esac
   10606     ;;
   10607   netbsd*)
   10608     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   10609       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
   10610       wlarc=
   10611       hardcode_libdir_flag_spec_CXX='-R$libdir'
   10612       hardcode_direct_CXX=yes
   10613       hardcode_shlibpath_var_CXX=no
   10614     fi
   10615     # Workaround some broken pre-1.5 toolchains
   10616     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
   10617     ;;
   10618   osf3*)
   10619     case $cc_basename in
   10620       KCC)
   10621 	# Kuck and Associates, Inc. (KAI) C++ Compiler
   10622 
   10623 	# KCC will only create a shared library if the output file
   10624 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
   10625 	# to its proper name (with version) after linking.
   10626 	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   10627 
   10628 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   10629 	hardcode_libdir_separator_CXX=:
   10630 
   10631 	# Archives containing C++ object files must be created using
   10632 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
   10633 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
   10634 
   10635 	;;
   10636       RCC)
   10637 	# Rational C++ 2.4.1
   10638 	# FIXME: insert proper C++ library support
   10639 	ld_shlibs_CXX=no
   10640 	;;
   10641       cxx)
   10642 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   10643 	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
   10644 
   10645 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10646 	hardcode_libdir_separator_CXX=:
   10647 
   10648 	# Commands to make compiler produce verbose output that lists
   10649 	# what "hidden" libraries, object files and flags are used when
   10650 	# linking a shared library.
   10651 	#
   10652 	# There doesn't appear to be a way to prevent this compiler from
   10653 	# explicitly linking system object files so we need to strip them
   10654 	# from the output so that they don't get included in the library
   10655 	# dependencies.
   10656 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10657 	;;
   10658       *)
   10659 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   10660 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   10661 	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
   10662 
   10663 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10664 	  hardcode_libdir_separator_CXX=:
   10665 
   10666 	  # Commands to make compiler produce verbose output that lists
   10667 	  # what "hidden" libraries, object files and flags are used when
   10668 	  # linking a shared library.
   10669 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
   10670 
   10671 	else
   10672 	  # FIXME: insert proper C++ library support
   10673 	  ld_shlibs_CXX=no
   10674 	fi
   10675 	;;
   10676     esac
   10677     ;;
   10678   osf4* | osf5*)
   10679     case $cc_basename in
   10680       KCC)
   10681 	# Kuck and Associates, Inc. (KAI) C++ Compiler
   10682 
   10683 	# KCC will only create a shared library if the output file
   10684 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
   10685 	# to its proper name (with version) after linking.
   10686 	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   10687 
   10688 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   10689 	hardcode_libdir_separator_CXX=:
   10690 
   10691 	# Archives containing C++ object files must be created using
   10692 	# the KAI C++ compiler.
   10693 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
   10694 	;;
   10695       RCC)
   10696 	# Rational C++ 2.4.1
   10697 	# FIXME: insert proper C++ library support
   10698 	ld_shlibs_CXX=no
   10699 	;;
   10700       cxx)
   10701 	allow_undefined_flag_CXX=' -expect_unresolved \*'
   10702 	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
   10703 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
   10704 	  echo "-hidden">> $lib.exp~
   10705 	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
   10706 	  $rm $lib.exp'
   10707 
   10708 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   10709 	hardcode_libdir_separator_CXX=:
   10710 
   10711 	# Commands to make compiler produce verbose output that lists
   10712 	# what "hidden" libraries, object files and flags are used when
   10713 	# linking a shared library.
   10714 	#
   10715 	# There doesn't appear to be a way to prevent this compiler from
   10716 	# explicitly linking system object files so we need to strip them
   10717 	# from the output so that they don't get included in the library
   10718 	# dependencies.
   10719 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10720 	;;
   10721       *)
   10722 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   10723 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   10724 	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
   10725 
   10726 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10727 	  hardcode_libdir_separator_CXX=:
   10728 
   10729 	  # Commands to make compiler produce verbose output that lists
   10730 	  # what "hidden" libraries, object files and flags are used when
   10731 	  # linking a shared library.
   10732 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
   10733 
   10734 	else
   10735 	  # FIXME: insert proper C++ library support
   10736 	  ld_shlibs_CXX=no
   10737 	fi
   10738 	;;
   10739     esac
   10740     ;;
   10741   psos*)
   10742     # FIXME: insert proper C++ library support
   10743     ld_shlibs_CXX=no
   10744     ;;
   10745   sco*)
   10746     archive_cmds_need_lc_CXX=no
   10747     case $cc_basename in
   10748       CC)
   10749 	# FIXME: insert proper C++ library support
   10750 	ld_shlibs_CXX=no
   10751 	;;
   10752       *)
   10753 	# FIXME: insert proper C++ library support
   10754 	ld_shlibs_CXX=no
   10755 	;;
   10756     esac
   10757     ;;
   10758   sunos4*)
   10759     case $cc_basename in
   10760       CC)
   10761 	# Sun C++ 4.x
   10762 	# FIXME: insert proper C++ library support
   10763 	ld_shlibs_CXX=no
   10764 	;;
   10765       lcc)
   10766 	# Lucid
   10767 	# FIXME: insert proper C++ library support
   10768 	ld_shlibs_CXX=no
   10769 	;;
   10770       *)
   10771 	# FIXME: insert proper C++ library support
   10772 	ld_shlibs_CXX=no
   10773 	;;
   10774     esac
   10775     ;;
   10776   solaris*)
   10777     case $cc_basename in
   10778       CC)
   10779 	# Sun C++ 4.2, 5.x and Centerline C++
   10780 	no_undefined_flag_CXX=' -zdefs'
   10781 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   10782 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   10783 	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
   10784 
   10785 	hardcode_libdir_flag_spec_CXX='-R$libdir'
   10786 	hardcode_shlibpath_var_CXX=no
   10787 	case $host_os in
   10788 	  solaris2.0-5 | solaris2.0-5.*) ;;
   10789 	  *)
   10790 	    # The C++ compiler is used as linker so we must use $wl
   10791 	    # flag to pass the commands to the underlying system
   10792 	    # linker.
   10793 	    # Supported since Solaris 2.6 (maybe 2.5.1?)
   10794 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   10795 	    ;;
   10796 	esac
   10797 	link_all_deplibs_CXX=yes
   10798 
   10799 	# Commands to make compiler produce verbose output that lists
   10800 	# what "hidden" libraries, object files and flags are used when
   10801 	# linking a shared library.
   10802 	#
   10803 	# There doesn't appear to be a way to prevent this compiler from
   10804 	# explicitly linking system object files so we need to strip them
   10805 	# from the output so that they don't get included in the library
   10806 	# dependencies.
   10807 	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10808 
   10809 	# Archives containing C++ object files must be created using
   10810 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
   10811 	# necessary to make sure instantiated templates are included
   10812 	# in the archive.
   10813 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
   10814 	;;
   10815       gcx)
   10816 	# Green Hills C++ Compiler
   10817 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   10818 
   10819 	# The C++ compiler must be used to create the archive.
   10820 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
   10821 	;;
   10822       *)
   10823 	# GNU C++ compiler with Solaris linker
   10824 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   10825 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
   10826 	  if $CC --version | grep -v '^2\.7' > /dev/null; then
   10827 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   10828 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   10829 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
   10830 
   10831 	    # Commands to make compiler produce verbose output that lists
   10832 	    # what "hidden" libraries, object files and flags are used when
   10833 	    # linking a shared library.
   10834 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
   10835 	  else
   10836 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
   10837 	    # platform.
   10838 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   10839 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   10840 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
   10841 
   10842 	    # Commands to make compiler produce verbose output that lists
   10843 	    # what "hidden" libraries, object files and flags are used when
   10844 	    # linking a shared library.
   10845 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
   10846 	  fi
   10847 
   10848 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
   10849 	fi
   10850 	;;
   10851     esac
   10852     ;;
   10853   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
   10854     archive_cmds_need_lc_CXX=no
   10855     ;;
   10856   tandem*)
   10857     case $cc_basename in
   10858       NCC)
   10859 	# NonStop-UX NCC 3.20
   10860 	# FIXME: insert proper C++ library support
   10861 	ld_shlibs_CXX=no
   10862 	;;
   10863       *)
   10864 	# FIXME: insert proper C++ library support
   10865 	ld_shlibs_CXX=no
   10866 	;;
   10867     esac
   10868     ;;
   10869   vxworks*)
   10870     # FIXME: insert proper C++ library support
   10871     ld_shlibs_CXX=no
   10872     ;;
   10873   *)
   10874     # FIXME: insert proper C++ library support
   10875     ld_shlibs_CXX=no
   10876     ;;
   10877 esac
   10878 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
   10879 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
   10880 test "$ld_shlibs_CXX" = no && can_build_shared=no
   10881 
   10882 GCC_CXX="$GXX"
   10883 LD_CXX="$LD"
   10884 
   10885 ## CAVEAT EMPTOR:
   10886 ## There is no encapsulation within the following macros, do not change
   10887 ## the running order or otherwise move them around unless you know exactly
   10888 ## what you are doing...
   10889 
   10890 cat > conftest.$ac_ext <<EOF
   10891 class Foo
   10892 {
   10893 public:
   10894   Foo (void) { a = 0; }
   10895 private:
   10896   int a;
   10897 };
   10898 EOF
   10899 
   10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10901   (eval $ac_compile) 2>&5
   10902   ac_status=$?
   10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10904   (exit $ac_status); }; then
   10905   # Parse the compiler output and extract the necessary
   10906   # objects, libraries and library flags.
   10907 
   10908   # Sentinel used to keep track of whether or not we are before
   10909   # the conftest object file.
   10910   pre_test_object_deps_done=no
   10911 
   10912   # The `*' in the case matches for architectures that use `case' in
   10913   # $output_verbose_cmd can trigger glob expansion during the loop
   10914   # eval without this substitution.
   10915   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
   10916 
   10917   for p in `eval $output_verbose_link_cmd`; do
   10918     case $p in
   10919 
   10920     -L* | -R* | -l*)
   10921        # Some compilers place space between "-{L,R}" and the path.
   10922        # Remove the space.
   10923        if test $p = "-L" \
   10924 	  || test $p = "-R"; then
   10925 	 prev=$p
   10926 	 continue
   10927        else
   10928 	 prev=
   10929        fi
   10930 
   10931        if test "$pre_test_object_deps_done" = no; then
   10932 	 case $p in
   10933 	 -L* | -R*)
   10934 	   # Internal compiler library paths should come after those
   10935 	   # provided the user.  The postdeps already come after the
   10936 	   # user supplied libs so there is no need to process them.
   10937 	   if test -z "$compiler_lib_search_path_CXX"; then
   10938 	     compiler_lib_search_path_CXX="${prev}${p}"
   10939 	   else
   10940 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
   10941 	   fi
   10942 	   ;;
   10943 	 # The "-l" case would never come before the object being
   10944 	 # linked, so don't bother handling this case.
   10945 	 esac
   10946        else
   10947 	 if test -z "$postdeps_CXX"; then
   10948 	   postdeps_CXX="${prev}${p}"
   10949 	 else
   10950 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
   10951 	 fi
   10952        fi
   10953        ;;
   10954 
   10955     *.$objext)
   10956        # This assumes that the test object file only shows up
   10957        # once in the compiler output.
   10958        if test "$p" = "conftest.$objext"; then
   10959 	 pre_test_object_deps_done=yes
   10960 	 continue
   10961        fi
   10962 
   10963        if test "$pre_test_object_deps_done" = no; then
   10964 	 if test -z "$predep_objects_CXX"; then
   10965 	   predep_objects_CXX="$p"
   10966 	 else
   10967 	   predep_objects_CXX="$predep_objects_CXX $p"
   10968 	 fi
   10969        else
   10970 	 if test -z "$postdep_objects_CXX"; then
   10971 	   postdep_objects_CXX="$p"
   10972 	 else
   10973 	   postdep_objects_CXX="$postdep_objects_CXX $p"
   10974 	 fi
   10975        fi
   10976        ;;
   10977 
   10978     *) ;; # Ignore the rest.
   10979 
   10980     esac
   10981   done
   10982 
   10983   # Clean up.
   10984   rm -f a.out a.exe
   10985 else
   10986   echo "libtool.m4: error: problem compiling CXX test program"
   10987 fi
   10988 
   10989 $rm -f confest.$objext
   10990 
   10991 case " $postdeps_CXX " in
   10992 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
   10993 esac
   10994 
   10995 lt_prog_compiler_wl_CXX=
   10996 lt_prog_compiler_pic_CXX=
   10997 lt_prog_compiler_static_CXX=
   10998 
   10999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   11000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   11001 
   11002   # C++ specific cases for pic, static, wl, etc.
   11003   if test "$GXX" = yes; then
   11004     lt_prog_compiler_wl_CXX='-Wl,'
   11005     lt_prog_compiler_static_CXX='-static'
   11006 
   11007     case $host_os in
   11008     aix*)
   11009       # All AIX code is PIC.
   11010       if test "$host_cpu" = ia64; then
   11011 	# AIX 5 now supports IA64 processor
   11012 	lt_prog_compiler_static_CXX='-Bstatic'
   11013       fi
   11014       ;;
   11015     amigaos*)
   11016       # FIXME: we need at least 68020 code to build shared libraries, but
   11017       # adding the `-m68020' flag to GCC prevents building anything better,
   11018       # like `-m68040'.
   11019       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
   11020       ;;
   11021     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   11022       # PIC is the default for these OSes.
   11023       ;;
   11024     mingw* | os2* | pw32*)
   11025       # This hack is so that the source file can tell whether it is being
   11026       # built for inclusion in a dll (and should export symbols for example).
   11027       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
   11028       ;;
   11029     darwin* | rhapsody*)
   11030       # PIC is the default on this platform
   11031       # Common symbols not allowed in MH_DYLIB files
   11032       lt_prog_compiler_pic_CXX='-fno-common'
   11033       ;;
   11034     *djgpp*)
   11035       # DJGPP does not support shared libraries at all
   11036       lt_prog_compiler_pic_CXX=
   11037       ;;
   11038     sysv4*MP*)
   11039       if test -d /usr/nec; then
   11040 	lt_prog_compiler_pic_CXX=-Kconform_pic
   11041       fi
   11042       ;;
   11043     hpux*)
   11044       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   11045       # not for PA HP-UX.
   11046       case "$host_cpu" in
   11047       hppa*64*|ia64*)
   11048 	;;
   11049       *)
   11050 	lt_prog_compiler_pic_CXX='-fPIC'
   11051 	;;
   11052       esac
   11053       ;;
   11054     *)
   11055       lt_prog_compiler_pic_CXX='-fPIC'
   11056       ;;
   11057     esac
   11058   else
   11059     case $host_os in
   11060       aix4* | aix5*)
   11061 	# All AIX code is PIC.
   11062 	if test "$host_cpu" = ia64; then
   11063 	  # AIX 5 now supports IA64 processor
   11064 	  lt_prog_compiler_static_CXX='-Bstatic'
   11065 	else
   11066 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
   11067 	fi
   11068 	;;
   11069       chorus*)
   11070 	case $cc_basename in
   11071 	cxch68)
   11072 	  # Green Hills C++ Compiler
   11073 	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
   11074 	  ;;
   11075 	esac
   11076 	;;
   11077       dgux*)
   11078 	case $cc_basename in
   11079 	  ec++)
   11080 	    lt_prog_compiler_pic_CXX='-KPIC'
   11081 	    ;;
   11082 	  ghcx)
   11083 	    # Green Hills C++ Compiler
   11084 	    lt_prog_compiler_pic_CXX='-pic'
   11085 	    ;;
   11086 	  *)
   11087 	    ;;
   11088 	esac
   11089 	;;
   11090       freebsd* | kfreebsd*-gnu)
   11091 	# FreeBSD uses GNU C++
   11092 	;;
   11093       hpux9* | hpux10* | hpux11*)
   11094 	case $cc_basename in
   11095 	  CC)
   11096 	    lt_prog_compiler_wl_CXX='-Wl,'
   11097 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
   11098 	    if test "$host_cpu" != ia64; then
   11099 	      lt_prog_compiler_pic_CXX='+Z'
   11100 	    fi
   11101 	    ;;
   11102 	  aCC)
   11103 	    lt_prog_compiler_wl_CXX='-Wl,'
   11104 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
   11105 	    case "$host_cpu" in
   11106 	    hppa*64*|ia64*)
   11107 	      # +Z the default
   11108 	      ;;
   11109 	    *)
   11110 	      lt_prog_compiler_pic_CXX='+Z'
   11111 	      ;;
   11112 	    esac
   11113 	    ;;
   11114 	  *)
   11115 	    ;;
   11116 	esac
   11117 	;;
   11118       irix5* | irix6* | nonstopux*)
   11119 	case $cc_basename in
   11120 	  CC)
   11121 	    lt_prog_compiler_wl_CXX='-Wl,'
   11122 	    lt_prog_compiler_static_CXX='-non_shared'
   11123 	    # CC pic flag -KPIC is the default.
   11124 	    ;;
   11125 	  *)
   11126 	    ;;
   11127 	esac
   11128 	;;
   11129       linux*)
   11130 	case $cc_basename in
   11131 	  KCC)
   11132 	    # KAI C++ Compiler
   11133 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   11134 	    lt_prog_compiler_pic_CXX='-fPIC'
   11135 	    ;;
   11136 	  icpc)
   11137 	    # Intel C++
   11138 	    lt_prog_compiler_wl_CXX='-Wl,'
   11139 	    lt_prog_compiler_pic_CXX='-KPIC'
   11140 	    lt_prog_compiler_static_CXX='-static'
   11141 	    ;;
   11142 	  cxx)
   11143 	    # Compaq C++
   11144 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   11145 	    # Linux and Compaq Tru64 Unix objects are PIC.
   11146 	    lt_prog_compiler_pic_CXX=
   11147 	    lt_prog_compiler_static_CXX='-non_shared'
   11148 	    ;;
   11149 	  *)
   11150 	    ;;
   11151 	esac
   11152 	;;
   11153       lynxos*)
   11154 	;;
   11155       m88k*)
   11156 	;;
   11157       mvs*)
   11158 	case $cc_basename in
   11159 	  cxx)
   11160 	    lt_prog_compiler_pic_CXX='-W c,exportall'
   11161 	    ;;
   11162 	  *)
   11163 	    ;;
   11164 	esac
   11165 	;;
   11166       netbsd*)
   11167 	;;
   11168       osf3* | osf4* | osf5*)
   11169 	case $cc_basename in
   11170 	  KCC)
   11171 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   11172 	    ;;
   11173 	  RCC)
   11174 	    # Rational C++ 2.4.1
   11175 	    lt_prog_compiler_pic_CXX='-pic'
   11176 	    ;;
   11177 	  cxx)
   11178 	    # Digital/Compaq C++
   11179 	    lt_prog_compiler_wl_CXX='-Wl,'
   11180 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   11181 	    # Linux and Compaq Tru64 Unix objects are PIC.
   11182 	    lt_prog_compiler_pic_CXX=
   11183 	    lt_prog_compiler_static_CXX='-non_shared'
   11184 	    ;;
   11185 	  *)
   11186 	    ;;
   11187 	esac
   11188 	;;
   11189       psos*)
   11190 	;;
   11191       sco*)
   11192 	case $cc_basename in
   11193 	  CC)
   11194 	    lt_prog_compiler_pic_CXX='-fPIC'
   11195 	    ;;
   11196 	  *)
   11197 	    ;;
   11198 	esac
   11199 	;;
   11200       solaris*)
   11201 	case $cc_basename in
   11202 	  CC)
   11203 	    # Sun C++ 4.2, 5.x and Centerline C++
   11204 	    lt_prog_compiler_pic_CXX='-KPIC'
   11205 	    lt_prog_compiler_static_CXX='-Bstatic'
   11206 	    lt_prog_compiler_wl_CXX='-Qoption ld '
   11207 	    ;;
   11208 	  gcx)
   11209 	    # Green Hills C++ Compiler
   11210 	    lt_prog_compiler_pic_CXX='-PIC'
   11211 	    ;;
   11212 	  *)
   11213 	    ;;
   11214 	esac
   11215 	;;
   11216       sunos4*)
   11217 	case $cc_basename in
   11218 	  CC)
   11219 	    # Sun C++ 4.x
   11220 	    lt_prog_compiler_pic_CXX='-pic'
   11221 	    lt_prog_compiler_static_CXX='-Bstatic'
   11222 	    ;;
   11223 	  lcc)
   11224 	    # Lucid
   11225 	    lt_prog_compiler_pic_CXX='-pic'
   11226 	    ;;
   11227 	  *)
   11228 	    ;;
   11229 	esac
   11230 	;;
   11231       tandem*)
   11232 	case $cc_basename in
   11233 	  NCC)
   11234 	    # NonStop-UX NCC 3.20
   11235 	    lt_prog_compiler_pic_CXX='-KPIC'
   11236 	    ;;
   11237 	  *)
   11238 	    ;;
   11239 	esac
   11240 	;;
   11241       unixware*)
   11242 	;;
   11243       vxworks*)
   11244 	;;
   11245       *)
   11246 	lt_prog_compiler_can_build_shared_CXX=no
   11247 	;;
   11248     esac
   11249   fi
   11250 
   11251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
   11252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
   11253 
   11254 #
   11255 # Check to make sure the PIC flag actually works.
   11256 #
   11257 if test -n "$lt_prog_compiler_pic_CXX"; then
   11258 
   11259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
   11260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
   11261 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
   11262   echo $ECHO_N "(cached) $ECHO_C" >&6
   11263 else
   11264   lt_prog_compiler_pic_works_CXX=no
   11265   ac_outfile=conftest.$ac_objext
   11266    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   11267    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   11268    # Insert the option either (1) after the last *FLAGS variable, or
   11269    # (2) before a word containing "conftest.", or (3) at the end.
   11270    # Note that $ac_compile itself does not contain backslashes and begins
   11271    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11272    # The option is referenced via a variable to avoid confusing sed.
   11273    lt_compile=`echo "$ac_compile" | $SED \
   11274    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   11275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11276    -e 's:$: $lt_compiler_flag:'`
   11277    (eval echo "\"\$as_me:11277: $lt_compile\"" >&5)
   11278    (eval "$lt_compile" 2>conftest.err)
   11279    ac_status=$?
   11280    cat conftest.err >&5
   11281    echo "$as_me:11281: \$? = $ac_status" >&5
   11282    if (exit $ac_status) && test -s "$ac_outfile"; then
   11283      # The compiler can only warn and ignore the option if not recognized
   11284      # So say no if there are warnings
   11285      if test ! -s conftest.err; then
   11286        lt_prog_compiler_pic_works_CXX=yes
   11287      fi
   11288    fi
   11289    $rm conftest*
   11290 
   11291 fi
   11292 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
   11293 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
   11294 
   11295 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
   11296     case $lt_prog_compiler_pic_CXX in
   11297      "" | " "*) ;;
   11298      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
   11299      esac
   11300 else
   11301     lt_prog_compiler_pic_CXX=
   11302      lt_prog_compiler_can_build_shared_CXX=no
   11303 fi
   11304 
   11305 fi
   11306 case "$host_os" in
   11307   # For platforms which do not support PIC, -DPIC is meaningless:
   11308   *djgpp*)
   11309     lt_prog_compiler_pic_CXX=
   11310     ;;
   11311   *)
   11312     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
   11313     ;;
   11314 esac
   11315 
   11316 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   11317 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   11318 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
   11319   echo $ECHO_N "(cached) $ECHO_C" >&6
   11320 else
   11321   lt_cv_prog_compiler_c_o_CXX=no
   11322    $rm -r conftest 2>/dev/null
   11323    mkdir conftest
   11324    cd conftest
   11325    mkdir out
   11326    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   11327 
   11328    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   11329    # that will create temporary files in the current directory regardless of
   11330    # the output directory.  Thus, making CWD read-only will cause this test
   11331    # to fail, enabling locking or at least warning the user not to do parallel
   11332    # builds.
   11333    chmod -w .
   11334 
   11335    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11336    # Insert the option either (1) after the last *FLAGS variable, or
   11337    # (2) before a word containing "conftest.", or (3) at the end.
   11338    # Note that $ac_compile itself does not contain backslashes and begins
   11339    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11340    lt_compile=`echo "$ac_compile" | $SED \
   11341    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   11342    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11343    -e 's:$: $lt_compiler_flag:'`
   11344    (eval echo "\"\$as_me:11344: $lt_compile\"" >&5)
   11345    (eval "$lt_compile" 2>out/conftest.err)
   11346    ac_status=$?
   11347    cat out/conftest.err >&5
   11348    echo "$as_me:11348: \$? = $ac_status" >&5
   11349    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11350    then
   11351      # The compiler can only warn and ignore the option if not recognized
   11352      # So say no if there are warnings
   11353      if test ! -s out/conftest.err; then
   11354        lt_cv_prog_compiler_c_o_CXX=yes
   11355      fi
   11356    fi
   11357    chmod u+w .
   11358    $rm conftest*
   11359    # SGI C++ compiler will create directory out/ii_files/ for
   11360    # template instantiation
   11361    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   11362    $rm out/* && rmdir out
   11363    cd ..
   11364    rmdir conftest
   11365    $rm conftest*
   11366 
   11367 fi
   11368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
   11369 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
   11370 
   11371 
   11372 hard_links="nottested"
   11373 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
   11374   # do not overwrite the value of need_locks provided by the user
   11375   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   11376 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   11377   hard_links=yes
   11378   $rm conftest*
   11379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11380   touch conftest.a
   11381   ln conftest.a conftest.b 2>&5 || hard_links=no
   11382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11383   { echo "$as_me:$LINENO: result: $hard_links" >&5
   11384 echo "${ECHO_T}$hard_links" >&6; }
   11385   if test "$hard_links" = no; then
   11386     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   11387 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   11388     need_locks=warn
   11389   fi
   11390 else
   11391   need_locks=no
   11392 fi
   11393 
   11394 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   11395 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   11396 
   11397   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11398   case $host_os in
   11399   aix4* | aix5*)
   11400     # If we're using GNU nm, then we don't want the "-C" option.
   11401     # -C means demangle to AIX nm, but means don't demangle with GNU nm
   11402     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   11403       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   11404     else
   11405       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   11406     fi
   11407     ;;
   11408   pw32*)
   11409     export_symbols_cmds_CXX="$ltdll_cmds"
   11410   ;;
   11411   cygwin* | mingw*)
   11412     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   11413   ;;
   11414   *)
   11415     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11416   ;;
   11417   esac
   11418 
   11419 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
   11420 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
   11421 test "$ld_shlibs_CXX" = no && can_build_shared=no
   11422 
   11423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11424 if test "$GCC" = yes; then
   11425   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11426 fi
   11427 
   11428 #
   11429 # Do we need to explicitly link libc?
   11430 #
   11431 case "x$archive_cmds_need_lc_CXX" in
   11432 x|xyes)
   11433   # Assume -lc should be added
   11434   archive_cmds_need_lc_CXX=yes
   11435 
   11436   if test "$enable_shared" = yes && test "$GCC" = yes; then
   11437     case $archive_cmds_CXX in
   11438     *'~'*)
   11439       # FIXME: we may have to deal with multi-command sequences.
   11440       ;;
   11441     '$CC '*)
   11442       # Test whether the compiler implicitly links with -lc since on some
   11443       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   11444       # to ld, don't add -lc before -lgcc.
   11445       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   11446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   11447       $rm conftest*
   11448       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   11449 
   11450       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   11451   (eval $ac_compile) 2>&5
   11452   ac_status=$?
   11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11454   (exit $ac_status); } 2>conftest.err; then
   11455         soname=conftest
   11456         lib=conftest
   11457         libobjs=conftest.$ac_objext
   11458         deplibs=
   11459         wl=$lt_prog_compiler_wl_CXX
   11460         compiler_flags=-v
   11461         linker_flags=-v
   11462         verstring=
   11463         output_objdir=.
   11464         libname=conftest
   11465         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
   11466         allow_undefined_flag_CXX=
   11467         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   11468   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   11469   ac_status=$?
   11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11471   (exit $ac_status); }
   11472         then
   11473 	  archive_cmds_need_lc_CXX=no
   11474         else
   11475 	  archive_cmds_need_lc_CXX=yes
   11476         fi
   11477         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
   11478       else
   11479         cat conftest.err 1>&5
   11480       fi
   11481       $rm conftest*
   11482       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
   11483 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
   11484       ;;
   11485     esac
   11486   fi
   11487   ;;
   11488 esac
   11489 
   11490 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   11491 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   11492 library_names_spec=
   11493 libname_spec='lib$name'
   11494 soname_spec=
   11495 shrext=".so"
   11496 postinstall_cmds=
   11497 postuninstall_cmds=
   11498 finish_cmds=
   11499 finish_eval=
   11500 shlibpath_var=
   11501 shlibpath_overrides_runpath=unknown
   11502 version_type=none
   11503 dynamic_linker="$host_os ld.so"
   11504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   11505 if test "$GCC" = yes; then
   11506   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   11507   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   11508     # if the path contains ";" then we assume it to be the separator
   11509     # otherwise default to the standard path separator (i.e. ":") - it is
   11510     # assumed that no part of a normal pathname contains ";" but that should
   11511     # okay in the real world where ";" in dirpaths is itself problematic.
   11512     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   11513   else
   11514     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   11515   fi
   11516 else
   11517   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11518 fi
   11519 need_lib_prefix=unknown
   11520 hardcode_into_libs=no
   11521 
   11522 # when you set need_version to no, make sure it does not cause -set_version
   11523 # flags to be left without arguments
   11524 need_version=unknown
   11525 
   11526 case $host_os in
   11527 aix3*)
   11528   version_type=linux
   11529   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   11530   shlibpath_var=LIBPATH
   11531 
   11532   # AIX 3 has no versioning support, so we append a major version to the name.
   11533   soname_spec='${libname}${release}${shared_ext}$major'
   11534   ;;
   11535 
   11536 aix4* | aix5*)
   11537   version_type=linux
   11538   need_lib_prefix=no
   11539   need_version=no
   11540   hardcode_into_libs=yes
   11541   if test "$host_cpu" = ia64; then
   11542     # AIX 5 supports IA64
   11543     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   11544     shlibpath_var=LD_LIBRARY_PATH
   11545   else
   11546     # With GCC up to 2.95.x, collect2 would create an import file
   11547     # for dependence libraries.  The import file would start with
   11548     # the line `#! .'.  This would cause the generated library to
   11549     # depend on `.', always an invalid library.  This was fixed in
   11550     # development snapshots of GCC prior to 3.0.
   11551     case $host_os in
   11552       aix4 | aix4.[01] | aix4.[01].*)
   11553       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   11554 	   echo ' yes '
   11555 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   11556 	:
   11557       else
   11558 	can_build_shared=no
   11559       fi
   11560       ;;
   11561     esac
   11562     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   11563     # soname into executable. Probably we can add versioning support to
   11564     # collect2, so additional links can be useful in future.
   11565     if test "$aix_use_runtimelinking" = yes; then
   11566       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   11567       # instead of lib<name>.a to let people know that these are not
   11568       # typical AIX shared libraries.
   11569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11570     else
   11571       # We preserve .a as extension for shared libraries through AIX4.2
   11572       # and later when we are not doing run time linking.
   11573       library_names_spec='${libname}${release}.a $libname.a'
   11574       soname_spec='${libname}${release}${shared_ext}$major'
   11575     fi
   11576     shlibpath_var=LIBPATH
   11577   fi
   11578   ;;
   11579 
   11580 amigaos*)
   11581   library_names_spec='$libname.ixlibrary $libname.a'
   11582   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   11583   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   11584   ;;
   11585 
   11586 beos*)
   11587   library_names_spec='${libname}${shared_ext}'
   11588   dynamic_linker="$host_os ld.so"
   11589   shlibpath_var=LIBRARY_PATH
   11590   ;;
   11591 
   11592 bsdi4*)
   11593   version_type=linux
   11594   need_version=no
   11595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11596   soname_spec='${libname}${release}${shared_ext}$major'
   11597   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   11598   shlibpath_var=LD_LIBRARY_PATH
   11599   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   11600   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   11601   # the default ld.so.conf also contains /usr/contrib/lib and
   11602   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   11603   # libtool to hard-code these into programs
   11604   ;;
   11605 
   11606 cygwin* | mingw* | pw32*)
   11607   version_type=windows
   11608   shrext=".dll"
   11609   need_version=no
   11610   need_lib_prefix=no
   11611 
   11612   case $GCC,$host_os in
   11613   yes,cygwin* | yes,mingw* | yes,pw32*)
   11614     library_names_spec='$libname.dll.a'
   11615     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   11616     postinstall_cmds='base_file=`basename \${file}`~
   11617       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   11618       dldir=$destdir/`dirname \$dlpath`~
   11619       test -d \$dldir || mkdir -p \$dldir~
   11620       $install_prog $dir/$dlname \$dldir/$dlname'
   11621     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   11622       dlpath=$dir/\$dldll~
   11623        $rm \$dlpath'
   11624     shlibpath_overrides_runpath=yes
   11625 
   11626     case $host_os in
   11627     cygwin*)
   11628       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   11629       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   11630       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   11631       ;;
   11632     mingw*)
   11633       # MinGW DLLs use traditional 'lib' prefix
   11634       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   11635       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   11636       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   11637         # It is most probably a Windows format PATH printed by
   11638         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   11639         # path with ; separators, and with drive letters. We can handle the
   11640         # drive letters (cygwin fileutils understands them), so leave them,
   11641         # especially as we might pass files found there to a mingw objdump,
   11642         # which wouldn't understand a cygwinified path. Ahh.
   11643         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   11644       else
   11645         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   11646       fi
   11647       ;;
   11648     pw32*)
   11649       # pw32 DLLs use 'pw' prefix rather than 'lib'
   11650       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   11651       ;;
   11652     esac
   11653     ;;
   11654 
   11655   *)
   11656     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   11657     ;;
   11658   esac
   11659   dynamic_linker='Win32 ld.exe'
   11660   # FIXME: first we should search . and the directory the executable is in
   11661   shlibpath_var=PATH
   11662   ;;
   11663 
   11664 darwin* | rhapsody*)
   11665   dynamic_linker="$host_os dyld"
   11666   version_type=darwin
   11667   need_lib_prefix=no
   11668   need_version=no
   11669   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   11670   soname_spec='${libname}${release}${major}$shared_ext'
   11671   shlibpath_overrides_runpath=yes
   11672   shlibpath_var=DYLD_LIBRARY_PATH
   11673   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   11674   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   11675   if test "$GCC" = yes; then
   11676     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   11677   else
   11678     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   11679   fi
   11680   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   11681   ;;
   11682 
   11683 dgux*)
   11684   version_type=linux
   11685   need_lib_prefix=no
   11686   need_version=no
   11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   11688   soname_spec='${libname}${release}${shared_ext}$major'
   11689   shlibpath_var=LD_LIBRARY_PATH
   11690   ;;
   11691 
   11692 freebsd1*)
   11693   dynamic_linker=no
   11694   ;;
   11695 
   11696 kfreebsd*-gnu)
   11697   version_type=linux
   11698   need_lib_prefix=no
   11699   need_version=no
   11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   11701   soname_spec='${libname}${release}${shared_ext}$major'
   11702   shlibpath_var=LD_LIBRARY_PATH
   11703   shlibpath_overrides_runpath=no
   11704   hardcode_into_libs=yes
   11705   dynamic_linker='GNU ld.so'
   11706   ;;
   11707 
   11708 freebsd*)
   11709   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   11710   version_type=freebsd-$objformat
   11711   case $version_type in
   11712     freebsd-elf*)
   11713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   11714       need_version=no
   11715       need_lib_prefix=no
   11716       ;;
   11717     freebsd-*)
   11718       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   11719       need_version=yes
   11720       ;;
   11721   esac
   11722   shlibpath_var=LD_LIBRARY_PATH
   11723   case $host_os in
   11724   freebsd2*)
   11725     shlibpath_overrides_runpath=yes
   11726     ;;
   11727   freebsd3.01* | freebsdelf3.01*)
   11728     shlibpath_overrides_runpath=yes
   11729     hardcode_into_libs=yes
   11730     ;;
   11731   *) # from 3.2 on
   11732     shlibpath_overrides_runpath=no
   11733     hardcode_into_libs=yes
   11734     ;;
   11735   esac
   11736   ;;
   11737 
   11738 gnu*)
   11739   version_type=linux
   11740   need_lib_prefix=no
   11741   need_version=no
   11742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   11743   soname_spec='${libname}${release}${shared_ext}$major'
   11744   shlibpath_var=LD_LIBRARY_PATH
   11745   hardcode_into_libs=yes
   11746   ;;
   11747 
   11748 hpux9* | hpux10* | hpux11*)
   11749   # Give a soname corresponding to the major version so that dld.sl refuses to
   11750   # link against other versions.
   11751   version_type=sunos
   11752   need_lib_prefix=no
   11753   need_version=no
   11754   case "$host_cpu" in
   11755   ia64*)
   11756     shrext='.so'
   11757     hardcode_into_libs=yes
   11758     dynamic_linker="$host_os dld.so"
   11759     shlibpath_var=LD_LIBRARY_PATH
   11760     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11762     soname_spec='${libname}${release}${shared_ext}$major'
   11763     if test "X$HPUX_IA64_MODE" = X32; then
   11764       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   11765     else
   11766       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   11767     fi
   11768     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11769     ;;
   11770    hppa*64*)
   11771      shrext='.sl'
   11772      hardcode_into_libs=yes
   11773      dynamic_linker="$host_os dld.sl"
   11774      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   11775      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11776      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11777      soname_spec='${libname}${release}${shared_ext}$major'
   11778      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   11779      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11780      ;;
   11781    *)
   11782     shrext='.sl'
   11783     dynamic_linker="$host_os dld.sl"
   11784     shlibpath_var=SHLIB_PATH
   11785     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   11786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11787     soname_spec='${libname}${release}${shared_ext}$major'
   11788     ;;
   11789   esac
   11790   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   11791   postinstall_cmds='chmod 555 $lib'
   11792   ;;
   11793 
   11794 irix5* | irix6* | nonstopux*)
   11795   case $host_os in
   11796     nonstopux*) version_type=nonstopux ;;
   11797     *)
   11798 	if test "$lt_cv_prog_gnu_ld" = yes; then
   11799 		version_type=linux
   11800 	else
   11801 		version_type=irix
   11802 	fi ;;
   11803   esac
   11804   need_lib_prefix=no
   11805   need_version=no
   11806   soname_spec='${libname}${release}${shared_ext}$major'
   11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   11808   case $host_os in
   11809   irix5* | nonstopux*)
   11810     libsuff= shlibsuff=
   11811     ;;
   11812   *)
   11813     case $LD in # libtool.m4 will add one of these switches to LD
   11814     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   11815       libsuff= shlibsuff= libmagic=32-bit;;
   11816     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   11817       libsuff=32 shlibsuff=N32 libmagic=N32;;
   11818     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   11819       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   11820     *) libsuff= shlibsuff= libmagic=never-match;;
   11821     esac
   11822     ;;
   11823   esac
   11824   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   11825   shlibpath_overrides_runpath=no
   11826   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   11827   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   11828   hardcode_into_libs=yes
   11829   ;;
   11830 
   11831 # No shared lib support for Linux oldld, aout, or coff.
   11832 linux*oldld* | linux*aout* | linux*coff*)
   11833   dynamic_linker=no
   11834   ;;
   11835 
   11836 # This must be Linux ELF.
   11837 linux*)
   11838   version_type=linux
   11839   need_lib_prefix=no
   11840   need_version=no
   11841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11842   soname_spec='${libname}${release}${shared_ext}$major'
   11843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   11844   shlibpath_var=LD_LIBRARY_PATH
   11845   shlibpath_overrides_runpath=no
   11846   # This implies no fast_install, which is unacceptable.
   11847   # Some rework will be needed to allow for fast_install
   11848   # before this can be enabled.
   11849   hardcode_into_libs=yes
   11850 
   11851   # We used to test for /lib/ld.so.1 and disable shared libraries on
   11852   # powerpc, because MkLinux only supported shared libraries with the
   11853   # GNU dynamic linker.  Since this was broken with cross compilers,
   11854   # most powerpc-linux boxes support dynamic linking these days and
   11855   # people can always --disable-shared, the test was removed, and we
   11856   # assume the GNU/Linux dynamic linker is in use.
   11857   dynamic_linker='GNU/Linux ld.so'
   11858   ;;
   11859 
   11860 netbsd*)
   11861   version_type=sunos
   11862   need_lib_prefix=no
   11863   need_version=no
   11864   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   11865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11867     dynamic_linker='NetBSD (a.out) ld.so'
   11868   else
   11869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   11870     soname_spec='${libname}${release}${shared_ext}$major'
   11871     dynamic_linker='NetBSD ld.elf_so'
   11872   fi
   11873   shlibpath_var=LD_LIBRARY_PATH
   11874   shlibpath_overrides_runpath=yes
   11875   hardcode_into_libs=yes
   11876   ;;
   11877 
   11878 newsos6)
   11879   version_type=linux
   11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11881   shlibpath_var=LD_LIBRARY_PATH
   11882   shlibpath_overrides_runpath=yes
   11883   ;;
   11884 
   11885 nto-qnx*)
   11886   version_type=linux
   11887   need_lib_prefix=no
   11888   need_version=no
   11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11890   soname_spec='${libname}${release}${shared_ext}$major'
   11891   shlibpath_var=LD_LIBRARY_PATH
   11892   shlibpath_overrides_runpath=yes
   11893   ;;
   11894 
   11895 openbsd*)
   11896   version_type=sunos
   11897   need_lib_prefix=no
   11898   need_version=no
   11899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11901   shlibpath_var=LD_LIBRARY_PATH
   11902   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   11903     case $host_os in
   11904       openbsd2.[89] | openbsd2.[89].*)
   11905 	shlibpath_overrides_runpath=no
   11906 	;;
   11907       *)
   11908 	shlibpath_overrides_runpath=yes
   11909 	;;
   11910       esac
   11911   else
   11912     shlibpath_overrides_runpath=yes
   11913   fi
   11914   ;;
   11915 
   11916 os2*)
   11917   libname_spec='$name'
   11918   shrext=".dll"
   11919   need_lib_prefix=no
   11920   library_names_spec='$libname${shared_ext} $libname.a'
   11921   dynamic_linker='OS/2 ld.exe'
   11922   shlibpath_var=LIBPATH
   11923   ;;
   11924 
   11925 osf3* | osf4* | osf5*)
   11926   version_type=osf
   11927   need_lib_prefix=no
   11928   need_version=no
   11929   soname_spec='${libname}${release}${shared_ext}$major'
   11930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11931   shlibpath_var=LD_LIBRARY_PATH
   11932   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11933   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   11934   ;;
   11935 
   11936 sco3.2v5*)
   11937   version_type=osf
   11938   soname_spec='${libname}${release}${shared_ext}$major'
   11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11940   shlibpath_var=LD_LIBRARY_PATH
   11941   ;;
   11942 
   11943 solaris*)
   11944   version_type=linux
   11945   need_lib_prefix=no
   11946   need_version=no
   11947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11948   soname_spec='${libname}${release}${shared_ext}$major'
   11949   shlibpath_var=LD_LIBRARY_PATH
   11950   shlibpath_overrides_runpath=yes
   11951   hardcode_into_libs=yes
   11952   # ldd complains unless libraries are executable
   11953   postinstall_cmds='chmod +x $lib'
   11954   ;;
   11955 
   11956 sunos4*)
   11957   version_type=sunos
   11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11960   shlibpath_var=LD_LIBRARY_PATH
   11961   shlibpath_overrides_runpath=yes
   11962   if test "$with_gnu_ld" = yes; then
   11963     need_lib_prefix=no
   11964   fi
   11965   need_version=yes
   11966   ;;
   11967 
   11968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   11969   version_type=linux
   11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11971   soname_spec='${libname}${release}${shared_ext}$major'
   11972   shlibpath_var=LD_LIBRARY_PATH
   11973   case $host_vendor in
   11974     sni)
   11975       shlibpath_overrides_runpath=no
   11976       need_lib_prefix=no
   11977       export_dynamic_flag_spec='${wl}-Blargedynsym'
   11978       runpath_var=LD_RUN_PATH
   11979       ;;
   11980     siemens)
   11981       need_lib_prefix=no
   11982       ;;
   11983     motorola)
   11984       need_lib_prefix=no
   11985       need_version=no
   11986       shlibpath_overrides_runpath=no
   11987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11988       ;;
   11989   esac
   11990   ;;
   11991 
   11992 sysv4*MP*)
   11993   if test -d /usr/nec ;then
   11994     version_type=linux
   11995     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   11996     soname_spec='$libname${shared_ext}.$major'
   11997     shlibpath_var=LD_LIBRARY_PATH
   11998   fi
   11999   ;;
   12000 
   12001 uts4*)
   12002   version_type=linux
   12003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12004   soname_spec='${libname}${release}${shared_ext}$major'
   12005   shlibpath_var=LD_LIBRARY_PATH
   12006   ;;
   12007 
   12008 *)
   12009   dynamic_linker=no
   12010   ;;
   12011 esac
   12012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   12013 echo "${ECHO_T}$dynamic_linker" >&6; }
   12014 test "$dynamic_linker" = no && can_build_shared=no
   12015 
   12016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   12018 hardcode_action_CXX=
   12019 if test -n "$hardcode_libdir_flag_spec_CXX" || \
   12020    test -n "$runpath_var CXX" || \
   12021    test "X$hardcode_automatic_CXX"="Xyes" ; then
   12022 
   12023   # We can hardcode non-existant directories.
   12024   if test "$hardcode_direct_CXX" != no &&
   12025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   12026      # have to relink, otherwise we might link with an installed library
   12027      # when we should be linking with a yet-to-be-installed one
   12028      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
   12029      test "$hardcode_minus_L_CXX" != no; then
   12030     # Linking always hardcodes the temporary library directory.
   12031     hardcode_action_CXX=relink
   12032   else
   12033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   12034     hardcode_action_CXX=immediate
   12035   fi
   12036 else
   12037   # We cannot hardcode anything, or else we can only hardcode existing
   12038   # directories.
   12039   hardcode_action_CXX=unsupported
   12040 fi
   12041 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
   12042 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
   12043 
   12044 if test "$hardcode_action_CXX" = relink; then
   12045   # Fast installation is not supported
   12046   enable_fast_install=no
   12047 elif test "$shlibpath_overrides_runpath" = yes ||
   12048      test "$enable_shared" = no; then
   12049   # Fast installation is not necessary
   12050   enable_fast_install=needless
   12051 fi
   12052 
   12053 striplib=
   12054 old_striplib=
   12055 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   12056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   12057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   12058   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   12059   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   12060   { echo "$as_me:$LINENO: result: yes" >&5
   12061 echo "${ECHO_T}yes" >&6; }
   12062 else
   12063 # FIXME - insert some real tests, host_os isn't really good enough
   12064   case $host_os in
   12065    darwin*)
   12066        if test -n "$STRIP" ; then
   12067          striplib="$STRIP -x"
   12068          { echo "$as_me:$LINENO: result: yes" >&5
   12069 echo "${ECHO_T}yes" >&6; }
   12070        else
   12071   { echo "$as_me:$LINENO: result: no" >&5
   12072 echo "${ECHO_T}no" >&6; }
   12073 fi
   12074        ;;
   12075    *)
   12076   { echo "$as_me:$LINENO: result: no" >&5
   12077 echo "${ECHO_T}no" >&6; }
   12078     ;;
   12079   esac
   12080 fi
   12081 
   12082 if test "x$enable_dlopen" != xyes; then
   12083   enable_dlopen=unknown
   12084   enable_dlopen_self=unknown
   12085   enable_dlopen_self_static=unknown
   12086 else
   12087   lt_cv_dlopen=no
   12088   lt_cv_dlopen_libs=
   12089 
   12090   case $host_os in
   12091   beos*)
   12092     lt_cv_dlopen="load_add_on"
   12093     lt_cv_dlopen_libs=
   12094     lt_cv_dlopen_self=yes
   12095     ;;
   12096 
   12097   mingw* | pw32*)
   12098     lt_cv_dlopen="LoadLibrary"
   12099     lt_cv_dlopen_libs=
   12100    ;;
   12101 
   12102   cygwin*)
   12103     lt_cv_dlopen="dlopen"
   12104     lt_cv_dlopen_libs=
   12105    ;;
   12106 
   12107   darwin*)
   12108   # if libdl is installed we need to link against it
   12109     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   12110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   12111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   12112   echo $ECHO_N "(cached) $ECHO_C" >&6
   12113 else
   12114   ac_check_lib_save_LIBS=$LIBS
   12115 LIBS="-ldl  $LIBS"
   12116 cat >conftest.$ac_ext <<_ACEOF
   12117 /* confdefs.h.  */
   12118 _ACEOF
   12119 cat confdefs.h >>conftest.$ac_ext
   12120 cat >>conftest.$ac_ext <<_ACEOF
   12121 /* end confdefs.h.  */
   12122 
   12123 /* Override any GCC internal prototype to avoid an error.
   12124    Use char because int might match the return type of a GCC
   12125    builtin and then its argument prototype would still apply.  */
   12126 #ifdef __cplusplus
   12127 extern "C"
   12128 #endif
   12129 char dlopen ();
   12130 int
   12131 main ()
   12132 {
   12133 return dlopen ();
   12134   ;
   12135   return 0;
   12136 }
   12137 _ACEOF
   12138 rm -f conftest.$ac_objext conftest$ac_exeext
   12139 if { (ac_try="$ac_link"
   12140 case "(($ac_try" in
   12141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12142   *) ac_try_echo=$ac_try;;
   12143 esac
   12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12145   (eval "$ac_link") 2>conftest.er1
   12146   ac_status=$?
   12147   grep -v '^ *+' conftest.er1 >conftest.err
   12148   rm -f conftest.er1
   12149   cat conftest.err >&5
   12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12151   (exit $ac_status); } && {
   12152 	 test -z "$ac_cxx_werror_flag" ||
   12153 	 test ! -s conftest.err
   12154        } && test -s conftest$ac_exeext &&
   12155        $as_test_x conftest$ac_exeext; then
   12156   ac_cv_lib_dl_dlopen=yes
   12157 else
   12158   echo "$as_me: failed program was:" >&5
   12159 sed 's/^/| /' conftest.$ac_ext >&5
   12160 
   12161 	ac_cv_lib_dl_dlopen=no
   12162 fi
   12163 
   12164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12165       conftest$ac_exeext conftest.$ac_ext
   12166 LIBS=$ac_check_lib_save_LIBS
   12167 fi
   12168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   12169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   12170 if test $ac_cv_lib_dl_dlopen = yes; then
   12171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   12172 else
   12173 
   12174     lt_cv_dlopen="dyld"
   12175     lt_cv_dlopen_libs=
   12176     lt_cv_dlopen_self=yes
   12177 
   12178 fi
   12179 
   12180    ;;
   12181 
   12182   *)
   12183     { echo "$as_me:$LINENO: checking for shl_load" >&5
   12184 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   12185 if test "${ac_cv_func_shl_load+set}" = set; then
   12186   echo $ECHO_N "(cached) $ECHO_C" >&6
   12187 else
   12188   cat >conftest.$ac_ext <<_ACEOF
   12189 /* confdefs.h.  */
   12190 _ACEOF
   12191 cat confdefs.h >>conftest.$ac_ext
   12192 cat >>conftest.$ac_ext <<_ACEOF
   12193 /* end confdefs.h.  */
   12194 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   12195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12196 #define shl_load innocuous_shl_load
   12197 
   12198 /* System header to define __stub macros and hopefully few prototypes,
   12199     which can conflict with char shl_load (); below.
   12200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12201     <limits.h> exists even on freestanding compilers.  */
   12202 
   12203 #ifdef __STDC__
   12204 # include <limits.h>
   12205 #else
   12206 # include <assert.h>
   12207 #endif
   12208 
   12209 #undef shl_load
   12210 
   12211 /* Override any GCC internal prototype to avoid an error.
   12212    Use char because int might match the return type of a GCC
   12213    builtin and then its argument prototype would still apply.  */
   12214 #ifdef __cplusplus
   12215 extern "C"
   12216 #endif
   12217 char shl_load ();
   12218 /* The GNU C library defines this for functions which it implements
   12219     to always fail with ENOSYS.  Some functions are actually named
   12220     something starting with __ and the normal name is an alias.  */
   12221 #if defined __stub_shl_load || defined __stub___shl_load
   12222 choke me
   12223 #endif
   12224 
   12225 int
   12226 main ()
   12227 {
   12228 return shl_load ();
   12229   ;
   12230   return 0;
   12231 }
   12232 _ACEOF
   12233 rm -f conftest.$ac_objext conftest$ac_exeext
   12234 if { (ac_try="$ac_link"
   12235 case "(($ac_try" in
   12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12237   *) ac_try_echo=$ac_try;;
   12238 esac
   12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12240   (eval "$ac_link") 2>conftest.er1
   12241   ac_status=$?
   12242   grep -v '^ *+' conftest.er1 >conftest.err
   12243   rm -f conftest.er1
   12244   cat conftest.err >&5
   12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12246   (exit $ac_status); } && {
   12247 	 test -z "$ac_cxx_werror_flag" ||
   12248 	 test ! -s conftest.err
   12249        } && test -s conftest$ac_exeext &&
   12250        $as_test_x conftest$ac_exeext; then
   12251   ac_cv_func_shl_load=yes
   12252 else
   12253   echo "$as_me: failed program was:" >&5
   12254 sed 's/^/| /' conftest.$ac_ext >&5
   12255 
   12256 	ac_cv_func_shl_load=no
   12257 fi
   12258 
   12259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12260       conftest$ac_exeext conftest.$ac_ext
   12261 fi
   12262 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   12263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   12264 if test $ac_cv_func_shl_load = yes; then
   12265   lt_cv_dlopen="shl_load"
   12266 else
   12267   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   12268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   12269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   12270   echo $ECHO_N "(cached) $ECHO_C" >&6
   12271 else
   12272   ac_check_lib_save_LIBS=$LIBS
   12273 LIBS="-ldld  $LIBS"
   12274 cat >conftest.$ac_ext <<_ACEOF
   12275 /* confdefs.h.  */
   12276 _ACEOF
   12277 cat confdefs.h >>conftest.$ac_ext
   12278 cat >>conftest.$ac_ext <<_ACEOF
   12279 /* end confdefs.h.  */
   12280 
   12281 /* Override any GCC internal prototype to avoid an error.
   12282    Use char because int might match the return type of a GCC
   12283    builtin and then its argument prototype would still apply.  */
   12284 #ifdef __cplusplus
   12285 extern "C"
   12286 #endif
   12287 char shl_load ();
   12288 int
   12289 main ()
   12290 {
   12291 return shl_load ();
   12292   ;
   12293   return 0;
   12294 }
   12295 _ACEOF
   12296 rm -f conftest.$ac_objext conftest$ac_exeext
   12297 if { (ac_try="$ac_link"
   12298 case "(($ac_try" in
   12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12300   *) ac_try_echo=$ac_try;;
   12301 esac
   12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12303   (eval "$ac_link") 2>conftest.er1
   12304   ac_status=$?
   12305   grep -v '^ *+' conftest.er1 >conftest.err
   12306   rm -f conftest.er1
   12307   cat conftest.err >&5
   12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12309   (exit $ac_status); } && {
   12310 	 test -z "$ac_cxx_werror_flag" ||
   12311 	 test ! -s conftest.err
   12312        } && test -s conftest$ac_exeext &&
   12313        $as_test_x conftest$ac_exeext; then
   12314   ac_cv_lib_dld_shl_load=yes
   12315 else
   12316   echo "$as_me: failed program was:" >&5
   12317 sed 's/^/| /' conftest.$ac_ext >&5
   12318 
   12319 	ac_cv_lib_dld_shl_load=no
   12320 fi
   12321 
   12322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12323       conftest$ac_exeext conftest.$ac_ext
   12324 LIBS=$ac_check_lib_save_LIBS
   12325 fi
   12326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   12327 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   12328 if test $ac_cv_lib_dld_shl_load = yes; then
   12329   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
   12330 else
   12331   { echo "$as_me:$LINENO: checking for dlopen" >&5
   12332 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   12333 if test "${ac_cv_func_dlopen+set}" = set; then
   12334   echo $ECHO_N "(cached) $ECHO_C" >&6
   12335 else
   12336   cat >conftest.$ac_ext <<_ACEOF
   12337 /* confdefs.h.  */
   12338 _ACEOF
   12339 cat confdefs.h >>conftest.$ac_ext
   12340 cat >>conftest.$ac_ext <<_ACEOF
   12341 /* end confdefs.h.  */
   12342 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   12343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12344 #define dlopen innocuous_dlopen
   12345 
   12346 /* System header to define __stub macros and hopefully few prototypes,
   12347     which can conflict with char dlopen (); below.
   12348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12349     <limits.h> exists even on freestanding compilers.  */
   12350 
   12351 #ifdef __STDC__
   12352 # include <limits.h>
   12353 #else
   12354 # include <assert.h>
   12355 #endif
   12356 
   12357 #undef dlopen
   12358 
   12359 /* Override any GCC internal prototype to avoid an error.
   12360    Use char because int might match the return type of a GCC
   12361    builtin and then its argument prototype would still apply.  */
   12362 #ifdef __cplusplus
   12363 extern "C"
   12364 #endif
   12365 char dlopen ();
   12366 /* The GNU C library defines this for functions which it implements
   12367     to always fail with ENOSYS.  Some functions are actually named
   12368     something starting with __ and the normal name is an alias.  */
   12369 #if defined __stub_dlopen || defined __stub___dlopen
   12370 choke me
   12371 #endif
   12372 
   12373 int
   12374 main ()
   12375 {
   12376 return dlopen ();
   12377   ;
   12378   return 0;
   12379 }
   12380 _ACEOF
   12381 rm -f conftest.$ac_objext conftest$ac_exeext
   12382 if { (ac_try="$ac_link"
   12383 case "(($ac_try" in
   12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12385   *) ac_try_echo=$ac_try;;
   12386 esac
   12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12388   (eval "$ac_link") 2>conftest.er1
   12389   ac_status=$?
   12390   grep -v '^ *+' conftest.er1 >conftest.err
   12391   rm -f conftest.er1
   12392   cat conftest.err >&5
   12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12394   (exit $ac_status); } && {
   12395 	 test -z "$ac_cxx_werror_flag" ||
   12396 	 test ! -s conftest.err
   12397        } && test -s conftest$ac_exeext &&
   12398        $as_test_x conftest$ac_exeext; then
   12399   ac_cv_func_dlopen=yes
   12400 else
   12401   echo "$as_me: failed program was:" >&5
   12402 sed 's/^/| /' conftest.$ac_ext >&5
   12403 
   12404 	ac_cv_func_dlopen=no
   12405 fi
   12406 
   12407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12408       conftest$ac_exeext conftest.$ac_ext
   12409 fi
   12410 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   12411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   12412 if test $ac_cv_func_dlopen = yes; then
   12413   lt_cv_dlopen="dlopen"
   12414 else
   12415   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   12416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   12417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   12418   echo $ECHO_N "(cached) $ECHO_C" >&6
   12419 else
   12420   ac_check_lib_save_LIBS=$LIBS
   12421 LIBS="-ldl  $LIBS"
   12422 cat >conftest.$ac_ext <<_ACEOF
   12423 /* confdefs.h.  */
   12424 _ACEOF
   12425 cat confdefs.h >>conftest.$ac_ext
   12426 cat >>conftest.$ac_ext <<_ACEOF
   12427 /* end confdefs.h.  */
   12428 
   12429 /* Override any GCC internal prototype to avoid an error.
   12430    Use char because int might match the return type of a GCC
   12431    builtin and then its argument prototype would still apply.  */
   12432 #ifdef __cplusplus
   12433 extern "C"
   12434 #endif
   12435 char dlopen ();
   12436 int
   12437 main ()
   12438 {
   12439 return dlopen ();
   12440   ;
   12441   return 0;
   12442 }
   12443 _ACEOF
   12444 rm -f conftest.$ac_objext conftest$ac_exeext
   12445 if { (ac_try="$ac_link"
   12446 case "(($ac_try" in
   12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12448   *) ac_try_echo=$ac_try;;
   12449 esac
   12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12451   (eval "$ac_link") 2>conftest.er1
   12452   ac_status=$?
   12453   grep -v '^ *+' conftest.er1 >conftest.err
   12454   rm -f conftest.er1
   12455   cat conftest.err >&5
   12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12457   (exit $ac_status); } && {
   12458 	 test -z "$ac_cxx_werror_flag" ||
   12459 	 test ! -s conftest.err
   12460        } && test -s conftest$ac_exeext &&
   12461        $as_test_x conftest$ac_exeext; then
   12462   ac_cv_lib_dl_dlopen=yes
   12463 else
   12464   echo "$as_me: failed program was:" >&5
   12465 sed 's/^/| /' conftest.$ac_ext >&5
   12466 
   12467 	ac_cv_lib_dl_dlopen=no
   12468 fi
   12469 
   12470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12471       conftest$ac_exeext conftest.$ac_ext
   12472 LIBS=$ac_check_lib_save_LIBS
   12473 fi
   12474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   12475 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   12476 if test $ac_cv_lib_dl_dlopen = yes; then
   12477   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   12478 else
   12479   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   12480 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   12481 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   12482   echo $ECHO_N "(cached) $ECHO_C" >&6
   12483 else
   12484   ac_check_lib_save_LIBS=$LIBS
   12485 LIBS="-lsvld  $LIBS"
   12486 cat >conftest.$ac_ext <<_ACEOF
   12487 /* confdefs.h.  */
   12488 _ACEOF
   12489 cat confdefs.h >>conftest.$ac_ext
   12490 cat >>conftest.$ac_ext <<_ACEOF
   12491 /* end confdefs.h.  */
   12492 
   12493 /* Override any GCC internal prototype to avoid an error.
   12494    Use char because int might match the return type of a GCC
   12495    builtin and then its argument prototype would still apply.  */
   12496 #ifdef __cplusplus
   12497 extern "C"
   12498 #endif
   12499 char dlopen ();
   12500 int
   12501 main ()
   12502 {
   12503 return dlopen ();
   12504   ;
   12505   return 0;
   12506 }
   12507 _ACEOF
   12508 rm -f conftest.$ac_objext conftest$ac_exeext
   12509 if { (ac_try="$ac_link"
   12510 case "(($ac_try" in
   12511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12512   *) ac_try_echo=$ac_try;;
   12513 esac
   12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12515   (eval "$ac_link") 2>conftest.er1
   12516   ac_status=$?
   12517   grep -v '^ *+' conftest.er1 >conftest.err
   12518   rm -f conftest.er1
   12519   cat conftest.err >&5
   12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12521   (exit $ac_status); } && {
   12522 	 test -z "$ac_cxx_werror_flag" ||
   12523 	 test ! -s conftest.err
   12524        } && test -s conftest$ac_exeext &&
   12525        $as_test_x conftest$ac_exeext; then
   12526   ac_cv_lib_svld_dlopen=yes
   12527 else
   12528   echo "$as_me: failed program was:" >&5
   12529 sed 's/^/| /' conftest.$ac_ext >&5
   12530 
   12531 	ac_cv_lib_svld_dlopen=no
   12532 fi
   12533 
   12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12535       conftest$ac_exeext conftest.$ac_ext
   12536 LIBS=$ac_check_lib_save_LIBS
   12537 fi
   12538 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   12539 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   12540 if test $ac_cv_lib_svld_dlopen = yes; then
   12541   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   12542 else
   12543   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   12544 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   12545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   12546   echo $ECHO_N "(cached) $ECHO_C" >&6
   12547 else
   12548   ac_check_lib_save_LIBS=$LIBS
   12549 LIBS="-ldld  $LIBS"
   12550 cat >conftest.$ac_ext <<_ACEOF
   12551 /* confdefs.h.  */
   12552 _ACEOF
   12553 cat confdefs.h >>conftest.$ac_ext
   12554 cat >>conftest.$ac_ext <<_ACEOF
   12555 /* end confdefs.h.  */
   12556 
   12557 /* Override any GCC internal prototype to avoid an error.
   12558    Use char because int might match the return type of a GCC
   12559    builtin and then its argument prototype would still apply.  */
   12560 #ifdef __cplusplus
   12561 extern "C"
   12562 #endif
   12563 char dld_link ();
   12564 int
   12565 main ()
   12566 {
   12567 return dld_link ();
   12568   ;
   12569   return 0;
   12570 }
   12571 _ACEOF
   12572 rm -f conftest.$ac_objext conftest$ac_exeext
   12573 if { (ac_try="$ac_link"
   12574 case "(($ac_try" in
   12575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12576   *) ac_try_echo=$ac_try;;
   12577 esac
   12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12579   (eval "$ac_link") 2>conftest.er1
   12580   ac_status=$?
   12581   grep -v '^ *+' conftest.er1 >conftest.err
   12582   rm -f conftest.er1
   12583   cat conftest.err >&5
   12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12585   (exit $ac_status); } && {
   12586 	 test -z "$ac_cxx_werror_flag" ||
   12587 	 test ! -s conftest.err
   12588        } && test -s conftest$ac_exeext &&
   12589        $as_test_x conftest$ac_exeext; then
   12590   ac_cv_lib_dld_dld_link=yes
   12591 else
   12592   echo "$as_me: failed program was:" >&5
   12593 sed 's/^/| /' conftest.$ac_ext >&5
   12594 
   12595 	ac_cv_lib_dld_dld_link=no
   12596 fi
   12597 
   12598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12599       conftest$ac_exeext conftest.$ac_ext
   12600 LIBS=$ac_check_lib_save_LIBS
   12601 fi
   12602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   12603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   12604 if test $ac_cv_lib_dld_dld_link = yes; then
   12605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
   12606 fi
   12607 
   12608 
   12609 fi
   12610 
   12611 
   12612 fi
   12613 
   12614 
   12615 fi
   12616 
   12617 
   12618 fi
   12619 
   12620 
   12621 fi
   12622 
   12623     ;;
   12624   esac
   12625 
   12626   if test "x$lt_cv_dlopen" != xno; then
   12627     enable_dlopen=yes
   12628   else
   12629     enable_dlopen=no
   12630   fi
   12631 
   12632   case $lt_cv_dlopen in
   12633   dlopen)
   12634     save_CPPFLAGS="$CPPFLAGS"
   12635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   12636 
   12637     save_LDFLAGS="$LDFLAGS"
   12638     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   12639 
   12640     save_LIBS="$LIBS"
   12641     LIBS="$lt_cv_dlopen_libs $LIBS"
   12642 
   12643     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
   12644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
   12645 if test "${lt_cv_dlopen_self+set}" = set; then
   12646   echo $ECHO_N "(cached) $ECHO_C" >&6
   12647 else
   12648   	  if test "$cross_compiling" = yes; then :
   12649   lt_cv_dlopen_self=cross
   12650 else
   12651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12652   lt_status=$lt_dlunknown
   12653   cat > conftest.$ac_ext <<EOF
   12654 #line 12654 "configure"
   12655 #include "confdefs.h"
   12656 
   12657 #if HAVE_DLFCN_H
   12658 #include <dlfcn.h>
   12659 #endif
   12660 
   12661 #include <stdio.h>
   12662 
   12663 #ifdef RTLD_GLOBAL
   12664 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12665 #else
   12666 #  ifdef DL_GLOBAL
   12667 #    define LT_DLGLOBAL		DL_GLOBAL
   12668 #  else
   12669 #    define LT_DLGLOBAL		0
   12670 #  endif
   12671 #endif
   12672 
   12673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12674    find out it does not work in some platform. */
   12675 #ifndef LT_DLLAZY_OR_NOW
   12676 #  ifdef RTLD_LAZY
   12677 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12678 #  else
   12679 #    ifdef DL_LAZY
   12680 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12681 #    else
   12682 #      ifdef RTLD_NOW
   12683 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12684 #      else
   12685 #        ifdef DL_NOW
   12686 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12687 #        else
   12688 #          define LT_DLLAZY_OR_NOW	0
   12689 #        endif
   12690 #      endif
   12691 #    endif
   12692 #  endif
   12693 #endif
   12694 
   12695 #ifdef __cplusplus
   12696 extern "C" void exit (int);
   12697 #endif
   12698 
   12699 void fnord() { int i=42;}
   12700 int main ()
   12701 {
   12702   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12703   int status = $lt_dlunknown;
   12704 
   12705   if (self)
   12706     {
   12707       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12708       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   12709       /* dlclose (self); */
   12710     }
   12711 
   12712     exit (status);
   12713 }
   12714 EOF
   12715   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12716   (eval $ac_link) 2>&5
   12717   ac_status=$?
   12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12719   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   12720     (./conftest; exit; ) 2>/dev/null
   12721     lt_status=$?
   12722     case x$lt_status in
   12723       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   12724       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   12725       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
   12726     esac
   12727   else :
   12728     # compilation failed
   12729     lt_cv_dlopen_self=no
   12730   fi
   12731 fi
   12732 rm -fr conftest*
   12733 
   12734 
   12735 fi
   12736 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
   12737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
   12738 
   12739     if test "x$lt_cv_dlopen_self" = xyes; then
   12740       LDFLAGS="$LDFLAGS $link_static_flag"
   12741       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
   12742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
   12743 if test "${lt_cv_dlopen_self_static+set}" = set; then
   12744   echo $ECHO_N "(cached) $ECHO_C" >&6
   12745 else
   12746   	  if test "$cross_compiling" = yes; then :
   12747   lt_cv_dlopen_self_static=cross
   12748 else
   12749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12750   lt_status=$lt_dlunknown
   12751   cat > conftest.$ac_ext <<EOF
   12752 #line 12752 "configure"
   12753 #include "confdefs.h"
   12754 
   12755 #if HAVE_DLFCN_H
   12756 #include <dlfcn.h>
   12757 #endif
   12758 
   12759 #include <stdio.h>
   12760 
   12761 #ifdef RTLD_GLOBAL
   12762 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12763 #else
   12764 #  ifdef DL_GLOBAL
   12765 #    define LT_DLGLOBAL		DL_GLOBAL
   12766 #  else
   12767 #    define LT_DLGLOBAL		0
   12768 #  endif
   12769 #endif
   12770 
   12771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12772    find out it does not work in some platform. */
   12773 #ifndef LT_DLLAZY_OR_NOW
   12774 #  ifdef RTLD_LAZY
   12775 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12776 #  else
   12777 #    ifdef DL_LAZY
   12778 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12779 #    else
   12780 #      ifdef RTLD_NOW
   12781 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12782 #      else
   12783 #        ifdef DL_NOW
   12784 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12785 #        else
   12786 #          define LT_DLLAZY_OR_NOW	0
   12787 #        endif
   12788 #      endif
   12789 #    endif
   12790 #  endif
   12791 #endif
   12792 
   12793 #ifdef __cplusplus
   12794 extern "C" void exit (int);
   12795 #endif
   12796 
   12797 void fnord() { int i=42;}
   12798 int main ()
   12799 {
   12800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12801   int status = $lt_dlunknown;
   12802 
   12803   if (self)
   12804     {
   12805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   12807       /* dlclose (self); */
   12808     }
   12809 
   12810     exit (status);
   12811 }
   12812 EOF
   12813   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12814   (eval $ac_link) 2>&5
   12815   ac_status=$?
   12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12817   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   12818     (./conftest; exit; ) 2>/dev/null
   12819     lt_status=$?
   12820     case x$lt_status in
   12821       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   12822       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   12823       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
   12824     esac
   12825   else :
   12826     # compilation failed
   12827     lt_cv_dlopen_self_static=no
   12828   fi
   12829 fi
   12830 rm -fr conftest*
   12831 
   12832 
   12833 fi
   12834 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
   12835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
   12836     fi
   12837 
   12838     CPPFLAGS="$save_CPPFLAGS"
   12839     LDFLAGS="$save_LDFLAGS"
   12840     LIBS="$save_LIBS"
   12841     ;;
   12842   esac
   12843 
   12844   case $lt_cv_dlopen_self in
   12845   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   12846   *) enable_dlopen_self=unknown ;;
   12847   esac
   12848 
   12849   case $lt_cv_dlopen_self_static in
   12850   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   12851   *) enable_dlopen_self_static=unknown ;;
   12852   esac
   12853 fi
   12854 
   12855 
   12856 # The else clause should only fire when bootstrapping the
   12857 # libtool distribution, otherwise you forgot to ship ltmain.sh
   12858 # with your package, and you will get complaints that there are
   12859 # no rules to generate ltmain.sh.
   12860 if test -f "$ltmain"; then
   12861   # See if we are running on zsh, and set the options which allow our commands through
   12862   # without removal of \ escapes.
   12863   if test -n "${ZSH_VERSION+set}" ; then
   12864     setopt NO_GLOB_SUBST
   12865   fi
   12866   # Now quote all the things that may contain metacharacters while being
   12867   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   12868   # variables and quote the copies for generation of the libtool script.
   12869   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   12870     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   12871     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   12872     deplibs_check_method reload_flag reload_cmds need_locks \
   12873     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   12874     lt_cv_sys_global_symbol_to_c_name_address \
   12875     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   12876     old_postinstall_cmds old_postuninstall_cmds \
   12877     compiler_CXX \
   12878     CC_CXX \
   12879     LD_CXX \
   12880     lt_prog_compiler_wl_CXX \
   12881     lt_prog_compiler_pic_CXX \
   12882     lt_prog_compiler_static_CXX \
   12883     lt_prog_compiler_no_builtin_flag_CXX \
   12884     export_dynamic_flag_spec_CXX \
   12885     thread_safe_flag_spec_CXX \
   12886     whole_archive_flag_spec_CXX \
   12887     enable_shared_with_static_runtimes_CXX \
   12888     old_archive_cmds_CXX \
   12889     old_archive_from_new_cmds_CXX \
   12890     predep_objects_CXX \
   12891     postdep_objects_CXX \
   12892     predeps_CXX \
   12893     postdeps_CXX \
   12894     compiler_lib_search_path_CXX \
   12895     archive_cmds_CXX \
   12896     archive_expsym_cmds_CXX \
   12897     postinstall_cmds_CXX \
   12898     postuninstall_cmds_CXX \
   12899     old_archive_from_expsyms_cmds_CXX \
   12900     allow_undefined_flag_CXX \
   12901     no_undefined_flag_CXX \
   12902     export_symbols_cmds_CXX \
   12903     hardcode_libdir_flag_spec_CXX \
   12904     hardcode_libdir_flag_spec_ld_CXX \
   12905     hardcode_libdir_separator_CXX \
   12906     hardcode_automatic_CXX \
   12907     module_cmds_CXX \
   12908     module_expsym_cmds_CXX \
   12909     lt_cv_prog_compiler_c_o_CXX \
   12910     exclude_expsyms_CXX \
   12911     include_expsyms_CXX; do
   12912 
   12913     case $var in
   12914     old_archive_cmds_CXX | \
   12915     old_archive_from_new_cmds_CXX | \
   12916     archive_cmds_CXX | \
   12917     archive_expsym_cmds_CXX | \
   12918     module_cmds_CXX | \
   12919     module_expsym_cmds_CXX | \
   12920     old_archive_from_expsyms_cmds_CXX | \
   12921     export_symbols_cmds_CXX | \
   12922     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   12923     postinstall_cmds | postuninstall_cmds | \
   12924     old_postinstall_cmds | old_postuninstall_cmds | \
   12925     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   12926       # Double-quote double-evaled strings.
   12927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   12928       ;;
   12929     *)
   12930       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   12931       ;;
   12932     esac
   12933   done
   12934 
   12935   case $lt_echo in
   12936   *'\$0 --fallback-echo"')
   12937     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   12938     ;;
   12939   esac
   12940 
   12941 cfgfile="$ofile"
   12942 
   12943   cat <<__EOF__ >> "$cfgfile"
   12944 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   12945 
   12946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   12947 
   12948 # Shell to use when invoking shell scripts.
   12949 SHELL=$lt_SHELL
   12950 
   12951 # Whether or not to build shared libraries.
   12952 build_libtool_libs=$enable_shared
   12953 
   12954 # Whether or not to build static libraries.
   12955 build_old_libs=$enable_static
   12956 
   12957 # Whether or not to add -lc for building shared libraries.
   12958 build_libtool_need_lc=$archive_cmds_need_lc_CXX
   12959 
   12960 # Whether or not to disallow shared libs when runtime libs are static
   12961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
   12962 
   12963 # Whether or not to optimize for fast installation.
   12964 fast_install=$enable_fast_install
   12965 
   12966 # The host system.
   12967 host_alias=$host_alias
   12968 host=$host
   12969 
   12970 # An echo program that does not interpret backslashes.
   12971 echo=$lt_echo
   12972 
   12973 # The archiver.
   12974 AR=$lt_AR
   12975 AR_FLAGS=$lt_AR_FLAGS
   12976 
   12977 # A C compiler.
   12978 LTCC=$lt_LTCC
   12979 
   12980 # A language-specific compiler.
   12981 CC=$lt_compiler_CXX
   12982 
   12983 # Is the compiler the GNU C compiler?
   12984 with_gcc=$GCC_CXX
   12985 
   12986 # An ERE matcher.
   12987 EGREP=$lt_EGREP
   12988 
   12989 # The linker used to build libraries.
   12990 LD=$lt_LD_CXX
   12991 
   12992 # Whether we need hard or soft links.
   12993 LN_S=$lt_LN_S
   12994 
   12995 # A BSD-compatible nm program.
   12996 NM=$lt_NM
   12997 
   12998 # A symbol stripping program
   12999 STRIP="$STRIP"
   13000 
   13001 # Used to examine libraries when file_magic_cmd begins "file"
   13002 MAGIC_CMD=$MAGIC_CMD
   13003 
   13004 # Used on cygwin: DLL creation program.
   13005 DLLTOOL="$DLLTOOL"
   13006 
   13007 # Used on cygwin: object dumper.
   13008 OBJDUMP="$OBJDUMP"
   13009 
   13010 # Used on cygwin: assembler.
   13011 AS="$AS"
   13012 
   13013 # The name of the directory that contains temporary libtool files.
   13014 objdir=$objdir
   13015 
   13016 # How to create reloadable object files.
   13017 reload_flag=$lt_reload_flag
   13018 reload_cmds=$lt_reload_cmds
   13019 
   13020 # How to pass a linker flag through the compiler.
   13021 wl=$lt_lt_prog_compiler_wl_CXX
   13022 
   13023 # Object file suffix (normally "o").
   13024 objext="$ac_objext"
   13025 
   13026 # Old archive suffix (normally "a").
   13027 libext="$libext"
   13028 
   13029 # Shared library suffix (normally ".so").
   13030 shrext='$shrext'
   13031 
   13032 # Executable file suffix (normally "").
   13033 exeext="$exeext"
   13034 
   13035 # Additional compiler flags for building library objects.
   13036 pic_flag=$lt_lt_prog_compiler_pic_CXX
   13037 pic_mode=$pic_mode
   13038 
   13039 # What is the maximum length of a command?
   13040 max_cmd_len=$lt_cv_sys_max_cmd_len
   13041 
   13042 # Does compiler simultaneously support -c and -o options?
   13043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
   13044 
   13045 # Must we lock files when doing compilation ?
   13046 need_locks=$lt_need_locks
   13047 
   13048 # Do we need the lib prefix for modules?
   13049 need_lib_prefix=$need_lib_prefix
   13050 
   13051 # Do we need a version for libraries?
   13052 need_version=$need_version
   13053 
   13054 # Whether dlopen is supported.
   13055 dlopen_support=$enable_dlopen
   13056 
   13057 # Whether dlopen of programs is supported.
   13058 dlopen_self=$enable_dlopen_self
   13059 
   13060 # Whether dlopen of statically linked programs is supported.
   13061 dlopen_self_static=$enable_dlopen_self_static
   13062 
   13063 # Compiler flag to prevent dynamic linking.
   13064 link_static_flag=$lt_lt_prog_compiler_static_CXX
   13065 
   13066 # Compiler flag to turn off builtin functions.
   13067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
   13068 
   13069 # Compiler flag to allow reflexive dlopens.
   13070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
   13071 
   13072 # Compiler flag to generate shared objects directly from archives.
   13073 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
   13074 
   13075 # Compiler flag to generate thread-safe objects.
   13076 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
   13077 
   13078 # Library versioning type.
   13079 version_type=$version_type
   13080 
   13081 # Format of library name prefix.
   13082 libname_spec=$lt_libname_spec
   13083 
   13084 # List of archive names.  First name is the real one, the rest are links.
   13085 # The last name is the one that the linker finds with -lNAME.
   13086 library_names_spec=$lt_library_names_spec
   13087 
   13088 # The coded name of the library, if different from the real name.
   13089 soname_spec=$lt_soname_spec
   13090 
   13091 # Commands used to build and install an old-style archive.
   13092 RANLIB=$lt_RANLIB
   13093 old_archive_cmds=$lt_old_archive_cmds_CXX
   13094 old_postinstall_cmds=$lt_old_postinstall_cmds
   13095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   13096 
   13097 # Create an old-style archive from a shared archive.
   13098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
   13099 
   13100 # Create a temporary old-style archive to link instead of a shared archive.
   13101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
   13102 
   13103 # Commands used to build and install a shared archive.
   13104 archive_cmds=$lt_archive_cmds_CXX
   13105 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
   13106 postinstall_cmds=$lt_postinstall_cmds
   13107 postuninstall_cmds=$lt_postuninstall_cmds
   13108 
   13109 # Commands used to build a loadable module (assumed same as above if empty)
   13110 module_cmds=$lt_module_cmds_CXX
   13111 module_expsym_cmds=$lt_module_expsym_cmds_CXX
   13112 
   13113 # Commands to strip libraries.
   13114 old_striplib=$lt_old_striplib
   13115 striplib=$lt_striplib
   13116 
   13117 # Dependencies to place before the objects being linked to create a
   13118 # shared library.
   13119 predep_objects=$lt_predep_objects_CXX
   13120 
   13121 # Dependencies to place after the objects being linked to create a
   13122 # shared library.
   13123 postdep_objects=$lt_postdep_objects_CXX
   13124 
   13125 # Dependencies to place before the objects being linked to create a
   13126 # shared library.
   13127 predeps=$lt_predeps_CXX
   13128 
   13129 # Dependencies to place after the objects being linked to create a
   13130 # shared library.
   13131 postdeps=$lt_postdeps_CXX
   13132 
   13133 # The library search path used internally by the compiler when linking
   13134 # a shared library.
   13135 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
   13136 
   13137 # Method to check whether dependent libraries are shared objects.
   13138 deplibs_check_method=$lt_deplibs_check_method
   13139 
   13140 # Command to use when deplibs_check_method == file_magic.
   13141 file_magic_cmd=$lt_file_magic_cmd
   13142 
   13143 # Flag that allows shared libraries with undefined symbols to be built.
   13144 allow_undefined_flag=$lt_allow_undefined_flag_CXX
   13145 
   13146 # Flag that forces no undefined symbols.
   13147 no_undefined_flag=$lt_no_undefined_flag_CXX
   13148 
   13149 # Commands used to finish a libtool library installation in a directory.
   13150 finish_cmds=$lt_finish_cmds
   13151 
   13152 # Same as above, but a single script fragment to be evaled but not shown.
   13153 finish_eval=$lt_finish_eval
   13154 
   13155 # Take the output of nm and produce a listing of raw symbols and C names.
   13156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   13157 
   13158 # Transform the output of nm in a proper C declaration
   13159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   13160 
   13161 # Transform the output of nm in a C name address pair
   13162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   13163 
   13164 # This is the shared library runtime path variable.
   13165 runpath_var=$runpath_var
   13166 
   13167 # This is the shared library path variable.
   13168 shlibpath_var=$shlibpath_var
   13169 
   13170 # Is shlibpath searched before the hard-coded library search path?
   13171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   13172 
   13173 # How to hardcode a shared library path into an executable.
   13174 hardcode_action=$hardcode_action_CXX
   13175 
   13176 # Whether we should hardcode library paths into libraries.
   13177 hardcode_into_libs=$hardcode_into_libs
   13178 
   13179 # Flag to hardcode \$libdir into a binary during linking.
   13180 # This must work even if \$libdir does not exist.
   13181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
   13182 
   13183 # If ld is used when linking, flag to hardcode \$libdir into
   13184 # a binary during linking. This must work even if \$libdir does
   13185 # not exist.
   13186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
   13187 
   13188 # Whether we need a single -rpath flag with a separated argument.
   13189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
   13190 
   13191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   13192 # resulting binary.
   13193 hardcode_direct=$hardcode_direct_CXX
   13194 
   13195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   13196 # resulting binary.
   13197 hardcode_minus_L=$hardcode_minus_L_CXX
   13198 
   13199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   13200 # the resulting binary.
   13201 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
   13202 
   13203 # Set to yes if building a shared library automatically hardcodes DIR into the library
   13204 # and all subsequent libraries and executables linked against it.
   13205 hardcode_automatic=$hardcode_automatic_CXX
   13206 
   13207 # Variables whose values should be saved in libtool wrapper scripts and
   13208 # restored at relink time.
   13209 variables_saved_for_relink="$variables_saved_for_relink"
   13210 
   13211 # Whether libtool must link a program against all its dependency libraries.
   13212 link_all_deplibs=$link_all_deplibs_CXX
   13213 
   13214 # Compile-time system search path for libraries
   13215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   13216 
   13217 # Run-time system search path for libraries
   13218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   13219 
   13220 # Fix the shell variable \$srcfile for the compiler.
   13221 fix_srcfile_path="$fix_srcfile_path_CXX"
   13222 
   13223 # Set to yes if exported symbols are required.
   13224 always_export_symbols=$always_export_symbols_CXX
   13225 
   13226 # The commands to list exported symbols.
   13227 export_symbols_cmds=$lt_export_symbols_cmds_CXX
   13228 
   13229 # The commands to extract the exported symbol list from a shared archive.
   13230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   13231 
   13232 # Symbols that should not be listed in the preloaded symbols.
   13233 exclude_expsyms=$lt_exclude_expsyms_CXX
   13234 
   13235 # Symbols that must always be exported.
   13236 include_expsyms=$lt_include_expsyms_CXX
   13237 
   13238 # ### END LIBTOOL TAG CONFIG: $tagname
   13239 
   13240 __EOF__
   13241 
   13242 
   13243 else
   13244   # If there is no Makefile yet, we rely on a make rule to execute
   13245   # `config.status --recheck' to rerun these tests and create the
   13246   # libtool script then.
   13247   test -f Makefile && make "$ltmain"
   13248 fi
   13249 
   13250 
   13251 ac_ext=c
   13252 ac_cpp='$CPP $CPPFLAGS'
   13253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13256 
   13257 CC=$lt_save_CC
   13258 LDCXX=$LD
   13259 LD=$lt_save_LD
   13260 GCC=$lt_save_GCC
   13261 with_gnu_ldcxx=$with_gnu_ld
   13262 with_gnu_ld=$lt_save_with_gnu_ld
   13263 lt_cv_path_LDCXX=$lt_cv_path_LD
   13264 lt_cv_path_LD=$lt_save_path_LD
   13265 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
   13266 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
   13267 
   13268 	else
   13269 	  tagname=""
   13270 	fi
   13271 	;;
   13272 
   13273       F77)
   13274 	if test -n "$F77" && test "X$F77" != "Xno"; then
   13275 
   13276 ac_ext=f
   13277 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
   13278 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13279 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
   13280 
   13281 
   13282 archive_cmds_need_lc_F77=no
   13283 allow_undefined_flag_F77=
   13284 always_export_symbols_F77=no
   13285 archive_expsym_cmds_F77=
   13286 export_dynamic_flag_spec_F77=
   13287 hardcode_direct_F77=no
   13288 hardcode_libdir_flag_spec_F77=
   13289 hardcode_libdir_flag_spec_ld_F77=
   13290 hardcode_libdir_separator_F77=
   13291 hardcode_minus_L_F77=no
   13292 hardcode_automatic_F77=no
   13293 module_cmds_F77=
   13294 module_expsym_cmds_F77=
   13295 link_all_deplibs_F77=unknown
   13296 old_archive_cmds_F77=$old_archive_cmds
   13297 no_undefined_flag_F77=
   13298 whole_archive_flag_spec_F77=
   13299 enable_shared_with_static_runtimes_F77=no
   13300 
   13301 # Source file extension for f77 test sources.
   13302 ac_ext=f
   13303 
   13304 # Object file extension for compiled f77 test sources.
   13305 objext=o
   13306 objext_F77=$objext
   13307 
   13308 # Code to be used in simple compile tests
   13309 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
   13310 
   13311 # Code to be used in simple link tests
   13312 lt_simple_link_test_code="      program t\n      end\n"
   13313 
   13314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   13315 
   13316 # If no C compiler was specified, use CC.
   13317 LTCC=${LTCC-"$CC"}
   13318 
   13319 # Allow CC to be a program name with arguments.
   13320 compiler=$CC
   13321 
   13322 
   13323 # Allow CC to be a program name with arguments.
   13324 lt_save_CC="$CC"
   13325 CC=${F77-"f77"}
   13326 compiler=$CC
   13327 compiler_F77=$CC
   13328 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   13329 
   13330 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
   13331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
   13332 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
   13333 echo "${ECHO_T}$can_build_shared" >&6; }
   13334 
   13335 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
   13336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
   13337 test "$can_build_shared" = "no" && enable_shared=no
   13338 
   13339 # On AIX, shared libraries and static libraries use the same namespace, and
   13340 # are all built from PIC.
   13341 case "$host_os" in
   13342 aix3*)
   13343   test "$enable_shared" = yes && enable_static=no
   13344   if test -n "$RANLIB"; then
   13345     archive_cmds="$archive_cmds~\$RANLIB \$lib"
   13346     postinstall_cmds='$RANLIB $lib'
   13347   fi
   13348   ;;
   13349 aix4*)
   13350   test "$enable_shared" = yes && enable_static=no
   13351   ;;
   13352 esac
   13353 { echo "$as_me:$LINENO: result: $enable_shared" >&5
   13354 echo "${ECHO_T}$enable_shared" >&6; }
   13355 
   13356 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
   13357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
   13358 # Make sure either enable_shared or enable_static is yes.
   13359 test "$enable_shared" = yes || enable_static=yes
   13360 { echo "$as_me:$LINENO: result: $enable_static" >&5
   13361 echo "${ECHO_T}$enable_static" >&6; }
   13362 
   13363 test "$ld_shlibs_F77" = no && can_build_shared=no
   13364 
   13365 GCC_F77="$G77"
   13366 LD_F77="$LD"
   13367 
   13368 lt_prog_compiler_wl_F77=
   13369 lt_prog_compiler_pic_F77=
   13370 lt_prog_compiler_static_F77=
   13371 
   13372 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   13373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   13374 
   13375   if test "$GCC" = yes; then
   13376     lt_prog_compiler_wl_F77='-Wl,'
   13377     lt_prog_compiler_static_F77='-static'
   13378 
   13379     case $host_os in
   13380       aix*)
   13381       # All AIX code is PIC.
   13382       if test "$host_cpu" = ia64; then
   13383 	# AIX 5 now supports IA64 processor
   13384 	lt_prog_compiler_static_F77='-Bstatic'
   13385       fi
   13386       ;;
   13387 
   13388     amigaos*)
   13389       # FIXME: we need at least 68020 code to build shared libraries, but
   13390       # adding the `-m68020' flag to GCC prevents building anything better,
   13391       # like `-m68040'.
   13392       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
   13393       ;;
   13394 
   13395     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   13396       # PIC is the default for these OSes.
   13397       ;;
   13398 
   13399     mingw* | pw32* | os2*)
   13400       # This hack is so that the source file can tell whether it is being
   13401       # built for inclusion in a dll (and should export symbols for example).
   13402       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
   13403       ;;
   13404 
   13405     darwin* | rhapsody*)
   13406       # PIC is the default on this platform
   13407       # Common symbols not allowed in MH_DYLIB files
   13408       lt_prog_compiler_pic_F77='-fno-common'
   13409       ;;
   13410 
   13411     msdosdjgpp*)
   13412       # Just because we use GCC doesn't mean we suddenly get shared libraries
   13413       # on systems that don't support them.
   13414       lt_prog_compiler_can_build_shared_F77=no
   13415       enable_shared=no
   13416       ;;
   13417 
   13418     sysv4*MP*)
   13419       if test -d /usr/nec; then
   13420 	lt_prog_compiler_pic_F77=-Kconform_pic
   13421       fi
   13422       ;;
   13423 
   13424     hpux*)
   13425       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   13426       # not for PA HP-UX.
   13427       case "$host_cpu" in
   13428       hppa*64*|ia64*)
   13429 	# +Z the default
   13430 	;;
   13431       *)
   13432 	lt_prog_compiler_pic_F77='-fPIC'
   13433 	;;
   13434       esac
   13435       ;;
   13436 
   13437     *)
   13438       lt_prog_compiler_pic_F77='-fPIC'
   13439       ;;
   13440     esac
   13441   else
   13442     # PORTME Check for flag to pass linker flags through the system compiler.
   13443     case $host_os in
   13444     aix*)
   13445       lt_prog_compiler_wl_F77='-Wl,'
   13446       if test "$host_cpu" = ia64; then
   13447 	# AIX 5 now supports IA64 processor
   13448 	lt_prog_compiler_static_F77='-Bstatic'
   13449       else
   13450 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
   13451       fi
   13452       ;;
   13453 
   13454     mingw* | pw32* | os2*)
   13455       # This hack is so that the source file can tell whether it is being
   13456       # built for inclusion in a dll (and should export symbols for example).
   13457       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
   13458       ;;
   13459 
   13460     hpux9* | hpux10* | hpux11*)
   13461       lt_prog_compiler_wl_F77='-Wl,'
   13462       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   13463       # not for PA HP-UX.
   13464       case "$host_cpu" in
   13465       hppa*64*|ia64*)
   13466 	# +Z the default
   13467 	;;
   13468       *)
   13469 	lt_prog_compiler_pic_F77='+Z'
   13470 	;;
   13471       esac
   13472       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   13473       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
   13474       ;;
   13475 
   13476     irix5* | irix6* | nonstopux*)
   13477       lt_prog_compiler_wl_F77='-Wl,'
   13478       # PIC (with -KPIC) is the default.
   13479       lt_prog_compiler_static_F77='-non_shared'
   13480       ;;
   13481 
   13482     newsos6)
   13483       lt_prog_compiler_pic_F77='-KPIC'
   13484       lt_prog_compiler_static_F77='-Bstatic'
   13485       ;;
   13486 
   13487     linux*)
   13488       case $CC in
   13489       icc* | ecc*)
   13490 	lt_prog_compiler_wl_F77='-Wl,'
   13491 	lt_prog_compiler_pic_F77='-KPIC'
   13492 	lt_prog_compiler_static_F77='-static'
   13493         ;;
   13494       ccc*)
   13495         lt_prog_compiler_wl_F77='-Wl,'
   13496         # All Alpha code is PIC.
   13497         lt_prog_compiler_static_F77='-non_shared'
   13498         ;;
   13499       esac
   13500       ;;
   13501 
   13502     osf3* | osf4* | osf5*)
   13503       lt_prog_compiler_wl_F77='-Wl,'
   13504       # All OSF/1 code is PIC.
   13505       lt_prog_compiler_static_F77='-non_shared'
   13506       ;;
   13507 
   13508     sco3.2v5*)
   13509       lt_prog_compiler_pic_F77='-Kpic'
   13510       lt_prog_compiler_static_F77='-dn'
   13511       ;;
   13512 
   13513     solaris*)
   13514       lt_prog_compiler_wl_F77='-Wl,'
   13515       lt_prog_compiler_pic_F77='-KPIC'
   13516       lt_prog_compiler_static_F77='-Bstatic'
   13517       ;;
   13518 
   13519     sunos4*)
   13520       lt_prog_compiler_wl_F77='-Qoption ld '
   13521       lt_prog_compiler_pic_F77='-PIC'
   13522       lt_prog_compiler_static_F77='-Bstatic'
   13523       ;;
   13524 
   13525     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   13526       lt_prog_compiler_wl_F77='-Wl,'
   13527       lt_prog_compiler_pic_F77='-KPIC'
   13528       lt_prog_compiler_static_F77='-Bstatic'
   13529       ;;
   13530 
   13531     sysv4*MP*)
   13532       if test -d /usr/nec ;then
   13533 	lt_prog_compiler_pic_F77='-Kconform_pic'
   13534 	lt_prog_compiler_static_F77='-Bstatic'
   13535       fi
   13536       ;;
   13537 
   13538     uts4*)
   13539       lt_prog_compiler_pic_F77='-pic'
   13540       lt_prog_compiler_static_F77='-Bstatic'
   13541       ;;
   13542 
   13543     *)
   13544       lt_prog_compiler_can_build_shared_F77=no
   13545       ;;
   13546     esac
   13547   fi
   13548 
   13549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
   13550 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
   13551 
   13552 #
   13553 # Check to make sure the PIC flag actually works.
   13554 #
   13555 if test -n "$lt_prog_compiler_pic_F77"; then
   13556 
   13557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
   13558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
   13559 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
   13560   echo $ECHO_N "(cached) $ECHO_C" >&6
   13561 else
   13562   lt_prog_compiler_pic_works_F77=no
   13563   ac_outfile=conftest.$ac_objext
   13564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   13565    lt_compiler_flag="$lt_prog_compiler_pic_F77"
   13566    # Insert the option either (1) after the last *FLAGS variable, or
   13567    # (2) before a word containing "conftest.", or (3) at the end.
   13568    # Note that $ac_compile itself does not contain backslashes and begins
   13569    # with a dollar sign (not a hyphen), so the echo should work correctly.
   13570    # The option is referenced via a variable to avoid confusing sed.
   13571    lt_compile=`echo "$ac_compile" | $SED \
   13572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   13573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   13574    -e 's:$: $lt_compiler_flag:'`
   13575    (eval echo "\"\$as_me:13575: $lt_compile\"" >&5)
   13576    (eval "$lt_compile" 2>conftest.err)
   13577    ac_status=$?
   13578    cat conftest.err >&5
   13579    echo "$as_me:13579: \$? = $ac_status" >&5
   13580    if (exit $ac_status) && test -s "$ac_outfile"; then
   13581      # The compiler can only warn and ignore the option if not recognized
   13582      # So say no if there are warnings
   13583      if test ! -s conftest.err; then
   13584        lt_prog_compiler_pic_works_F77=yes
   13585      fi
   13586    fi
   13587    $rm conftest*
   13588 
   13589 fi
   13590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
   13591 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
   13592 
   13593 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
   13594     case $lt_prog_compiler_pic_F77 in
   13595      "" | " "*) ;;
   13596      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
   13597      esac
   13598 else
   13599     lt_prog_compiler_pic_F77=
   13600      lt_prog_compiler_can_build_shared_F77=no
   13601 fi
   13602 
   13603 fi
   13604 case "$host_os" in
   13605   # For platforms which do not support PIC, -DPIC is meaningless:
   13606   *djgpp*)
   13607     lt_prog_compiler_pic_F77=
   13608     ;;
   13609   *)
   13610     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
   13611     ;;
   13612 esac
   13613 
   13614 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   13615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   13616 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
   13617   echo $ECHO_N "(cached) $ECHO_C" >&6
   13618 else
   13619   lt_cv_prog_compiler_c_o_F77=no
   13620    $rm -r conftest 2>/dev/null
   13621    mkdir conftest
   13622    cd conftest
   13623    mkdir out
   13624    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   13625 
   13626    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   13627    # that will create temporary files in the current directory regardless of
   13628    # the output directory.  Thus, making CWD read-only will cause this test
   13629    # to fail, enabling locking or at least warning the user not to do parallel
   13630    # builds.
   13631    chmod -w .
   13632 
   13633    lt_compiler_flag="-o out/conftest2.$ac_objext"
   13634    # Insert the option either (1) after the last *FLAGS variable, or
   13635    # (2) before a word containing "conftest.", or (3) at the end.
   13636    # Note that $ac_compile itself does not contain backslashes and begins
   13637    # with a dollar sign (not a hyphen), so the echo should work correctly.
   13638    lt_compile=`echo "$ac_compile" | $SED \
   13639    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   13640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   13641    -e 's:$: $lt_compiler_flag:'`
   13642    (eval echo "\"\$as_me:13642: $lt_compile\"" >&5)
   13643    (eval "$lt_compile" 2>out/conftest.err)
   13644    ac_status=$?
   13645    cat out/conftest.err >&5
   13646    echo "$as_me:13646: \$? = $ac_status" >&5
   13647    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   13648    then
   13649      # The compiler can only warn and ignore the option if not recognized
   13650      # So say no if there are warnings
   13651      if test ! -s out/conftest.err; then
   13652        lt_cv_prog_compiler_c_o_F77=yes
   13653      fi
   13654    fi
   13655    chmod u+w .
   13656    $rm conftest*
   13657    # SGI C++ compiler will create directory out/ii_files/ for
   13658    # template instantiation
   13659    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   13660    $rm out/* && rmdir out
   13661    cd ..
   13662    rmdir conftest
   13663    $rm conftest*
   13664 
   13665 fi
   13666 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
   13667 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
   13668 
   13669 
   13670 hard_links="nottested"
   13671 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
   13672   # do not overwrite the value of need_locks provided by the user
   13673   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   13674 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   13675   hard_links=yes
   13676   $rm conftest*
   13677   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   13678   touch conftest.a
   13679   ln conftest.a conftest.b 2>&5 || hard_links=no
   13680   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   13681   { echo "$as_me:$LINENO: result: $hard_links" >&5
   13682 echo "${ECHO_T}$hard_links" >&6; }
   13683   if test "$hard_links" = no; then
   13684     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   13685 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   13686     need_locks=warn
   13687   fi
   13688 else
   13689   need_locks=no
   13690 fi
   13691 
   13692 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   13693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   13694 
   13695   runpath_var=
   13696   allow_undefined_flag_F77=
   13697   enable_shared_with_static_runtimes_F77=no
   13698   archive_cmds_F77=
   13699   archive_expsym_cmds_F77=
   13700   old_archive_From_new_cmds_F77=
   13701   old_archive_from_expsyms_cmds_F77=
   13702   export_dynamic_flag_spec_F77=
   13703   whole_archive_flag_spec_F77=
   13704   thread_safe_flag_spec_F77=
   13705   hardcode_libdir_flag_spec_F77=
   13706   hardcode_libdir_flag_spec_ld_F77=
   13707   hardcode_libdir_separator_F77=
   13708   hardcode_direct_F77=no
   13709   hardcode_minus_L_F77=no
   13710   hardcode_shlibpath_var_F77=unsupported
   13711   link_all_deplibs_F77=unknown
   13712   hardcode_automatic_F77=no
   13713   module_cmds_F77=
   13714   module_expsym_cmds_F77=
   13715   always_export_symbols_F77=no
   13716   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   13717   # include_expsyms should be a list of space-separated symbols to be *always*
   13718   # included in the symbol list
   13719   include_expsyms_F77=
   13720   # exclude_expsyms can be an extended regexp of symbols to exclude
   13721   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   13722   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   13723   # as well as any symbol that contains `d'.
   13724   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
   13725   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   13726   # platforms (ab)use it in PIC code, but their linkers get confused if
   13727   # the symbol is explicitly referenced.  Since portable code cannot
   13728   # rely on this symbol name, it's probably fine to never include it in
   13729   # preloaded symbol tables.
   13730   extract_expsyms_cmds=
   13731 
   13732   case $host_os in
   13733   cygwin* | mingw* | pw32*)
   13734     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   13735     # When not using gcc, we currently assume that we are using
   13736     # Microsoft Visual C++.
   13737     if test "$GCC" != yes; then
   13738       with_gnu_ld=no
   13739     fi
   13740     ;;
   13741   openbsd*)
   13742     with_gnu_ld=no
   13743     ;;
   13744   esac
   13745 
   13746   ld_shlibs_F77=yes
   13747   if test "$with_gnu_ld" = yes; then
   13748     # If archive_cmds runs LD, not CC, wlarc should be empty
   13749     wlarc='${wl}'
   13750 
   13751     # See if GNU ld supports shared libraries.
   13752     case $host_os in
   13753     aix3* | aix4* | aix5*)
   13754       # On AIX/PPC, the GNU linker is very broken
   13755       if test "$host_cpu" != ia64; then
   13756 	ld_shlibs_F77=no
   13757 	cat <<EOF 1>&2
   13758 
   13759 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   13760 *** to be unable to reliably create shared libraries on AIX.
   13761 *** Therefore, libtool is disabling shared libraries support.  If you
   13762 *** really care for shared libraries, you may want to modify your PATH
   13763 *** so that a non-GNU linker is found, and then restart.
   13764 
   13765 EOF
   13766       fi
   13767       ;;
   13768 
   13769     amigaos*)
   13770       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   13771       hardcode_libdir_flag_spec_F77='-L$libdir'
   13772       hardcode_minus_L_F77=yes
   13773 
   13774       # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
   13775       # that the semantics of dynamic libraries on AmigaOS, at least up
   13776       # to version 4, is to share data among multiple programs linked
   13777       # with the same dynamic library.  Since this doesn't match the
   13778       # behavior of shared libraries on other platforms, we can't use
   13779       # them.
   13780       ld_shlibs_F77=no
   13781       ;;
   13782 
   13783     beos*)
   13784       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   13785 	allow_undefined_flag_F77=unsupported
   13786 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   13787 	# support --undefined.  This deserves some investigation.  FIXME
   13788 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13789       else
   13790 	ld_shlibs_F77=no
   13791       fi
   13792       ;;
   13793 
   13794     cygwin* | mingw* | pw32*)
   13795       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
   13796       # as there is no search path for DLLs.
   13797       hardcode_libdir_flag_spec_F77='-L$libdir'
   13798       allow_undefined_flag_F77=unsupported
   13799       always_export_symbols_F77=no
   13800       enable_shared_with_static_runtimes_F77=yes
   13801       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   13802 
   13803       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   13804         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   13805 	# If the export-symbols file already is a .def file (1st line
   13806 	# is EXPORTS), use it as is; otherwise, prepend...
   13807 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   13808 	  cp $export_symbols $output_objdir/$soname.def;
   13809 	else
   13810 	  echo EXPORTS > $output_objdir/$soname.def;
   13811 	  cat $export_symbols >> $output_objdir/$soname.def;
   13812 	fi~
   13813 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
   13814       else
   13815 	ld_shlibs=no
   13816       fi
   13817       ;;
   13818 
   13819     netbsd*)
   13820       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   13821 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   13822 	wlarc=
   13823       else
   13824 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13825 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   13826       fi
   13827       ;;
   13828 
   13829     solaris* | sysv5*)
   13830       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
   13831 	ld_shlibs_F77=no
   13832 	cat <<EOF 1>&2
   13833 
   13834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   13835 *** create shared libraries on Solaris systems.  Therefore, libtool
   13836 *** is disabling shared libraries support.  We urge you to upgrade GNU
   13837 *** binutils to release 2.9.1 or newer.  Another option is to modify
   13838 *** your PATH or compiler configuration so that the native linker is
   13839 *** used, and then restart.
   13840 
   13841 EOF
   13842       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   13843 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13844 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   13845       else
   13846 	ld_shlibs_F77=no
   13847       fi
   13848       ;;
   13849 
   13850     sunos4*)
   13851       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   13852       wlarc=
   13853       hardcode_direct_F77=yes
   13854       hardcode_shlibpath_var_F77=no
   13855       ;;
   13856 
   13857   linux*)
   13858     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
   13859         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13860 	archive_cmds_F77="$tmp_archive_cmds"
   13861       supports_anon_versioning=no
   13862       case `$LD -v 2>/dev/null` in
   13863         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   13864         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   13865         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   13866         *\ 2.11.*) ;; # other 2.11 versions
   13867         *) supports_anon_versioning=yes ;;
   13868       esac
   13869       if test $supports_anon_versioning = yes; then
   13870         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
   13871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   13872 $echo "local: *; };" >> $output_objdir/$libname.ver~
   13873         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   13874       else
   13875         archive_expsym_cmds_F77="$tmp_archive_cmds"
   13876       fi
   13877     else
   13878       ld_shlibs_F77=no
   13879     fi
   13880     ;;
   13881 
   13882     *)
   13883       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   13884 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13885 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   13886       else
   13887 	ld_shlibs_F77=no
   13888       fi
   13889       ;;
   13890     esac
   13891 
   13892     if test "$ld_shlibs_F77" = yes; then
   13893       runpath_var=LD_RUN_PATH
   13894       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
   13895       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
   13896       # ancient GNU ld didn't support --whole-archive et. al.
   13897       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
   13898  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   13899       else
   13900   	whole_archive_flag_spec_F77=
   13901       fi
   13902     fi
   13903   else
   13904     # PORTME fill in a description of your system's linker (not GNU ld)
   13905     case $host_os in
   13906     aix3*)
   13907       allow_undefined_flag_F77=unsupported
   13908       always_export_symbols_F77=yes
   13909       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   13910       # Note: this linker hardcodes the directories in LIBPATH if there
   13911       # are no directories specified by -L.
   13912       hardcode_minus_L_F77=yes
   13913       if test "$GCC" = yes && test -z "$link_static_flag"; then
   13914 	# Neither direct hardcoding nor static linking is supported with a
   13915 	# broken collect2.
   13916 	hardcode_direct_F77=unsupported
   13917       fi
   13918       ;;
   13919 
   13920     aix4* | aix5*)
   13921       if test "$host_cpu" = ia64; then
   13922 	# On IA64, the linker does run time linking by default, so we don't
   13923 	# have to do anything special.
   13924 	aix_use_runtimelinking=no
   13925 	exp_sym_flag='-Bexport'
   13926 	no_entry_flag=""
   13927       else
   13928 	# If we're using GNU nm, then we don't want the "-C" option.
   13929 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   13930 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   13931 	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   13932 	else
   13933 	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   13934 	fi
   13935 	aix_use_runtimelinking=no
   13936 
   13937 	# Test if we are trying to use run time linking or normal
   13938 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   13939 	# need to do runtime linking.
   13940 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   13941 	  for ld_flag in $LDFLAGS; do
   13942   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   13943   	    aix_use_runtimelinking=yes
   13944   	    break
   13945   	  fi
   13946 	  done
   13947 	esac
   13948 
   13949 	exp_sym_flag='-bexport'
   13950 	no_entry_flag='-bnoentry'
   13951       fi
   13952 
   13953       # When large executables or shared objects are built, AIX ld can
   13954       # have problems creating the table of contents.  If linking a library
   13955       # or program results in "error TOC overflow" add -mminimal-toc to
   13956       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   13957       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   13958 
   13959       archive_cmds_F77=''
   13960       hardcode_direct_F77=yes
   13961       hardcode_libdir_separator_F77=':'
   13962       link_all_deplibs_F77=yes
   13963 
   13964       if test "$GCC" = yes; then
   13965 	case $host_os in aix4.012|aix4.012.*)
   13966 	# We only want to do this on AIX 4.2 and lower, the check
   13967 	# below for broken collect2 doesn't work under 4.3+
   13968 	  collect2name=`${CC} -print-prog-name=collect2`
   13969 	  if test -f "$collect2name" && \
   13970   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   13971 	  then
   13972   	  # We have reworked collect2
   13973   	  hardcode_direct_F77=yes
   13974 	  else
   13975   	  # We have old collect2
   13976   	  hardcode_direct_F77=unsupported
   13977   	  # It fails to find uninstalled libraries when the uninstalled
   13978   	  # path is not listed in the libpath.  Setting hardcode_minus_L
   13979   	  # to unsupported forces relinking
   13980   	  hardcode_minus_L_F77=yes
   13981   	  hardcode_libdir_flag_spec_F77='-L$libdir'
   13982   	  hardcode_libdir_separator_F77=
   13983 	  fi
   13984 	esac
   13985 	shared_flag='-shared'
   13986       else
   13987 	# not using gcc
   13988 	if test "$host_cpu" = ia64; then
   13989   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   13990   	# chokes on -Wl,-G. The following line is correct:
   13991 	  shared_flag='-G'
   13992 	else
   13993   	if test "$aix_use_runtimelinking" = yes; then
   13994 	    shared_flag='${wl}-G'
   13995 	  else
   13996 	    shared_flag='${wl}-bM:SRE'
   13997   	fi
   13998 	fi
   13999       fi
   14000 
   14001       # It seems that -bexpall does not export symbols beginning with
   14002       # underscore (_), so it is better to generate a list of symbols to export.
   14003       always_export_symbols_F77=yes
   14004       if test "$aix_use_runtimelinking" = yes; then
   14005 	# Warning - without using the other runtime loading flags (-brtl),
   14006 	# -berok will link without error, but may produce a broken library.
   14007 	allow_undefined_flag_F77='-berok'
   14008        # Determine the default libpath from the value encoded in an empty executable.
   14009        cat >conftest.$ac_ext <<_ACEOF
   14010       program main
   14011 
   14012       end
   14013 _ACEOF
   14014 rm -f conftest.$ac_objext conftest$ac_exeext
   14015 if { (ac_try="$ac_link"
   14016 case "(($ac_try" in
   14017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14018   *) ac_try_echo=$ac_try;;
   14019 esac
   14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14021   (eval "$ac_link") 2>conftest.er1
   14022   ac_status=$?
   14023   grep -v '^ *+' conftest.er1 >conftest.err
   14024   rm -f conftest.er1
   14025   cat conftest.err >&5
   14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14027   (exit $ac_status); } && {
   14028 	 test -z "$ac_f77_werror_flag" ||
   14029 	 test ! -s conftest.err
   14030        } && test -s conftest$ac_exeext &&
   14031        $as_test_x conftest$ac_exeext; then
   14032 
   14033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14034 }'`
   14035 # Check for a 64-bit object if we didn't find anything.
   14036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14037 }'`; fi
   14038 else
   14039   echo "$as_me: failed program was:" >&5
   14040 sed 's/^/| /' conftest.$ac_ext >&5
   14041 
   14042 
   14043 fi
   14044 
   14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14046       conftest$ac_exeext conftest.$ac_ext
   14047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   14048 
   14049        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
   14050 	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   14051        else
   14052 	if test "$host_cpu" = ia64; then
   14053 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
   14054 	  allow_undefined_flag_F77="-z nodefs"
   14055 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   14056 	else
   14057 	 # Determine the default libpath from the value encoded in an empty executable.
   14058 	 cat >conftest.$ac_ext <<_ACEOF
   14059       program main
   14060 
   14061       end
   14062 _ACEOF
   14063 rm -f conftest.$ac_objext conftest$ac_exeext
   14064 if { (ac_try="$ac_link"
   14065 case "(($ac_try" in
   14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14067   *) ac_try_echo=$ac_try;;
   14068 esac
   14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14070   (eval "$ac_link") 2>conftest.er1
   14071   ac_status=$?
   14072   grep -v '^ *+' conftest.er1 >conftest.err
   14073   rm -f conftest.er1
   14074   cat conftest.err >&5
   14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14076   (exit $ac_status); } && {
   14077 	 test -z "$ac_f77_werror_flag" ||
   14078 	 test ! -s conftest.err
   14079        } && test -s conftest$ac_exeext &&
   14080        $as_test_x conftest$ac_exeext; then
   14081 
   14082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14083 }'`
   14084 # Check for a 64-bit object if we didn't find anything.
   14085 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14086 }'`; fi
   14087 else
   14088   echo "$as_me: failed program was:" >&5
   14089 sed 's/^/| /' conftest.$ac_ext >&5
   14090 
   14091 
   14092 fi
   14093 
   14094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14095       conftest$ac_exeext conftest.$ac_ext
   14096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   14097 
   14098 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
   14099 	  # Warning - without using the other run time loading flags,
   14100 	  # -berok will link without error, but may produce a broken library.
   14101 	  no_undefined_flag_F77=' ${wl}-bernotok'
   14102 	  allow_undefined_flag_F77=' ${wl}-berok'
   14103 	  # -bexpall does not export symbols beginning with underscore (_)
   14104 	  always_export_symbols_F77=yes
   14105 	  # Exported symbols can be pulled into shared objects from archives
   14106 	  whole_archive_flag_spec_F77=' '
   14107 	  archive_cmds_need_lc_F77=yes
   14108 	  # This is similar to how AIX traditionally builds it's shared libraries.
   14109 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   14110 	fi
   14111       fi
   14112       ;;
   14113 
   14114     amigaos*)
   14115       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   14116       hardcode_libdir_flag_spec_F77='-L$libdir'
   14117       hardcode_minus_L_F77=yes
   14118       # see comment about different semantics on the GNU ld section
   14119       ld_shlibs_F77=no
   14120       ;;
   14121 
   14122     bsdi4*)
   14123       export_dynamic_flag_spec_F77=-rdynamic
   14124       ;;
   14125 
   14126     cygwin* | mingw* | pw32*)
   14127       # When not using gcc, we currently assume that we are using
   14128       # Microsoft Visual C++.
   14129       # hardcode_libdir_flag_spec is actually meaningless, as there is
   14130       # no search path for DLLs.
   14131       hardcode_libdir_flag_spec_F77=' '
   14132       allow_undefined_flag_F77=unsupported
   14133       # Tell ltmain to make .lib files, not .a files.
   14134       libext=lib
   14135       # Tell ltmain to make .dll files, not .so files.
   14136       shrext=".dll"
   14137       # FIXME: Setting linknames here is a bad hack.
   14138       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
   14139       # The linker will automatically build a .lib file if we build a DLL.
   14140       old_archive_From_new_cmds_F77='true'
   14141       # FIXME: Should let the user specify the lib program.
   14142       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
   14143       fix_srcfile_path='`cygpath -w "$srcfile"`'
   14144       enable_shared_with_static_runtimes_F77=yes
   14145       ;;
   14146 
   14147     darwin* | rhapsody*)
   14148     if test "$GXX" = yes ; then
   14149       archive_cmds_need_lc_F77=no
   14150       case "$host_os" in
   14151       rhapsody* | darwin1.[012])
   14152 	allow_undefined_flag_F77='-undefined suppress'
   14153 	;;
   14154       *) # Darwin 1.3 on
   14155       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   14156       	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
   14157       else
   14158         case ${MACOSX_DEPLOYMENT_TARGET} in
   14159           10.[012])
   14160             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
   14161             ;;
   14162           10.*)
   14163             allow_undefined_flag_F77='-undefined dynamic_lookup'
   14164             ;;
   14165         esac
   14166       fi
   14167 	;;
   14168       esac
   14169     	lt_int_apple_cc_single_mod=no
   14170     	output_verbose_link_cmd='echo'
   14171     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   14172     	  lt_int_apple_cc_single_mod=yes
   14173     	fi
   14174     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   14175     	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   14176     	else
   14177         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   14178       fi
   14179       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   14180       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   14181         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   14182           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14183         else
   14184           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14185         fi
   14186           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14187       hardcode_direct_F77=no
   14188       hardcode_automatic_F77=yes
   14189       hardcode_shlibpath_var_F77=unsupported
   14190       whole_archive_flag_spec_F77='-all_load $convenience'
   14191       link_all_deplibs_F77=yes
   14192     else
   14193       ld_shlibs_F77=no
   14194     fi
   14195       ;;
   14196 
   14197     dgux*)
   14198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14199       hardcode_libdir_flag_spec_F77='-L$libdir'
   14200       hardcode_shlibpath_var_F77=no
   14201       ;;
   14202 
   14203     freebsd1*)
   14204       ld_shlibs_F77=no
   14205       ;;
   14206 
   14207     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   14208     # support.  Future versions do this automatically, but an explicit c++rt0.o
   14209     # does not break anything, and helps significantly (at the cost of a little
   14210     # extra space).
   14211     freebsd2.2*)
   14212       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   14213       hardcode_libdir_flag_spec_F77='-R$libdir'
   14214       hardcode_direct_F77=yes
   14215       hardcode_shlibpath_var_F77=no
   14216       ;;
   14217 
   14218     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   14219     freebsd2*)
   14220       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   14221       hardcode_direct_F77=yes
   14222       hardcode_minus_L_F77=yes
   14223       hardcode_shlibpath_var_F77=no
   14224       ;;
   14225 
   14226     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   14227     freebsd* | kfreebsd*-gnu)
   14228       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   14229       hardcode_libdir_flag_spec_F77='-R$libdir'
   14230       hardcode_direct_F77=yes
   14231       hardcode_shlibpath_var_F77=no
   14232       ;;
   14233 
   14234     hpux9*)
   14235       if test "$GCC" = yes; then
   14236 	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   14237       else
   14238 	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   14239       fi
   14240       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
   14241       hardcode_libdir_separator_F77=:
   14242       hardcode_direct_F77=yes
   14243 
   14244       # hardcode_minus_L: Not really in the search PATH,
   14245       # but as the default location of the library.
   14246       hardcode_minus_L_F77=yes
   14247       export_dynamic_flag_spec_F77='${wl}-E'
   14248       ;;
   14249 
   14250     hpux10* | hpux11*)
   14251       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   14252 	case "$host_cpu" in
   14253 	hppa*64*|ia64*)
   14254 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14255 	  ;;
   14256 	*)
   14257 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   14258 	  ;;
   14259 	esac
   14260       else
   14261 	case "$host_cpu" in
   14262 	hppa*64*|ia64*)
   14263 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
   14264 	  ;;
   14265 	*)
   14266 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   14267 	  ;;
   14268 	esac
   14269       fi
   14270       if test "$with_gnu_ld" = no; then
   14271 	case "$host_cpu" in
   14272 	hppa*64*)
   14273 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
   14274 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
   14275 	  hardcode_libdir_separator_F77=:
   14276 	  hardcode_direct_F77=no
   14277 	  hardcode_shlibpath_var_F77=no
   14278 	  ;;
   14279 	ia64*)
   14280 	  hardcode_libdir_flag_spec_F77='-L$libdir'
   14281 	  hardcode_direct_F77=no
   14282 	  hardcode_shlibpath_var_F77=no
   14283 
   14284 	  # hardcode_minus_L: Not really in the search PATH,
   14285 	  # but as the default location of the library.
   14286 	  hardcode_minus_L_F77=yes
   14287 	  ;;
   14288 	*)
   14289 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
   14290 	  hardcode_libdir_separator_F77=:
   14291 	  hardcode_direct_F77=yes
   14292 	  export_dynamic_flag_spec_F77='${wl}-E'
   14293 
   14294 	  # hardcode_minus_L: Not really in the search PATH,
   14295 	  # but as the default location of the library.
   14296 	  hardcode_minus_L_F77=yes
   14297 	  ;;
   14298 	esac
   14299       fi
   14300       ;;
   14301 
   14302     irix5* | irix6* | nonstopux*)
   14303       if test "$GCC" = yes; then
   14304 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   14305       else
   14306 	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   14307 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
   14308       fi
   14309       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14310       hardcode_libdir_separator_F77=:
   14311       link_all_deplibs_F77=yes
   14312       ;;
   14313 
   14314     netbsd*)
   14315       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   14316 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   14317       else
   14318 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   14319       fi
   14320       hardcode_libdir_flag_spec_F77='-R$libdir'
   14321       hardcode_direct_F77=yes
   14322       hardcode_shlibpath_var_F77=no
   14323       ;;
   14324 
   14325     newsos6)
   14326       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14327       hardcode_direct_F77=yes
   14328       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14329       hardcode_libdir_separator_F77=:
   14330       hardcode_shlibpath_var_F77=no
   14331       ;;
   14332 
   14333     openbsd*)
   14334       hardcode_direct_F77=yes
   14335       hardcode_shlibpath_var_F77=no
   14336       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   14337 	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   14338 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
   14339 	export_dynamic_flag_spec_F77='${wl}-E'
   14340       else
   14341        case $host_os in
   14342 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   14343 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   14344 	   hardcode_libdir_flag_spec_F77='-R$libdir'
   14345 	   ;;
   14346 	 *)
   14347 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   14348 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
   14349 	   ;;
   14350        esac
   14351       fi
   14352       ;;
   14353 
   14354     os2*)
   14355       hardcode_libdir_flag_spec_F77='-L$libdir'
   14356       hardcode_minus_L_F77=yes
   14357       allow_undefined_flag_F77=unsupported
   14358       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   14359       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   14360       ;;
   14361 
   14362     osf3*)
   14363       if test "$GCC" = yes; then
   14364 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
   14365 	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   14366       else
   14367 	allow_undefined_flag_F77=' -expect_unresolved \*'
   14368 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   14369       fi
   14370       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14371       hardcode_libdir_separator_F77=:
   14372       ;;
   14373 
   14374     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   14375       if test "$GCC" = yes; then
   14376 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
   14377 	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   14378 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14379       else
   14380 	allow_undefined_flag_F77=' -expect_unresolved \*'
   14381 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   14382 	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
   14383 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
   14384 
   14385 	# Both c and cxx compiler support -rpath directly
   14386 	hardcode_libdir_flag_spec_F77='-rpath $libdir'
   14387       fi
   14388       hardcode_libdir_separator_F77=:
   14389       ;;
   14390 
   14391     sco3.2v5*)
   14392       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14393       hardcode_shlibpath_var_F77=no
   14394       export_dynamic_flag_spec_F77='${wl}-Bexport'
   14395       runpath_var=LD_RUN_PATH
   14396       hardcode_runpath_var=yes
   14397       ;;
   14398 
   14399     solaris*)
   14400       no_undefined_flag_F77=' -z text'
   14401       if test "$GCC" = yes; then
   14402 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14403 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   14404 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
   14405       else
   14406 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14407 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   14408   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   14409       fi
   14410       hardcode_libdir_flag_spec_F77='-R$libdir'
   14411       hardcode_shlibpath_var_F77=no
   14412       case $host_os in
   14413       solaris2.[0-5] | solaris2.[0-5].*) ;;
   14414       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
   14415 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
   14416       esac
   14417       link_all_deplibs_F77=yes
   14418       ;;
   14419 
   14420     sunos4*)
   14421       if test "x$host_vendor" = xsequent; then
   14422 	# Use $CC to link under sequent, because it throws in some extra .o
   14423 	# files that make .init and .fini sections work.
   14424 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   14425       else
   14426 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   14427       fi
   14428       hardcode_libdir_flag_spec_F77='-L$libdir'
   14429       hardcode_direct_F77=yes
   14430       hardcode_minus_L_F77=yes
   14431       hardcode_shlibpath_var_F77=no
   14432       ;;
   14433 
   14434     sysv4)
   14435       case $host_vendor in
   14436 	sni)
   14437 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14438 	  hardcode_direct_F77=yes # is this really true???
   14439 	;;
   14440 	siemens)
   14441 	  ## LD is ld it makes a PLAMLIB
   14442 	  ## CC just makes a GrossModule.
   14443 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   14444 	  reload_cmds_F77='$CC -r -o $output$reload_objs'
   14445 	  hardcode_direct_F77=no
   14446         ;;
   14447 	motorola)
   14448 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14449 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
   14450 	;;
   14451       esac
   14452       runpath_var='LD_RUN_PATH'
   14453       hardcode_shlibpath_var_F77=no
   14454       ;;
   14455 
   14456     sysv4.3*)
   14457       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14458       hardcode_shlibpath_var_F77=no
   14459       export_dynamic_flag_spec_F77='-Bexport'
   14460       ;;
   14461 
   14462     sysv4*MP*)
   14463       if test -d /usr/nec; then
   14464 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14465 	hardcode_shlibpath_var_F77=no
   14466 	runpath_var=LD_RUN_PATH
   14467 	hardcode_runpath_var=yes
   14468 	ld_shlibs_F77=yes
   14469       fi
   14470       ;;
   14471 
   14472     sysv4.2uw2*)
   14473       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   14474       hardcode_direct_F77=yes
   14475       hardcode_minus_L_F77=no
   14476       hardcode_shlibpath_var_F77=no
   14477       hardcode_runpath_var=yes
   14478       runpath_var=LD_RUN_PATH
   14479       ;;
   14480 
   14481    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
   14482       no_undefined_flag_F77='${wl}-z ${wl}text'
   14483       if test "$GCC" = yes; then
   14484 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14485       else
   14486 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14487       fi
   14488       runpath_var='LD_RUN_PATH'
   14489       hardcode_shlibpath_var_F77=no
   14490       ;;
   14491 
   14492     sysv5*)
   14493       no_undefined_flag_F77=' -z text'
   14494       # $CC -shared without GNU ld will not create a library from C++
   14495       # object files and a static libstdc++, better avoid it by now
   14496       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14497       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   14498   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   14499       hardcode_libdir_flag_spec_F77=
   14500       hardcode_shlibpath_var_F77=no
   14501       runpath_var='LD_RUN_PATH'
   14502       ;;
   14503 
   14504     uts4*)
   14505       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14506       hardcode_libdir_flag_spec_F77='-L$libdir'
   14507       hardcode_shlibpath_var_F77=no
   14508       ;;
   14509 
   14510     *)
   14511       ld_shlibs_F77=no
   14512       ;;
   14513     esac
   14514   fi
   14515 
   14516 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
   14517 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
   14518 test "$ld_shlibs_F77" = no && can_build_shared=no
   14519 
   14520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   14521 if test "$GCC" = yes; then
   14522   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   14523 fi
   14524 
   14525 #
   14526 # Do we need to explicitly link libc?
   14527 #
   14528 case "x$archive_cmds_need_lc_F77" in
   14529 x|xyes)
   14530   # Assume -lc should be added
   14531   archive_cmds_need_lc_F77=yes
   14532 
   14533   if test "$enable_shared" = yes && test "$GCC" = yes; then
   14534     case $archive_cmds_F77 in
   14535     *'~'*)
   14536       # FIXME: we may have to deal with multi-command sequences.
   14537       ;;
   14538     '$CC '*)
   14539       # Test whether the compiler implicitly links with -lc since on some
   14540       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   14541       # to ld, don't add -lc before -lgcc.
   14542       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   14543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   14544       $rm conftest*
   14545       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   14546 
   14547       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   14548   (eval $ac_compile) 2>&5
   14549   ac_status=$?
   14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14551   (exit $ac_status); } 2>conftest.err; then
   14552         soname=conftest
   14553         lib=conftest
   14554         libobjs=conftest.$ac_objext
   14555         deplibs=
   14556         wl=$lt_prog_compiler_wl_F77
   14557         compiler_flags=-v
   14558         linker_flags=-v
   14559         verstring=
   14560         output_objdir=.
   14561         libname=conftest
   14562         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
   14563         allow_undefined_flag_F77=
   14564         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   14565   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   14566   ac_status=$?
   14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14568   (exit $ac_status); }
   14569         then
   14570 	  archive_cmds_need_lc_F77=no
   14571         else
   14572 	  archive_cmds_need_lc_F77=yes
   14573         fi
   14574         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
   14575       else
   14576         cat conftest.err 1>&5
   14577       fi
   14578       $rm conftest*
   14579       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
   14580 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
   14581       ;;
   14582     esac
   14583   fi
   14584   ;;
   14585 esac
   14586 
   14587 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   14588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   14589 library_names_spec=
   14590 libname_spec='lib$name'
   14591 soname_spec=
   14592 shrext=".so"
   14593 postinstall_cmds=
   14594 postuninstall_cmds=
   14595 finish_cmds=
   14596 finish_eval=
   14597 shlibpath_var=
   14598 shlibpath_overrides_runpath=unknown
   14599 version_type=none
   14600 dynamic_linker="$host_os ld.so"
   14601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   14602 if test "$GCC" = yes; then
   14603   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   14604   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   14605     # if the path contains ";" then we assume it to be the separator
   14606     # otherwise default to the standard path separator (i.e. ":") - it is
   14607     # assumed that no part of a normal pathname contains ";" but that should
   14608     # okay in the real world where ";" in dirpaths is itself problematic.
   14609     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   14610   else
   14611     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   14612   fi
   14613 else
   14614   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   14615 fi
   14616 need_lib_prefix=unknown
   14617 hardcode_into_libs=no
   14618 
   14619 # when you set need_version to no, make sure it does not cause -set_version
   14620 # flags to be left without arguments
   14621 need_version=unknown
   14622 
   14623 case $host_os in
   14624 aix3*)
   14625   version_type=linux
   14626   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   14627   shlibpath_var=LIBPATH
   14628 
   14629   # AIX 3 has no versioning support, so we append a major version to the name.
   14630   soname_spec='${libname}${release}${shared_ext}$major'
   14631   ;;
   14632 
   14633 aix4* | aix5*)
   14634   version_type=linux
   14635   need_lib_prefix=no
   14636   need_version=no
   14637   hardcode_into_libs=yes
   14638   if test "$host_cpu" = ia64; then
   14639     # AIX 5 supports IA64
   14640     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   14641     shlibpath_var=LD_LIBRARY_PATH
   14642   else
   14643     # With GCC up to 2.95.x, collect2 would create an import file
   14644     # for dependence libraries.  The import file would start with
   14645     # the line `#! .'.  This would cause the generated library to
   14646     # depend on `.', always an invalid library.  This was fixed in
   14647     # development snapshots of GCC prior to 3.0.
   14648     case $host_os in
   14649       aix4 | aix4.[01] | aix4.[01].*)
   14650       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   14651 	   echo ' yes '
   14652 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   14653 	:
   14654       else
   14655 	can_build_shared=no
   14656       fi
   14657       ;;
   14658     esac
   14659     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   14660     # soname into executable. Probably we can add versioning support to
   14661     # collect2, so additional links can be useful in future.
   14662     if test "$aix_use_runtimelinking" = yes; then
   14663       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   14664       # instead of lib<name>.a to let people know that these are not
   14665       # typical AIX shared libraries.
   14666       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14667     else
   14668       # We preserve .a as extension for shared libraries through AIX4.2
   14669       # and later when we are not doing run time linking.
   14670       library_names_spec='${libname}${release}.a $libname.a'
   14671       soname_spec='${libname}${release}${shared_ext}$major'
   14672     fi
   14673     shlibpath_var=LIBPATH
   14674   fi
   14675   ;;
   14676 
   14677 amigaos*)
   14678   library_names_spec='$libname.ixlibrary $libname.a'
   14679   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   14680   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   14681   ;;
   14682 
   14683 beos*)
   14684   library_names_spec='${libname}${shared_ext}'
   14685   dynamic_linker="$host_os ld.so"
   14686   shlibpath_var=LIBRARY_PATH
   14687   ;;
   14688 
   14689 bsdi4*)
   14690   version_type=linux
   14691   need_version=no
   14692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14693   soname_spec='${libname}${release}${shared_ext}$major'
   14694   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   14695   shlibpath_var=LD_LIBRARY_PATH
   14696   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   14697   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   14698   # the default ld.so.conf also contains /usr/contrib/lib and
   14699   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   14700   # libtool to hard-code these into programs
   14701   ;;
   14702 
   14703 cygwin* | mingw* | pw32*)
   14704   version_type=windows
   14705   shrext=".dll"
   14706   need_version=no
   14707   need_lib_prefix=no
   14708 
   14709   case $GCC,$host_os in
   14710   yes,cygwin* | yes,mingw* | yes,pw32*)
   14711     library_names_spec='$libname.dll.a'
   14712     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   14713     postinstall_cmds='base_file=`basename \${file}`~
   14714       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   14715       dldir=$destdir/`dirname \$dlpath`~
   14716       test -d \$dldir || mkdir -p \$dldir~
   14717       $install_prog $dir/$dlname \$dldir/$dlname'
   14718     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   14719       dlpath=$dir/\$dldll~
   14720        $rm \$dlpath'
   14721     shlibpath_overrides_runpath=yes
   14722 
   14723     case $host_os in
   14724     cygwin*)
   14725       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   14726       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   14727       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   14728       ;;
   14729     mingw*)
   14730       # MinGW DLLs use traditional 'lib' prefix
   14731       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   14732       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   14733       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   14734         # It is most probably a Windows format PATH printed by
   14735         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   14736         # path with ; separators, and with drive letters. We can handle the
   14737         # drive letters (cygwin fileutils understands them), so leave them,
   14738         # especially as we might pass files found there to a mingw objdump,
   14739         # which wouldn't understand a cygwinified path. Ahh.
   14740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   14741       else
   14742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   14743       fi
   14744       ;;
   14745     pw32*)
   14746       # pw32 DLLs use 'pw' prefix rather than 'lib'
   14747       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   14748       ;;
   14749     esac
   14750     ;;
   14751 
   14752   *)
   14753     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   14754     ;;
   14755   esac
   14756   dynamic_linker='Win32 ld.exe'
   14757   # FIXME: first we should search . and the directory the executable is in
   14758   shlibpath_var=PATH
   14759   ;;
   14760 
   14761 darwin* | rhapsody*)
   14762   dynamic_linker="$host_os dyld"
   14763   version_type=darwin
   14764   need_lib_prefix=no
   14765   need_version=no
   14766   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   14767   soname_spec='${libname}${release}${major}$shared_ext'
   14768   shlibpath_overrides_runpath=yes
   14769   shlibpath_var=DYLD_LIBRARY_PATH
   14770   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   14771   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   14772   if test "$GCC" = yes; then
   14773     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   14774   else
   14775     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   14776   fi
   14777   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   14778   ;;
   14779 
   14780 dgux*)
   14781   version_type=linux
   14782   need_lib_prefix=no
   14783   need_version=no
   14784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   14785   soname_spec='${libname}${release}${shared_ext}$major'
   14786   shlibpath_var=LD_LIBRARY_PATH
   14787   ;;
   14788 
   14789 freebsd1*)
   14790   dynamic_linker=no
   14791   ;;
   14792 
   14793 kfreebsd*-gnu)
   14794   version_type=linux
   14795   need_lib_prefix=no
   14796   need_version=no
   14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   14798   soname_spec='${libname}${release}${shared_ext}$major'
   14799   shlibpath_var=LD_LIBRARY_PATH
   14800   shlibpath_overrides_runpath=no
   14801   hardcode_into_libs=yes
   14802   dynamic_linker='GNU ld.so'
   14803   ;;
   14804 
   14805 freebsd*)
   14806   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   14807   version_type=freebsd-$objformat
   14808   case $version_type in
   14809     freebsd-elf*)
   14810       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   14811       need_version=no
   14812       need_lib_prefix=no
   14813       ;;
   14814     freebsd-*)
   14815       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   14816       need_version=yes
   14817       ;;
   14818   esac
   14819   shlibpath_var=LD_LIBRARY_PATH
   14820   case $host_os in
   14821   freebsd2*)
   14822     shlibpath_overrides_runpath=yes
   14823     ;;
   14824   freebsd3.01* | freebsdelf3.01*)
   14825     shlibpath_overrides_runpath=yes
   14826     hardcode_into_libs=yes
   14827     ;;
   14828   *) # from 3.2 on
   14829     shlibpath_overrides_runpath=no
   14830     hardcode_into_libs=yes
   14831     ;;
   14832   esac
   14833   ;;
   14834 
   14835 gnu*)
   14836   version_type=linux
   14837   need_lib_prefix=no
   14838   need_version=no
   14839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   14840   soname_spec='${libname}${release}${shared_ext}$major'
   14841   shlibpath_var=LD_LIBRARY_PATH
   14842   hardcode_into_libs=yes
   14843   ;;
   14844 
   14845 hpux9* | hpux10* | hpux11*)
   14846   # Give a soname corresponding to the major version so that dld.sl refuses to
   14847   # link against other versions.
   14848   version_type=sunos
   14849   need_lib_prefix=no
   14850   need_version=no
   14851   case "$host_cpu" in
   14852   ia64*)
   14853     shrext='.so'
   14854     hardcode_into_libs=yes
   14855     dynamic_linker="$host_os dld.so"
   14856     shlibpath_var=LD_LIBRARY_PATH
   14857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   14858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14859     soname_spec='${libname}${release}${shared_ext}$major'
   14860     if test "X$HPUX_IA64_MODE" = X32; then
   14861       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   14862     else
   14863       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   14864     fi
   14865     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   14866     ;;
   14867    hppa*64*)
   14868      shrext='.sl'
   14869      hardcode_into_libs=yes
   14870      dynamic_linker="$host_os dld.sl"
   14871      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   14872      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   14873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14874      soname_spec='${libname}${release}${shared_ext}$major'
   14875      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   14876      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   14877      ;;
   14878    *)
   14879     shrext='.sl'
   14880     dynamic_linker="$host_os dld.sl"
   14881     shlibpath_var=SHLIB_PATH
   14882     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   14883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14884     soname_spec='${libname}${release}${shared_ext}$major'
   14885     ;;
   14886   esac
   14887   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   14888   postinstall_cmds='chmod 555 $lib'
   14889   ;;
   14890 
   14891 irix5* | irix6* | nonstopux*)
   14892   case $host_os in
   14893     nonstopux*) version_type=nonstopux ;;
   14894     *)
   14895 	if test "$lt_cv_prog_gnu_ld" = yes; then
   14896 		version_type=linux
   14897 	else
   14898 		version_type=irix
   14899 	fi ;;
   14900   esac
   14901   need_lib_prefix=no
   14902   need_version=no
   14903   soname_spec='${libname}${release}${shared_ext}$major'
   14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   14905   case $host_os in
   14906   irix5* | nonstopux*)
   14907     libsuff= shlibsuff=
   14908     ;;
   14909   *)
   14910     case $LD in # libtool.m4 will add one of these switches to LD
   14911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   14912       libsuff= shlibsuff= libmagic=32-bit;;
   14913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   14914       libsuff=32 shlibsuff=N32 libmagic=N32;;
   14915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   14916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   14917     *) libsuff= shlibsuff= libmagic=never-match;;
   14918     esac
   14919     ;;
   14920   esac
   14921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   14922   shlibpath_overrides_runpath=no
   14923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   14924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   14925   hardcode_into_libs=yes
   14926   ;;
   14927 
   14928 # No shared lib support for Linux oldld, aout, or coff.
   14929 linux*oldld* | linux*aout* | linux*coff*)
   14930   dynamic_linker=no
   14931   ;;
   14932 
   14933 # This must be Linux ELF.
   14934 linux*)
   14935   version_type=linux
   14936   need_lib_prefix=no
   14937   need_version=no
   14938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14939   soname_spec='${libname}${release}${shared_ext}$major'
   14940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   14941   shlibpath_var=LD_LIBRARY_PATH
   14942   shlibpath_overrides_runpath=no
   14943   # This implies no fast_install, which is unacceptable.
   14944   # Some rework will be needed to allow for fast_install
   14945   # before this can be enabled.
   14946   hardcode_into_libs=yes
   14947 
   14948   # We used to test for /lib/ld.so.1 and disable shared libraries on
   14949   # powerpc, because MkLinux only supported shared libraries with the
   14950   # GNU dynamic linker.  Since this was broken with cross compilers,
   14951   # most powerpc-linux boxes support dynamic linking these days and
   14952   # people can always --disable-shared, the test was removed, and we
   14953   # assume the GNU/Linux dynamic linker is in use.
   14954   dynamic_linker='GNU/Linux ld.so'
   14955   ;;
   14956 
   14957 netbsd*)
   14958   version_type=sunos
   14959   need_lib_prefix=no
   14960   need_version=no
   14961   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   14962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   14963     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   14964     dynamic_linker='NetBSD (a.out) ld.so'
   14965   else
   14966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   14967     soname_spec='${libname}${release}${shared_ext}$major'
   14968     dynamic_linker='NetBSD ld.elf_so'
   14969   fi
   14970   shlibpath_var=LD_LIBRARY_PATH
   14971   shlibpath_overrides_runpath=yes
   14972   hardcode_into_libs=yes
   14973   ;;
   14974 
   14975 newsos6)
   14976   version_type=linux
   14977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14978   shlibpath_var=LD_LIBRARY_PATH
   14979   shlibpath_overrides_runpath=yes
   14980   ;;
   14981 
   14982 nto-qnx*)
   14983   version_type=linux
   14984   need_lib_prefix=no
   14985   need_version=no
   14986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14987   soname_spec='${libname}${release}${shared_ext}$major'
   14988   shlibpath_var=LD_LIBRARY_PATH
   14989   shlibpath_overrides_runpath=yes
   14990   ;;
   14991 
   14992 openbsd*)
   14993   version_type=sunos
   14994   need_lib_prefix=no
   14995   need_version=no
   14996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   14997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   14998   shlibpath_var=LD_LIBRARY_PATH
   14999   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   15000     case $host_os in
   15001       openbsd2.[89] | openbsd2.[89].*)
   15002 	shlibpath_overrides_runpath=no
   15003 	;;
   15004       *)
   15005 	shlibpath_overrides_runpath=yes
   15006 	;;
   15007       esac
   15008   else
   15009     shlibpath_overrides_runpath=yes
   15010   fi
   15011   ;;
   15012 
   15013 os2*)
   15014   libname_spec='$name'
   15015   shrext=".dll"
   15016   need_lib_prefix=no
   15017   library_names_spec='$libname${shared_ext} $libname.a'
   15018   dynamic_linker='OS/2 ld.exe'
   15019   shlibpath_var=LIBPATH
   15020   ;;
   15021 
   15022 osf3* | osf4* | osf5*)
   15023   version_type=osf
   15024   need_lib_prefix=no
   15025   need_version=no
   15026   soname_spec='${libname}${release}${shared_ext}$major'
   15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15028   shlibpath_var=LD_LIBRARY_PATH
   15029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   15030   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   15031   ;;
   15032 
   15033 sco3.2v5*)
   15034   version_type=osf
   15035   soname_spec='${libname}${release}${shared_ext}$major'
   15036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15037   shlibpath_var=LD_LIBRARY_PATH
   15038   ;;
   15039 
   15040 solaris*)
   15041   version_type=linux
   15042   need_lib_prefix=no
   15043   need_version=no
   15044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15045   soname_spec='${libname}${release}${shared_ext}$major'
   15046   shlibpath_var=LD_LIBRARY_PATH
   15047   shlibpath_overrides_runpath=yes
   15048   hardcode_into_libs=yes
   15049   # ldd complains unless libraries are executable
   15050   postinstall_cmds='chmod +x $lib'
   15051   ;;
   15052 
   15053 sunos4*)
   15054   version_type=sunos
   15055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   15056   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   15057   shlibpath_var=LD_LIBRARY_PATH
   15058   shlibpath_overrides_runpath=yes
   15059   if test "$with_gnu_ld" = yes; then
   15060     need_lib_prefix=no
   15061   fi
   15062   need_version=yes
   15063   ;;
   15064 
   15065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   15066   version_type=linux
   15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15068   soname_spec='${libname}${release}${shared_ext}$major'
   15069   shlibpath_var=LD_LIBRARY_PATH
   15070   case $host_vendor in
   15071     sni)
   15072       shlibpath_overrides_runpath=no
   15073       need_lib_prefix=no
   15074       export_dynamic_flag_spec='${wl}-Blargedynsym'
   15075       runpath_var=LD_RUN_PATH
   15076       ;;
   15077     siemens)
   15078       need_lib_prefix=no
   15079       ;;
   15080     motorola)
   15081       need_lib_prefix=no
   15082       need_version=no
   15083       shlibpath_overrides_runpath=no
   15084       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   15085       ;;
   15086   esac
   15087   ;;
   15088 
   15089 sysv4*MP*)
   15090   if test -d /usr/nec ;then
   15091     version_type=linux
   15092     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   15093     soname_spec='$libname${shared_ext}.$major'
   15094     shlibpath_var=LD_LIBRARY_PATH
   15095   fi
   15096   ;;
   15097 
   15098 uts4*)
   15099   version_type=linux
   15100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15101   soname_spec='${libname}${release}${shared_ext}$major'
   15102   shlibpath_var=LD_LIBRARY_PATH
   15103   ;;
   15104 
   15105 *)
   15106   dynamic_linker=no
   15107   ;;
   15108 esac
   15109 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   15110 echo "${ECHO_T}$dynamic_linker" >&6; }
   15111 test "$dynamic_linker" = no && can_build_shared=no
   15112 
   15113 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   15114 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   15115 hardcode_action_F77=
   15116 if test -n "$hardcode_libdir_flag_spec_F77" || \
   15117    test -n "$runpath_var F77" || \
   15118    test "X$hardcode_automatic_F77"="Xyes" ; then
   15119 
   15120   # We can hardcode non-existant directories.
   15121   if test "$hardcode_direct_F77" != no &&
   15122      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   15123      # have to relink, otherwise we might link with an installed library
   15124      # when we should be linking with a yet-to-be-installed one
   15125      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
   15126      test "$hardcode_minus_L_F77" != no; then
   15127     # Linking always hardcodes the temporary library directory.
   15128     hardcode_action_F77=relink
   15129   else
   15130     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   15131     hardcode_action_F77=immediate
   15132   fi
   15133 else
   15134   # We cannot hardcode anything, or else we can only hardcode existing
   15135   # directories.
   15136   hardcode_action_F77=unsupported
   15137 fi
   15138 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
   15139 echo "${ECHO_T}$hardcode_action_F77" >&6; }
   15140 
   15141 if test "$hardcode_action_F77" = relink; then
   15142   # Fast installation is not supported
   15143   enable_fast_install=no
   15144 elif test "$shlibpath_overrides_runpath" = yes ||
   15145      test "$enable_shared" = no; then
   15146   # Fast installation is not necessary
   15147   enable_fast_install=needless
   15148 fi
   15149 
   15150 striplib=
   15151 old_striplib=
   15152 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   15153 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   15154 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   15155   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   15156   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   15157   { echo "$as_me:$LINENO: result: yes" >&5
   15158 echo "${ECHO_T}yes" >&6; }
   15159 else
   15160 # FIXME - insert some real tests, host_os isn't really good enough
   15161   case $host_os in
   15162    darwin*)
   15163        if test -n "$STRIP" ; then
   15164          striplib="$STRIP -x"
   15165          { echo "$as_me:$LINENO: result: yes" >&5
   15166 echo "${ECHO_T}yes" >&6; }
   15167        else
   15168   { echo "$as_me:$LINENO: result: no" >&5
   15169 echo "${ECHO_T}no" >&6; }
   15170 fi
   15171        ;;
   15172    *)
   15173   { echo "$as_me:$LINENO: result: no" >&5
   15174 echo "${ECHO_T}no" >&6; }
   15175     ;;
   15176   esac
   15177 fi
   15178 
   15179 
   15180 
   15181 # The else clause should only fire when bootstrapping the
   15182 # libtool distribution, otherwise you forgot to ship ltmain.sh
   15183 # with your package, and you will get complaints that there are
   15184 # no rules to generate ltmain.sh.
   15185 if test -f "$ltmain"; then
   15186   # See if we are running on zsh, and set the options which allow our commands through
   15187   # without removal of \ escapes.
   15188   if test -n "${ZSH_VERSION+set}" ; then
   15189     setopt NO_GLOB_SUBST
   15190   fi
   15191   # Now quote all the things that may contain metacharacters while being
   15192   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   15193   # variables and quote the copies for generation of the libtool script.
   15194   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   15195     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   15196     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   15197     deplibs_check_method reload_flag reload_cmds need_locks \
   15198     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   15199     lt_cv_sys_global_symbol_to_c_name_address \
   15200     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   15201     old_postinstall_cmds old_postuninstall_cmds \
   15202     compiler_F77 \
   15203     CC_F77 \
   15204     LD_F77 \
   15205     lt_prog_compiler_wl_F77 \
   15206     lt_prog_compiler_pic_F77 \
   15207     lt_prog_compiler_static_F77 \
   15208     lt_prog_compiler_no_builtin_flag_F77 \
   15209     export_dynamic_flag_spec_F77 \
   15210     thread_safe_flag_spec_F77 \
   15211     whole_archive_flag_spec_F77 \
   15212     enable_shared_with_static_runtimes_F77 \
   15213     old_archive_cmds_F77 \
   15214     old_archive_from_new_cmds_F77 \
   15215     predep_objects_F77 \
   15216     postdep_objects_F77 \
   15217     predeps_F77 \
   15218     postdeps_F77 \
   15219     compiler_lib_search_path_F77 \
   15220     archive_cmds_F77 \
   15221     archive_expsym_cmds_F77 \
   15222     postinstall_cmds_F77 \
   15223     postuninstall_cmds_F77 \
   15224     old_archive_from_expsyms_cmds_F77 \
   15225     allow_undefined_flag_F77 \
   15226     no_undefined_flag_F77 \
   15227     export_symbols_cmds_F77 \
   15228     hardcode_libdir_flag_spec_F77 \
   15229     hardcode_libdir_flag_spec_ld_F77 \
   15230     hardcode_libdir_separator_F77 \
   15231     hardcode_automatic_F77 \
   15232     module_cmds_F77 \
   15233     module_expsym_cmds_F77 \
   15234     lt_cv_prog_compiler_c_o_F77 \
   15235     exclude_expsyms_F77 \
   15236     include_expsyms_F77; do
   15237 
   15238     case $var in
   15239     old_archive_cmds_F77 | \
   15240     old_archive_from_new_cmds_F77 | \
   15241     archive_cmds_F77 | \
   15242     archive_expsym_cmds_F77 | \
   15243     module_cmds_F77 | \
   15244     module_expsym_cmds_F77 | \
   15245     old_archive_from_expsyms_cmds_F77 | \
   15246     export_symbols_cmds_F77 | \
   15247     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   15248     postinstall_cmds | postuninstall_cmds | \
   15249     old_postinstall_cmds | old_postuninstall_cmds | \
   15250     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   15251       # Double-quote double-evaled strings.
   15252       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   15253       ;;
   15254     *)
   15255       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   15256       ;;
   15257     esac
   15258   done
   15259 
   15260   case $lt_echo in
   15261   *'\$0 --fallback-echo"')
   15262     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   15263     ;;
   15264   esac
   15265 
   15266 cfgfile="$ofile"
   15267 
   15268   cat <<__EOF__ >> "$cfgfile"
   15269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   15270 
   15271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   15272 
   15273 # Shell to use when invoking shell scripts.
   15274 SHELL=$lt_SHELL
   15275 
   15276 # Whether or not to build shared libraries.
   15277 build_libtool_libs=$enable_shared
   15278 
   15279 # Whether or not to build static libraries.
   15280 build_old_libs=$enable_static
   15281 
   15282 # Whether or not to add -lc for building shared libraries.
   15283 build_libtool_need_lc=$archive_cmds_need_lc_F77
   15284 
   15285 # Whether or not to disallow shared libs when runtime libs are static
   15286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
   15287 
   15288 # Whether or not to optimize for fast installation.
   15289 fast_install=$enable_fast_install
   15290 
   15291 # The host system.
   15292 host_alias=$host_alias
   15293 host=$host
   15294 
   15295 # An echo program that does not interpret backslashes.
   15296 echo=$lt_echo
   15297 
   15298 # The archiver.
   15299 AR=$lt_AR
   15300 AR_FLAGS=$lt_AR_FLAGS
   15301 
   15302 # A C compiler.
   15303 LTCC=$lt_LTCC
   15304 
   15305 # A language-specific compiler.
   15306 CC=$lt_compiler_F77
   15307 
   15308 # Is the compiler the GNU C compiler?
   15309 with_gcc=$GCC_F77
   15310 
   15311 # An ERE matcher.
   15312 EGREP=$lt_EGREP
   15313 
   15314 # The linker used to build libraries.
   15315 LD=$lt_LD_F77
   15316 
   15317 # Whether we need hard or soft links.
   15318 LN_S=$lt_LN_S
   15319 
   15320 # A BSD-compatible nm program.
   15321 NM=$lt_NM
   15322 
   15323 # A symbol stripping program
   15324 STRIP="$STRIP"
   15325 
   15326 # Used to examine libraries when file_magic_cmd begins "file"
   15327 MAGIC_CMD=$MAGIC_CMD
   15328 
   15329 # Used on cygwin: DLL creation program.
   15330 DLLTOOL="$DLLTOOL"
   15331 
   15332 # Used on cygwin: object dumper.
   15333 OBJDUMP="$OBJDUMP"
   15334 
   15335 # Used on cygwin: assembler.
   15336 AS="$AS"
   15337 
   15338 # The name of the directory that contains temporary libtool files.
   15339 objdir=$objdir
   15340 
   15341 # How to create reloadable object files.
   15342 reload_flag=$lt_reload_flag
   15343 reload_cmds=$lt_reload_cmds
   15344 
   15345 # How to pass a linker flag through the compiler.
   15346 wl=$lt_lt_prog_compiler_wl_F77
   15347 
   15348 # Object file suffix (normally "o").
   15349 objext="$ac_objext"
   15350 
   15351 # Old archive suffix (normally "a").
   15352 libext="$libext"
   15353 
   15354 # Shared library suffix (normally ".so").
   15355 shrext='$shrext'
   15356 
   15357 # Executable file suffix (normally "").
   15358 exeext="$exeext"
   15359 
   15360 # Additional compiler flags for building library objects.
   15361 pic_flag=$lt_lt_prog_compiler_pic_F77
   15362 pic_mode=$pic_mode
   15363 
   15364 # What is the maximum length of a command?
   15365 max_cmd_len=$lt_cv_sys_max_cmd_len
   15366 
   15367 # Does compiler simultaneously support -c and -o options?
   15368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
   15369 
   15370 # Must we lock files when doing compilation ?
   15371 need_locks=$lt_need_locks
   15372 
   15373 # Do we need the lib prefix for modules?
   15374 need_lib_prefix=$need_lib_prefix
   15375 
   15376 # Do we need a version for libraries?
   15377 need_version=$need_version
   15378 
   15379 # Whether dlopen is supported.
   15380 dlopen_support=$enable_dlopen
   15381 
   15382 # Whether dlopen of programs is supported.
   15383 dlopen_self=$enable_dlopen_self
   15384 
   15385 # Whether dlopen of statically linked programs is supported.
   15386 dlopen_self_static=$enable_dlopen_self_static
   15387 
   15388 # Compiler flag to prevent dynamic linking.
   15389 link_static_flag=$lt_lt_prog_compiler_static_F77
   15390 
   15391 # Compiler flag to turn off builtin functions.
   15392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
   15393 
   15394 # Compiler flag to allow reflexive dlopens.
   15395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
   15396 
   15397 # Compiler flag to generate shared objects directly from archives.
   15398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
   15399 
   15400 # Compiler flag to generate thread-safe objects.
   15401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
   15402 
   15403 # Library versioning type.
   15404 version_type=$version_type
   15405 
   15406 # Format of library name prefix.
   15407 libname_spec=$lt_libname_spec
   15408 
   15409 # List of archive names.  First name is the real one, the rest are links.
   15410 # The last name is the one that the linker finds with -lNAME.
   15411 library_names_spec=$lt_library_names_spec
   15412 
   15413 # The coded name of the library, if different from the real name.
   15414 soname_spec=$lt_soname_spec
   15415 
   15416 # Commands used to build and install an old-style archive.
   15417 RANLIB=$lt_RANLIB
   15418 old_archive_cmds=$lt_old_archive_cmds_F77
   15419 old_postinstall_cmds=$lt_old_postinstall_cmds
   15420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   15421 
   15422 # Create an old-style archive from a shared archive.
   15423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
   15424 
   15425 # Create a temporary old-style archive to link instead of a shared archive.
   15426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
   15427 
   15428 # Commands used to build and install a shared archive.
   15429 archive_cmds=$lt_archive_cmds_F77
   15430 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
   15431 postinstall_cmds=$lt_postinstall_cmds
   15432 postuninstall_cmds=$lt_postuninstall_cmds
   15433 
   15434 # Commands used to build a loadable module (assumed same as above if empty)
   15435 module_cmds=$lt_module_cmds_F77
   15436 module_expsym_cmds=$lt_module_expsym_cmds_F77
   15437 
   15438 # Commands to strip libraries.
   15439 old_striplib=$lt_old_striplib
   15440 striplib=$lt_striplib
   15441 
   15442 # Dependencies to place before the objects being linked to create a
   15443 # shared library.
   15444 predep_objects=$lt_predep_objects_F77
   15445 
   15446 # Dependencies to place after the objects being linked to create a
   15447 # shared library.
   15448 postdep_objects=$lt_postdep_objects_F77
   15449 
   15450 # Dependencies to place before the objects being linked to create a
   15451 # shared library.
   15452 predeps=$lt_predeps_F77
   15453 
   15454 # Dependencies to place after the objects being linked to create a
   15455 # shared library.
   15456 postdeps=$lt_postdeps_F77
   15457 
   15458 # The library search path used internally by the compiler when linking
   15459 # a shared library.
   15460 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
   15461 
   15462 # Method to check whether dependent libraries are shared objects.
   15463 deplibs_check_method=$lt_deplibs_check_method
   15464 
   15465 # Command to use when deplibs_check_method == file_magic.
   15466 file_magic_cmd=$lt_file_magic_cmd
   15467 
   15468 # Flag that allows shared libraries with undefined symbols to be built.
   15469 allow_undefined_flag=$lt_allow_undefined_flag_F77
   15470 
   15471 # Flag that forces no undefined symbols.
   15472 no_undefined_flag=$lt_no_undefined_flag_F77
   15473 
   15474 # Commands used to finish a libtool library installation in a directory.
   15475 finish_cmds=$lt_finish_cmds
   15476 
   15477 # Same as above, but a single script fragment to be evaled but not shown.
   15478 finish_eval=$lt_finish_eval
   15479 
   15480 # Take the output of nm and produce a listing of raw symbols and C names.
   15481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   15482 
   15483 # Transform the output of nm in a proper C declaration
   15484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   15485 
   15486 # Transform the output of nm in a C name address pair
   15487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   15488 
   15489 # This is the shared library runtime path variable.
   15490 runpath_var=$runpath_var
   15491 
   15492 # This is the shared library path variable.
   15493 shlibpath_var=$shlibpath_var
   15494 
   15495 # Is shlibpath searched before the hard-coded library search path?
   15496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   15497 
   15498 # How to hardcode a shared library path into an executable.
   15499 hardcode_action=$hardcode_action_F77
   15500 
   15501 # Whether we should hardcode library paths into libraries.
   15502 hardcode_into_libs=$hardcode_into_libs
   15503 
   15504 # Flag to hardcode \$libdir into a binary during linking.
   15505 # This must work even if \$libdir does not exist.
   15506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
   15507 
   15508 # If ld is used when linking, flag to hardcode \$libdir into
   15509 # a binary during linking. This must work even if \$libdir does
   15510 # not exist.
   15511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
   15512 
   15513 # Whether we need a single -rpath flag with a separated argument.
   15514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
   15515 
   15516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   15517 # resulting binary.
   15518 hardcode_direct=$hardcode_direct_F77
   15519 
   15520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   15521 # resulting binary.
   15522 hardcode_minus_L=$hardcode_minus_L_F77
   15523 
   15524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   15525 # the resulting binary.
   15526 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
   15527 
   15528 # Set to yes if building a shared library automatically hardcodes DIR into the library
   15529 # and all subsequent libraries and executables linked against it.
   15530 hardcode_automatic=$hardcode_automatic_F77
   15531 
   15532 # Variables whose values should be saved in libtool wrapper scripts and
   15533 # restored at relink time.
   15534 variables_saved_for_relink="$variables_saved_for_relink"
   15535 
   15536 # Whether libtool must link a program against all its dependency libraries.
   15537 link_all_deplibs=$link_all_deplibs_F77
   15538 
   15539 # Compile-time system search path for libraries
   15540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   15541 
   15542 # Run-time system search path for libraries
   15543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   15544 
   15545 # Fix the shell variable \$srcfile for the compiler.
   15546 fix_srcfile_path="$fix_srcfile_path_F77"
   15547 
   15548 # Set to yes if exported symbols are required.
   15549 always_export_symbols=$always_export_symbols_F77
   15550 
   15551 # The commands to list exported symbols.
   15552 export_symbols_cmds=$lt_export_symbols_cmds_F77
   15553 
   15554 # The commands to extract the exported symbol list from a shared archive.
   15555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   15556 
   15557 # Symbols that should not be listed in the preloaded symbols.
   15558 exclude_expsyms=$lt_exclude_expsyms_F77
   15559 
   15560 # Symbols that must always be exported.
   15561 include_expsyms=$lt_include_expsyms_F77
   15562 
   15563 # ### END LIBTOOL TAG CONFIG: $tagname
   15564 
   15565 __EOF__
   15566 
   15567 
   15568 else
   15569   # If there is no Makefile yet, we rely on a make rule to execute
   15570   # `config.status --recheck' to rerun these tests and create the
   15571   # libtool script then.
   15572   test -f Makefile && make "$ltmain"
   15573 fi
   15574 
   15575 
   15576 ac_ext=c
   15577 ac_cpp='$CPP $CPPFLAGS'
   15578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15581 
   15582 CC="$lt_save_CC"
   15583 
   15584 	else
   15585 	  tagname=""
   15586 	fi
   15587 	;;
   15588 
   15589       GCJ)
   15590 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
   15591 
   15592 
   15593 # Source file extension for Java test sources.
   15594 ac_ext=java
   15595 
   15596 # Object file extension for compiled Java test sources.
   15597 objext=o
   15598 objext_GCJ=$objext
   15599 
   15600 # Code to be used in simple compile tests
   15601 lt_simple_compile_test_code="class foo {}\n"
   15602 
   15603 # Code to be used in simple link tests
   15604 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
   15605 
   15606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   15607 
   15608 # If no C compiler was specified, use CC.
   15609 LTCC=${LTCC-"$CC"}
   15610 
   15611 # Allow CC to be a program name with arguments.
   15612 compiler=$CC
   15613 
   15614 
   15615 # Allow CC to be a program name with arguments.
   15616 lt_save_CC="$CC"
   15617 CC=${GCJ-"gcj"}
   15618 compiler=$CC
   15619 compiler_GCJ=$CC
   15620 
   15621 # GCJ did not exist at the time GCC didn't implicitly link libc in.
   15622 archive_cmds_need_lc_GCJ=no
   15623 
   15624 ## CAVEAT EMPTOR:
   15625 ## There is no encapsulation within the following macros, do not change
   15626 ## the running order or otherwise move them around unless you know exactly
   15627 ## what you are doing...
   15628 
   15629 lt_prog_compiler_no_builtin_flag_GCJ=
   15630 
   15631 if test "$GCC" = yes; then
   15632   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
   15633 
   15634 
   15635 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   15636 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
   15637 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
   15638   echo $ECHO_N "(cached) $ECHO_C" >&6
   15639 else
   15640   lt_cv_prog_compiler_rtti_exceptions=no
   15641   ac_outfile=conftest.$ac_objext
   15642    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   15643    lt_compiler_flag="-fno-rtti -fno-exceptions"
   15644    # Insert the option either (1) after the last *FLAGS variable, or
   15645    # (2) before a word containing "conftest.", or (3) at the end.
   15646    # Note that $ac_compile itself does not contain backslashes and begins
   15647    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15648    # The option is referenced via a variable to avoid confusing sed.
   15649    lt_compile=`echo "$ac_compile" | $SED \
   15650    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   15651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15652    -e 's:$: $lt_compiler_flag:'`
   15653    (eval echo "\"\$as_me:15653: $lt_compile\"" >&5)
   15654    (eval "$lt_compile" 2>conftest.err)
   15655    ac_status=$?
   15656    cat conftest.err >&5
   15657    echo "$as_me:15657: \$? = $ac_status" >&5
   15658    if (exit $ac_status) && test -s "$ac_outfile"; then
   15659      # The compiler can only warn and ignore the option if not recognized
   15660      # So say no if there are warnings
   15661      if test ! -s conftest.err; then
   15662        lt_cv_prog_compiler_rtti_exceptions=yes
   15663      fi
   15664    fi
   15665    $rm conftest*
   15666 
   15667 fi
   15668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   15669 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   15670 
   15671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   15672     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
   15673 else
   15674     :
   15675 fi
   15676 
   15677 fi
   15678 
   15679 lt_prog_compiler_wl_GCJ=
   15680 lt_prog_compiler_pic_GCJ=
   15681 lt_prog_compiler_static_GCJ=
   15682 
   15683 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   15684 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   15685 
   15686   if test "$GCC" = yes; then
   15687     lt_prog_compiler_wl_GCJ='-Wl,'
   15688     lt_prog_compiler_static_GCJ='-static'
   15689 
   15690     case $host_os in
   15691       aix*)
   15692       # All AIX code is PIC.
   15693       if test "$host_cpu" = ia64; then
   15694 	# AIX 5 now supports IA64 processor
   15695 	lt_prog_compiler_static_GCJ='-Bstatic'
   15696       fi
   15697       ;;
   15698 
   15699     amigaos*)
   15700       # FIXME: we need at least 68020 code to build shared libraries, but
   15701       # adding the `-m68020' flag to GCC prevents building anything better,
   15702       # like `-m68040'.
   15703       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
   15704       ;;
   15705 
   15706     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   15707       # PIC is the default for these OSes.
   15708       ;;
   15709 
   15710     mingw* | pw32* | os2*)
   15711       # This hack is so that the source file can tell whether it is being
   15712       # built for inclusion in a dll (and should export symbols for example).
   15713       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
   15714       ;;
   15715 
   15716     darwin* | rhapsody*)
   15717       # PIC is the default on this platform
   15718       # Common symbols not allowed in MH_DYLIB files
   15719       lt_prog_compiler_pic_GCJ='-fno-common'
   15720       ;;
   15721 
   15722     msdosdjgpp*)
   15723       # Just because we use GCC doesn't mean we suddenly get shared libraries
   15724       # on systems that don't support them.
   15725       lt_prog_compiler_can_build_shared_GCJ=no
   15726       enable_shared=no
   15727       ;;
   15728 
   15729     sysv4*MP*)
   15730       if test -d /usr/nec; then
   15731 	lt_prog_compiler_pic_GCJ=-Kconform_pic
   15732       fi
   15733       ;;
   15734 
   15735     hpux*)
   15736       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   15737       # not for PA HP-UX.
   15738       case "$host_cpu" in
   15739       hppa*64*|ia64*)
   15740 	# +Z the default
   15741 	;;
   15742       *)
   15743 	lt_prog_compiler_pic_GCJ='-fPIC'
   15744 	;;
   15745       esac
   15746       ;;
   15747 
   15748     *)
   15749       lt_prog_compiler_pic_GCJ='-fPIC'
   15750       ;;
   15751     esac
   15752   else
   15753     # PORTME Check for flag to pass linker flags through the system compiler.
   15754     case $host_os in
   15755     aix*)
   15756       lt_prog_compiler_wl_GCJ='-Wl,'
   15757       if test "$host_cpu" = ia64; then
   15758 	# AIX 5 now supports IA64 processor
   15759 	lt_prog_compiler_static_GCJ='-Bstatic'
   15760       else
   15761 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
   15762       fi
   15763       ;;
   15764 
   15765     mingw* | pw32* | os2*)
   15766       # This hack is so that the source file can tell whether it is being
   15767       # built for inclusion in a dll (and should export symbols for example).
   15768       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
   15769       ;;
   15770 
   15771     hpux9* | hpux10* | hpux11*)
   15772       lt_prog_compiler_wl_GCJ='-Wl,'
   15773       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   15774       # not for PA HP-UX.
   15775       case "$host_cpu" in
   15776       hppa*64*|ia64*)
   15777 	# +Z the default
   15778 	;;
   15779       *)
   15780 	lt_prog_compiler_pic_GCJ='+Z'
   15781 	;;
   15782       esac
   15783       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   15784       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
   15785       ;;
   15786 
   15787     irix5* | irix6* | nonstopux*)
   15788       lt_prog_compiler_wl_GCJ='-Wl,'
   15789       # PIC (with -KPIC) is the default.
   15790       lt_prog_compiler_static_GCJ='-non_shared'
   15791       ;;
   15792 
   15793     newsos6)
   15794       lt_prog_compiler_pic_GCJ='-KPIC'
   15795       lt_prog_compiler_static_GCJ='-Bstatic'
   15796       ;;
   15797 
   15798     linux*)
   15799       case $CC in
   15800       icc* | ecc*)
   15801 	lt_prog_compiler_wl_GCJ='-Wl,'
   15802 	lt_prog_compiler_pic_GCJ='-KPIC'
   15803 	lt_prog_compiler_static_GCJ='-static'
   15804         ;;
   15805       ccc*)
   15806         lt_prog_compiler_wl_GCJ='-Wl,'
   15807         # All Alpha code is PIC.
   15808         lt_prog_compiler_static_GCJ='-non_shared'
   15809         ;;
   15810       esac
   15811       ;;
   15812 
   15813     osf3* | osf4* | osf5*)
   15814       lt_prog_compiler_wl_GCJ='-Wl,'
   15815       # All OSF/1 code is PIC.
   15816       lt_prog_compiler_static_GCJ='-non_shared'
   15817       ;;
   15818 
   15819     sco3.2v5*)
   15820       lt_prog_compiler_pic_GCJ='-Kpic'
   15821       lt_prog_compiler_static_GCJ='-dn'
   15822       ;;
   15823 
   15824     solaris*)
   15825       lt_prog_compiler_wl_GCJ='-Wl,'
   15826       lt_prog_compiler_pic_GCJ='-KPIC'
   15827       lt_prog_compiler_static_GCJ='-Bstatic'
   15828       ;;
   15829 
   15830     sunos4*)
   15831       lt_prog_compiler_wl_GCJ='-Qoption ld '
   15832       lt_prog_compiler_pic_GCJ='-PIC'
   15833       lt_prog_compiler_static_GCJ='-Bstatic'
   15834       ;;
   15835 
   15836     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   15837       lt_prog_compiler_wl_GCJ='-Wl,'
   15838       lt_prog_compiler_pic_GCJ='-KPIC'
   15839       lt_prog_compiler_static_GCJ='-Bstatic'
   15840       ;;
   15841 
   15842     sysv4*MP*)
   15843       if test -d /usr/nec ;then
   15844 	lt_prog_compiler_pic_GCJ='-Kconform_pic'
   15845 	lt_prog_compiler_static_GCJ='-Bstatic'
   15846       fi
   15847       ;;
   15848 
   15849     uts4*)
   15850       lt_prog_compiler_pic_GCJ='-pic'
   15851       lt_prog_compiler_static_GCJ='-Bstatic'
   15852       ;;
   15853 
   15854     *)
   15855       lt_prog_compiler_can_build_shared_GCJ=no
   15856       ;;
   15857     esac
   15858   fi
   15859 
   15860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
   15861 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
   15862 
   15863 #
   15864 # Check to make sure the PIC flag actually works.
   15865 #
   15866 if test -n "$lt_prog_compiler_pic_GCJ"; then
   15867 
   15868 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
   15869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
   15870 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
   15871   echo $ECHO_N "(cached) $ECHO_C" >&6
   15872 else
   15873   lt_prog_compiler_pic_works_GCJ=no
   15874   ac_outfile=conftest.$ac_objext
   15875    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   15876    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   15877    # Insert the option either (1) after the last *FLAGS variable, or
   15878    # (2) before a word containing "conftest.", or (3) at the end.
   15879    # Note that $ac_compile itself does not contain backslashes and begins
   15880    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15881    # The option is referenced via a variable to avoid confusing sed.
   15882    lt_compile=`echo "$ac_compile" | $SED \
   15883    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   15884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15885    -e 's:$: $lt_compiler_flag:'`
   15886    (eval echo "\"\$as_me:15886: $lt_compile\"" >&5)
   15887    (eval "$lt_compile" 2>conftest.err)
   15888    ac_status=$?
   15889    cat conftest.err >&5
   15890    echo "$as_me:15890: \$? = $ac_status" >&5
   15891    if (exit $ac_status) && test -s "$ac_outfile"; then
   15892      # The compiler can only warn and ignore the option if not recognized
   15893      # So say no if there are warnings
   15894      if test ! -s conftest.err; then
   15895        lt_prog_compiler_pic_works_GCJ=yes
   15896      fi
   15897    fi
   15898    $rm conftest*
   15899 
   15900 fi
   15901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
   15902 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
   15903 
   15904 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
   15905     case $lt_prog_compiler_pic_GCJ in
   15906      "" | " "*) ;;
   15907      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
   15908      esac
   15909 else
   15910     lt_prog_compiler_pic_GCJ=
   15911      lt_prog_compiler_can_build_shared_GCJ=no
   15912 fi
   15913 
   15914 fi
   15915 case "$host_os" in
   15916   # For platforms which do not support PIC, -DPIC is meaningless:
   15917   *djgpp*)
   15918     lt_prog_compiler_pic_GCJ=
   15919     ;;
   15920   *)
   15921     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
   15922     ;;
   15923 esac
   15924 
   15925 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   15926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   15927 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
   15928   echo $ECHO_N "(cached) $ECHO_C" >&6
   15929 else
   15930   lt_cv_prog_compiler_c_o_GCJ=no
   15931    $rm -r conftest 2>/dev/null
   15932    mkdir conftest
   15933    cd conftest
   15934    mkdir out
   15935    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   15936 
   15937    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   15938    # that will create temporary files in the current directory regardless of
   15939    # the output directory.  Thus, making CWD read-only will cause this test
   15940    # to fail, enabling locking or at least warning the user not to do parallel
   15941    # builds.
   15942    chmod -w .
   15943 
   15944    lt_compiler_flag="-o out/conftest2.$ac_objext"
   15945    # Insert the option either (1) after the last *FLAGS variable, or
   15946    # (2) before a word containing "conftest.", or (3) at the end.
   15947    # Note that $ac_compile itself does not contain backslashes and begins
   15948    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15949    lt_compile=`echo "$ac_compile" | $SED \
   15950    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   15951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15952    -e 's:$: $lt_compiler_flag:'`
   15953    (eval echo "\"\$as_me:15953: $lt_compile\"" >&5)
   15954    (eval "$lt_compile" 2>out/conftest.err)
   15955    ac_status=$?
   15956    cat out/conftest.err >&5
   15957    echo "$as_me:15957: \$? = $ac_status" >&5
   15958    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   15959    then
   15960      # The compiler can only warn and ignore the option if not recognized
   15961      # So say no if there are warnings
   15962      if test ! -s out/conftest.err; then
   15963        lt_cv_prog_compiler_c_o_GCJ=yes
   15964      fi
   15965    fi
   15966    chmod u+w .
   15967    $rm conftest*
   15968    # SGI C++ compiler will create directory out/ii_files/ for
   15969    # template instantiation
   15970    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   15971    $rm out/* && rmdir out
   15972    cd ..
   15973    rmdir conftest
   15974    $rm conftest*
   15975 
   15976 fi
   15977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
   15978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
   15979 
   15980 
   15981 hard_links="nottested"
   15982 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
   15983   # do not overwrite the value of need_locks provided by the user
   15984   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   15985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   15986   hard_links=yes
   15987   $rm conftest*
   15988   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   15989   touch conftest.a
   15990   ln conftest.a conftest.b 2>&5 || hard_links=no
   15991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   15992   { echo "$as_me:$LINENO: result: $hard_links" >&5
   15993 echo "${ECHO_T}$hard_links" >&6; }
   15994   if test "$hard_links" = no; then
   15995     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   15996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   15997     need_locks=warn
   15998   fi
   15999 else
   16000   need_locks=no
   16001 fi
   16002 
   16003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   16004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   16005 
   16006   runpath_var=
   16007   allow_undefined_flag_GCJ=
   16008   enable_shared_with_static_runtimes_GCJ=no
   16009   archive_cmds_GCJ=
   16010   archive_expsym_cmds_GCJ=
   16011   old_archive_From_new_cmds_GCJ=
   16012   old_archive_from_expsyms_cmds_GCJ=
   16013   export_dynamic_flag_spec_GCJ=
   16014   whole_archive_flag_spec_GCJ=
   16015   thread_safe_flag_spec_GCJ=
   16016   hardcode_libdir_flag_spec_GCJ=
   16017   hardcode_libdir_flag_spec_ld_GCJ=
   16018   hardcode_libdir_separator_GCJ=
   16019   hardcode_direct_GCJ=no
   16020   hardcode_minus_L_GCJ=no
   16021   hardcode_shlibpath_var_GCJ=unsupported
   16022   link_all_deplibs_GCJ=unknown
   16023   hardcode_automatic_GCJ=no
   16024   module_cmds_GCJ=
   16025   module_expsym_cmds_GCJ=
   16026   always_export_symbols_GCJ=no
   16027   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   16028   # include_expsyms should be a list of space-separated symbols to be *always*
   16029   # included in the symbol list
   16030   include_expsyms_GCJ=
   16031   # exclude_expsyms can be an extended regexp of symbols to exclude
   16032   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   16033   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   16034   # as well as any symbol that contains `d'.
   16035   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
   16036   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   16037   # platforms (ab)use it in PIC code, but their linkers get confused if
   16038   # the symbol is explicitly referenced.  Since portable code cannot
   16039   # rely on this symbol name, it's probably fine to never include it in
   16040   # preloaded symbol tables.
   16041   extract_expsyms_cmds=
   16042 
   16043   case $host_os in
   16044   cygwin* | mingw* | pw32*)
   16045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   16046     # When not using gcc, we currently assume that we are using
   16047     # Microsoft Visual C++.
   16048     if test "$GCC" != yes; then
   16049       with_gnu_ld=no
   16050     fi
   16051     ;;
   16052   openbsd*)
   16053     with_gnu_ld=no
   16054     ;;
   16055   esac
   16056 
   16057   ld_shlibs_GCJ=yes
   16058   if test "$with_gnu_ld" = yes; then
   16059     # If archive_cmds runs LD, not CC, wlarc should be empty
   16060     wlarc='${wl}'
   16061 
   16062     # See if GNU ld supports shared libraries.
   16063     case $host_os in
   16064     aix3* | aix4* | aix5*)
   16065       # On AIX/PPC, the GNU linker is very broken
   16066       if test "$host_cpu" != ia64; then
   16067 	ld_shlibs_GCJ=no
   16068 	cat <<EOF 1>&2
   16069 
   16070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   16071 *** to be unable to reliably create shared libraries on AIX.
   16072 *** Therefore, libtool is disabling shared libraries support.  If you
   16073 *** really care for shared libraries, you may want to modify your PATH
   16074 *** so that a non-GNU linker is found, and then restart.
   16075 
   16076 EOF
   16077       fi
   16078       ;;
   16079 
   16080     amigaos*)
   16081       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   16082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16083       hardcode_minus_L_GCJ=yes
   16084 
   16085       # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
   16086       # that the semantics of dynamic libraries on AmigaOS, at least up
   16087       # to version 4, is to share data among multiple programs linked
   16088       # with the same dynamic library.  Since this doesn't match the
   16089       # behavior of shared libraries on other platforms, we can't use
   16090       # them.
   16091       ld_shlibs_GCJ=no
   16092       ;;
   16093 
   16094     beos*)
   16095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   16096 	allow_undefined_flag_GCJ=unsupported
   16097 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   16098 	# support --undefined.  This deserves some investigation.  FIXME
   16099 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16100       else
   16101 	ld_shlibs_GCJ=no
   16102       fi
   16103       ;;
   16104 
   16105     cygwin* | mingw* | pw32*)
   16106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
   16107       # as there is no search path for DLLs.
   16108       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16109       allow_undefined_flag_GCJ=unsupported
   16110       always_export_symbols_GCJ=no
   16111       enable_shared_with_static_runtimes_GCJ=yes
   16112       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   16113 
   16114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   16115         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   16116 	# If the export-symbols file already is a .def file (1st line
   16117 	# is EXPORTS), use it as is; otherwise, prepend...
   16118 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   16119 	  cp $export_symbols $output_objdir/$soname.def;
   16120 	else
   16121 	  echo EXPORTS > $output_objdir/$soname.def;
   16122 	  cat $export_symbols >> $output_objdir/$soname.def;
   16123 	fi~
   16124 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
   16125       else
   16126 	ld_shlibs=no
   16127       fi
   16128       ;;
   16129 
   16130     netbsd*)
   16131       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   16132 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   16133 	wlarc=
   16134       else
   16135 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16136 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   16137       fi
   16138       ;;
   16139 
   16140     solaris* | sysv5*)
   16141       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
   16142 	ld_shlibs_GCJ=no
   16143 	cat <<EOF 1>&2
   16144 
   16145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   16146 *** create shared libraries on Solaris systems.  Therefore, libtool
   16147 *** is disabling shared libraries support.  We urge you to upgrade GNU
   16148 *** binutils to release 2.9.1 or newer.  Another option is to modify
   16149 *** your PATH or compiler configuration so that the native linker is
   16150 *** used, and then restart.
   16151 
   16152 EOF
   16153       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   16154 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16155 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   16156       else
   16157 	ld_shlibs_GCJ=no
   16158       fi
   16159       ;;
   16160 
   16161     sunos4*)
   16162       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16163       wlarc=
   16164       hardcode_direct_GCJ=yes
   16165       hardcode_shlibpath_var_GCJ=no
   16166       ;;
   16167 
   16168   linux*)
   16169     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
   16170         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16171 	archive_cmds_GCJ="$tmp_archive_cmds"
   16172       supports_anon_versioning=no
   16173       case `$LD -v 2>/dev/null` in
   16174         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   16175         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   16176         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   16177         *\ 2.11.*) ;; # other 2.11 versions
   16178         *) supports_anon_versioning=yes ;;
   16179       esac
   16180       if test $supports_anon_versioning = yes; then
   16181         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
   16182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   16183 $echo "local: *; };" >> $output_objdir/$libname.ver~
   16184         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   16185       else
   16186         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
   16187       fi
   16188     else
   16189       ld_shlibs_GCJ=no
   16190     fi
   16191     ;;
   16192 
   16193     *)
   16194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   16195 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16196 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   16197       else
   16198 	ld_shlibs_GCJ=no
   16199       fi
   16200       ;;
   16201     esac
   16202 
   16203     if test "$ld_shlibs_GCJ" = yes; then
   16204       runpath_var=LD_RUN_PATH
   16205       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
   16206       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
   16207       # ancient GNU ld didn't support --whole-archive et. al.
   16208       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
   16209  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   16210       else
   16211   	whole_archive_flag_spec_GCJ=
   16212       fi
   16213     fi
   16214   else
   16215     # PORTME fill in a description of your system's linker (not GNU ld)
   16216     case $host_os in
   16217     aix3*)
   16218       allow_undefined_flag_GCJ=unsupported
   16219       always_export_symbols_GCJ=yes
   16220       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   16221       # Note: this linker hardcodes the directories in LIBPATH if there
   16222       # are no directories specified by -L.
   16223       hardcode_minus_L_GCJ=yes
   16224       if test "$GCC" = yes && test -z "$link_static_flag"; then
   16225 	# Neither direct hardcoding nor static linking is supported with a
   16226 	# broken collect2.
   16227 	hardcode_direct_GCJ=unsupported
   16228       fi
   16229       ;;
   16230 
   16231     aix4* | aix5*)
   16232       if test "$host_cpu" = ia64; then
   16233 	# On IA64, the linker does run time linking by default, so we don't
   16234 	# have to do anything special.
   16235 	aix_use_runtimelinking=no
   16236 	exp_sym_flag='-Bexport'
   16237 	no_entry_flag=""
   16238       else
   16239 	# If we're using GNU nm, then we don't want the "-C" option.
   16240 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   16241 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   16242 	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   16243 	else
   16244 	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   16245 	fi
   16246 	aix_use_runtimelinking=no
   16247 
   16248 	# Test if we are trying to use run time linking or normal
   16249 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   16250 	# need to do runtime linking.
   16251 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   16252 	  for ld_flag in $LDFLAGS; do
   16253   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   16254   	    aix_use_runtimelinking=yes
   16255   	    break
   16256   	  fi
   16257 	  done
   16258 	esac
   16259 
   16260 	exp_sym_flag='-bexport'
   16261 	no_entry_flag='-bnoentry'
   16262       fi
   16263 
   16264       # When large executables or shared objects are built, AIX ld can
   16265       # have problems creating the table of contents.  If linking a library
   16266       # or program results in "error TOC overflow" add -mminimal-toc to
   16267       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   16268       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   16269 
   16270       archive_cmds_GCJ=''
   16271       hardcode_direct_GCJ=yes
   16272       hardcode_libdir_separator_GCJ=':'
   16273       link_all_deplibs_GCJ=yes
   16274 
   16275       if test "$GCC" = yes; then
   16276 	case $host_os in aix4.012|aix4.012.*)
   16277 	# We only want to do this on AIX 4.2 and lower, the check
   16278 	# below for broken collect2 doesn't work under 4.3+
   16279 	  collect2name=`${CC} -print-prog-name=collect2`
   16280 	  if test -f "$collect2name" && \
   16281   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   16282 	  then
   16283   	  # We have reworked collect2
   16284   	  hardcode_direct_GCJ=yes
   16285 	  else
   16286   	  # We have old collect2
   16287   	  hardcode_direct_GCJ=unsupported
   16288   	  # It fails to find uninstalled libraries when the uninstalled
   16289   	  # path is not listed in the libpath.  Setting hardcode_minus_L
   16290   	  # to unsupported forces relinking
   16291   	  hardcode_minus_L_GCJ=yes
   16292   	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16293   	  hardcode_libdir_separator_GCJ=
   16294 	  fi
   16295 	esac
   16296 	shared_flag='-shared'
   16297       else
   16298 	# not using gcc
   16299 	if test "$host_cpu" = ia64; then
   16300   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   16301   	# chokes on -Wl,-G. The following line is correct:
   16302 	  shared_flag='-G'
   16303 	else
   16304   	if test "$aix_use_runtimelinking" = yes; then
   16305 	    shared_flag='${wl}-G'
   16306 	  else
   16307 	    shared_flag='${wl}-bM:SRE'
   16308   	fi
   16309 	fi
   16310       fi
   16311 
   16312       # It seems that -bexpall does not export symbols beginning with
   16313       # underscore (_), so it is better to generate a list of symbols to export.
   16314       always_export_symbols_GCJ=yes
   16315       if test "$aix_use_runtimelinking" = yes; then
   16316 	# Warning - without using the other runtime loading flags (-brtl),
   16317 	# -berok will link without error, but may produce a broken library.
   16318 	allow_undefined_flag_GCJ='-berok'
   16319        # Determine the default libpath from the value encoded in an empty executable.
   16320        cat >conftest.$ac_ext <<_ACEOF
   16321 /* confdefs.h.  */
   16322 _ACEOF
   16323 cat confdefs.h >>conftest.$ac_ext
   16324 cat >>conftest.$ac_ext <<_ACEOF
   16325 /* end confdefs.h.  */
   16326 
   16327 int
   16328 main ()
   16329 {
   16330 
   16331   ;
   16332   return 0;
   16333 }
   16334 _ACEOF
   16335 rm -f conftest.$ac_objext conftest$ac_exeext
   16336 if { (ac_try="$ac_link"
   16337 case "(($ac_try" in
   16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16339   *) ac_try_echo=$ac_try;;
   16340 esac
   16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16342   (eval "$ac_link") 2>conftest.er1
   16343   ac_status=$?
   16344   grep -v '^ *+' conftest.er1 >conftest.err
   16345   rm -f conftest.er1
   16346   cat conftest.err >&5
   16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16348   (exit $ac_status); } && {
   16349 	 test -z "$ac_c_werror_flag" ||
   16350 	 test ! -s conftest.err
   16351        } && test -s conftest$ac_exeext &&
   16352        $as_test_x conftest$ac_exeext; then
   16353 
   16354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16355 }'`
   16356 # Check for a 64-bit object if we didn't find anything.
   16357 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16358 }'`; fi
   16359 else
   16360   echo "$as_me: failed program was:" >&5
   16361 sed 's/^/| /' conftest.$ac_ext >&5
   16362 
   16363 
   16364 fi
   16365 
   16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16367       conftest$ac_exeext conftest.$ac_ext
   16368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   16369 
   16370        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
   16371 	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   16372        else
   16373 	if test "$host_cpu" = ia64; then
   16374 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
   16375 	  allow_undefined_flag_GCJ="-z nodefs"
   16376 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   16377 	else
   16378 	 # Determine the default libpath from the value encoded in an empty executable.
   16379 	 cat >conftest.$ac_ext <<_ACEOF
   16380 /* confdefs.h.  */
   16381 _ACEOF
   16382 cat confdefs.h >>conftest.$ac_ext
   16383 cat >>conftest.$ac_ext <<_ACEOF
   16384 /* end confdefs.h.  */
   16385 
   16386 int
   16387 main ()
   16388 {
   16389 
   16390   ;
   16391   return 0;
   16392 }
   16393 _ACEOF
   16394 rm -f conftest.$ac_objext conftest$ac_exeext
   16395 if { (ac_try="$ac_link"
   16396 case "(($ac_try" in
   16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16398   *) ac_try_echo=$ac_try;;
   16399 esac
   16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16401   (eval "$ac_link") 2>conftest.er1
   16402   ac_status=$?
   16403   grep -v '^ *+' conftest.er1 >conftest.err
   16404   rm -f conftest.er1
   16405   cat conftest.err >&5
   16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16407   (exit $ac_status); } && {
   16408 	 test -z "$ac_c_werror_flag" ||
   16409 	 test ! -s conftest.err
   16410        } && test -s conftest$ac_exeext &&
   16411        $as_test_x conftest$ac_exeext; then
   16412 
   16413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16414 }'`
   16415 # Check for a 64-bit object if we didn't find anything.
   16416 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16417 }'`; fi
   16418 else
   16419   echo "$as_me: failed program was:" >&5
   16420 sed 's/^/| /' conftest.$ac_ext >&5
   16421 
   16422 
   16423 fi
   16424 
   16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16426       conftest$ac_exeext conftest.$ac_ext
   16427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   16428 
   16429 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
   16430 	  # Warning - without using the other run time loading flags,
   16431 	  # -berok will link without error, but may produce a broken library.
   16432 	  no_undefined_flag_GCJ=' ${wl}-bernotok'
   16433 	  allow_undefined_flag_GCJ=' ${wl}-berok'
   16434 	  # -bexpall does not export symbols beginning with underscore (_)
   16435 	  always_export_symbols_GCJ=yes
   16436 	  # Exported symbols can be pulled into shared objects from archives
   16437 	  whole_archive_flag_spec_GCJ=' '
   16438 	  archive_cmds_need_lc_GCJ=yes
   16439 	  # This is similar to how AIX traditionally builds it's shared libraries.
   16440 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   16441 	fi
   16442       fi
   16443       ;;
   16444 
   16445     amigaos*)
   16446       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   16447       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16448       hardcode_minus_L_GCJ=yes
   16449       # see comment about different semantics on the GNU ld section
   16450       ld_shlibs_GCJ=no
   16451       ;;
   16452 
   16453     bsdi4*)
   16454       export_dynamic_flag_spec_GCJ=-rdynamic
   16455       ;;
   16456 
   16457     cygwin* | mingw* | pw32*)
   16458       # When not using gcc, we currently assume that we are using
   16459       # Microsoft Visual C++.
   16460       # hardcode_libdir_flag_spec is actually meaningless, as there is
   16461       # no search path for DLLs.
   16462       hardcode_libdir_flag_spec_GCJ=' '
   16463       allow_undefined_flag_GCJ=unsupported
   16464       # Tell ltmain to make .lib files, not .a files.
   16465       libext=lib
   16466       # Tell ltmain to make .dll files, not .so files.
   16467       shrext=".dll"
   16468       # FIXME: Setting linknames here is a bad hack.
   16469       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
   16470       # The linker will automatically build a .lib file if we build a DLL.
   16471       old_archive_From_new_cmds_GCJ='true'
   16472       # FIXME: Should let the user specify the lib program.
   16473       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
   16474       fix_srcfile_path='`cygpath -w "$srcfile"`'
   16475       enable_shared_with_static_runtimes_GCJ=yes
   16476       ;;
   16477 
   16478     darwin* | rhapsody*)
   16479     if test "$GXX" = yes ; then
   16480       archive_cmds_need_lc_GCJ=no
   16481       case "$host_os" in
   16482       rhapsody* | darwin1.[012])
   16483 	allow_undefined_flag_GCJ='-undefined suppress'
   16484 	;;
   16485       *) # Darwin 1.3 on
   16486       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   16487       	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
   16488       else
   16489         case ${MACOSX_DEPLOYMENT_TARGET} in
   16490           10.[012])
   16491             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
   16492             ;;
   16493           10.*)
   16494             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
   16495             ;;
   16496         esac
   16497       fi
   16498 	;;
   16499       esac
   16500     	lt_int_apple_cc_single_mod=no
   16501     	output_verbose_link_cmd='echo'
   16502     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   16503     	  lt_int_apple_cc_single_mod=yes
   16504     	fi
   16505     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   16506     	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   16507     	else
   16508         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   16509       fi
   16510       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   16511       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   16512         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   16513           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16514         else
   16515           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16516         fi
   16517           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16518       hardcode_direct_GCJ=no
   16519       hardcode_automatic_GCJ=yes
   16520       hardcode_shlibpath_var_GCJ=unsupported
   16521       whole_archive_flag_spec_GCJ='-all_load $convenience'
   16522       link_all_deplibs_GCJ=yes
   16523     else
   16524       ld_shlibs_GCJ=no
   16525     fi
   16526       ;;
   16527 
   16528     dgux*)
   16529       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16530       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16531       hardcode_shlibpath_var_GCJ=no
   16532       ;;
   16533 
   16534     freebsd1*)
   16535       ld_shlibs_GCJ=no
   16536       ;;
   16537 
   16538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   16539     # support.  Future versions do this automatically, but an explicit c++rt0.o
   16540     # does not break anything, and helps significantly (at the cost of a little
   16541     # extra space).
   16542     freebsd2.2*)
   16543       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   16544       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16545       hardcode_direct_GCJ=yes
   16546       hardcode_shlibpath_var_GCJ=no
   16547       ;;
   16548 
   16549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   16550     freebsd2*)
   16551       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16552       hardcode_direct_GCJ=yes
   16553       hardcode_minus_L_GCJ=yes
   16554       hardcode_shlibpath_var_GCJ=no
   16555       ;;
   16556 
   16557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   16558     freebsd* | kfreebsd*-gnu)
   16559       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   16560       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16561       hardcode_direct_GCJ=yes
   16562       hardcode_shlibpath_var_GCJ=no
   16563       ;;
   16564 
   16565     hpux9*)
   16566       if test "$GCC" = yes; then
   16567 	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   16568       else
   16569 	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   16570       fi
   16571       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
   16572       hardcode_libdir_separator_GCJ=:
   16573       hardcode_direct_GCJ=yes
   16574 
   16575       # hardcode_minus_L: Not really in the search PATH,
   16576       # but as the default location of the library.
   16577       hardcode_minus_L_GCJ=yes
   16578       export_dynamic_flag_spec_GCJ='${wl}-E'
   16579       ;;
   16580 
   16581     hpux10* | hpux11*)
   16582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   16583 	case "$host_cpu" in
   16584 	hppa*64*|ia64*)
   16585 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16586 	  ;;
   16587 	*)
   16588 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   16589 	  ;;
   16590 	esac
   16591       else
   16592 	case "$host_cpu" in
   16593 	hppa*64*|ia64*)
   16594 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
   16595 	  ;;
   16596 	*)
   16597 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   16598 	  ;;
   16599 	esac
   16600       fi
   16601       if test "$with_gnu_ld" = no; then
   16602 	case "$host_cpu" in
   16603 	hppa*64*)
   16604 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
   16605 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
   16606 	  hardcode_libdir_separator_GCJ=:
   16607 	  hardcode_direct_GCJ=no
   16608 	  hardcode_shlibpath_var_GCJ=no
   16609 	  ;;
   16610 	ia64*)
   16611 	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16612 	  hardcode_direct_GCJ=no
   16613 	  hardcode_shlibpath_var_GCJ=no
   16614 
   16615 	  # hardcode_minus_L: Not really in the search PATH,
   16616 	  # but as the default location of the library.
   16617 	  hardcode_minus_L_GCJ=yes
   16618 	  ;;
   16619 	*)
   16620 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
   16621 	  hardcode_libdir_separator_GCJ=:
   16622 	  hardcode_direct_GCJ=yes
   16623 	  export_dynamic_flag_spec_GCJ='${wl}-E'
   16624 
   16625 	  # hardcode_minus_L: Not really in the search PATH,
   16626 	  # but as the default location of the library.
   16627 	  hardcode_minus_L_GCJ=yes
   16628 	  ;;
   16629 	esac
   16630       fi
   16631       ;;
   16632 
   16633     irix5* | irix6* | nonstopux*)
   16634       if test "$GCC" = yes; then
   16635 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16636       else
   16637 	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   16638 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
   16639       fi
   16640       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16641       hardcode_libdir_separator_GCJ=:
   16642       link_all_deplibs_GCJ=yes
   16643       ;;
   16644 
   16645     netbsd*)
   16646       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   16647 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   16648       else
   16649 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   16650       fi
   16651       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16652       hardcode_direct_GCJ=yes
   16653       hardcode_shlibpath_var_GCJ=no
   16654       ;;
   16655 
   16656     newsos6)
   16657       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16658       hardcode_direct_GCJ=yes
   16659       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16660       hardcode_libdir_separator_GCJ=:
   16661       hardcode_shlibpath_var_GCJ=no
   16662       ;;
   16663 
   16664     openbsd*)
   16665       hardcode_direct_GCJ=yes
   16666       hardcode_shlibpath_var_GCJ=no
   16667       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   16668 	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   16669 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
   16670 	export_dynamic_flag_spec_GCJ='${wl}-E'
   16671       else
   16672        case $host_os in
   16673 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   16674 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16675 	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16676 	   ;;
   16677 	 *)
   16678 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   16679 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
   16680 	   ;;
   16681        esac
   16682       fi
   16683       ;;
   16684 
   16685     os2*)
   16686       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16687       hardcode_minus_L_GCJ=yes
   16688       allow_undefined_flag_GCJ=unsupported
   16689       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   16690       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   16691       ;;
   16692 
   16693     osf3*)
   16694       if test "$GCC" = yes; then
   16695 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
   16696 	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16697       else
   16698 	allow_undefined_flag_GCJ=' -expect_unresolved \*'
   16699 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   16700       fi
   16701       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16702       hardcode_libdir_separator_GCJ=:
   16703       ;;
   16704 
   16705     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   16706       if test "$GCC" = yes; then
   16707 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
   16708 	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16709 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16710       else
   16711 	allow_undefined_flag_GCJ=' -expect_unresolved \*'
   16712 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   16713 	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
   16714 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
   16715 
   16716 	# Both c and cxx compiler support -rpath directly
   16717 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
   16718       fi
   16719       hardcode_libdir_separator_GCJ=:
   16720       ;;
   16721 
   16722     sco3.2v5*)
   16723       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16724       hardcode_shlibpath_var_GCJ=no
   16725       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
   16726       runpath_var=LD_RUN_PATH
   16727       hardcode_runpath_var=yes
   16728       ;;
   16729 
   16730     solaris*)
   16731       no_undefined_flag_GCJ=' -z text'
   16732       if test "$GCC" = yes; then
   16733 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16734 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   16735 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
   16736       else
   16737 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16738 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   16739   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   16740       fi
   16741       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16742       hardcode_shlibpath_var_GCJ=no
   16743       case $host_os in
   16744       solaris2.[0-5] | solaris2.[0-5].*) ;;
   16745       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
   16746 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
   16747       esac
   16748       link_all_deplibs_GCJ=yes
   16749       ;;
   16750 
   16751     sunos4*)
   16752       if test "x$host_vendor" = xsequent; then
   16753 	# Use $CC to link under sequent, because it throws in some extra .o
   16754 	# files that make .init and .fini sections work.
   16755 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   16756       else
   16757 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   16758       fi
   16759       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16760       hardcode_direct_GCJ=yes
   16761       hardcode_minus_L_GCJ=yes
   16762       hardcode_shlibpath_var_GCJ=no
   16763       ;;
   16764 
   16765     sysv4)
   16766       case $host_vendor in
   16767 	sni)
   16768 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16769 	  hardcode_direct_GCJ=yes # is this really true???
   16770 	;;
   16771 	siemens)
   16772 	  ## LD is ld it makes a PLAMLIB
   16773 	  ## CC just makes a GrossModule.
   16774 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   16775 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
   16776 	  hardcode_direct_GCJ=no
   16777         ;;
   16778 	motorola)
   16779 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16780 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
   16781 	;;
   16782       esac
   16783       runpath_var='LD_RUN_PATH'
   16784       hardcode_shlibpath_var_GCJ=no
   16785       ;;
   16786 
   16787     sysv4.3*)
   16788       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16789       hardcode_shlibpath_var_GCJ=no
   16790       export_dynamic_flag_spec_GCJ='-Bexport'
   16791       ;;
   16792 
   16793     sysv4*MP*)
   16794       if test -d /usr/nec; then
   16795 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16796 	hardcode_shlibpath_var_GCJ=no
   16797 	runpath_var=LD_RUN_PATH
   16798 	hardcode_runpath_var=yes
   16799 	ld_shlibs_GCJ=yes
   16800       fi
   16801       ;;
   16802 
   16803     sysv4.2uw2*)
   16804       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   16805       hardcode_direct_GCJ=yes
   16806       hardcode_minus_L_GCJ=no
   16807       hardcode_shlibpath_var_GCJ=no
   16808       hardcode_runpath_var=yes
   16809       runpath_var=LD_RUN_PATH
   16810       ;;
   16811 
   16812    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
   16813       no_undefined_flag_GCJ='${wl}-z ${wl}text'
   16814       if test "$GCC" = yes; then
   16815 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16816       else
   16817 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16818       fi
   16819       runpath_var='LD_RUN_PATH'
   16820       hardcode_shlibpath_var_GCJ=no
   16821       ;;
   16822 
   16823     sysv5*)
   16824       no_undefined_flag_GCJ=' -z text'
   16825       # $CC -shared without GNU ld will not create a library from C++
   16826       # object files and a static libstdc++, better avoid it by now
   16827       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16828       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   16829   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   16830       hardcode_libdir_flag_spec_GCJ=
   16831       hardcode_shlibpath_var_GCJ=no
   16832       runpath_var='LD_RUN_PATH'
   16833       ;;
   16834 
   16835     uts4*)
   16836       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16837       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16838       hardcode_shlibpath_var_GCJ=no
   16839       ;;
   16840 
   16841     *)
   16842       ld_shlibs_GCJ=no
   16843       ;;
   16844     esac
   16845   fi
   16846 
   16847 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
   16848 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
   16849 test "$ld_shlibs_GCJ" = no && can_build_shared=no
   16850 
   16851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   16852 if test "$GCC" = yes; then
   16853   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   16854 fi
   16855 
   16856 #
   16857 # Do we need to explicitly link libc?
   16858 #
   16859 case "x$archive_cmds_need_lc_GCJ" in
   16860 x|xyes)
   16861   # Assume -lc should be added
   16862   archive_cmds_need_lc_GCJ=yes
   16863 
   16864   if test "$enable_shared" = yes && test "$GCC" = yes; then
   16865     case $archive_cmds_GCJ in
   16866     *'~'*)
   16867       # FIXME: we may have to deal with multi-command sequences.
   16868       ;;
   16869     '$CC '*)
   16870       # Test whether the compiler implicitly links with -lc since on some
   16871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   16872       # to ld, don't add -lc before -lgcc.
   16873       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   16874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   16875       $rm conftest*
   16876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   16877 
   16878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   16879   (eval $ac_compile) 2>&5
   16880   ac_status=$?
   16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16882   (exit $ac_status); } 2>conftest.err; then
   16883         soname=conftest
   16884         lib=conftest
   16885         libobjs=conftest.$ac_objext
   16886         deplibs=
   16887         wl=$lt_prog_compiler_wl_GCJ
   16888         compiler_flags=-v
   16889         linker_flags=-v
   16890         verstring=
   16891         output_objdir=.
   16892         libname=conftest
   16893         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
   16894         allow_undefined_flag_GCJ=
   16895         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   16896   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   16897   ac_status=$?
   16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16899   (exit $ac_status); }
   16900         then
   16901 	  archive_cmds_need_lc_GCJ=no
   16902         else
   16903 	  archive_cmds_need_lc_GCJ=yes
   16904         fi
   16905         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
   16906       else
   16907         cat conftest.err 1>&5
   16908       fi
   16909       $rm conftest*
   16910       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
   16911 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
   16912       ;;
   16913     esac
   16914   fi
   16915   ;;
   16916 esac
   16917 
   16918 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   16919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   16920 library_names_spec=
   16921 libname_spec='lib$name'
   16922 soname_spec=
   16923 shrext=".so"
   16924 postinstall_cmds=
   16925 postuninstall_cmds=
   16926 finish_cmds=
   16927 finish_eval=
   16928 shlibpath_var=
   16929 shlibpath_overrides_runpath=unknown
   16930 version_type=none
   16931 dynamic_linker="$host_os ld.so"
   16932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   16933 if test "$GCC" = yes; then
   16934   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   16935   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   16936     # if the path contains ";" then we assume it to be the separator
   16937     # otherwise default to the standard path separator (i.e. ":") - it is
   16938     # assumed that no part of a normal pathname contains ";" but that should
   16939     # okay in the real world where ";" in dirpaths is itself problematic.
   16940     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   16941   else
   16942     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   16943   fi
   16944 else
   16945   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   16946 fi
   16947 need_lib_prefix=unknown
   16948 hardcode_into_libs=no
   16949 
   16950 # when you set need_version to no, make sure it does not cause -set_version
   16951 # flags to be left without arguments
   16952 need_version=unknown
   16953 
   16954 case $host_os in
   16955 aix3*)
   16956   version_type=linux
   16957   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   16958   shlibpath_var=LIBPATH
   16959 
   16960   # AIX 3 has no versioning support, so we append a major version to the name.
   16961   soname_spec='${libname}${release}${shared_ext}$major'
   16962   ;;
   16963 
   16964 aix4* | aix5*)
   16965   version_type=linux
   16966   need_lib_prefix=no
   16967   need_version=no
   16968   hardcode_into_libs=yes
   16969   if test "$host_cpu" = ia64; then
   16970     # AIX 5 supports IA64
   16971     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   16972     shlibpath_var=LD_LIBRARY_PATH
   16973   else
   16974     # With GCC up to 2.95.x, collect2 would create an import file
   16975     # for dependence libraries.  The import file would start with
   16976     # the line `#! .'.  This would cause the generated library to
   16977     # depend on `.', always an invalid library.  This was fixed in
   16978     # development snapshots of GCC prior to 3.0.
   16979     case $host_os in
   16980       aix4 | aix4.[01] | aix4.[01].*)
   16981       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   16982 	   echo ' yes '
   16983 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   16984 	:
   16985       else
   16986 	can_build_shared=no
   16987       fi
   16988       ;;
   16989     esac
   16990     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   16991     # soname into executable. Probably we can add versioning support to
   16992     # collect2, so additional links can be useful in future.
   16993     if test "$aix_use_runtimelinking" = yes; then
   16994       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   16995       # instead of lib<name>.a to let people know that these are not
   16996       # typical AIX shared libraries.
   16997       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   16998     else
   16999       # We preserve .a as extension for shared libraries through AIX4.2
   17000       # and later when we are not doing run time linking.
   17001       library_names_spec='${libname}${release}.a $libname.a'
   17002       soname_spec='${libname}${release}${shared_ext}$major'
   17003     fi
   17004     shlibpath_var=LIBPATH
   17005   fi
   17006   ;;
   17007 
   17008 amigaos*)
   17009   library_names_spec='$libname.ixlibrary $libname.a'
   17010   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   17011   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   17012   ;;
   17013 
   17014 beos*)
   17015   library_names_spec='${libname}${shared_ext}'
   17016   dynamic_linker="$host_os ld.so"
   17017   shlibpath_var=LIBRARY_PATH
   17018   ;;
   17019 
   17020 bsdi4*)
   17021   version_type=linux
   17022   need_version=no
   17023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17024   soname_spec='${libname}${release}${shared_ext}$major'
   17025   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   17026   shlibpath_var=LD_LIBRARY_PATH
   17027   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   17028   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   17029   # the default ld.so.conf also contains /usr/contrib/lib and
   17030   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   17031   # libtool to hard-code these into programs
   17032   ;;
   17033 
   17034 cygwin* | mingw* | pw32*)
   17035   version_type=windows
   17036   shrext=".dll"
   17037   need_version=no
   17038   need_lib_prefix=no
   17039 
   17040   case $GCC,$host_os in
   17041   yes,cygwin* | yes,mingw* | yes,pw32*)
   17042     library_names_spec='$libname.dll.a'
   17043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   17044     postinstall_cmds='base_file=`basename \${file}`~
   17045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   17046       dldir=$destdir/`dirname \$dlpath`~
   17047       test -d \$dldir || mkdir -p \$dldir~
   17048       $install_prog $dir/$dlname \$dldir/$dlname'
   17049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   17050       dlpath=$dir/\$dldll~
   17051        $rm \$dlpath'
   17052     shlibpath_overrides_runpath=yes
   17053 
   17054     case $host_os in
   17055     cygwin*)
   17056       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   17057       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   17058       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   17059       ;;
   17060     mingw*)
   17061       # MinGW DLLs use traditional 'lib' prefix
   17062       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   17063       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   17064       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   17065         # It is most probably a Windows format PATH printed by
   17066         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   17067         # path with ; separators, and with drive letters. We can handle the
   17068         # drive letters (cygwin fileutils understands them), so leave them,
   17069         # especially as we might pass files found there to a mingw objdump,
   17070         # which wouldn't understand a cygwinified path. Ahh.
   17071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   17072       else
   17073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   17074       fi
   17075       ;;
   17076     pw32*)
   17077       # pw32 DLLs use 'pw' prefix rather than 'lib'
   17078       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   17079       ;;
   17080     esac
   17081     ;;
   17082 
   17083   *)
   17084     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   17085     ;;
   17086   esac
   17087   dynamic_linker='Win32 ld.exe'
   17088   # FIXME: first we should search . and the directory the executable is in
   17089   shlibpath_var=PATH
   17090   ;;
   17091 
   17092 darwin* | rhapsody*)
   17093   dynamic_linker="$host_os dyld"
   17094   version_type=darwin
   17095   need_lib_prefix=no
   17096   need_version=no
   17097   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   17098   soname_spec='${libname}${release}${major}$shared_ext'
   17099   shlibpath_overrides_runpath=yes
   17100   shlibpath_var=DYLD_LIBRARY_PATH
   17101   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   17102   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   17103   if test "$GCC" = yes; then
   17104     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   17105   else
   17106     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   17107   fi
   17108   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   17109   ;;
   17110 
   17111 dgux*)
   17112   version_type=linux
   17113   need_lib_prefix=no
   17114   need_version=no
   17115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   17116   soname_spec='${libname}${release}${shared_ext}$major'
   17117   shlibpath_var=LD_LIBRARY_PATH
   17118   ;;
   17119 
   17120 freebsd1*)
   17121   dynamic_linker=no
   17122   ;;
   17123 
   17124 kfreebsd*-gnu)
   17125   version_type=linux
   17126   need_lib_prefix=no
   17127   need_version=no
   17128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   17129   soname_spec='${libname}${release}${shared_ext}$major'
   17130   shlibpath_var=LD_LIBRARY_PATH
   17131   shlibpath_overrides_runpath=no
   17132   hardcode_into_libs=yes
   17133   dynamic_linker='GNU ld.so'
   17134   ;;
   17135 
   17136 freebsd*)
   17137   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   17138   version_type=freebsd-$objformat
   17139   case $version_type in
   17140     freebsd-elf*)
   17141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   17142       need_version=no
   17143       need_lib_prefix=no
   17144       ;;
   17145     freebsd-*)
   17146       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   17147       need_version=yes
   17148       ;;
   17149   esac
   17150   shlibpath_var=LD_LIBRARY_PATH
   17151   case $host_os in
   17152   freebsd2*)
   17153     shlibpath_overrides_runpath=yes
   17154     ;;
   17155   freebsd3.01* | freebsdelf3.01*)
   17156     shlibpath_overrides_runpath=yes
   17157     hardcode_into_libs=yes
   17158     ;;
   17159   *) # from 3.2 on
   17160     shlibpath_overrides_runpath=no
   17161     hardcode_into_libs=yes
   17162     ;;
   17163   esac
   17164   ;;
   17165 
   17166 gnu*)
   17167   version_type=linux
   17168   need_lib_prefix=no
   17169   need_version=no
   17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   17171   soname_spec='${libname}${release}${shared_ext}$major'
   17172   shlibpath_var=LD_LIBRARY_PATH
   17173   hardcode_into_libs=yes
   17174   ;;
   17175 
   17176 hpux9* | hpux10* | hpux11*)
   17177   # Give a soname corresponding to the major version so that dld.sl refuses to
   17178   # link against other versions.
   17179   version_type=sunos
   17180   need_lib_prefix=no
   17181   need_version=no
   17182   case "$host_cpu" in
   17183   ia64*)
   17184     shrext='.so'
   17185     hardcode_into_libs=yes
   17186     dynamic_linker="$host_os dld.so"
   17187     shlibpath_var=LD_LIBRARY_PATH
   17188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   17189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17190     soname_spec='${libname}${release}${shared_ext}$major'
   17191     if test "X$HPUX_IA64_MODE" = X32; then
   17192       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   17193     else
   17194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   17195     fi
   17196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   17197     ;;
   17198    hppa*64*)
   17199      shrext='.sl'
   17200      hardcode_into_libs=yes
   17201      dynamic_linker="$host_os dld.sl"
   17202      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   17203      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   17204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17205      soname_spec='${libname}${release}${shared_ext}$major'
   17206      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   17207      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   17208      ;;
   17209    *)
   17210     shrext='.sl'
   17211     dynamic_linker="$host_os dld.sl"
   17212     shlibpath_var=SHLIB_PATH
   17213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   17214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17215     soname_spec='${libname}${release}${shared_ext}$major'
   17216     ;;
   17217   esac
   17218   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   17219   postinstall_cmds='chmod 555 $lib'
   17220   ;;
   17221 
   17222 irix5* | irix6* | nonstopux*)
   17223   case $host_os in
   17224     nonstopux*) version_type=nonstopux ;;
   17225     *)
   17226 	if test "$lt_cv_prog_gnu_ld" = yes; then
   17227 		version_type=linux
   17228 	else
   17229 		version_type=irix
   17230 	fi ;;
   17231   esac
   17232   need_lib_prefix=no
   17233   need_version=no
   17234   soname_spec='${libname}${release}${shared_ext}$major'
   17235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   17236   case $host_os in
   17237   irix5* | nonstopux*)
   17238     libsuff= shlibsuff=
   17239     ;;
   17240   *)
   17241     case $LD in # libtool.m4 will add one of these switches to LD
   17242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   17243       libsuff= shlibsuff= libmagic=32-bit;;
   17244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   17245       libsuff=32 shlibsuff=N32 libmagic=N32;;
   17246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   17247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   17248     *) libsuff= shlibsuff= libmagic=never-match;;
   17249     esac
   17250     ;;
   17251   esac
   17252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   17253   shlibpath_overrides_runpath=no
   17254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   17255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   17256   hardcode_into_libs=yes
   17257   ;;
   17258 
   17259 # No shared lib support for Linux oldld, aout, or coff.
   17260 linux*oldld* | linux*aout* | linux*coff*)
   17261   dynamic_linker=no
   17262   ;;
   17263 
   17264 # This must be Linux ELF.
   17265 linux*)
   17266   version_type=linux
   17267   need_lib_prefix=no
   17268   need_version=no
   17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17270   soname_spec='${libname}${release}${shared_ext}$major'
   17271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   17272   shlibpath_var=LD_LIBRARY_PATH
   17273   shlibpath_overrides_runpath=no
   17274   # This implies no fast_install, which is unacceptable.
   17275   # Some rework will be needed to allow for fast_install
   17276   # before this can be enabled.
   17277   hardcode_into_libs=yes
   17278 
   17279   # We used to test for /lib/ld.so.1 and disable shared libraries on
   17280   # powerpc, because MkLinux only supported shared libraries with the
   17281   # GNU dynamic linker.  Since this was broken with cross compilers,
   17282   # most powerpc-linux boxes support dynamic linking these days and
   17283   # people can always --disable-shared, the test was removed, and we
   17284   # assume the GNU/Linux dynamic linker is in use.
   17285   dynamic_linker='GNU/Linux ld.so'
   17286   ;;
   17287 
   17288 netbsd*)
   17289   version_type=sunos
   17290   need_lib_prefix=no
   17291   need_version=no
   17292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   17293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   17295     dynamic_linker='NetBSD (a.out) ld.so'
   17296   else
   17297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   17298     soname_spec='${libname}${release}${shared_ext}$major'
   17299     dynamic_linker='NetBSD ld.elf_so'
   17300   fi
   17301   shlibpath_var=LD_LIBRARY_PATH
   17302   shlibpath_overrides_runpath=yes
   17303   hardcode_into_libs=yes
   17304   ;;
   17305 
   17306 newsos6)
   17307   version_type=linux
   17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17309   shlibpath_var=LD_LIBRARY_PATH
   17310   shlibpath_overrides_runpath=yes
   17311   ;;
   17312 
   17313 nto-qnx*)
   17314   version_type=linux
   17315   need_lib_prefix=no
   17316   need_version=no
   17317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17318   soname_spec='${libname}${release}${shared_ext}$major'
   17319   shlibpath_var=LD_LIBRARY_PATH
   17320   shlibpath_overrides_runpath=yes
   17321   ;;
   17322 
   17323 openbsd*)
   17324   version_type=sunos
   17325   need_lib_prefix=no
   17326   need_version=no
   17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   17329   shlibpath_var=LD_LIBRARY_PATH
   17330   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   17331     case $host_os in
   17332       openbsd2.[89] | openbsd2.[89].*)
   17333 	shlibpath_overrides_runpath=no
   17334 	;;
   17335       *)
   17336 	shlibpath_overrides_runpath=yes
   17337 	;;
   17338       esac
   17339   else
   17340     shlibpath_overrides_runpath=yes
   17341   fi
   17342   ;;
   17343 
   17344 os2*)
   17345   libname_spec='$name'
   17346   shrext=".dll"
   17347   need_lib_prefix=no
   17348   library_names_spec='$libname${shared_ext} $libname.a'
   17349   dynamic_linker='OS/2 ld.exe'
   17350   shlibpath_var=LIBPATH
   17351   ;;
   17352 
   17353 osf3* | osf4* | osf5*)
   17354   version_type=osf
   17355   need_lib_prefix=no
   17356   need_version=no
   17357   soname_spec='${libname}${release}${shared_ext}$major'
   17358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17359   shlibpath_var=LD_LIBRARY_PATH
   17360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   17361   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   17362   ;;
   17363 
   17364 sco3.2v5*)
   17365   version_type=osf
   17366   soname_spec='${libname}${release}${shared_ext}$major'
   17367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17368   shlibpath_var=LD_LIBRARY_PATH
   17369   ;;
   17370 
   17371 solaris*)
   17372   version_type=linux
   17373   need_lib_prefix=no
   17374   need_version=no
   17375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17376   soname_spec='${libname}${release}${shared_ext}$major'
   17377   shlibpath_var=LD_LIBRARY_PATH
   17378   shlibpath_overrides_runpath=yes
   17379   hardcode_into_libs=yes
   17380   # ldd complains unless libraries are executable
   17381   postinstall_cmds='chmod +x $lib'
   17382   ;;
   17383 
   17384 sunos4*)
   17385   version_type=sunos
   17386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17387   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   17388   shlibpath_var=LD_LIBRARY_PATH
   17389   shlibpath_overrides_runpath=yes
   17390   if test "$with_gnu_ld" = yes; then
   17391     need_lib_prefix=no
   17392   fi
   17393   need_version=yes
   17394   ;;
   17395 
   17396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   17397   version_type=linux
   17398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17399   soname_spec='${libname}${release}${shared_ext}$major'
   17400   shlibpath_var=LD_LIBRARY_PATH
   17401   case $host_vendor in
   17402     sni)
   17403       shlibpath_overrides_runpath=no
   17404       need_lib_prefix=no
   17405       export_dynamic_flag_spec='${wl}-Blargedynsym'
   17406       runpath_var=LD_RUN_PATH
   17407       ;;
   17408     siemens)
   17409       need_lib_prefix=no
   17410       ;;
   17411     motorola)
   17412       need_lib_prefix=no
   17413       need_version=no
   17414       shlibpath_overrides_runpath=no
   17415       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   17416       ;;
   17417   esac
   17418   ;;
   17419 
   17420 sysv4*MP*)
   17421   if test -d /usr/nec ;then
   17422     version_type=linux
   17423     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   17424     soname_spec='$libname${shared_ext}.$major'
   17425     shlibpath_var=LD_LIBRARY_PATH
   17426   fi
   17427   ;;
   17428 
   17429 uts4*)
   17430   version_type=linux
   17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17432   soname_spec='${libname}${release}${shared_ext}$major'
   17433   shlibpath_var=LD_LIBRARY_PATH
   17434   ;;
   17435 
   17436 *)
   17437   dynamic_linker=no
   17438   ;;
   17439 esac
   17440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   17441 echo "${ECHO_T}$dynamic_linker" >&6; }
   17442 test "$dynamic_linker" = no && can_build_shared=no
   17443 
   17444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   17445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   17446 hardcode_action_GCJ=
   17447 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   17448    test -n "$runpath_var GCJ" || \
   17449    test "X$hardcode_automatic_GCJ"="Xyes" ; then
   17450 
   17451   # We can hardcode non-existant directories.
   17452   if test "$hardcode_direct_GCJ" != no &&
   17453      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   17454      # have to relink, otherwise we might link with an installed library
   17455      # when we should be linking with a yet-to-be-installed one
   17456      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
   17457      test "$hardcode_minus_L_GCJ" != no; then
   17458     # Linking always hardcodes the temporary library directory.
   17459     hardcode_action_GCJ=relink
   17460   else
   17461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   17462     hardcode_action_GCJ=immediate
   17463   fi
   17464 else
   17465   # We cannot hardcode anything, or else we can only hardcode existing
   17466   # directories.
   17467   hardcode_action_GCJ=unsupported
   17468 fi
   17469 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
   17470 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
   17471 
   17472 if test "$hardcode_action_GCJ" = relink; then
   17473   # Fast installation is not supported
   17474   enable_fast_install=no
   17475 elif test "$shlibpath_overrides_runpath" = yes ||
   17476      test "$enable_shared" = no; then
   17477   # Fast installation is not necessary
   17478   enable_fast_install=needless
   17479 fi
   17480 
   17481 striplib=
   17482 old_striplib=
   17483 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   17484 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   17485 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   17486   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   17487   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   17488   { echo "$as_me:$LINENO: result: yes" >&5
   17489 echo "${ECHO_T}yes" >&6; }
   17490 else
   17491 # FIXME - insert some real tests, host_os isn't really good enough
   17492   case $host_os in
   17493    darwin*)
   17494        if test -n "$STRIP" ; then
   17495          striplib="$STRIP -x"
   17496          { echo "$as_me:$LINENO: result: yes" >&5
   17497 echo "${ECHO_T}yes" >&6; }
   17498        else
   17499   { echo "$as_me:$LINENO: result: no" >&5
   17500 echo "${ECHO_T}no" >&6; }
   17501 fi
   17502        ;;
   17503    *)
   17504   { echo "$as_me:$LINENO: result: no" >&5
   17505 echo "${ECHO_T}no" >&6; }
   17506     ;;
   17507   esac
   17508 fi
   17509 
   17510 if test "x$enable_dlopen" != xyes; then
   17511   enable_dlopen=unknown
   17512   enable_dlopen_self=unknown
   17513   enable_dlopen_self_static=unknown
   17514 else
   17515   lt_cv_dlopen=no
   17516   lt_cv_dlopen_libs=
   17517 
   17518   case $host_os in
   17519   beos*)
   17520     lt_cv_dlopen="load_add_on"
   17521     lt_cv_dlopen_libs=
   17522     lt_cv_dlopen_self=yes
   17523     ;;
   17524 
   17525   mingw* | pw32*)
   17526     lt_cv_dlopen="LoadLibrary"
   17527     lt_cv_dlopen_libs=
   17528    ;;
   17529 
   17530   cygwin*)
   17531     lt_cv_dlopen="dlopen"
   17532     lt_cv_dlopen_libs=
   17533    ;;
   17534 
   17535   darwin*)
   17536   # if libdl is installed we need to link against it
   17537     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   17538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   17539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   17540   echo $ECHO_N "(cached) $ECHO_C" >&6
   17541 else
   17542   ac_check_lib_save_LIBS=$LIBS
   17543 LIBS="-ldl  $LIBS"
   17544 cat >conftest.$ac_ext <<_ACEOF
   17545 /* confdefs.h.  */
   17546 _ACEOF
   17547 cat confdefs.h >>conftest.$ac_ext
   17548 cat >>conftest.$ac_ext <<_ACEOF
   17549 /* end confdefs.h.  */
   17550 
   17551 /* Override any GCC internal prototype to avoid an error.
   17552    Use char because int might match the return type of a GCC
   17553    builtin and then its argument prototype would still apply.  */
   17554 #ifdef __cplusplus
   17555 extern "C"
   17556 #endif
   17557 char dlopen ();
   17558 int
   17559 main ()
   17560 {
   17561 return dlopen ();
   17562   ;
   17563   return 0;
   17564 }
   17565 _ACEOF
   17566 rm -f conftest.$ac_objext conftest$ac_exeext
   17567 if { (ac_try="$ac_link"
   17568 case "(($ac_try" in
   17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17570   *) ac_try_echo=$ac_try;;
   17571 esac
   17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17573   (eval "$ac_link") 2>conftest.er1
   17574   ac_status=$?
   17575   grep -v '^ *+' conftest.er1 >conftest.err
   17576   rm -f conftest.er1
   17577   cat conftest.err >&5
   17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17579   (exit $ac_status); } && {
   17580 	 test -z "$ac_c_werror_flag" ||
   17581 	 test ! -s conftest.err
   17582        } && test -s conftest$ac_exeext &&
   17583        $as_test_x conftest$ac_exeext; then
   17584   ac_cv_lib_dl_dlopen=yes
   17585 else
   17586   echo "$as_me: failed program was:" >&5
   17587 sed 's/^/| /' conftest.$ac_ext >&5
   17588 
   17589 	ac_cv_lib_dl_dlopen=no
   17590 fi
   17591 
   17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17593       conftest$ac_exeext conftest.$ac_ext
   17594 LIBS=$ac_check_lib_save_LIBS
   17595 fi
   17596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   17597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   17598 if test $ac_cv_lib_dl_dlopen = yes; then
   17599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   17600 else
   17601 
   17602     lt_cv_dlopen="dyld"
   17603     lt_cv_dlopen_libs=
   17604     lt_cv_dlopen_self=yes
   17605 
   17606 fi
   17607 
   17608    ;;
   17609 
   17610   *)
   17611     { echo "$as_me:$LINENO: checking for shl_load" >&5
   17612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   17613 if test "${ac_cv_func_shl_load+set}" = set; then
   17614   echo $ECHO_N "(cached) $ECHO_C" >&6
   17615 else
   17616   cat >conftest.$ac_ext <<_ACEOF
   17617 /* confdefs.h.  */
   17618 _ACEOF
   17619 cat confdefs.h >>conftest.$ac_ext
   17620 cat >>conftest.$ac_ext <<_ACEOF
   17621 /* end confdefs.h.  */
   17622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   17623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17624 #define shl_load innocuous_shl_load
   17625 
   17626 /* System header to define __stub macros and hopefully few prototypes,
   17627     which can conflict with char shl_load (); below.
   17628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17629     <limits.h> exists even on freestanding compilers.  */
   17630 
   17631 #ifdef __STDC__
   17632 # include <limits.h>
   17633 #else
   17634 # include <assert.h>
   17635 #endif
   17636 
   17637 #undef shl_load
   17638 
   17639 /* Override any GCC internal prototype to avoid an error.
   17640    Use char because int might match the return type of a GCC
   17641    builtin and then its argument prototype would still apply.  */
   17642 #ifdef __cplusplus
   17643 extern "C"
   17644 #endif
   17645 char shl_load ();
   17646 /* The GNU C library defines this for functions which it implements
   17647     to always fail with ENOSYS.  Some functions are actually named
   17648     something starting with __ and the normal name is an alias.  */
   17649 #if defined __stub_shl_load || defined __stub___shl_load
   17650 choke me
   17651 #endif
   17652 
   17653 int
   17654 main ()
   17655 {
   17656 return shl_load ();
   17657   ;
   17658   return 0;
   17659 }
   17660 _ACEOF
   17661 rm -f conftest.$ac_objext conftest$ac_exeext
   17662 if { (ac_try="$ac_link"
   17663 case "(($ac_try" in
   17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17665   *) ac_try_echo=$ac_try;;
   17666 esac
   17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17668   (eval "$ac_link") 2>conftest.er1
   17669   ac_status=$?
   17670   grep -v '^ *+' conftest.er1 >conftest.err
   17671   rm -f conftest.er1
   17672   cat conftest.err >&5
   17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17674   (exit $ac_status); } && {
   17675 	 test -z "$ac_c_werror_flag" ||
   17676 	 test ! -s conftest.err
   17677        } && test -s conftest$ac_exeext &&
   17678        $as_test_x conftest$ac_exeext; then
   17679   ac_cv_func_shl_load=yes
   17680 else
   17681   echo "$as_me: failed program was:" >&5
   17682 sed 's/^/| /' conftest.$ac_ext >&5
   17683 
   17684 	ac_cv_func_shl_load=no
   17685 fi
   17686 
   17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17688       conftest$ac_exeext conftest.$ac_ext
   17689 fi
   17690 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   17691 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   17692 if test $ac_cv_func_shl_load = yes; then
   17693   lt_cv_dlopen="shl_load"
   17694 else
   17695   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   17696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   17697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   17698   echo $ECHO_N "(cached) $ECHO_C" >&6
   17699 else
   17700   ac_check_lib_save_LIBS=$LIBS
   17701 LIBS="-ldld  $LIBS"
   17702 cat >conftest.$ac_ext <<_ACEOF
   17703 /* confdefs.h.  */
   17704 _ACEOF
   17705 cat confdefs.h >>conftest.$ac_ext
   17706 cat >>conftest.$ac_ext <<_ACEOF
   17707 /* end confdefs.h.  */
   17708 
   17709 /* Override any GCC internal prototype to avoid an error.
   17710    Use char because int might match the return type of a GCC
   17711    builtin and then its argument prototype would still apply.  */
   17712 #ifdef __cplusplus
   17713 extern "C"
   17714 #endif
   17715 char shl_load ();
   17716 int
   17717 main ()
   17718 {
   17719 return shl_load ();
   17720   ;
   17721   return 0;
   17722 }
   17723 _ACEOF
   17724 rm -f conftest.$ac_objext conftest$ac_exeext
   17725 if { (ac_try="$ac_link"
   17726 case "(($ac_try" in
   17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17728   *) ac_try_echo=$ac_try;;
   17729 esac
   17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17731   (eval "$ac_link") 2>conftest.er1
   17732   ac_status=$?
   17733   grep -v '^ *+' conftest.er1 >conftest.err
   17734   rm -f conftest.er1
   17735   cat conftest.err >&5
   17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17737   (exit $ac_status); } && {
   17738 	 test -z "$ac_c_werror_flag" ||
   17739 	 test ! -s conftest.err
   17740        } && test -s conftest$ac_exeext &&
   17741        $as_test_x conftest$ac_exeext; then
   17742   ac_cv_lib_dld_shl_load=yes
   17743 else
   17744   echo "$as_me: failed program was:" >&5
   17745 sed 's/^/| /' conftest.$ac_ext >&5
   17746 
   17747 	ac_cv_lib_dld_shl_load=no
   17748 fi
   17749 
   17750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17751       conftest$ac_exeext conftest.$ac_ext
   17752 LIBS=$ac_check_lib_save_LIBS
   17753 fi
   17754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   17755 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   17756 if test $ac_cv_lib_dld_shl_load = yes; then
   17757   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
   17758 else
   17759   { echo "$as_me:$LINENO: checking for dlopen" >&5
   17760 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   17761 if test "${ac_cv_func_dlopen+set}" = set; then
   17762   echo $ECHO_N "(cached) $ECHO_C" >&6
   17763 else
   17764   cat >conftest.$ac_ext <<_ACEOF
   17765 /* confdefs.h.  */
   17766 _ACEOF
   17767 cat confdefs.h >>conftest.$ac_ext
   17768 cat >>conftest.$ac_ext <<_ACEOF
   17769 /* end confdefs.h.  */
   17770 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   17771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17772 #define dlopen innocuous_dlopen
   17773 
   17774 /* System header to define __stub macros and hopefully few prototypes,
   17775     which can conflict with char dlopen (); below.
   17776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17777     <limits.h> exists even on freestanding compilers.  */
   17778 
   17779 #ifdef __STDC__
   17780 # include <limits.h>
   17781 #else
   17782 # include <assert.h>
   17783 #endif
   17784 
   17785 #undef dlopen
   17786 
   17787 /* Override any GCC internal prototype to avoid an error.
   17788    Use char because int might match the return type of a GCC
   17789    builtin and then its argument prototype would still apply.  */
   17790 #ifdef __cplusplus
   17791 extern "C"
   17792 #endif
   17793 char dlopen ();
   17794 /* The GNU C library defines this for functions which it implements
   17795     to always fail with ENOSYS.  Some functions are actually named
   17796     something starting with __ and the normal name is an alias.  */
   17797 #if defined __stub_dlopen || defined __stub___dlopen
   17798 choke me
   17799 #endif
   17800 
   17801 int
   17802 main ()
   17803 {
   17804 return dlopen ();
   17805   ;
   17806   return 0;
   17807 }
   17808 _ACEOF
   17809 rm -f conftest.$ac_objext conftest$ac_exeext
   17810 if { (ac_try="$ac_link"
   17811 case "(($ac_try" in
   17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17813   *) ac_try_echo=$ac_try;;
   17814 esac
   17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17816   (eval "$ac_link") 2>conftest.er1
   17817   ac_status=$?
   17818   grep -v '^ *+' conftest.er1 >conftest.err
   17819   rm -f conftest.er1
   17820   cat conftest.err >&5
   17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17822   (exit $ac_status); } && {
   17823 	 test -z "$ac_c_werror_flag" ||
   17824 	 test ! -s conftest.err
   17825        } && test -s conftest$ac_exeext &&
   17826        $as_test_x conftest$ac_exeext; then
   17827   ac_cv_func_dlopen=yes
   17828 else
   17829   echo "$as_me: failed program was:" >&5
   17830 sed 's/^/| /' conftest.$ac_ext >&5
   17831 
   17832 	ac_cv_func_dlopen=no
   17833 fi
   17834 
   17835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17836       conftest$ac_exeext conftest.$ac_ext
   17837 fi
   17838 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   17839 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   17840 if test $ac_cv_func_dlopen = yes; then
   17841   lt_cv_dlopen="dlopen"
   17842 else
   17843   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   17844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   17845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   17846   echo $ECHO_N "(cached) $ECHO_C" >&6
   17847 else
   17848   ac_check_lib_save_LIBS=$LIBS
   17849 LIBS="-ldl  $LIBS"
   17850 cat >conftest.$ac_ext <<_ACEOF
   17851 /* confdefs.h.  */
   17852 _ACEOF
   17853 cat confdefs.h >>conftest.$ac_ext
   17854 cat >>conftest.$ac_ext <<_ACEOF
   17855 /* end confdefs.h.  */
   17856 
   17857 /* Override any GCC internal prototype to avoid an error.
   17858    Use char because int might match the return type of a GCC
   17859    builtin and then its argument prototype would still apply.  */
   17860 #ifdef __cplusplus
   17861 extern "C"
   17862 #endif
   17863 char dlopen ();
   17864 int
   17865 main ()
   17866 {
   17867 return dlopen ();
   17868   ;
   17869   return 0;
   17870 }
   17871 _ACEOF
   17872 rm -f conftest.$ac_objext conftest$ac_exeext
   17873 if { (ac_try="$ac_link"
   17874 case "(($ac_try" in
   17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17876   *) ac_try_echo=$ac_try;;
   17877 esac
   17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17879   (eval "$ac_link") 2>conftest.er1
   17880   ac_status=$?
   17881   grep -v '^ *+' conftest.er1 >conftest.err
   17882   rm -f conftest.er1
   17883   cat conftest.err >&5
   17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17885   (exit $ac_status); } && {
   17886 	 test -z "$ac_c_werror_flag" ||
   17887 	 test ! -s conftest.err
   17888        } && test -s conftest$ac_exeext &&
   17889        $as_test_x conftest$ac_exeext; then
   17890   ac_cv_lib_dl_dlopen=yes
   17891 else
   17892   echo "$as_me: failed program was:" >&5
   17893 sed 's/^/| /' conftest.$ac_ext >&5
   17894 
   17895 	ac_cv_lib_dl_dlopen=no
   17896 fi
   17897 
   17898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17899       conftest$ac_exeext conftest.$ac_ext
   17900 LIBS=$ac_check_lib_save_LIBS
   17901 fi
   17902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   17903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   17904 if test $ac_cv_lib_dl_dlopen = yes; then
   17905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   17906 else
   17907   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   17908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   17909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   17910   echo $ECHO_N "(cached) $ECHO_C" >&6
   17911 else
   17912   ac_check_lib_save_LIBS=$LIBS
   17913 LIBS="-lsvld  $LIBS"
   17914 cat >conftest.$ac_ext <<_ACEOF
   17915 /* confdefs.h.  */
   17916 _ACEOF
   17917 cat confdefs.h >>conftest.$ac_ext
   17918 cat >>conftest.$ac_ext <<_ACEOF
   17919 /* end confdefs.h.  */
   17920 
   17921 /* Override any GCC internal prototype to avoid an error.
   17922    Use char because int might match the return type of a GCC
   17923    builtin and then its argument prototype would still apply.  */
   17924 #ifdef __cplusplus
   17925 extern "C"
   17926 #endif
   17927 char dlopen ();
   17928 int
   17929 main ()
   17930 {
   17931 return dlopen ();
   17932   ;
   17933   return 0;
   17934 }
   17935 _ACEOF
   17936 rm -f conftest.$ac_objext conftest$ac_exeext
   17937 if { (ac_try="$ac_link"
   17938 case "(($ac_try" in
   17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17940   *) ac_try_echo=$ac_try;;
   17941 esac
   17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17943   (eval "$ac_link") 2>conftest.er1
   17944   ac_status=$?
   17945   grep -v '^ *+' conftest.er1 >conftest.err
   17946   rm -f conftest.er1
   17947   cat conftest.err >&5
   17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17949   (exit $ac_status); } && {
   17950 	 test -z "$ac_c_werror_flag" ||
   17951 	 test ! -s conftest.err
   17952        } && test -s conftest$ac_exeext &&
   17953        $as_test_x conftest$ac_exeext; then
   17954   ac_cv_lib_svld_dlopen=yes
   17955 else
   17956   echo "$as_me: failed program was:" >&5
   17957 sed 's/^/| /' conftest.$ac_ext >&5
   17958 
   17959 	ac_cv_lib_svld_dlopen=no
   17960 fi
   17961 
   17962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17963       conftest$ac_exeext conftest.$ac_ext
   17964 LIBS=$ac_check_lib_save_LIBS
   17965 fi
   17966 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   17967 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   17968 if test $ac_cv_lib_svld_dlopen = yes; then
   17969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   17970 else
   17971   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   17972 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   17973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   17974   echo $ECHO_N "(cached) $ECHO_C" >&6
   17975 else
   17976   ac_check_lib_save_LIBS=$LIBS
   17977 LIBS="-ldld  $LIBS"
   17978 cat >conftest.$ac_ext <<_ACEOF
   17979 /* confdefs.h.  */
   17980 _ACEOF
   17981 cat confdefs.h >>conftest.$ac_ext
   17982 cat >>conftest.$ac_ext <<_ACEOF
   17983 /* end confdefs.h.  */
   17984 
   17985 /* Override any GCC internal prototype to avoid an error.
   17986    Use char because int might match the return type of a GCC
   17987    builtin and then its argument prototype would still apply.  */
   17988 #ifdef __cplusplus
   17989 extern "C"
   17990 #endif
   17991 char dld_link ();
   17992 int
   17993 main ()
   17994 {
   17995 return dld_link ();
   17996   ;
   17997   return 0;
   17998 }
   17999 _ACEOF
   18000 rm -f conftest.$ac_objext conftest$ac_exeext
   18001 if { (ac_try="$ac_link"
   18002 case "(($ac_try" in
   18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18004   *) ac_try_echo=$ac_try;;
   18005 esac
   18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18007   (eval "$ac_link") 2>conftest.er1
   18008   ac_status=$?
   18009   grep -v '^ *+' conftest.er1 >conftest.err
   18010   rm -f conftest.er1
   18011   cat conftest.err >&5
   18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18013   (exit $ac_status); } && {
   18014 	 test -z "$ac_c_werror_flag" ||
   18015 	 test ! -s conftest.err
   18016        } && test -s conftest$ac_exeext &&
   18017        $as_test_x conftest$ac_exeext; then
   18018   ac_cv_lib_dld_dld_link=yes
   18019 else
   18020   echo "$as_me: failed program was:" >&5
   18021 sed 's/^/| /' conftest.$ac_ext >&5
   18022 
   18023 	ac_cv_lib_dld_dld_link=no
   18024 fi
   18025 
   18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18027       conftest$ac_exeext conftest.$ac_ext
   18028 LIBS=$ac_check_lib_save_LIBS
   18029 fi
   18030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   18031 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   18032 if test $ac_cv_lib_dld_dld_link = yes; then
   18033   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
   18034 fi
   18035 
   18036 
   18037 fi
   18038 
   18039 
   18040 fi
   18041 
   18042 
   18043 fi
   18044 
   18045 
   18046 fi
   18047 
   18048 
   18049 fi
   18050 
   18051     ;;
   18052   esac
   18053 
   18054   if test "x$lt_cv_dlopen" != xno; then
   18055     enable_dlopen=yes
   18056   else
   18057     enable_dlopen=no
   18058   fi
   18059 
   18060   case $lt_cv_dlopen in
   18061   dlopen)
   18062     save_CPPFLAGS="$CPPFLAGS"
   18063     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   18064 
   18065     save_LDFLAGS="$LDFLAGS"
   18066     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   18067 
   18068     save_LIBS="$LIBS"
   18069     LIBS="$lt_cv_dlopen_libs $LIBS"
   18070 
   18071     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
   18072 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
   18073 if test "${lt_cv_dlopen_self+set}" = set; then
   18074   echo $ECHO_N "(cached) $ECHO_C" >&6
   18075 else
   18076   	  if test "$cross_compiling" = yes; then :
   18077   lt_cv_dlopen_self=cross
   18078 else
   18079   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   18080   lt_status=$lt_dlunknown
   18081   cat > conftest.$ac_ext <<EOF
   18082 #line 18082 "configure"
   18083 #include "confdefs.h"
   18084 
   18085 #if HAVE_DLFCN_H
   18086 #include <dlfcn.h>
   18087 #endif
   18088 
   18089 #include <stdio.h>
   18090 
   18091 #ifdef RTLD_GLOBAL
   18092 #  define LT_DLGLOBAL		RTLD_GLOBAL
   18093 #else
   18094 #  ifdef DL_GLOBAL
   18095 #    define LT_DLGLOBAL		DL_GLOBAL
   18096 #  else
   18097 #    define LT_DLGLOBAL		0
   18098 #  endif
   18099 #endif
   18100 
   18101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   18102    find out it does not work in some platform. */
   18103 #ifndef LT_DLLAZY_OR_NOW
   18104 #  ifdef RTLD_LAZY
   18105 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   18106 #  else
   18107 #    ifdef DL_LAZY
   18108 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   18109 #    else
   18110 #      ifdef RTLD_NOW
   18111 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   18112 #      else
   18113 #        ifdef DL_NOW
   18114 #          define LT_DLLAZY_OR_NOW	DL_NOW
   18115 #        else
   18116 #          define LT_DLLAZY_OR_NOW	0
   18117 #        endif
   18118 #      endif
   18119 #    endif
   18120 #  endif
   18121 #endif
   18122 
   18123 #ifdef __cplusplus
   18124 extern "C" void exit (int);
   18125 #endif
   18126 
   18127 void fnord() { int i=42;}
   18128 int main ()
   18129 {
   18130   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   18131   int status = $lt_dlunknown;
   18132 
   18133   if (self)
   18134     {
   18135       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   18136       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   18137       /* dlclose (self); */
   18138     }
   18139 
   18140     exit (status);
   18141 }
   18142 EOF
   18143   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   18144   (eval $ac_link) 2>&5
   18145   ac_status=$?
   18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18147   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   18148     (./conftest; exit; ) 2>/dev/null
   18149     lt_status=$?
   18150     case x$lt_status in
   18151       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   18152       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   18153       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
   18154     esac
   18155   else :
   18156     # compilation failed
   18157     lt_cv_dlopen_self=no
   18158   fi
   18159 fi
   18160 rm -fr conftest*
   18161 
   18162 
   18163 fi
   18164 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
   18165 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
   18166 
   18167     if test "x$lt_cv_dlopen_self" = xyes; then
   18168       LDFLAGS="$LDFLAGS $link_static_flag"
   18169       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
   18170 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
   18171 if test "${lt_cv_dlopen_self_static+set}" = set; then
   18172   echo $ECHO_N "(cached) $ECHO_C" >&6
   18173 else
   18174   	  if test "$cross_compiling" = yes; then :
   18175   lt_cv_dlopen_self_static=cross
   18176 else
   18177   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   18178   lt_status=$lt_dlunknown
   18179   cat > conftest.$ac_ext <<EOF
   18180 #line 18180 "configure"
   18181 #include "confdefs.h"
   18182 
   18183 #if HAVE_DLFCN_H
   18184 #include <dlfcn.h>
   18185 #endif
   18186 
   18187 #include <stdio.h>
   18188 
   18189 #ifdef RTLD_GLOBAL
   18190 #  define LT_DLGLOBAL		RTLD_GLOBAL
   18191 #else
   18192 #  ifdef DL_GLOBAL
   18193 #    define LT_DLGLOBAL		DL_GLOBAL
   18194 #  else
   18195 #    define LT_DLGLOBAL		0
   18196 #  endif
   18197 #endif
   18198 
   18199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   18200    find out it does not work in some platform. */
   18201 #ifndef LT_DLLAZY_OR_NOW
   18202 #  ifdef RTLD_LAZY
   18203 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   18204 #  else
   18205 #    ifdef DL_LAZY
   18206 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   18207 #    else
   18208 #      ifdef RTLD_NOW
   18209 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   18210 #      else
   18211 #        ifdef DL_NOW
   18212 #          define LT_DLLAZY_OR_NOW	DL_NOW
   18213 #        else
   18214 #          define LT_DLLAZY_OR_NOW	0
   18215 #        endif
   18216 #      endif
   18217 #    endif
   18218 #  endif
   18219 #endif
   18220 
   18221 #ifdef __cplusplus
   18222 extern "C" void exit (int);
   18223 #endif
   18224 
   18225 void fnord() { int i=42;}
   18226 int main ()
   18227 {
   18228   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   18229   int status = $lt_dlunknown;
   18230 
   18231   if (self)
   18232     {
   18233       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   18234       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   18235       /* dlclose (self); */
   18236     }
   18237 
   18238     exit (status);
   18239 }
   18240 EOF
   18241   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   18242   (eval $ac_link) 2>&5
   18243   ac_status=$?
   18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18245   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   18246     (./conftest; exit; ) 2>/dev/null
   18247     lt_status=$?
   18248     case x$lt_status in
   18249       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   18250       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   18251       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
   18252     esac
   18253   else :
   18254     # compilation failed
   18255     lt_cv_dlopen_self_static=no
   18256   fi
   18257 fi
   18258 rm -fr conftest*
   18259 
   18260 
   18261 fi
   18262 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
   18263 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
   18264     fi
   18265 
   18266     CPPFLAGS="$save_CPPFLAGS"
   18267     LDFLAGS="$save_LDFLAGS"
   18268     LIBS="$save_LIBS"
   18269     ;;
   18270   esac
   18271 
   18272   case $lt_cv_dlopen_self in
   18273   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   18274   *) enable_dlopen_self=unknown ;;
   18275   esac
   18276 
   18277   case $lt_cv_dlopen_self_static in
   18278   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   18279   *) enable_dlopen_self_static=unknown ;;
   18280   esac
   18281 fi
   18282 
   18283 
   18284 # The else clause should only fire when bootstrapping the
   18285 # libtool distribution, otherwise you forgot to ship ltmain.sh
   18286 # with your package, and you will get complaints that there are
   18287 # no rules to generate ltmain.sh.
   18288 if test -f "$ltmain"; then
   18289   # See if we are running on zsh, and set the options which allow our commands through
   18290   # without removal of \ escapes.
   18291   if test -n "${ZSH_VERSION+set}" ; then
   18292     setopt NO_GLOB_SUBST
   18293   fi
   18294   # Now quote all the things that may contain metacharacters while being
   18295   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   18296   # variables and quote the copies for generation of the libtool script.
   18297   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   18298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   18299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   18300     deplibs_check_method reload_flag reload_cmds need_locks \
   18301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   18302     lt_cv_sys_global_symbol_to_c_name_address \
   18303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   18304     old_postinstall_cmds old_postuninstall_cmds \
   18305     compiler_GCJ \
   18306     CC_GCJ \
   18307     LD_GCJ \
   18308     lt_prog_compiler_wl_GCJ \
   18309     lt_prog_compiler_pic_GCJ \
   18310     lt_prog_compiler_static_GCJ \
   18311     lt_prog_compiler_no_builtin_flag_GCJ \
   18312     export_dynamic_flag_spec_GCJ \
   18313     thread_safe_flag_spec_GCJ \
   18314     whole_archive_flag_spec_GCJ \
   18315     enable_shared_with_static_runtimes_GCJ \
   18316     old_archive_cmds_GCJ \
   18317     old_archive_from_new_cmds_GCJ \
   18318     predep_objects_GCJ \
   18319     postdep_objects_GCJ \
   18320     predeps_GCJ \
   18321     postdeps_GCJ \
   18322     compiler_lib_search_path_GCJ \
   18323     archive_cmds_GCJ \
   18324     archive_expsym_cmds_GCJ \
   18325     postinstall_cmds_GCJ \
   18326     postuninstall_cmds_GCJ \
   18327     old_archive_from_expsyms_cmds_GCJ \
   18328     allow_undefined_flag_GCJ \
   18329     no_undefined_flag_GCJ \
   18330     export_symbols_cmds_GCJ \
   18331     hardcode_libdir_flag_spec_GCJ \
   18332     hardcode_libdir_flag_spec_ld_GCJ \
   18333     hardcode_libdir_separator_GCJ \
   18334     hardcode_automatic_GCJ \
   18335     module_cmds_GCJ \
   18336     module_expsym_cmds_GCJ \
   18337     lt_cv_prog_compiler_c_o_GCJ \
   18338     exclude_expsyms_GCJ \
   18339     include_expsyms_GCJ; do
   18340 
   18341     case $var in
   18342     old_archive_cmds_GCJ | \
   18343     old_archive_from_new_cmds_GCJ | \
   18344     archive_cmds_GCJ | \
   18345     archive_expsym_cmds_GCJ | \
   18346     module_cmds_GCJ | \
   18347     module_expsym_cmds_GCJ | \
   18348     old_archive_from_expsyms_cmds_GCJ | \
   18349     export_symbols_cmds_GCJ | \
   18350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   18351     postinstall_cmds | postuninstall_cmds | \
   18352     old_postinstall_cmds | old_postuninstall_cmds | \
   18353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   18354       # Double-quote double-evaled strings.
   18355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   18356       ;;
   18357     *)
   18358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   18359       ;;
   18360     esac
   18361   done
   18362 
   18363   case $lt_echo in
   18364   *'\$0 --fallback-echo"')
   18365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   18366     ;;
   18367   esac
   18368 
   18369 cfgfile="$ofile"
   18370 
   18371   cat <<__EOF__ >> "$cfgfile"
   18372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   18373 
   18374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   18375 
   18376 # Shell to use when invoking shell scripts.
   18377 SHELL=$lt_SHELL
   18378 
   18379 # Whether or not to build shared libraries.
   18380 build_libtool_libs=$enable_shared
   18381 
   18382 # Whether or not to build static libraries.
   18383 build_old_libs=$enable_static
   18384 
   18385 # Whether or not to add -lc for building shared libraries.
   18386 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
   18387 
   18388 # Whether or not to disallow shared libs when runtime libs are static
   18389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
   18390 
   18391 # Whether or not to optimize for fast installation.
   18392 fast_install=$enable_fast_install
   18393 
   18394 # The host system.
   18395 host_alias=$host_alias
   18396 host=$host
   18397 
   18398 # An echo program that does not interpret backslashes.
   18399 echo=$lt_echo
   18400 
   18401 # The archiver.
   18402 AR=$lt_AR
   18403 AR_FLAGS=$lt_AR_FLAGS
   18404 
   18405 # A C compiler.
   18406 LTCC=$lt_LTCC
   18407 
   18408 # A language-specific compiler.
   18409 CC=$lt_compiler_GCJ
   18410 
   18411 # Is the compiler the GNU C compiler?
   18412 with_gcc=$GCC_GCJ
   18413 
   18414 # An ERE matcher.
   18415 EGREP=$lt_EGREP
   18416 
   18417 # The linker used to build libraries.
   18418 LD=$lt_LD_GCJ
   18419 
   18420 # Whether we need hard or soft links.
   18421 LN_S=$lt_LN_S
   18422 
   18423 # A BSD-compatible nm program.
   18424 NM=$lt_NM
   18425 
   18426 # A symbol stripping program
   18427 STRIP="$STRIP"
   18428 
   18429 # Used to examine libraries when file_magic_cmd begins "file"
   18430 MAGIC_CMD=$MAGIC_CMD
   18431 
   18432 # Used on cygwin: DLL creation program.
   18433 DLLTOOL="$DLLTOOL"
   18434 
   18435 # Used on cygwin: object dumper.
   18436 OBJDUMP="$OBJDUMP"
   18437 
   18438 # Used on cygwin: assembler.
   18439 AS="$AS"
   18440 
   18441 # The name of the directory that contains temporary libtool files.
   18442 objdir=$objdir
   18443 
   18444 # How to create reloadable object files.
   18445 reload_flag=$lt_reload_flag
   18446 reload_cmds=$lt_reload_cmds
   18447 
   18448 # How to pass a linker flag through the compiler.
   18449 wl=$lt_lt_prog_compiler_wl_GCJ
   18450 
   18451 # Object file suffix (normally "o").
   18452 objext="$ac_objext"
   18453 
   18454 # Old archive suffix (normally "a").
   18455 libext="$libext"
   18456 
   18457 # Shared library suffix (normally ".so").
   18458 shrext='$shrext'
   18459 
   18460 # Executable file suffix (normally "").
   18461 exeext="$exeext"
   18462 
   18463 # Additional compiler flags for building library objects.
   18464 pic_flag=$lt_lt_prog_compiler_pic_GCJ
   18465 pic_mode=$pic_mode
   18466 
   18467 # What is the maximum length of a command?
   18468 max_cmd_len=$lt_cv_sys_max_cmd_len
   18469 
   18470 # Does compiler simultaneously support -c and -o options?
   18471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
   18472 
   18473 # Must we lock files when doing compilation ?
   18474 need_locks=$lt_need_locks
   18475 
   18476 # Do we need the lib prefix for modules?
   18477 need_lib_prefix=$need_lib_prefix
   18478 
   18479 # Do we need a version for libraries?
   18480 need_version=$need_version
   18481 
   18482 # Whether dlopen is supported.
   18483 dlopen_support=$enable_dlopen
   18484 
   18485 # Whether dlopen of programs is supported.
   18486 dlopen_self=$enable_dlopen_self
   18487 
   18488 # Whether dlopen of statically linked programs is supported.
   18489 dlopen_self_static=$enable_dlopen_self_static
   18490 
   18491 # Compiler flag to prevent dynamic linking.
   18492 link_static_flag=$lt_lt_prog_compiler_static_GCJ
   18493 
   18494 # Compiler flag to turn off builtin functions.
   18495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
   18496 
   18497 # Compiler flag to allow reflexive dlopens.
   18498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
   18499 
   18500 # Compiler flag to generate shared objects directly from archives.
   18501 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
   18502 
   18503 # Compiler flag to generate thread-safe objects.
   18504 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
   18505 
   18506 # Library versioning type.
   18507 version_type=$version_type
   18508 
   18509 # Format of library name prefix.
   18510 libname_spec=$lt_libname_spec
   18511 
   18512 # List of archive names.  First name is the real one, the rest are links.
   18513 # The last name is the one that the linker finds with -lNAME.
   18514 library_names_spec=$lt_library_names_spec
   18515 
   18516 # The coded name of the library, if different from the real name.
   18517 soname_spec=$lt_soname_spec
   18518 
   18519 # Commands used to build and install an old-style archive.
   18520 RANLIB=$lt_RANLIB
   18521 old_archive_cmds=$lt_old_archive_cmds_GCJ
   18522 old_postinstall_cmds=$lt_old_postinstall_cmds
   18523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   18524 
   18525 # Create an old-style archive from a shared archive.
   18526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
   18527 
   18528 # Create a temporary old-style archive to link instead of a shared archive.
   18529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
   18530 
   18531 # Commands used to build and install a shared archive.
   18532 archive_cmds=$lt_archive_cmds_GCJ
   18533 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
   18534 postinstall_cmds=$lt_postinstall_cmds
   18535 postuninstall_cmds=$lt_postuninstall_cmds
   18536 
   18537 # Commands used to build a loadable module (assumed same as above if empty)
   18538 module_cmds=$lt_module_cmds_GCJ
   18539 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
   18540 
   18541 # Commands to strip libraries.
   18542 old_striplib=$lt_old_striplib
   18543 striplib=$lt_striplib
   18544 
   18545 # Dependencies to place before the objects being linked to create a
   18546 # shared library.
   18547 predep_objects=$lt_predep_objects_GCJ
   18548 
   18549 # Dependencies to place after the objects being linked to create a
   18550 # shared library.
   18551 postdep_objects=$lt_postdep_objects_GCJ
   18552 
   18553 # Dependencies to place before the objects being linked to create a
   18554 # shared library.
   18555 predeps=$lt_predeps_GCJ
   18556 
   18557 # Dependencies to place after the objects being linked to create a
   18558 # shared library.
   18559 postdeps=$lt_postdeps_GCJ
   18560 
   18561 # The library search path used internally by the compiler when linking
   18562 # a shared library.
   18563 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
   18564 
   18565 # Method to check whether dependent libraries are shared objects.
   18566 deplibs_check_method=$lt_deplibs_check_method
   18567 
   18568 # Command to use when deplibs_check_method == file_magic.
   18569 file_magic_cmd=$lt_file_magic_cmd
   18570 
   18571 # Flag that allows shared libraries with undefined symbols to be built.
   18572 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
   18573 
   18574 # Flag that forces no undefined symbols.
   18575 no_undefined_flag=$lt_no_undefined_flag_GCJ
   18576 
   18577 # Commands used to finish a libtool library installation in a directory.
   18578 finish_cmds=$lt_finish_cmds
   18579 
   18580 # Same as above, but a single script fragment to be evaled but not shown.
   18581 finish_eval=$lt_finish_eval
   18582 
   18583 # Take the output of nm and produce a listing of raw symbols and C names.
   18584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   18585 
   18586 # Transform the output of nm in a proper C declaration
   18587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   18588 
   18589 # Transform the output of nm in a C name address pair
   18590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   18591 
   18592 # This is the shared library runtime path variable.
   18593 runpath_var=$runpath_var
   18594 
   18595 # This is the shared library path variable.
   18596 shlibpath_var=$shlibpath_var
   18597 
   18598 # Is shlibpath searched before the hard-coded library search path?
   18599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   18600 
   18601 # How to hardcode a shared library path into an executable.
   18602 hardcode_action=$hardcode_action_GCJ
   18603 
   18604 # Whether we should hardcode library paths into libraries.
   18605 hardcode_into_libs=$hardcode_into_libs
   18606 
   18607 # Flag to hardcode \$libdir into a binary during linking.
   18608 # This must work even if \$libdir does not exist.
   18609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
   18610 
   18611 # If ld is used when linking, flag to hardcode \$libdir into
   18612 # a binary during linking. This must work even if \$libdir does
   18613 # not exist.
   18614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
   18615 
   18616 # Whether we need a single -rpath flag with a separated argument.
   18617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
   18618 
   18619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   18620 # resulting binary.
   18621 hardcode_direct=$hardcode_direct_GCJ
   18622 
   18623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   18624 # resulting binary.
   18625 hardcode_minus_L=$hardcode_minus_L_GCJ
   18626 
   18627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   18628 # the resulting binary.
   18629 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
   18630 
   18631 # Set to yes if building a shared library automatically hardcodes DIR into the library
   18632 # and all subsequent libraries and executables linked against it.
   18633 hardcode_automatic=$hardcode_automatic_GCJ
   18634 
   18635 # Variables whose values should be saved in libtool wrapper scripts and
   18636 # restored at relink time.
   18637 variables_saved_for_relink="$variables_saved_for_relink"
   18638 
   18639 # Whether libtool must link a program against all its dependency libraries.
   18640 link_all_deplibs=$link_all_deplibs_GCJ
   18641 
   18642 # Compile-time system search path for libraries
   18643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   18644 
   18645 # Run-time system search path for libraries
   18646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   18647 
   18648 # Fix the shell variable \$srcfile for the compiler.
   18649 fix_srcfile_path="$fix_srcfile_path_GCJ"
   18650 
   18651 # Set to yes if exported symbols are required.
   18652 always_export_symbols=$always_export_symbols_GCJ
   18653 
   18654 # The commands to list exported symbols.
   18655 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
   18656 
   18657 # The commands to extract the exported symbol list from a shared archive.
   18658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   18659 
   18660 # Symbols that should not be listed in the preloaded symbols.
   18661 exclude_expsyms=$lt_exclude_expsyms_GCJ
   18662 
   18663 # Symbols that must always be exported.
   18664 include_expsyms=$lt_include_expsyms_GCJ
   18665 
   18666 # ### END LIBTOOL TAG CONFIG: $tagname
   18667 
   18668 __EOF__
   18669 
   18670 
   18671 else
   18672   # If there is no Makefile yet, we rely on a make rule to execute
   18673   # `config.status --recheck' to rerun these tests and create the
   18674   # libtool script then.
   18675   test -f Makefile && make "$ltmain"
   18676 fi
   18677 
   18678 
   18679 ac_ext=c
   18680 ac_cpp='$CPP $CPPFLAGS'
   18681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18684 
   18685 CC="$lt_save_CC"
   18686 
   18687 	else
   18688 	  tagname=""
   18689 	fi
   18690 	;;
   18691 
   18692       RC)
   18693 
   18694 
   18695 # Source file extension for RC test sources.
   18696 ac_ext=rc
   18697 
   18698 # Object file extension for compiled RC test sources.
   18699 objext=o
   18700 objext_RC=$objext
   18701 
   18702 # Code to be used in simple compile tests
   18703 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
   18704 
   18705 # Code to be used in simple link tests
   18706 lt_simple_link_test_code="$lt_simple_compile_test_code"
   18707 
   18708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   18709 
   18710 # If no C compiler was specified, use CC.
   18711 LTCC=${LTCC-"$CC"}
   18712 
   18713 # Allow CC to be a program name with arguments.
   18714 compiler=$CC
   18715 
   18716 
   18717 # Allow CC to be a program name with arguments.
   18718 lt_save_CC="$CC"
   18719 CC=${RC-"windres"}
   18720 compiler=$CC
   18721 compiler_RC=$CC
   18722 lt_cv_prog_compiler_c_o_RC=yes
   18723 
   18724 # The else clause should only fire when bootstrapping the
   18725 # libtool distribution, otherwise you forgot to ship ltmain.sh
   18726 # with your package, and you will get complaints that there are
   18727 # no rules to generate ltmain.sh.
   18728 if test -f "$ltmain"; then
   18729   # See if we are running on zsh, and set the options which allow our commands through
   18730   # without removal of \ escapes.
   18731   if test -n "${ZSH_VERSION+set}" ; then
   18732     setopt NO_GLOB_SUBST
   18733   fi
   18734   # Now quote all the things that may contain metacharacters while being
   18735   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   18736   # variables and quote the copies for generation of the libtool script.
   18737   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   18738     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   18739     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   18740     deplibs_check_method reload_flag reload_cmds need_locks \
   18741     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   18742     lt_cv_sys_global_symbol_to_c_name_address \
   18743     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   18744     old_postinstall_cmds old_postuninstall_cmds \
   18745     compiler_RC \
   18746     CC_RC \
   18747     LD_RC \
   18748     lt_prog_compiler_wl_RC \
   18749     lt_prog_compiler_pic_RC \
   18750     lt_prog_compiler_static_RC \
   18751     lt_prog_compiler_no_builtin_flag_RC \
   18752     export_dynamic_flag_spec_RC \
   18753     thread_safe_flag_spec_RC \
   18754     whole_archive_flag_spec_RC \
   18755     enable_shared_with_static_runtimes_RC \
   18756     old_archive_cmds_RC \
   18757     old_archive_from_new_cmds_RC \
   18758     predep_objects_RC \
   18759     postdep_objects_RC \
   18760     predeps_RC \
   18761     postdeps_RC \
   18762     compiler_lib_search_path_RC \
   18763     archive_cmds_RC \
   18764     archive_expsym_cmds_RC \
   18765     postinstall_cmds_RC \
   18766     postuninstall_cmds_RC \
   18767     old_archive_from_expsyms_cmds_RC \
   18768     allow_undefined_flag_RC \
   18769     no_undefined_flag_RC \
   18770     export_symbols_cmds_RC \
   18771     hardcode_libdir_flag_spec_RC \
   18772     hardcode_libdir_flag_spec_ld_RC \
   18773     hardcode_libdir_separator_RC \
   18774     hardcode_automatic_RC \
   18775     module_cmds_RC \
   18776     module_expsym_cmds_RC \
   18777     lt_cv_prog_compiler_c_o_RC \
   18778     exclude_expsyms_RC \
   18779     include_expsyms_RC; do
   18780 
   18781     case $var in
   18782     old_archive_cmds_RC | \
   18783     old_archive_from_new_cmds_RC | \
   18784     archive_cmds_RC | \
   18785     archive_expsym_cmds_RC | \
   18786     module_cmds_RC | \
   18787     module_expsym_cmds_RC | \
   18788     old_archive_from_expsyms_cmds_RC | \
   18789     export_symbols_cmds_RC | \
   18790     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   18791     postinstall_cmds | postuninstall_cmds | \
   18792     old_postinstall_cmds | old_postuninstall_cmds | \
   18793     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   18794       # Double-quote double-evaled strings.
   18795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   18796       ;;
   18797     *)
   18798       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   18799       ;;
   18800     esac
   18801   done
   18802 
   18803   case $lt_echo in
   18804   *'\$0 --fallback-echo"')
   18805     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   18806     ;;
   18807   esac
   18808 
   18809 cfgfile="$ofile"
   18810 
   18811   cat <<__EOF__ >> "$cfgfile"
   18812 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   18813 
   18814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   18815 
   18816 # Shell to use when invoking shell scripts.
   18817 SHELL=$lt_SHELL
   18818 
   18819 # Whether or not to build shared libraries.
   18820 build_libtool_libs=$enable_shared
   18821 
   18822 # Whether or not to build static libraries.
   18823 build_old_libs=$enable_static
   18824 
   18825 # Whether or not to add -lc for building shared libraries.
   18826 build_libtool_need_lc=$archive_cmds_need_lc_RC
   18827 
   18828 # Whether or not to disallow shared libs when runtime libs are static
   18829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
   18830 
   18831 # Whether or not to optimize for fast installation.
   18832 fast_install=$enable_fast_install
   18833 
   18834 # The host system.
   18835 host_alias=$host_alias
   18836 host=$host
   18837 
   18838 # An echo program that does not interpret backslashes.
   18839 echo=$lt_echo
   18840 
   18841 # The archiver.
   18842 AR=$lt_AR
   18843 AR_FLAGS=$lt_AR_FLAGS
   18844 
   18845 # A C compiler.
   18846 LTCC=$lt_LTCC
   18847 
   18848 # A language-specific compiler.
   18849 CC=$lt_compiler_RC
   18850 
   18851 # Is the compiler the GNU C compiler?
   18852 with_gcc=$GCC_RC
   18853 
   18854 # An ERE matcher.
   18855 EGREP=$lt_EGREP
   18856 
   18857 # The linker used to build libraries.
   18858 LD=$lt_LD_RC
   18859 
   18860 # Whether we need hard or soft links.
   18861 LN_S=$lt_LN_S
   18862 
   18863 # A BSD-compatible nm program.
   18864 NM=$lt_NM
   18865 
   18866 # A symbol stripping program
   18867 STRIP="$STRIP"
   18868 
   18869 # Used to examine libraries when file_magic_cmd begins "file"
   18870 MAGIC_CMD=$MAGIC_CMD
   18871 
   18872 # Used on cygwin: DLL creation program.
   18873 DLLTOOL="$DLLTOOL"
   18874 
   18875 # Used on cygwin: object dumper.
   18876 OBJDUMP="$OBJDUMP"
   18877 
   18878 # Used on cygwin: assembler.
   18879 AS="$AS"
   18880 
   18881 # The name of the directory that contains temporary libtool files.
   18882 objdir=$objdir
   18883 
   18884 # How to create reloadable object files.
   18885 reload_flag=$lt_reload_flag
   18886 reload_cmds=$lt_reload_cmds
   18887 
   18888 # How to pass a linker flag through the compiler.
   18889 wl=$lt_lt_prog_compiler_wl_RC
   18890 
   18891 # Object file suffix (normally "o").
   18892 objext="$ac_objext"
   18893 
   18894 # Old archive suffix (normally "a").
   18895 libext="$libext"
   18896 
   18897 # Shared library suffix (normally ".so").
   18898 shrext='$shrext'
   18899 
   18900 # Executable file suffix (normally "").
   18901 exeext="$exeext"
   18902 
   18903 # Additional compiler flags for building library objects.
   18904 pic_flag=$lt_lt_prog_compiler_pic_RC
   18905 pic_mode=$pic_mode
   18906 
   18907 # What is the maximum length of a command?
   18908 max_cmd_len=$lt_cv_sys_max_cmd_len
   18909 
   18910 # Does compiler simultaneously support -c and -o options?
   18911 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
   18912 
   18913 # Must we lock files when doing compilation ?
   18914 need_locks=$lt_need_locks
   18915 
   18916 # Do we need the lib prefix for modules?
   18917 need_lib_prefix=$need_lib_prefix
   18918 
   18919 # Do we need a version for libraries?
   18920 need_version=$need_version
   18921 
   18922 # Whether dlopen is supported.
   18923 dlopen_support=$enable_dlopen
   18924 
   18925 # Whether dlopen of programs is supported.
   18926 dlopen_self=$enable_dlopen_self
   18927 
   18928 # Whether dlopen of statically linked programs is supported.
   18929 dlopen_self_static=$enable_dlopen_self_static
   18930 
   18931 # Compiler flag to prevent dynamic linking.
   18932 link_static_flag=$lt_lt_prog_compiler_static_RC
   18933 
   18934 # Compiler flag to turn off builtin functions.
   18935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
   18936 
   18937 # Compiler flag to allow reflexive dlopens.
   18938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
   18939 
   18940 # Compiler flag to generate shared objects directly from archives.
   18941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
   18942 
   18943 # Compiler flag to generate thread-safe objects.
   18944 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
   18945 
   18946 # Library versioning type.
   18947 version_type=$version_type
   18948 
   18949 # Format of library name prefix.
   18950 libname_spec=$lt_libname_spec
   18951 
   18952 # List of archive names.  First name is the real one, the rest are links.
   18953 # The last name is the one that the linker finds with -lNAME.
   18954 library_names_spec=$lt_library_names_spec
   18955 
   18956 # The coded name of the library, if different from the real name.
   18957 soname_spec=$lt_soname_spec
   18958 
   18959 # Commands used to build and install an old-style archive.
   18960 RANLIB=$lt_RANLIB
   18961 old_archive_cmds=$lt_old_archive_cmds_RC
   18962 old_postinstall_cmds=$lt_old_postinstall_cmds
   18963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   18964 
   18965 # Create an old-style archive from a shared archive.
   18966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
   18967 
   18968 # Create a temporary old-style archive to link instead of a shared archive.
   18969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
   18970 
   18971 # Commands used to build and install a shared archive.
   18972 archive_cmds=$lt_archive_cmds_RC
   18973 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
   18974 postinstall_cmds=$lt_postinstall_cmds
   18975 postuninstall_cmds=$lt_postuninstall_cmds
   18976 
   18977 # Commands used to build a loadable module (assumed same as above if empty)
   18978 module_cmds=$lt_module_cmds_RC
   18979 module_expsym_cmds=$lt_module_expsym_cmds_RC
   18980 
   18981 # Commands to strip libraries.
   18982 old_striplib=$lt_old_striplib
   18983 striplib=$lt_striplib
   18984 
   18985 # Dependencies to place before the objects being linked to create a
   18986 # shared library.
   18987 predep_objects=$lt_predep_objects_RC
   18988 
   18989 # Dependencies to place after the objects being linked to create a
   18990 # shared library.
   18991 postdep_objects=$lt_postdep_objects_RC
   18992 
   18993 # Dependencies to place before the objects being linked to create a
   18994 # shared library.
   18995 predeps=$lt_predeps_RC
   18996 
   18997 # Dependencies to place after the objects being linked to create a
   18998 # shared library.
   18999 postdeps=$lt_postdeps_RC
   19000 
   19001 # The library search path used internally by the compiler when linking
   19002 # a shared library.
   19003 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
   19004 
   19005 # Method to check whether dependent libraries are shared objects.
   19006 deplibs_check_method=$lt_deplibs_check_method
   19007 
   19008 # Command to use when deplibs_check_method == file_magic.
   19009 file_magic_cmd=$lt_file_magic_cmd
   19010 
   19011 # Flag that allows shared libraries with undefined symbols to be built.
   19012 allow_undefined_flag=$lt_allow_undefined_flag_RC
   19013 
   19014 # Flag that forces no undefined symbols.
   19015 no_undefined_flag=$lt_no_undefined_flag_RC
   19016 
   19017 # Commands used to finish a libtool library installation in a directory.
   19018 finish_cmds=$lt_finish_cmds
   19019 
   19020 # Same as above, but a single script fragment to be evaled but not shown.
   19021 finish_eval=$lt_finish_eval
   19022 
   19023 # Take the output of nm and produce a listing of raw symbols and C names.
   19024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   19025 
   19026 # Transform the output of nm in a proper C declaration
   19027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   19028 
   19029 # Transform the output of nm in a C name address pair
   19030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   19031 
   19032 # This is the shared library runtime path variable.
   19033 runpath_var=$runpath_var
   19034 
   19035 # This is the shared library path variable.
   19036 shlibpath_var=$shlibpath_var
   19037 
   19038 # Is shlibpath searched before the hard-coded library search path?
   19039 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   19040 
   19041 # How to hardcode a shared library path into an executable.
   19042 hardcode_action=$hardcode_action_RC
   19043 
   19044 # Whether we should hardcode library paths into libraries.
   19045 hardcode_into_libs=$hardcode_into_libs
   19046 
   19047 # Flag to hardcode \$libdir into a binary during linking.
   19048 # This must work even if \$libdir does not exist.
   19049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
   19050 
   19051 # If ld is used when linking, flag to hardcode \$libdir into
   19052 # a binary during linking. This must work even if \$libdir does
   19053 # not exist.
   19054 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
   19055 
   19056 # Whether we need a single -rpath flag with a separated argument.
   19057 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
   19058 
   19059 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   19060 # resulting binary.
   19061 hardcode_direct=$hardcode_direct_RC
   19062 
   19063 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   19064 # resulting binary.
   19065 hardcode_minus_L=$hardcode_minus_L_RC
   19066 
   19067 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   19068 # the resulting binary.
   19069 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
   19070 
   19071 # Set to yes if building a shared library automatically hardcodes DIR into the library
   19072 # and all subsequent libraries and executables linked against it.
   19073 hardcode_automatic=$hardcode_automatic_RC
   19074 
   19075 # Variables whose values should be saved in libtool wrapper scripts and
   19076 # restored at relink time.
   19077 variables_saved_for_relink="$variables_saved_for_relink"
   19078 
   19079 # Whether libtool must link a program against all its dependency libraries.
   19080 link_all_deplibs=$link_all_deplibs_RC
   19081 
   19082 # Compile-time system search path for libraries
   19083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   19084 
   19085 # Run-time system search path for libraries
   19086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   19087 
   19088 # Fix the shell variable \$srcfile for the compiler.
   19089 fix_srcfile_path="$fix_srcfile_path_RC"
   19090 
   19091 # Set to yes if exported symbols are required.
   19092 always_export_symbols=$always_export_symbols_RC
   19093 
   19094 # The commands to list exported symbols.
   19095 export_symbols_cmds=$lt_export_symbols_cmds_RC
   19096 
   19097 # The commands to extract the exported symbol list from a shared archive.
   19098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   19099 
   19100 # Symbols that should not be listed in the preloaded symbols.
   19101 exclude_expsyms=$lt_exclude_expsyms_RC
   19102 
   19103 # Symbols that must always be exported.
   19104 include_expsyms=$lt_include_expsyms_RC
   19105 
   19106 # ### END LIBTOOL TAG CONFIG: $tagname
   19107 
   19108 __EOF__
   19109 
   19110 
   19111 else
   19112   # If there is no Makefile yet, we rely on a make rule to execute
   19113   # `config.status --recheck' to rerun these tests and create the
   19114   # libtool script then.
   19115   test -f Makefile && make "$ltmain"
   19116 fi
   19117 
   19118 
   19119 ac_ext=c
   19120 ac_cpp='$CPP $CPPFLAGS'
   19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19124 
   19125 CC="$lt_save_CC"
   19126 
   19127 	;;
   19128 
   19129       *)
   19130 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
   19131 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   19132    { (exit 1); exit 1; }; }
   19133 	;;
   19134       esac
   19135 
   19136       # Append the new tag name to the list of available tags.
   19137       if test -n "$tagname" ; then
   19138       available_tags="$available_tags $tagname"
   19139     fi
   19140     fi
   19141   done
   19142   IFS="$lt_save_ifs"
   19143 
   19144   # Now substitute the updated list of available tags.
   19145   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
   19146     mv "${ofile}T" "$ofile"
   19147     chmod +x "$ofile"
   19148   else
   19149     rm -f "${ofile}T"
   19150     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
   19151 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   19152    { (exit 1); exit 1; }; }
   19153   fi
   19154 fi
   19155 
   19156 
   19157 
   19158 # This can be used to rebuild libtool when needed
   19159 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
   19160 
   19161 # Always use our own libtool.
   19162 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   19163 
   19164 # Prevent multiple expansion
   19165 
   19166 
   19167 
   19168 
   19169 
   19170 
   19171 
   19172 
   19173 
   19174 
   19175 
   19176 
   19177 
   19178 
   19179 
   19180 
   19181 
   19182 
   19183 
   19184 
   19185 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   19186 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   19187 if test "${ac_cv_c_const+set}" = set; then
   19188   echo $ECHO_N "(cached) $ECHO_C" >&6
   19189 else
   19190   cat >conftest.$ac_ext <<_ACEOF
   19191 /* confdefs.h.  */
   19192 _ACEOF
   19193 cat confdefs.h >>conftest.$ac_ext
   19194 cat >>conftest.$ac_ext <<_ACEOF
   19195 /* end confdefs.h.  */
   19196 
   19197 int
   19198 main ()
   19199 {
   19200 /* FIXME: Include the comments suggested by Paul. */
   19201 #ifndef __cplusplus
   19202   /* Ultrix mips cc rejects this.  */
   19203   typedef int charset[2];
   19204   const charset cs;
   19205   /* SunOS 4.1.1 cc rejects this.  */
   19206   char const *const *pcpcc;
   19207   char **ppc;
   19208   /* NEC SVR4.0.2 mips cc rejects this.  */
   19209   struct point {int x, y;};
   19210   static struct point const zero = {0,0};
   19211   /* AIX XL C 1.02.0.0 rejects this.
   19212      It does not let you subtract one const X* pointer from another in
   19213      an arm of an if-expression whose if-part is not a constant
   19214      expression */
   19215   const char *g = "string";
   19216   pcpcc = &g + (g ? g-g : 0);
   19217   /* HPUX 7.0 cc rejects these. */
   19218   ++pcpcc;
   19219   ppc = (char**) pcpcc;
   19220   pcpcc = (char const *const *) ppc;
   19221   { /* SCO 3.2v4 cc rejects this.  */
   19222     char *t;
   19223     char const *s = 0 ? (char *) 0 : (char const *) 0;
   19224 
   19225     *t++ = 0;
   19226     if (s) return 0;
   19227   }
   19228   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   19229     int x[] = {25, 17};
   19230     const int *foo = &x[0];
   19231     ++foo;
   19232   }
   19233   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   19234     typedef const int *iptr;
   19235     iptr p = 0;
   19236     ++p;
   19237   }
   19238   { /* AIX XL C 1.02.0.0 rejects this saying
   19239        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   19240     struct s { int j; const int *ap[3]; };
   19241     struct s *b; b->j = 5;
   19242   }
   19243   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   19244     const int foo = 10;
   19245     if (!foo) return 0;
   19246   }
   19247   return !cs[0] && !zero.x;
   19248 #endif
   19249 
   19250   ;
   19251   return 0;
   19252 }
   19253 _ACEOF
   19254 rm -f conftest.$ac_objext
   19255 if { (ac_try="$ac_compile"
   19256 case "(($ac_try" in
   19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19258   *) ac_try_echo=$ac_try;;
   19259 esac
   19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19261   (eval "$ac_compile") 2>conftest.er1
   19262   ac_status=$?
   19263   grep -v '^ *+' conftest.er1 >conftest.err
   19264   rm -f conftest.er1
   19265   cat conftest.err >&5
   19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19267   (exit $ac_status); } && {
   19268 	 test -z "$ac_c_werror_flag" ||
   19269 	 test ! -s conftest.err
   19270        } && test -s conftest.$ac_objext; then
   19271   ac_cv_c_const=yes
   19272 else
   19273   echo "$as_me: failed program was:" >&5
   19274 sed 's/^/| /' conftest.$ac_ext >&5
   19275 
   19276 	ac_cv_c_const=no
   19277 fi
   19278 
   19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19280 fi
   19281 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   19282 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   19283 if test $ac_cv_c_const = no; then
   19284 
   19285 cat >>confdefs.h <<\_ACEOF
   19286 #define const
   19287 _ACEOF
   19288 
   19289 fi
   19290 
   19291 
   19292 
   19293 
   19294 
   19295 
   19296 ac_header_dirent=no
   19297 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   19298   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   19299 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   19300 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   19301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19302   echo $ECHO_N "(cached) $ECHO_C" >&6
   19303 else
   19304   cat >conftest.$ac_ext <<_ACEOF
   19305 /* confdefs.h.  */
   19306 _ACEOF
   19307 cat confdefs.h >>conftest.$ac_ext
   19308 cat >>conftest.$ac_ext <<_ACEOF
   19309 /* end confdefs.h.  */
   19310 #include <sys/types.h>
   19311 #include <$ac_hdr>
   19312 
   19313 int
   19314 main ()
   19315 {
   19316 if ((DIR *) 0)
   19317 return 0;
   19318   ;
   19319   return 0;
   19320 }
   19321 _ACEOF
   19322 rm -f conftest.$ac_objext
   19323 if { (ac_try="$ac_compile"
   19324 case "(($ac_try" in
   19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19326   *) ac_try_echo=$ac_try;;
   19327 esac
   19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19329   (eval "$ac_compile") 2>conftest.er1
   19330   ac_status=$?
   19331   grep -v '^ *+' conftest.er1 >conftest.err
   19332   rm -f conftest.er1
   19333   cat conftest.err >&5
   19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19335   (exit $ac_status); } && {
   19336 	 test -z "$ac_c_werror_flag" ||
   19337 	 test ! -s conftest.err
   19338        } && test -s conftest.$ac_objext; then
   19339   eval "$as_ac_Header=yes"
   19340 else
   19341   echo "$as_me: failed program was:" >&5
   19342 sed 's/^/| /' conftest.$ac_ext >&5
   19343 
   19344 	eval "$as_ac_Header=no"
   19345 fi
   19346 
   19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19348 fi
   19349 ac_res=`eval echo '${'$as_ac_Header'}'`
   19350 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19351 echo "${ECHO_T}$ac_res" >&6; }
   19352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   19353   cat >>confdefs.h <<_ACEOF
   19354 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   19355 _ACEOF
   19356 
   19357 ac_header_dirent=$ac_hdr; break
   19358 fi
   19359 
   19360 done
   19361 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   19362 if test $ac_header_dirent = dirent.h; then
   19363   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   19364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   19365 if test "${ac_cv_search_opendir+set}" = set; then
   19366   echo $ECHO_N "(cached) $ECHO_C" >&6
   19367 else
   19368   ac_func_search_save_LIBS=$LIBS
   19369 cat >conftest.$ac_ext <<_ACEOF
   19370 /* confdefs.h.  */
   19371 _ACEOF
   19372 cat confdefs.h >>conftest.$ac_ext
   19373 cat >>conftest.$ac_ext <<_ACEOF
   19374 /* end confdefs.h.  */
   19375 
   19376 /* Override any GCC internal prototype to avoid an error.
   19377    Use char because int might match the return type of a GCC
   19378    builtin and then its argument prototype would still apply.  */
   19379 #ifdef __cplusplus
   19380 extern "C"
   19381 #endif
   19382 char opendir ();
   19383 int
   19384 main ()
   19385 {
   19386 return opendir ();
   19387   ;
   19388   return 0;
   19389 }
   19390 _ACEOF
   19391 for ac_lib in '' dir; do
   19392   if test -z "$ac_lib"; then
   19393     ac_res="none required"
   19394   else
   19395     ac_res=-l$ac_lib
   19396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19397   fi
   19398   rm -f conftest.$ac_objext conftest$ac_exeext
   19399 if { (ac_try="$ac_link"
   19400 case "(($ac_try" in
   19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19402   *) ac_try_echo=$ac_try;;
   19403 esac
   19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19405   (eval "$ac_link") 2>conftest.er1
   19406   ac_status=$?
   19407   grep -v '^ *+' conftest.er1 >conftest.err
   19408   rm -f conftest.er1
   19409   cat conftest.err >&5
   19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19411   (exit $ac_status); } && {
   19412 	 test -z "$ac_c_werror_flag" ||
   19413 	 test ! -s conftest.err
   19414        } && test -s conftest$ac_exeext &&
   19415        $as_test_x conftest$ac_exeext; then
   19416   ac_cv_search_opendir=$ac_res
   19417 else
   19418   echo "$as_me: failed program was:" >&5
   19419 sed 's/^/| /' conftest.$ac_ext >&5
   19420 
   19421 
   19422 fi
   19423 
   19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19425       conftest$ac_exeext
   19426   if test "${ac_cv_search_opendir+set}" = set; then
   19427   break
   19428 fi
   19429 done
   19430 if test "${ac_cv_search_opendir+set}" = set; then
   19431   :
   19432 else
   19433   ac_cv_search_opendir=no
   19434 fi
   19435 rm conftest.$ac_ext
   19436 LIBS=$ac_func_search_save_LIBS
   19437 fi
   19438 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   19439 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   19440 ac_res=$ac_cv_search_opendir
   19441 if test "$ac_res" != no; then
   19442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19443 
   19444 fi
   19445 
   19446 else
   19447   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   19448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   19449 if test "${ac_cv_search_opendir+set}" = set; then
   19450   echo $ECHO_N "(cached) $ECHO_C" >&6
   19451 else
   19452   ac_func_search_save_LIBS=$LIBS
   19453 cat >conftest.$ac_ext <<_ACEOF
   19454 /* confdefs.h.  */
   19455 _ACEOF
   19456 cat confdefs.h >>conftest.$ac_ext
   19457 cat >>conftest.$ac_ext <<_ACEOF
   19458 /* end confdefs.h.  */
   19459 
   19460 /* Override any GCC internal prototype to avoid an error.
   19461    Use char because int might match the return type of a GCC
   19462    builtin and then its argument prototype would still apply.  */
   19463 #ifdef __cplusplus
   19464 extern "C"
   19465 #endif
   19466 char opendir ();
   19467 int
   19468 main ()
   19469 {
   19470 return opendir ();
   19471   ;
   19472   return 0;
   19473 }
   19474 _ACEOF
   19475 for ac_lib in '' x; do
   19476   if test -z "$ac_lib"; then
   19477     ac_res="none required"
   19478   else
   19479     ac_res=-l$ac_lib
   19480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19481   fi
   19482   rm -f conftest.$ac_objext conftest$ac_exeext
   19483 if { (ac_try="$ac_link"
   19484 case "(($ac_try" in
   19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19486   *) ac_try_echo=$ac_try;;
   19487 esac
   19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19489   (eval "$ac_link") 2>conftest.er1
   19490   ac_status=$?
   19491   grep -v '^ *+' conftest.er1 >conftest.err
   19492   rm -f conftest.er1
   19493   cat conftest.err >&5
   19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19495   (exit $ac_status); } && {
   19496 	 test -z "$ac_c_werror_flag" ||
   19497 	 test ! -s conftest.err
   19498        } && test -s conftest$ac_exeext &&
   19499        $as_test_x conftest$ac_exeext; then
   19500   ac_cv_search_opendir=$ac_res
   19501 else
   19502   echo "$as_me: failed program was:" >&5
   19503 sed 's/^/| /' conftest.$ac_ext >&5
   19504 
   19505 
   19506 fi
   19507 
   19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19509       conftest$ac_exeext
   19510   if test "${ac_cv_search_opendir+set}" = set; then
   19511   break
   19512 fi
   19513 done
   19514 if test "${ac_cv_search_opendir+set}" = set; then
   19515   :
   19516 else
   19517   ac_cv_search_opendir=no
   19518 fi
   19519 rm conftest.$ac_ext
   19520 LIBS=$ac_func_search_save_LIBS
   19521 fi
   19522 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   19523 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   19524 ac_res=$ac_cv_search_opendir
   19525 if test "$ac_res" != no; then
   19526   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19527 
   19528 fi
   19529 
   19530 fi
   19531 
   19532 # Check whether --enable-ltdl-install was given.
   19533 if test "${enable_ltdl_install+set}" = set; then
   19534   enableval=$enable_ltdl_install;
   19535 fi
   19536 
   19537 
   19538 if test x"${enable_ltdl_install-no}" != xno; then
   19539   cat >>confdefs.h <<\_ACEOF
   19540 #define INSTALL_LTDL 1
   19541 _ACEOF
   19542 
   19543 fi
   19544 if test x"${enable_ltdl_convenience-no}" != xno; then
   19545   cat >>confdefs.h <<\_ACEOF
   19546 #define CONVENIENCE_LTDL 1
   19547 _ACEOF
   19548 
   19549 fi
   19550 
   19551 
   19552 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
   19553 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
   19554 if test "${libltdl_cv_shlibext+set}" = set; then
   19555   echo $ECHO_N "(cached) $ECHO_C" >&6
   19556 else
   19557 
   19558 module=yes
   19559 eval libltdl_cv_shlibext=$shrext
   19560 
   19561 fi
   19562 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
   19563 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
   19564 if test -n "$libltdl_cv_shlibext"; then
   19565 
   19566 cat >>confdefs.h <<_ACEOF
   19567 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
   19568 _ACEOF
   19569 
   19570 fi
   19571 
   19572 
   19573 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
   19574 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
   19575 if test "${libltdl_cv_shlibpath_var+set}" = set; then
   19576   echo $ECHO_N "(cached) $ECHO_C" >&6
   19577 else
   19578   libltdl_cv_shlibpath_var="$shlibpath_var"
   19579 fi
   19580 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
   19581 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
   19582 if test -n "$libltdl_cv_shlibpath_var"; then
   19583 
   19584 cat >>confdefs.h <<_ACEOF
   19585 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
   19586 _ACEOF
   19587 
   19588 fi
   19589 
   19590 
   19591 { echo "$as_me:$LINENO: checking for the default library search path" >&5
   19592 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
   19593 if test "${libltdl_cv_sys_search_path+set}" = set; then
   19594   echo $ECHO_N "(cached) $ECHO_C" >&6
   19595 else
   19596   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
   19597 fi
   19598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
   19599 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
   19600 if test -n "$libltdl_cv_sys_search_path"; then
   19601   sys_search_path=
   19602   for dir in $libltdl_cv_sys_search_path; do
   19603     if test -z "$sys_search_path"; then
   19604       sys_search_path="$dir"
   19605     else
   19606       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
   19607     fi
   19608   done
   19609 
   19610 cat >>confdefs.h <<_ACEOF
   19611 #define LTDL_SYSSEARCHPATH "$sys_search_path"
   19612 _ACEOF
   19613 
   19614 fi
   19615 
   19616 { echo "$as_me:$LINENO: checking for objdir" >&5
   19617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   19618 if test "${libltdl_cv_objdir+set}" = set; then
   19619   echo $ECHO_N "(cached) $ECHO_C" >&6
   19620 else
   19621   libltdl_cv_objdir="$objdir"
   19622   if test -n "$objdir"; then
   19623     :
   19624   else
   19625     rm -f .libs 2>/dev/null
   19626     mkdir .libs 2>/dev/null
   19627     if test -d .libs; then
   19628       libltdl_cv_objdir=.libs
   19629     else
   19630       # MS-DOS does not allow filenames that begin with a dot.
   19631       libltdl_cv_objdir=_libs
   19632     fi
   19633   rmdir .libs 2>/dev/null
   19634   fi
   19635 
   19636 fi
   19637 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
   19638 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
   19639 
   19640 cat >>confdefs.h <<_ACEOF
   19641 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
   19642 _ACEOF
   19643 
   19644 
   19645 
   19646 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
   19647 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
   19648 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
   19649   echo $ECHO_N "(cached) $ECHO_C" >&6
   19650 else
   19651   if test -n "$lt_cv_sys_global_symbol_pipe"; then
   19652     libltdl_cv_preloaded_symbols=yes
   19653   else
   19654     libltdl_cv_preloaded_symbols=no
   19655   fi
   19656 
   19657 fi
   19658 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
   19659 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
   19660 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
   19661 
   19662 cat >>confdefs.h <<\_ACEOF
   19663 #define HAVE_PRELOADED_SYMBOLS 1
   19664 _ACEOF
   19665 
   19666 fi
   19667 
   19668 LIBADD_DL=
   19669 
   19670 ac_ext=c
   19671 ac_cpp='$CPP $CPPFLAGS'
   19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19675 
   19676 
   19677 { echo "$as_me:$LINENO: checking for shl_load" >&5
   19678 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   19679 if test "${ac_cv_func_shl_load+set}" = set; then
   19680   echo $ECHO_N "(cached) $ECHO_C" >&6
   19681 else
   19682   cat >conftest.$ac_ext <<_ACEOF
   19683 /* confdefs.h.  */
   19684 _ACEOF
   19685 cat confdefs.h >>conftest.$ac_ext
   19686 cat >>conftest.$ac_ext <<_ACEOF
   19687 /* end confdefs.h.  */
   19688 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   19689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19690 #define shl_load innocuous_shl_load
   19691 
   19692 /* System header to define __stub macros and hopefully few prototypes,
   19693     which can conflict with char shl_load (); below.
   19694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19695     <limits.h> exists even on freestanding compilers.  */
   19696 
   19697 #ifdef __STDC__
   19698 # include <limits.h>
   19699 #else
   19700 # include <assert.h>
   19701 #endif
   19702 
   19703 #undef shl_load
   19704 
   19705 /* Override any GCC internal prototype to avoid an error.
   19706    Use char because int might match the return type of a GCC
   19707    builtin and then its argument prototype would still apply.  */
   19708 #ifdef __cplusplus
   19709 extern "C"
   19710 #endif
   19711 char shl_load ();
   19712 /* The GNU C library defines this for functions which it implements
   19713     to always fail with ENOSYS.  Some functions are actually named
   19714     something starting with __ and the normal name is an alias.  */
   19715 #if defined __stub_shl_load || defined __stub___shl_load
   19716 choke me
   19717 #endif
   19718 
   19719 int
   19720 main ()
   19721 {
   19722 return shl_load ();
   19723   ;
   19724   return 0;
   19725 }
   19726 _ACEOF
   19727 rm -f conftest.$ac_objext conftest$ac_exeext
   19728 if { (ac_try="$ac_link"
   19729 case "(($ac_try" in
   19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19731   *) ac_try_echo=$ac_try;;
   19732 esac
   19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19734   (eval "$ac_link") 2>conftest.er1
   19735   ac_status=$?
   19736   grep -v '^ *+' conftest.er1 >conftest.err
   19737   rm -f conftest.er1
   19738   cat conftest.err >&5
   19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19740   (exit $ac_status); } && {
   19741 	 test -z "$ac_c_werror_flag" ||
   19742 	 test ! -s conftest.err
   19743        } && test -s conftest$ac_exeext &&
   19744        $as_test_x conftest$ac_exeext; then
   19745   ac_cv_func_shl_load=yes
   19746 else
   19747   echo "$as_me: failed program was:" >&5
   19748 sed 's/^/| /' conftest.$ac_ext >&5
   19749 
   19750 	ac_cv_func_shl_load=no
   19751 fi
   19752 
   19753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19754       conftest$ac_exeext conftest.$ac_ext
   19755 fi
   19756 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   19757 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   19758 if test $ac_cv_func_shl_load = yes; then
   19759 
   19760 cat >>confdefs.h <<\_ACEOF
   19761 #define HAVE_SHL_LOAD 1
   19762 _ACEOF
   19763 
   19764 else
   19765   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   19766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   19767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   19768   echo $ECHO_N "(cached) $ECHO_C" >&6
   19769 else
   19770   ac_check_lib_save_LIBS=$LIBS
   19771 LIBS="-ldld  $LIBS"
   19772 cat >conftest.$ac_ext <<_ACEOF
   19773 /* confdefs.h.  */
   19774 _ACEOF
   19775 cat confdefs.h >>conftest.$ac_ext
   19776 cat >>conftest.$ac_ext <<_ACEOF
   19777 /* end confdefs.h.  */
   19778 
   19779 /* Override any GCC internal prototype to avoid an error.
   19780    Use char because int might match the return type of a GCC
   19781    builtin and then its argument prototype would still apply.  */
   19782 #ifdef __cplusplus
   19783 extern "C"
   19784 #endif
   19785 char shl_load ();
   19786 int
   19787 main ()
   19788 {
   19789 return shl_load ();
   19790   ;
   19791   return 0;
   19792 }
   19793 _ACEOF
   19794 rm -f conftest.$ac_objext conftest$ac_exeext
   19795 if { (ac_try="$ac_link"
   19796 case "(($ac_try" in
   19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19798   *) ac_try_echo=$ac_try;;
   19799 esac
   19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19801   (eval "$ac_link") 2>conftest.er1
   19802   ac_status=$?
   19803   grep -v '^ *+' conftest.er1 >conftest.err
   19804   rm -f conftest.er1
   19805   cat conftest.err >&5
   19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19807   (exit $ac_status); } && {
   19808 	 test -z "$ac_c_werror_flag" ||
   19809 	 test ! -s conftest.err
   19810        } && test -s conftest$ac_exeext &&
   19811        $as_test_x conftest$ac_exeext; then
   19812   ac_cv_lib_dld_shl_load=yes
   19813 else
   19814   echo "$as_me: failed program was:" >&5
   19815 sed 's/^/| /' conftest.$ac_ext >&5
   19816 
   19817 	ac_cv_lib_dld_shl_load=no
   19818 fi
   19819 
   19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19821       conftest$ac_exeext conftest.$ac_ext
   19822 LIBS=$ac_check_lib_save_LIBS
   19823 fi
   19824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   19825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   19826 if test $ac_cv_lib_dld_shl_load = yes; then
   19827 
   19828 cat >>confdefs.h <<\_ACEOF
   19829 #define HAVE_SHL_LOAD 1
   19830 _ACEOF
   19831 
   19832 	LIBADD_DL="$LIBADD_DL -ldld"
   19833 else
   19834   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   19835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   19836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   19837   echo $ECHO_N "(cached) $ECHO_C" >&6
   19838 else
   19839   ac_check_lib_save_LIBS=$LIBS
   19840 LIBS="-ldl  $LIBS"
   19841 cat >conftest.$ac_ext <<_ACEOF
   19842 /* confdefs.h.  */
   19843 _ACEOF
   19844 cat confdefs.h >>conftest.$ac_ext
   19845 cat >>conftest.$ac_ext <<_ACEOF
   19846 /* end confdefs.h.  */
   19847 
   19848 /* Override any GCC internal prototype to avoid an error.
   19849    Use char because int might match the return type of a GCC
   19850    builtin and then its argument prototype would still apply.  */
   19851 #ifdef __cplusplus
   19852 extern "C"
   19853 #endif
   19854 char dlopen ();
   19855 int
   19856 main ()
   19857 {
   19858 return dlopen ();
   19859   ;
   19860   return 0;
   19861 }
   19862 _ACEOF
   19863 rm -f conftest.$ac_objext conftest$ac_exeext
   19864 if { (ac_try="$ac_link"
   19865 case "(($ac_try" in
   19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19867   *) ac_try_echo=$ac_try;;
   19868 esac
   19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19870   (eval "$ac_link") 2>conftest.er1
   19871   ac_status=$?
   19872   grep -v '^ *+' conftest.er1 >conftest.err
   19873   rm -f conftest.er1
   19874   cat conftest.err >&5
   19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19876   (exit $ac_status); } && {
   19877 	 test -z "$ac_c_werror_flag" ||
   19878 	 test ! -s conftest.err
   19879        } && test -s conftest$ac_exeext &&
   19880        $as_test_x conftest$ac_exeext; then
   19881   ac_cv_lib_dl_dlopen=yes
   19882 else
   19883   echo "$as_me: failed program was:" >&5
   19884 sed 's/^/| /' conftest.$ac_ext >&5
   19885 
   19886 	ac_cv_lib_dl_dlopen=no
   19887 fi
   19888 
   19889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19890       conftest$ac_exeext conftest.$ac_ext
   19891 LIBS=$ac_check_lib_save_LIBS
   19892 fi
   19893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   19894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   19895 if test $ac_cv_lib_dl_dlopen = yes; then
   19896 
   19897 cat >>confdefs.h <<\_ACEOF
   19898 #define HAVE_LIBDL 1
   19899 _ACEOF
   19900 
   19901 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
   19902 else
   19903   cat >conftest.$ac_ext <<_ACEOF
   19904 /* confdefs.h.  */
   19905 _ACEOF
   19906 cat confdefs.h >>conftest.$ac_ext
   19907 cat >>conftest.$ac_ext <<_ACEOF
   19908 /* end confdefs.h.  */
   19909 #if HAVE_DLFCN_H
   19910 #  include <dlfcn.h>
   19911 #endif
   19912 
   19913 int
   19914 main ()
   19915 {
   19916 dlopen(0, 0);
   19917   ;
   19918   return 0;
   19919 }
   19920 _ACEOF
   19921 rm -f conftest.$ac_objext conftest$ac_exeext
   19922 if { (ac_try="$ac_link"
   19923 case "(($ac_try" in
   19924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19925   *) ac_try_echo=$ac_try;;
   19926 esac
   19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19928   (eval "$ac_link") 2>conftest.er1
   19929   ac_status=$?
   19930   grep -v '^ *+' conftest.er1 >conftest.err
   19931   rm -f conftest.er1
   19932   cat conftest.err >&5
   19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19934   (exit $ac_status); } && {
   19935 	 test -z "$ac_c_werror_flag" ||
   19936 	 test ! -s conftest.err
   19937        } && test -s conftest$ac_exeext &&
   19938        $as_test_x conftest$ac_exeext; then
   19939 
   19940 cat >>confdefs.h <<\_ACEOF
   19941 #define HAVE_LIBDL 1
   19942 _ACEOF
   19943  libltdl_cv_func_dlopen="yes"
   19944 else
   19945   echo "$as_me: failed program was:" >&5
   19946 sed 's/^/| /' conftest.$ac_ext >&5
   19947 
   19948 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   19949 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   19950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   19951   echo $ECHO_N "(cached) $ECHO_C" >&6
   19952 else
   19953   ac_check_lib_save_LIBS=$LIBS
   19954 LIBS="-lsvld  $LIBS"
   19955 cat >conftest.$ac_ext <<_ACEOF
   19956 /* confdefs.h.  */
   19957 _ACEOF
   19958 cat confdefs.h >>conftest.$ac_ext
   19959 cat >>conftest.$ac_ext <<_ACEOF
   19960 /* end confdefs.h.  */
   19961 
   19962 /* Override any GCC internal prototype to avoid an error.
   19963    Use char because int might match the return type of a GCC
   19964    builtin and then its argument prototype would still apply.  */
   19965 #ifdef __cplusplus
   19966 extern "C"
   19967 #endif
   19968 char dlopen ();
   19969 int
   19970 main ()
   19971 {
   19972 return dlopen ();
   19973   ;
   19974   return 0;
   19975 }
   19976 _ACEOF
   19977 rm -f conftest.$ac_objext conftest$ac_exeext
   19978 if { (ac_try="$ac_link"
   19979 case "(($ac_try" in
   19980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19981   *) ac_try_echo=$ac_try;;
   19982 esac
   19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19984   (eval "$ac_link") 2>conftest.er1
   19985   ac_status=$?
   19986   grep -v '^ *+' conftest.er1 >conftest.err
   19987   rm -f conftest.er1
   19988   cat conftest.err >&5
   19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19990   (exit $ac_status); } && {
   19991 	 test -z "$ac_c_werror_flag" ||
   19992 	 test ! -s conftest.err
   19993        } && test -s conftest$ac_exeext &&
   19994        $as_test_x conftest$ac_exeext; then
   19995   ac_cv_lib_svld_dlopen=yes
   19996 else
   19997   echo "$as_me: failed program was:" >&5
   19998 sed 's/^/| /' conftest.$ac_ext >&5
   19999 
   20000 	ac_cv_lib_svld_dlopen=no
   20001 fi
   20002 
   20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20004       conftest$ac_exeext conftest.$ac_ext
   20005 LIBS=$ac_check_lib_save_LIBS
   20006 fi
   20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   20008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   20009 if test $ac_cv_lib_svld_dlopen = yes; then
   20010 
   20011 cat >>confdefs.h <<\_ACEOF
   20012 #define HAVE_LIBDL 1
   20013 _ACEOF
   20014 
   20015 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
   20016 else
   20017   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   20018 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   20019 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   20020   echo $ECHO_N "(cached) $ECHO_C" >&6
   20021 else
   20022   ac_check_lib_save_LIBS=$LIBS
   20023 LIBS="-ldld  $LIBS"
   20024 cat >conftest.$ac_ext <<_ACEOF
   20025 /* confdefs.h.  */
   20026 _ACEOF
   20027 cat confdefs.h >>conftest.$ac_ext
   20028 cat >>conftest.$ac_ext <<_ACEOF
   20029 /* end confdefs.h.  */
   20030 
   20031 /* Override any GCC internal prototype to avoid an error.
   20032    Use char because int might match the return type of a GCC
   20033    builtin and then its argument prototype would still apply.  */
   20034 #ifdef __cplusplus
   20035 extern "C"
   20036 #endif
   20037 char dld_link ();
   20038 int
   20039 main ()
   20040 {
   20041 return dld_link ();
   20042   ;
   20043   return 0;
   20044 }
   20045 _ACEOF
   20046 rm -f conftest.$ac_objext conftest$ac_exeext
   20047 if { (ac_try="$ac_link"
   20048 case "(($ac_try" in
   20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20050   *) ac_try_echo=$ac_try;;
   20051 esac
   20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20053   (eval "$ac_link") 2>conftest.er1
   20054   ac_status=$?
   20055   grep -v '^ *+' conftest.er1 >conftest.err
   20056   rm -f conftest.er1
   20057   cat conftest.err >&5
   20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20059   (exit $ac_status); } && {
   20060 	 test -z "$ac_c_werror_flag" ||
   20061 	 test ! -s conftest.err
   20062        } && test -s conftest$ac_exeext &&
   20063        $as_test_x conftest$ac_exeext; then
   20064   ac_cv_lib_dld_dld_link=yes
   20065 else
   20066   echo "$as_me: failed program was:" >&5
   20067 sed 's/^/| /' conftest.$ac_ext >&5
   20068 
   20069 	ac_cv_lib_dld_dld_link=no
   20070 fi
   20071 
   20072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20073       conftest$ac_exeext conftest.$ac_ext
   20074 LIBS=$ac_check_lib_save_LIBS
   20075 fi
   20076 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   20077 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   20078 if test $ac_cv_lib_dld_dld_link = yes; then
   20079 
   20080 cat >>confdefs.h <<\_ACEOF
   20081 #define HAVE_DLD 1
   20082 _ACEOF
   20083 
   20084 	 	LIBADD_DL="$LIBADD_DL -ldld"
   20085 else
   20086   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
   20087 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
   20088 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
   20089   echo $ECHO_N "(cached) $ECHO_C" >&6
   20090 else
   20091   cat >conftest.$ac_ext <<_ACEOF
   20092 /* confdefs.h.  */
   20093 _ACEOF
   20094 cat confdefs.h >>conftest.$ac_ext
   20095 cat >>conftest.$ac_ext <<_ACEOF
   20096 /* end confdefs.h.  */
   20097 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
   20098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20099 #define _dyld_func_lookup innocuous__dyld_func_lookup
   20100 
   20101 /* System header to define __stub macros and hopefully few prototypes,
   20102     which can conflict with char _dyld_func_lookup (); below.
   20103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20104     <limits.h> exists even on freestanding compilers.  */
   20105 
   20106 #ifdef __STDC__
   20107 # include <limits.h>
   20108 #else
   20109 # include <assert.h>
   20110 #endif
   20111 
   20112 #undef _dyld_func_lookup
   20113 
   20114 /* Override any GCC internal prototype to avoid an error.
   20115    Use char because int might match the return type of a GCC
   20116    builtin and then its argument prototype would still apply.  */
   20117 #ifdef __cplusplus
   20118 extern "C"
   20119 #endif
   20120 char _dyld_func_lookup ();
   20121 /* The GNU C library defines this for functions which it implements
   20122     to always fail with ENOSYS.  Some functions are actually named
   20123     something starting with __ and the normal name is an alias.  */
   20124 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
   20125 choke me
   20126 #endif
   20127 
   20128 int
   20129 main ()
   20130 {
   20131 return _dyld_func_lookup ();
   20132   ;
   20133   return 0;
   20134 }
   20135 _ACEOF
   20136 rm -f conftest.$ac_objext conftest$ac_exeext
   20137 if { (ac_try="$ac_link"
   20138 case "(($ac_try" in
   20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20140   *) ac_try_echo=$ac_try;;
   20141 esac
   20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20143   (eval "$ac_link") 2>conftest.er1
   20144   ac_status=$?
   20145   grep -v '^ *+' conftest.er1 >conftest.err
   20146   rm -f conftest.er1
   20147   cat conftest.err >&5
   20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20149   (exit $ac_status); } && {
   20150 	 test -z "$ac_c_werror_flag" ||
   20151 	 test ! -s conftest.err
   20152        } && test -s conftest$ac_exeext &&
   20153        $as_test_x conftest$ac_exeext; then
   20154   ac_cv_func__dyld_func_lookup=yes
   20155 else
   20156   echo "$as_me: failed program was:" >&5
   20157 sed 's/^/| /' conftest.$ac_ext >&5
   20158 
   20159 	ac_cv_func__dyld_func_lookup=no
   20160 fi
   20161 
   20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20163       conftest$ac_exeext conftest.$ac_ext
   20164 fi
   20165 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
   20166 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
   20167 if test $ac_cv_func__dyld_func_lookup = yes; then
   20168 
   20169 cat >>confdefs.h <<\_ACEOF
   20170 #define HAVE_DYLD 1
   20171 _ACEOF
   20172 
   20173 fi
   20174 
   20175 
   20176 fi
   20177 
   20178 
   20179 fi
   20180 
   20181 
   20182 fi
   20183 
   20184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20185       conftest$ac_exeext conftest.$ac_ext
   20186 
   20187 fi
   20188 
   20189 
   20190 fi
   20191 
   20192 
   20193 fi
   20194 
   20195 
   20196 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
   20197 then
   20198   lt_save_LIBS="$LIBS"
   20199   LIBS="$LIBS $LIBADD_DL"
   20200 
   20201 for ac_func in dlerror
   20202 do
   20203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20207   echo $ECHO_N "(cached) $ECHO_C" >&6
   20208 else
   20209   cat >conftest.$ac_ext <<_ACEOF
   20210 /* confdefs.h.  */
   20211 _ACEOF
   20212 cat confdefs.h >>conftest.$ac_ext
   20213 cat >>conftest.$ac_ext <<_ACEOF
   20214 /* end confdefs.h.  */
   20215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20217 #define $ac_func innocuous_$ac_func
   20218 
   20219 /* System header to define __stub macros and hopefully few prototypes,
   20220     which can conflict with char $ac_func (); below.
   20221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20222     <limits.h> exists even on freestanding compilers.  */
   20223 
   20224 #ifdef __STDC__
   20225 # include <limits.h>
   20226 #else
   20227 # include <assert.h>
   20228 #endif
   20229 
   20230 #undef $ac_func
   20231 
   20232 /* Override any GCC internal prototype to avoid an error.
   20233    Use char because int might match the return type of a GCC
   20234    builtin and then its argument prototype would still apply.  */
   20235 #ifdef __cplusplus
   20236 extern "C"
   20237 #endif
   20238 char $ac_func ();
   20239 /* The GNU C library defines this for functions which it implements
   20240     to always fail with ENOSYS.  Some functions are actually named
   20241     something starting with __ and the normal name is an alias.  */
   20242 #if defined __stub_$ac_func || defined __stub___$ac_func
   20243 choke me
   20244 #endif
   20245 
   20246 int
   20247 main ()
   20248 {
   20249 return $ac_func ();
   20250   ;
   20251   return 0;
   20252 }
   20253 _ACEOF
   20254 rm -f conftest.$ac_objext conftest$ac_exeext
   20255 if { (ac_try="$ac_link"
   20256 case "(($ac_try" in
   20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20258   *) ac_try_echo=$ac_try;;
   20259 esac
   20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20261   (eval "$ac_link") 2>conftest.er1
   20262   ac_status=$?
   20263   grep -v '^ *+' conftest.er1 >conftest.err
   20264   rm -f conftest.er1
   20265   cat conftest.err >&5
   20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20267   (exit $ac_status); } && {
   20268 	 test -z "$ac_c_werror_flag" ||
   20269 	 test ! -s conftest.err
   20270        } && test -s conftest$ac_exeext &&
   20271        $as_test_x conftest$ac_exeext; then
   20272   eval "$as_ac_var=yes"
   20273 else
   20274   echo "$as_me: failed program was:" >&5
   20275 sed 's/^/| /' conftest.$ac_ext >&5
   20276 
   20277 	eval "$as_ac_var=no"
   20278 fi
   20279 
   20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20281       conftest$ac_exeext conftest.$ac_ext
   20282 fi
   20283 ac_res=`eval echo '${'$as_ac_var'}'`
   20284 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20285 echo "${ECHO_T}$ac_res" >&6; }
   20286 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20287   cat >>confdefs.h <<_ACEOF
   20288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20289 _ACEOF
   20290 
   20291 fi
   20292 done
   20293 
   20294   LIBS="$lt_save_LIBS"
   20295 fi
   20296 ac_ext=c
   20297 ac_cpp='$CPP $CPPFLAGS'
   20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20301 
   20302 
   20303 
   20304 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
   20305 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
   20306 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
   20307   echo $ECHO_N "(cached) $ECHO_C" >&6
   20308 else
   20309   ac_cv_sys_symbol_underscore=no
   20310   cat > conftest.$ac_ext <<EOF
   20311 void nm_test_func(){}
   20312 int main(){nm_test_func;return 0;}
   20313 EOF
   20314   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   20315   (eval $ac_compile) 2>&5
   20316   ac_status=$?
   20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20318   (exit $ac_status); }; then
   20319     # Now try to grab the symbols.
   20320     ac_nlist=conftest.nm
   20321     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
   20322   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
   20323   ac_status=$?
   20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20325   (exit $ac_status); } && test -s "$ac_nlist"; then
   20326       # See whether the symbols have a leading underscore.
   20327       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
   20328         ac_cv_sys_symbol_underscore=yes
   20329       else
   20330         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
   20331 	  :
   20332         else
   20333 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
   20334         fi
   20335       fi
   20336     else
   20337       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
   20338     fi
   20339   else
   20340     echo "configure: failed program was:" >&5
   20341     cat conftest.c >&5
   20342   fi
   20343   rm -rf conftest*
   20344 
   20345 fi
   20346 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
   20347 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
   20348 
   20349 
   20350 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
   20351   if test x"$libltdl_cv_func_dlopen" = xyes ||
   20352      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
   20353 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
   20354 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
   20355 if test "${libltdl_cv_need_uscore+set}" = set; then
   20356   echo $ECHO_N "(cached) $ECHO_C" >&6
   20357 else
   20358   libltdl_cv_need_uscore=unknown
   20359           save_LIBS="$LIBS"
   20360           LIBS="$LIBS $LIBADD_DL"
   20361 	  if test "$cross_compiling" = yes; then :
   20362   libltdl_cv_need_uscore=cross
   20363 else
   20364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   20365   lt_status=$lt_dlunknown
   20366   cat > conftest.$ac_ext <<EOF
   20367 #line 20367 "configure"
   20368 #include "confdefs.h"
   20369 
   20370 #if HAVE_DLFCN_H
   20371 #include <dlfcn.h>
   20372 #endif
   20373 
   20374 #include <stdio.h>
   20375 
   20376 #ifdef RTLD_GLOBAL
   20377 #  define LT_DLGLOBAL		RTLD_GLOBAL
   20378 #else
   20379 #  ifdef DL_GLOBAL
   20380 #    define LT_DLGLOBAL		DL_GLOBAL
   20381 #  else
   20382 #    define LT_DLGLOBAL		0
   20383 #  endif
   20384 #endif
   20385 
   20386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   20387    find out it does not work in some platform. */
   20388 #ifndef LT_DLLAZY_OR_NOW
   20389 #  ifdef RTLD_LAZY
   20390 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   20391 #  else
   20392 #    ifdef DL_LAZY
   20393 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   20394 #    else
   20395 #      ifdef RTLD_NOW
   20396 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   20397 #      else
   20398 #        ifdef DL_NOW
   20399 #          define LT_DLLAZY_OR_NOW	DL_NOW
   20400 #        else
   20401 #          define LT_DLLAZY_OR_NOW	0
   20402 #        endif
   20403 #      endif
   20404 #    endif
   20405 #  endif
   20406 #endif
   20407 
   20408 #ifdef __cplusplus
   20409 extern "C" void exit (int);
   20410 #endif
   20411 
   20412 void fnord() { int i=42;}
   20413 int main ()
   20414 {
   20415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   20416   int status = $lt_dlunknown;
   20417 
   20418   if (self)
   20419     {
   20420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   20421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   20422       /* dlclose (self); */
   20423     }
   20424 
   20425     exit (status);
   20426 }
   20427 EOF
   20428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   20429   (eval $ac_link) 2>&5
   20430   ac_status=$?
   20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   20433     (./conftest; exit; ) 2>/dev/null
   20434     lt_status=$?
   20435     case x$lt_status in
   20436       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
   20437       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
   20438       x$lt_unknown|x*)  ;;
   20439     esac
   20440   else :
   20441     # compilation failed
   20442 
   20443   fi
   20444 fi
   20445 rm -fr conftest*
   20446 
   20447 	  LIBS="$save_LIBS"
   20448 
   20449 fi
   20450 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
   20451 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
   20452   fi
   20453 fi
   20454 
   20455 if test x"$libltdl_cv_need_uscore" = xyes; then
   20456 
   20457 cat >>confdefs.h <<\_ACEOF
   20458 #define NEED_USCORE 1
   20459 _ACEOF
   20460 
   20461 fi
   20462 
   20463 
   20464 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
   20465 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
   20466 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
   20467   echo $ECHO_N "(cached) $ECHO_C" >&6
   20468 else
   20469   # PORTME does your system automatically load deplibs for dlopen?
   20470   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
   20471   # For now, we just catch OSes we know something about -- in the
   20472   # future, we'll try test this programmatically.
   20473   libltdl_cv_sys_dlopen_deplibs=unknown
   20474   case "$host_os" in
   20475   aix3*|aix4.1.*|aix4.2.*)
   20476     # Unknown whether this is true for these versions of AIX, but
   20477     # we want this `case' here to explicitly catch those versions.
   20478     libltdl_cv_sys_dlopen_deplibs=unknown
   20479     ;;
   20480   aix[45]*)
   20481     libltdl_cv_sys_dlopen_deplibs=yes
   20482     ;;
   20483   darwin*)
   20484     # Assuming the user has installed a libdl from somewhere, this is true
   20485     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
   20486     libltdl_cv_sys_dlopen_deplibs=yes
   20487     ;;
   20488   kfreebsd*-gnu)
   20489     libltdl_cv_sys_dlopen_deplibs=yes
   20490     ;;
   20491   gnu*)
   20492     libltdl_cv_sys_dlopen_deplibs=yes
   20493     ;;
   20494   hpux10*|hpux11*)
   20495     libltdl_cv_sys_dlopen_deplibs=yes
   20496     ;;
   20497   irix[12345]*|irix6.[01]*)
   20498     # Catch all versions of IRIX before 6.2, and indicate that we don't
   20499     # know how it worked for any of those versions.
   20500     libltdl_cv_sys_dlopen_deplibs=unknown
   20501     ;;
   20502   irix*)
   20503     # The case above catches anything before 6.2, and it's known that
   20504     # at 6.2 and later dlopen does load deplibs.
   20505     libltdl_cv_sys_dlopen_deplibs=yes
   20506     ;;
   20507   linux*)
   20508     libltdl_cv_sys_dlopen_deplibs=yes
   20509     ;;
   20510   netbsd*)
   20511     libltdl_cv_sys_dlopen_deplibs=yes
   20512     ;;
   20513   openbsd*)
   20514     libltdl_cv_sys_dlopen_deplibs=yes
   20515     ;;
   20516   osf[1234]*)
   20517     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
   20518     # it did *not* use an RPATH in a shared library to find objects the
   20519     # library depends on, so we explictly say `no'.
   20520     libltdl_cv_sys_dlopen_deplibs=no
   20521     ;;
   20522   osf5.0|osf5.0a|osf5.1)
   20523     # dlopen *does* load deplibs and with the right loader patch applied
   20524     # it even uses RPATH in a shared library to search for shared objects
   20525     # that the library depends on, but there's no easy way to know if that
   20526     # patch is installed.  Since this is the case, all we can really
   20527     # say is unknown -- it depends on the patch being installed.  If
   20528     # it is, this changes to `yes'.  Without it, it would be `no'.
   20529     libltdl_cv_sys_dlopen_deplibs=unknown
   20530     ;;
   20531   osf*)
   20532     # the two cases above should catch all versions of osf <= 5.1.  Read
   20533     # the comments above for what we know about them.
   20534     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
   20535     # is used to find them so we can finally say `yes'.
   20536     libltdl_cv_sys_dlopen_deplibs=yes
   20537     ;;
   20538   solaris*)
   20539     libltdl_cv_sys_dlopen_deplibs=yes
   20540     ;;
   20541   esac
   20542 
   20543 fi
   20544 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
   20545 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
   20546 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
   20547 
   20548 cat >>confdefs.h <<\_ACEOF
   20549 #define LTDL_DLOPEN_DEPLIBS 1
   20550 _ACEOF
   20551 
   20552 fi
   20553 
   20554 
   20555 for ac_header in argz.h
   20556 do
   20557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20562   echo $ECHO_N "(cached) $ECHO_C" >&6
   20563 fi
   20564 ac_res=`eval echo '${'$as_ac_Header'}'`
   20565 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20566 echo "${ECHO_T}$ac_res" >&6; }
   20567 else
   20568   # Is the header compilable?
   20569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   20570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   20571 cat >conftest.$ac_ext <<_ACEOF
   20572 /* confdefs.h.  */
   20573 _ACEOF
   20574 cat confdefs.h >>conftest.$ac_ext
   20575 cat >>conftest.$ac_ext <<_ACEOF
   20576 /* end confdefs.h.  */
   20577 $ac_includes_default
   20578 #include <$ac_header>
   20579 _ACEOF
   20580 rm -f conftest.$ac_objext
   20581 if { (ac_try="$ac_compile"
   20582 case "(($ac_try" in
   20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20584   *) ac_try_echo=$ac_try;;
   20585 esac
   20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20587   (eval "$ac_compile") 2>conftest.er1
   20588   ac_status=$?
   20589   grep -v '^ *+' conftest.er1 >conftest.err
   20590   rm -f conftest.er1
   20591   cat conftest.err >&5
   20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20593   (exit $ac_status); } && {
   20594 	 test -z "$ac_c_werror_flag" ||
   20595 	 test ! -s conftest.err
   20596        } && test -s conftest.$ac_objext; then
   20597   ac_header_compiler=yes
   20598 else
   20599   echo "$as_me: failed program was:" >&5
   20600 sed 's/^/| /' conftest.$ac_ext >&5
   20601 
   20602 	ac_header_compiler=no
   20603 fi
   20604 
   20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20607 echo "${ECHO_T}$ac_header_compiler" >&6; }
   20608 
   20609 # Is the header present?
   20610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   20611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   20612 cat >conftest.$ac_ext <<_ACEOF
   20613 /* confdefs.h.  */
   20614 _ACEOF
   20615 cat confdefs.h >>conftest.$ac_ext
   20616 cat >>conftest.$ac_ext <<_ACEOF
   20617 /* end confdefs.h.  */
   20618 #include <$ac_header>
   20619 _ACEOF
   20620 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20621 case "(($ac_try" in
   20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20623   *) ac_try_echo=$ac_try;;
   20624 esac
   20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20627   ac_status=$?
   20628   grep -v '^ *+' conftest.er1 >conftest.err
   20629   rm -f conftest.er1
   20630   cat conftest.err >&5
   20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20632   (exit $ac_status); } >/dev/null && {
   20633 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   20634 	 test ! -s conftest.err
   20635        }; then
   20636   ac_header_preproc=yes
   20637 else
   20638   echo "$as_me: failed program was:" >&5
   20639 sed 's/^/| /' conftest.$ac_ext >&5
   20640 
   20641   ac_header_preproc=no
   20642 fi
   20643 
   20644 rm -f conftest.err conftest.$ac_ext
   20645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20646 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20647 
   20648 # So?  What about this header?
   20649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20650   yes:no: )
   20651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20655     ac_header_preproc=yes
   20656     ;;
   20657   no:yes:* )
   20658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   20662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   20663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   20664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   20665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   20666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   20667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   20668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   20669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   20670 
   20671     ;;
   20672 esac
   20673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20676   echo $ECHO_N "(cached) $ECHO_C" >&6
   20677 else
   20678   eval "$as_ac_Header=\$ac_header_preproc"
   20679 fi
   20680 ac_res=`eval echo '${'$as_ac_Header'}'`
   20681 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20682 echo "${ECHO_T}$ac_res" >&6; }
   20683 
   20684 fi
   20685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   20686   cat >>confdefs.h <<_ACEOF
   20687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20688 _ACEOF
   20689 
   20690 fi
   20691 
   20692 done
   20693 
   20694 
   20695 { echo "$as_me:$LINENO: checking for error_t" >&5
   20696 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
   20697 if test "${ac_cv_type_error_t+set}" = set; then
   20698   echo $ECHO_N "(cached) $ECHO_C" >&6
   20699 else
   20700   cat >conftest.$ac_ext <<_ACEOF
   20701 /* confdefs.h.  */
   20702 _ACEOF
   20703 cat confdefs.h >>conftest.$ac_ext
   20704 cat >>conftest.$ac_ext <<_ACEOF
   20705 /* end confdefs.h.  */
   20706 #if HAVE_ARGZ_H
   20707 #  include <argz.h>
   20708 #endif
   20709 
   20710 typedef error_t ac__type_new_;
   20711 int
   20712 main ()
   20713 {
   20714 if ((ac__type_new_ *) 0)
   20715   return 0;
   20716 if (sizeof (ac__type_new_))
   20717   return 0;
   20718   ;
   20719   return 0;
   20720 }
   20721 _ACEOF
   20722 rm -f conftest.$ac_objext
   20723 if { (ac_try="$ac_compile"
   20724 case "(($ac_try" in
   20725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20726   *) ac_try_echo=$ac_try;;
   20727 esac
   20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20729   (eval "$ac_compile") 2>conftest.er1
   20730   ac_status=$?
   20731   grep -v '^ *+' conftest.er1 >conftest.err
   20732   rm -f conftest.er1
   20733   cat conftest.err >&5
   20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20735   (exit $ac_status); } && {
   20736 	 test -z "$ac_c_werror_flag" ||
   20737 	 test ! -s conftest.err
   20738        } && test -s conftest.$ac_objext; then
   20739   ac_cv_type_error_t=yes
   20740 else
   20741   echo "$as_me: failed program was:" >&5
   20742 sed 's/^/| /' conftest.$ac_ext >&5
   20743 
   20744 	ac_cv_type_error_t=no
   20745 fi
   20746 
   20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20748 fi
   20749 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
   20750 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
   20751 if test $ac_cv_type_error_t = yes; then
   20752 
   20753 cat >>confdefs.h <<_ACEOF
   20754 #define HAVE_ERROR_T 1
   20755 _ACEOF
   20756 
   20757 
   20758 else
   20759 
   20760 cat >>confdefs.h <<\_ACEOF
   20761 #define error_t int
   20762 _ACEOF
   20763 
   20764 fi
   20765 
   20766 
   20767 
   20768 
   20769 
   20770 
   20771 
   20772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
   20773 do
   20774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20778   echo $ECHO_N "(cached) $ECHO_C" >&6
   20779 else
   20780   cat >conftest.$ac_ext <<_ACEOF
   20781 /* confdefs.h.  */
   20782 _ACEOF
   20783 cat confdefs.h >>conftest.$ac_ext
   20784 cat >>conftest.$ac_ext <<_ACEOF
   20785 /* end confdefs.h.  */
   20786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20788 #define $ac_func innocuous_$ac_func
   20789 
   20790 /* System header to define __stub macros and hopefully few prototypes,
   20791     which can conflict with char $ac_func (); below.
   20792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20793     <limits.h> exists even on freestanding compilers.  */
   20794 
   20795 #ifdef __STDC__
   20796 # include <limits.h>
   20797 #else
   20798 # include <assert.h>
   20799 #endif
   20800 
   20801 #undef $ac_func
   20802 
   20803 /* Override any GCC internal prototype to avoid an error.
   20804    Use char because int might match the return type of a GCC
   20805    builtin and then its argument prototype would still apply.  */
   20806 #ifdef __cplusplus
   20807 extern "C"
   20808 #endif
   20809 char $ac_func ();
   20810 /* The GNU C library defines this for functions which it implements
   20811     to always fail with ENOSYS.  Some functions are actually named
   20812     something starting with __ and the normal name is an alias.  */
   20813 #if defined __stub_$ac_func || defined __stub___$ac_func
   20814 choke me
   20815 #endif
   20816 
   20817 int
   20818 main ()
   20819 {
   20820 return $ac_func ();
   20821   ;
   20822   return 0;
   20823 }
   20824 _ACEOF
   20825 rm -f conftest.$ac_objext conftest$ac_exeext
   20826 if { (ac_try="$ac_link"
   20827 case "(($ac_try" in
   20828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20829   *) ac_try_echo=$ac_try;;
   20830 esac
   20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20832   (eval "$ac_link") 2>conftest.er1
   20833   ac_status=$?
   20834   grep -v '^ *+' conftest.er1 >conftest.err
   20835   rm -f conftest.er1
   20836   cat conftest.err >&5
   20837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20838   (exit $ac_status); } && {
   20839 	 test -z "$ac_c_werror_flag" ||
   20840 	 test ! -s conftest.err
   20841        } && test -s conftest$ac_exeext &&
   20842        $as_test_x conftest$ac_exeext; then
   20843   eval "$as_ac_var=yes"
   20844 else
   20845   echo "$as_me: failed program was:" >&5
   20846 sed 's/^/| /' conftest.$ac_ext >&5
   20847 
   20848 	eval "$as_ac_var=no"
   20849 fi
   20850 
   20851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20852       conftest$ac_exeext conftest.$ac_ext
   20853 fi
   20854 ac_res=`eval echo '${'$as_ac_var'}'`
   20855 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20856 echo "${ECHO_T}$ac_res" >&6; }
   20857 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20858   cat >>confdefs.h <<_ACEOF
   20859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20860 _ACEOF
   20861 
   20862 fi
   20863 done
   20864 
   20865 
   20866 
   20867 
   20868 
   20869 
   20870 
   20871 
   20872 
   20873 
   20874 
   20875 
   20876 
   20877 
   20878 
   20879 
   20880 
   20881 
   20882 
   20883 
   20884 
   20885 
   20886 
   20887 
   20888 
   20889 
   20890 
   20891 
   20892 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
   20893 		  stdio.h unistd.h
   20894 do
   20895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20900   echo $ECHO_N "(cached) $ECHO_C" >&6
   20901 fi
   20902 ac_res=`eval echo '${'$as_ac_Header'}'`
   20903 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20904 echo "${ECHO_T}$ac_res" >&6; }
   20905 else
   20906   # Is the header compilable?
   20907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   20908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   20909 cat >conftest.$ac_ext <<_ACEOF
   20910 /* confdefs.h.  */
   20911 _ACEOF
   20912 cat confdefs.h >>conftest.$ac_ext
   20913 cat >>conftest.$ac_ext <<_ACEOF
   20914 /* end confdefs.h.  */
   20915 $ac_includes_default
   20916 #include <$ac_header>
   20917 _ACEOF
   20918 rm -f conftest.$ac_objext
   20919 if { (ac_try="$ac_compile"
   20920 case "(($ac_try" in
   20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20922   *) ac_try_echo=$ac_try;;
   20923 esac
   20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20925   (eval "$ac_compile") 2>conftest.er1
   20926   ac_status=$?
   20927   grep -v '^ *+' conftest.er1 >conftest.err
   20928   rm -f conftest.er1
   20929   cat conftest.err >&5
   20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20931   (exit $ac_status); } && {
   20932 	 test -z "$ac_c_werror_flag" ||
   20933 	 test ! -s conftest.err
   20934        } && test -s conftest.$ac_objext; then
   20935   ac_header_compiler=yes
   20936 else
   20937   echo "$as_me: failed program was:" >&5
   20938 sed 's/^/| /' conftest.$ac_ext >&5
   20939 
   20940 	ac_header_compiler=no
   20941 fi
   20942 
   20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20945 echo "${ECHO_T}$ac_header_compiler" >&6; }
   20946 
   20947 # Is the header present?
   20948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   20949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   20950 cat >conftest.$ac_ext <<_ACEOF
   20951 /* confdefs.h.  */
   20952 _ACEOF
   20953 cat confdefs.h >>conftest.$ac_ext
   20954 cat >>conftest.$ac_ext <<_ACEOF
   20955 /* end confdefs.h.  */
   20956 #include <$ac_header>
   20957 _ACEOF
   20958 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20959 case "(($ac_try" in
   20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20961   *) ac_try_echo=$ac_try;;
   20962 esac
   20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20965   ac_status=$?
   20966   grep -v '^ *+' conftest.er1 >conftest.err
   20967   rm -f conftest.er1
   20968   cat conftest.err >&5
   20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20970   (exit $ac_status); } >/dev/null && {
   20971 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   20972 	 test ! -s conftest.err
   20973        }; then
   20974   ac_header_preproc=yes
   20975 else
   20976   echo "$as_me: failed program was:" >&5
   20977 sed 's/^/| /' conftest.$ac_ext >&5
   20978 
   20979   ac_header_preproc=no
   20980 fi
   20981 
   20982 rm -f conftest.err conftest.$ac_ext
   20983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20984 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20985 
   20986 # So?  What about this header?
   20987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20988   yes:no: )
   20989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20993     ac_header_preproc=yes
   20994     ;;
   20995   no:yes:* )
   20996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   21000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   21001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   21002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   21003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   21004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   21005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   21006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   21007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   21008 
   21009     ;;
   21010 esac
   21011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21014   echo $ECHO_N "(cached) $ECHO_C" >&6
   21015 else
   21016   eval "$as_ac_Header=\$ac_header_preproc"
   21017 fi
   21018 ac_res=`eval echo '${'$as_ac_Header'}'`
   21019 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21020 echo "${ECHO_T}$ac_res" >&6; }
   21021 
   21022 fi
   21023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   21024   cat >>confdefs.h <<_ACEOF
   21025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21026 _ACEOF
   21027 
   21028 fi
   21029 
   21030 done
   21031 
   21032 
   21033 
   21034 
   21035 
   21036 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
   21037 do
   21038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21040   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21043   echo $ECHO_N "(cached) $ECHO_C" >&6
   21044 fi
   21045 ac_res=`eval echo '${'$as_ac_Header'}'`
   21046 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21047 echo "${ECHO_T}$ac_res" >&6; }
   21048 else
   21049   # Is the header compilable?
   21050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   21051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   21052 cat >conftest.$ac_ext <<_ACEOF
   21053 /* confdefs.h.  */
   21054 _ACEOF
   21055 cat confdefs.h >>conftest.$ac_ext
   21056 cat >>conftest.$ac_ext <<_ACEOF
   21057 /* end confdefs.h.  */
   21058 $ac_includes_default
   21059 #include <$ac_header>
   21060 _ACEOF
   21061 rm -f conftest.$ac_objext
   21062 if { (ac_try="$ac_compile"
   21063 case "(($ac_try" in
   21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21065   *) ac_try_echo=$ac_try;;
   21066 esac
   21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21068   (eval "$ac_compile") 2>conftest.er1
   21069   ac_status=$?
   21070   grep -v '^ *+' conftest.er1 >conftest.err
   21071   rm -f conftest.er1
   21072   cat conftest.err >&5
   21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21074   (exit $ac_status); } && {
   21075 	 test -z "$ac_c_werror_flag" ||
   21076 	 test ! -s conftest.err
   21077        } && test -s conftest.$ac_objext; then
   21078   ac_header_compiler=yes
   21079 else
   21080   echo "$as_me: failed program was:" >&5
   21081 sed 's/^/| /' conftest.$ac_ext >&5
   21082 
   21083 	ac_header_compiler=no
   21084 fi
   21085 
   21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   21088 echo "${ECHO_T}$ac_header_compiler" >&6; }
   21089 
   21090 # Is the header present?
   21091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   21092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   21093 cat >conftest.$ac_ext <<_ACEOF
   21094 /* confdefs.h.  */
   21095 _ACEOF
   21096 cat confdefs.h >>conftest.$ac_ext
   21097 cat >>conftest.$ac_ext <<_ACEOF
   21098 /* end confdefs.h.  */
   21099 #include <$ac_header>
   21100 _ACEOF
   21101 if { (ac_try="$ac_cpp conftest.$ac_ext"
   21102 case "(($ac_try" in
   21103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21104   *) ac_try_echo=$ac_try;;
   21105 esac
   21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   21108   ac_status=$?
   21109   grep -v '^ *+' conftest.er1 >conftest.err
   21110   rm -f conftest.er1
   21111   cat conftest.err >&5
   21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21113   (exit $ac_status); } >/dev/null && {
   21114 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   21115 	 test ! -s conftest.err
   21116        }; then
   21117   ac_header_preproc=yes
   21118 else
   21119   echo "$as_me: failed program was:" >&5
   21120 sed 's/^/| /' conftest.$ac_ext >&5
   21121 
   21122   ac_header_preproc=no
   21123 fi
   21124 
   21125 rm -f conftest.err conftest.$ac_ext
   21126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   21127 echo "${ECHO_T}$ac_header_preproc" >&6; }
   21128 
   21129 # So?  What about this header?
   21130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   21131   yes:no: )
   21132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   21133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   21134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   21135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   21136     ac_header_preproc=yes
   21137     ;;
   21138   no:yes:* )
   21139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   21140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   21141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   21142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   21143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   21144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   21145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   21146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   21147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   21148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   21149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   21150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   21151 
   21152     ;;
   21153 esac
   21154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21157   echo $ECHO_N "(cached) $ECHO_C" >&6
   21158 else
   21159   eval "$as_ac_Header=\$ac_header_preproc"
   21160 fi
   21161 ac_res=`eval echo '${'$as_ac_Header'}'`
   21162 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21163 echo "${ECHO_T}$ac_res" >&6; }
   21164 
   21165 fi
   21166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   21167   cat >>confdefs.h <<_ACEOF
   21168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21169 _ACEOF
   21170 
   21171 fi
   21172 
   21173 done
   21174 
   21175 
   21176 
   21177 for ac_header in string.h strings.h
   21178 do
   21179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21184   echo $ECHO_N "(cached) $ECHO_C" >&6
   21185 fi
   21186 ac_res=`eval echo '${'$as_ac_Header'}'`
   21187 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21188 echo "${ECHO_T}$ac_res" >&6; }
   21189 else
   21190   # Is the header compilable?
   21191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   21192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   21193 cat >conftest.$ac_ext <<_ACEOF
   21194 /* confdefs.h.  */
   21195 _ACEOF
   21196 cat confdefs.h >>conftest.$ac_ext
   21197 cat >>conftest.$ac_ext <<_ACEOF
   21198 /* end confdefs.h.  */
   21199 $ac_includes_default
   21200 #include <$ac_header>
   21201 _ACEOF
   21202 rm -f conftest.$ac_objext
   21203 if { (ac_try="$ac_compile"
   21204 case "(($ac_try" in
   21205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21206   *) ac_try_echo=$ac_try;;
   21207 esac
   21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21209   (eval "$ac_compile") 2>conftest.er1
   21210   ac_status=$?
   21211   grep -v '^ *+' conftest.er1 >conftest.err
   21212   rm -f conftest.er1
   21213   cat conftest.err >&5
   21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21215   (exit $ac_status); } && {
   21216 	 test -z "$ac_c_werror_flag" ||
   21217 	 test ! -s conftest.err
   21218        } && test -s conftest.$ac_objext; then
   21219   ac_header_compiler=yes
   21220 else
   21221   echo "$as_me: failed program was:" >&5
   21222 sed 's/^/| /' conftest.$ac_ext >&5
   21223 
   21224 	ac_header_compiler=no
   21225 fi
   21226 
   21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   21229 echo "${ECHO_T}$ac_header_compiler" >&6; }
   21230 
   21231 # Is the header present?
   21232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   21233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   21234 cat >conftest.$ac_ext <<_ACEOF
   21235 /* confdefs.h.  */
   21236 _ACEOF
   21237 cat confdefs.h >>conftest.$ac_ext
   21238 cat >>conftest.$ac_ext <<_ACEOF
   21239 /* end confdefs.h.  */
   21240 #include <$ac_header>
   21241 _ACEOF
   21242 if { (ac_try="$ac_cpp conftest.$ac_ext"
   21243 case "(($ac_try" in
   21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21245   *) ac_try_echo=$ac_try;;
   21246 esac
   21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   21249   ac_status=$?
   21250   grep -v '^ *+' conftest.er1 >conftest.err
   21251   rm -f conftest.er1
   21252   cat conftest.err >&5
   21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21254   (exit $ac_status); } >/dev/null && {
   21255 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   21256 	 test ! -s conftest.err
   21257        }; then
   21258   ac_header_preproc=yes
   21259 else
   21260   echo "$as_me: failed program was:" >&5
   21261 sed 's/^/| /' conftest.$ac_ext >&5
   21262 
   21263   ac_header_preproc=no
   21264 fi
   21265 
   21266 rm -f conftest.err conftest.$ac_ext
   21267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   21268 echo "${ECHO_T}$ac_header_preproc" >&6; }
   21269 
   21270 # So?  What about this header?
   21271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   21272   yes:no: )
   21273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   21274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   21275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   21276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   21277     ac_header_preproc=yes
   21278     ;;
   21279   no:yes:* )
   21280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   21281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   21282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   21283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   21284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   21285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   21286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   21287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   21288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   21289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   21290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   21291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   21292 
   21293     ;;
   21294 esac
   21295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21298   echo $ECHO_N "(cached) $ECHO_C" >&6
   21299 else
   21300   eval "$as_ac_Header=\$ac_header_preproc"
   21301 fi
   21302 ac_res=`eval echo '${'$as_ac_Header'}'`
   21303 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21304 echo "${ECHO_T}$ac_res" >&6; }
   21305 
   21306 fi
   21307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   21308   cat >>confdefs.h <<_ACEOF
   21309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21310 _ACEOF
   21311  break
   21312 fi
   21313 
   21314 done
   21315 
   21316 
   21317 
   21318 
   21319 for ac_func in strchr index
   21320 do
   21321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21325   echo $ECHO_N "(cached) $ECHO_C" >&6
   21326 else
   21327   cat >conftest.$ac_ext <<_ACEOF
   21328 /* confdefs.h.  */
   21329 _ACEOF
   21330 cat confdefs.h >>conftest.$ac_ext
   21331 cat >>conftest.$ac_ext <<_ACEOF
   21332 /* end confdefs.h.  */
   21333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21335 #define $ac_func innocuous_$ac_func
   21336 
   21337 /* System header to define __stub macros and hopefully few prototypes,
   21338     which can conflict with char $ac_func (); below.
   21339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21340     <limits.h> exists even on freestanding compilers.  */
   21341 
   21342 #ifdef __STDC__
   21343 # include <limits.h>
   21344 #else
   21345 # include <assert.h>
   21346 #endif
   21347 
   21348 #undef $ac_func
   21349 
   21350 /* Override any GCC internal prototype to avoid an error.
   21351    Use char because int might match the return type of a GCC
   21352    builtin and then its argument prototype would still apply.  */
   21353 #ifdef __cplusplus
   21354 extern "C"
   21355 #endif
   21356 char $ac_func ();
   21357 /* The GNU C library defines this for functions which it implements
   21358     to always fail with ENOSYS.  Some functions are actually named
   21359     something starting with __ and the normal name is an alias.  */
   21360 #if defined __stub_$ac_func || defined __stub___$ac_func
   21361 choke me
   21362 #endif
   21363 
   21364 int
   21365 main ()
   21366 {
   21367 return $ac_func ();
   21368   ;
   21369   return 0;
   21370 }
   21371 _ACEOF
   21372 rm -f conftest.$ac_objext conftest$ac_exeext
   21373 if { (ac_try="$ac_link"
   21374 case "(($ac_try" in
   21375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21376   *) ac_try_echo=$ac_try;;
   21377 esac
   21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21379   (eval "$ac_link") 2>conftest.er1
   21380   ac_status=$?
   21381   grep -v '^ *+' conftest.er1 >conftest.err
   21382   rm -f conftest.er1
   21383   cat conftest.err >&5
   21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21385   (exit $ac_status); } && {
   21386 	 test -z "$ac_c_werror_flag" ||
   21387 	 test ! -s conftest.err
   21388        } && test -s conftest$ac_exeext &&
   21389        $as_test_x conftest$ac_exeext; then
   21390   eval "$as_ac_var=yes"
   21391 else
   21392   echo "$as_me: failed program was:" >&5
   21393 sed 's/^/| /' conftest.$ac_ext >&5
   21394 
   21395 	eval "$as_ac_var=no"
   21396 fi
   21397 
   21398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21399       conftest$ac_exeext conftest.$ac_ext
   21400 fi
   21401 ac_res=`eval echo '${'$as_ac_var'}'`
   21402 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21403 echo "${ECHO_T}$ac_res" >&6; }
   21404 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21405   cat >>confdefs.h <<_ACEOF
   21406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21407 _ACEOF
   21408  break
   21409 fi
   21410 done
   21411 
   21412 
   21413 
   21414 for ac_func in strrchr rindex
   21415 do
   21416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21420   echo $ECHO_N "(cached) $ECHO_C" >&6
   21421 else
   21422   cat >conftest.$ac_ext <<_ACEOF
   21423 /* confdefs.h.  */
   21424 _ACEOF
   21425 cat confdefs.h >>conftest.$ac_ext
   21426 cat >>conftest.$ac_ext <<_ACEOF
   21427 /* end confdefs.h.  */
   21428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21430 #define $ac_func innocuous_$ac_func
   21431 
   21432 /* System header to define __stub macros and hopefully few prototypes,
   21433     which can conflict with char $ac_func (); below.
   21434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21435     <limits.h> exists even on freestanding compilers.  */
   21436 
   21437 #ifdef __STDC__
   21438 # include <limits.h>
   21439 #else
   21440 # include <assert.h>
   21441 #endif
   21442 
   21443 #undef $ac_func
   21444 
   21445 /* Override any GCC internal prototype to avoid an error.
   21446    Use char because int might match the return type of a GCC
   21447    builtin and then its argument prototype would still apply.  */
   21448 #ifdef __cplusplus
   21449 extern "C"
   21450 #endif
   21451 char $ac_func ();
   21452 /* The GNU C library defines this for functions which it implements
   21453     to always fail with ENOSYS.  Some functions are actually named
   21454     something starting with __ and the normal name is an alias.  */
   21455 #if defined __stub_$ac_func || defined __stub___$ac_func
   21456 choke me
   21457 #endif
   21458 
   21459 int
   21460 main ()
   21461 {
   21462 return $ac_func ();
   21463   ;
   21464   return 0;
   21465 }
   21466 _ACEOF
   21467 rm -f conftest.$ac_objext conftest$ac_exeext
   21468 if { (ac_try="$ac_link"
   21469 case "(($ac_try" in
   21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21471   *) ac_try_echo=$ac_try;;
   21472 esac
   21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21474   (eval "$ac_link") 2>conftest.er1
   21475   ac_status=$?
   21476   grep -v '^ *+' conftest.er1 >conftest.err
   21477   rm -f conftest.er1
   21478   cat conftest.err >&5
   21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21480   (exit $ac_status); } && {
   21481 	 test -z "$ac_c_werror_flag" ||
   21482 	 test ! -s conftest.err
   21483        } && test -s conftest$ac_exeext &&
   21484        $as_test_x conftest$ac_exeext; then
   21485   eval "$as_ac_var=yes"
   21486 else
   21487   echo "$as_me: failed program was:" >&5
   21488 sed 's/^/| /' conftest.$ac_ext >&5
   21489 
   21490 	eval "$as_ac_var=no"
   21491 fi
   21492 
   21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21494       conftest$ac_exeext conftest.$ac_ext
   21495 fi
   21496 ac_res=`eval echo '${'$as_ac_var'}'`
   21497 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21498 echo "${ECHO_T}$ac_res" >&6; }
   21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21500   cat >>confdefs.h <<_ACEOF
   21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21502 _ACEOF
   21503  break
   21504 fi
   21505 done
   21506 
   21507 
   21508 
   21509 for ac_func in memcpy bcopy
   21510 do
   21511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21515   echo $ECHO_N "(cached) $ECHO_C" >&6
   21516 else
   21517   cat >conftest.$ac_ext <<_ACEOF
   21518 /* confdefs.h.  */
   21519 _ACEOF
   21520 cat confdefs.h >>conftest.$ac_ext
   21521 cat >>conftest.$ac_ext <<_ACEOF
   21522 /* end confdefs.h.  */
   21523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21525 #define $ac_func innocuous_$ac_func
   21526 
   21527 /* System header to define __stub macros and hopefully few prototypes,
   21528     which can conflict with char $ac_func (); below.
   21529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21530     <limits.h> exists even on freestanding compilers.  */
   21531 
   21532 #ifdef __STDC__
   21533 # include <limits.h>
   21534 #else
   21535 # include <assert.h>
   21536 #endif
   21537 
   21538 #undef $ac_func
   21539 
   21540 /* Override any GCC internal prototype to avoid an error.
   21541    Use char because int might match the return type of a GCC
   21542    builtin and then its argument prototype would still apply.  */
   21543 #ifdef __cplusplus
   21544 extern "C"
   21545 #endif
   21546 char $ac_func ();
   21547 /* The GNU C library defines this for functions which it implements
   21548     to always fail with ENOSYS.  Some functions are actually named
   21549     something starting with __ and the normal name is an alias.  */
   21550 #if defined __stub_$ac_func || defined __stub___$ac_func
   21551 choke me
   21552 #endif
   21553 
   21554 int
   21555 main ()
   21556 {
   21557 return $ac_func ();
   21558   ;
   21559   return 0;
   21560 }
   21561 _ACEOF
   21562 rm -f conftest.$ac_objext conftest$ac_exeext
   21563 if { (ac_try="$ac_link"
   21564 case "(($ac_try" in
   21565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21566   *) ac_try_echo=$ac_try;;
   21567 esac
   21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21569   (eval "$ac_link") 2>conftest.er1
   21570   ac_status=$?
   21571   grep -v '^ *+' conftest.er1 >conftest.err
   21572   rm -f conftest.er1
   21573   cat conftest.err >&5
   21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21575   (exit $ac_status); } && {
   21576 	 test -z "$ac_c_werror_flag" ||
   21577 	 test ! -s conftest.err
   21578        } && test -s conftest$ac_exeext &&
   21579        $as_test_x conftest$ac_exeext; then
   21580   eval "$as_ac_var=yes"
   21581 else
   21582   echo "$as_me: failed program was:" >&5
   21583 sed 's/^/| /' conftest.$ac_ext >&5
   21584 
   21585 	eval "$as_ac_var=no"
   21586 fi
   21587 
   21588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21589       conftest$ac_exeext conftest.$ac_ext
   21590 fi
   21591 ac_res=`eval echo '${'$as_ac_var'}'`
   21592 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21593 echo "${ECHO_T}$ac_res" >&6; }
   21594 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21595   cat >>confdefs.h <<_ACEOF
   21596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21597 _ACEOF
   21598  break
   21599 fi
   21600 done
   21601 
   21602 
   21603 
   21604 for ac_func in memmove strcmp
   21605 do
   21606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21610   echo $ECHO_N "(cached) $ECHO_C" >&6
   21611 else
   21612   cat >conftest.$ac_ext <<_ACEOF
   21613 /* confdefs.h.  */
   21614 _ACEOF
   21615 cat confdefs.h >>conftest.$ac_ext
   21616 cat >>conftest.$ac_ext <<_ACEOF
   21617 /* end confdefs.h.  */
   21618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21620 #define $ac_func innocuous_$ac_func
   21621 
   21622 /* System header to define __stub macros and hopefully few prototypes,
   21623     which can conflict with char $ac_func (); below.
   21624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21625     <limits.h> exists even on freestanding compilers.  */
   21626 
   21627 #ifdef __STDC__
   21628 # include <limits.h>
   21629 #else
   21630 # include <assert.h>
   21631 #endif
   21632 
   21633 #undef $ac_func
   21634 
   21635 /* Override any GCC internal prototype to avoid an error.
   21636    Use char because int might match the return type of a GCC
   21637    builtin and then its argument prototype would still apply.  */
   21638 #ifdef __cplusplus
   21639 extern "C"
   21640 #endif
   21641 char $ac_func ();
   21642 /* The GNU C library defines this for functions which it implements
   21643     to always fail with ENOSYS.  Some functions are actually named
   21644     something starting with __ and the normal name is an alias.  */
   21645 #if defined __stub_$ac_func || defined __stub___$ac_func
   21646 choke me
   21647 #endif
   21648 
   21649 int
   21650 main ()
   21651 {
   21652 return $ac_func ();
   21653   ;
   21654   return 0;
   21655 }
   21656 _ACEOF
   21657 rm -f conftest.$ac_objext conftest$ac_exeext
   21658 if { (ac_try="$ac_link"
   21659 case "(($ac_try" in
   21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21661   *) ac_try_echo=$ac_try;;
   21662 esac
   21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21664   (eval "$ac_link") 2>conftest.er1
   21665   ac_status=$?
   21666   grep -v '^ *+' conftest.er1 >conftest.err
   21667   rm -f conftest.er1
   21668   cat conftest.err >&5
   21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21670   (exit $ac_status); } && {
   21671 	 test -z "$ac_c_werror_flag" ||
   21672 	 test ! -s conftest.err
   21673        } && test -s conftest$ac_exeext &&
   21674        $as_test_x conftest$ac_exeext; then
   21675   eval "$as_ac_var=yes"
   21676 else
   21677   echo "$as_me: failed program was:" >&5
   21678 sed 's/^/| /' conftest.$ac_ext >&5
   21679 
   21680 	eval "$as_ac_var=no"
   21681 fi
   21682 
   21683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21684       conftest$ac_exeext conftest.$ac_ext
   21685 fi
   21686 ac_res=`eval echo '${'$as_ac_var'}'`
   21687 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21688 echo "${ECHO_T}$ac_res" >&6; }
   21689 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21690   cat >>confdefs.h <<_ACEOF
   21691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21692 _ACEOF
   21693 
   21694 fi
   21695 done
   21696 
   21697 
   21698 
   21699 
   21700 for ac_func in closedir opendir readdir
   21701 do
   21702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21706   echo $ECHO_N "(cached) $ECHO_C" >&6
   21707 else
   21708   cat >conftest.$ac_ext <<_ACEOF
   21709 /* confdefs.h.  */
   21710 _ACEOF
   21711 cat confdefs.h >>conftest.$ac_ext
   21712 cat >>conftest.$ac_ext <<_ACEOF
   21713 /* end confdefs.h.  */
   21714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21716 #define $ac_func innocuous_$ac_func
   21717 
   21718 /* System header to define __stub macros and hopefully few prototypes,
   21719     which can conflict with char $ac_func (); below.
   21720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21721     <limits.h> exists even on freestanding compilers.  */
   21722 
   21723 #ifdef __STDC__
   21724 # include <limits.h>
   21725 #else
   21726 # include <assert.h>
   21727 #endif
   21728 
   21729 #undef $ac_func
   21730 
   21731 /* Override any GCC internal prototype to avoid an error.
   21732    Use char because int might match the return type of a GCC
   21733    builtin and then its argument prototype would still apply.  */
   21734 #ifdef __cplusplus
   21735 extern "C"
   21736 #endif
   21737 char $ac_func ();
   21738 /* The GNU C library defines this for functions which it implements
   21739     to always fail with ENOSYS.  Some functions are actually named
   21740     something starting with __ and the normal name is an alias.  */
   21741 #if defined __stub_$ac_func || defined __stub___$ac_func
   21742 choke me
   21743 #endif
   21744 
   21745 int
   21746 main ()
   21747 {
   21748 return $ac_func ();
   21749   ;
   21750   return 0;
   21751 }
   21752 _ACEOF
   21753 rm -f conftest.$ac_objext conftest$ac_exeext
   21754 if { (ac_try="$ac_link"
   21755 case "(($ac_try" in
   21756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21757   *) ac_try_echo=$ac_try;;
   21758 esac
   21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21760   (eval "$ac_link") 2>conftest.er1
   21761   ac_status=$?
   21762   grep -v '^ *+' conftest.er1 >conftest.err
   21763   rm -f conftest.er1
   21764   cat conftest.err >&5
   21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21766   (exit $ac_status); } && {
   21767 	 test -z "$ac_c_werror_flag" ||
   21768 	 test ! -s conftest.err
   21769        } && test -s conftest$ac_exeext &&
   21770        $as_test_x conftest$ac_exeext; then
   21771   eval "$as_ac_var=yes"
   21772 else
   21773   echo "$as_me: failed program was:" >&5
   21774 sed 's/^/| /' conftest.$ac_ext >&5
   21775 
   21776 	eval "$as_ac_var=no"
   21777 fi
   21778 
   21779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21780       conftest$ac_exeext conftest.$ac_ext
   21781 fi
   21782 ac_res=`eval echo '${'$as_ac_var'}'`
   21783 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21784 echo "${ECHO_T}$ac_res" >&6; }
   21785 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21786   cat >>confdefs.h <<_ACEOF
   21787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21788 _ACEOF
   21789 
   21790 fi
   21791 done
   21792 
   21793 
   21794 
   21795 { echo "$as_me:$LINENO: checking for X" >&5
   21796 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
   21797 
   21798 
   21799 # Check whether --with-x was given.
   21800 if test "${with_x+set}" = set; then
   21801   withval=$with_x;
   21802 fi
   21803 
   21804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   21805 if test "x$with_x" = xno; then
   21806   # The user explicitly disabled X.
   21807   have_x=disabled
   21808 else
   21809   case $x_includes,$x_libraries in #(
   21810     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
   21811 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
   21812    { (exit 1); exit 1; }; };; #(
   21813     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
   21814   echo $ECHO_N "(cached) $ECHO_C" >&6
   21815 else
   21816   # One or both of the vars are not set, and there is no cached value.
   21817 ac_x_includes=no ac_x_libraries=no
   21818 rm -f -r conftest.dir
   21819 if mkdir conftest.dir; then
   21820   cd conftest.dir
   21821   cat >Imakefile <<'_ACEOF'
   21822 incroot:
   21823 	@echo incroot='${INCROOT}'
   21824 usrlibdir:
   21825 	@echo usrlibdir='${USRLIBDIR}'
   21826 libdir:
   21827 	@echo libdir='${LIBDIR}'
   21828 _ACEOF
   21829   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   21830     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   21831     for ac_var in incroot usrlibdir libdir; do
   21832       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   21833     done
   21834     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   21835     for ac_extension in a so sl; do
   21836       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   21837 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   21838 	ac_im_usrlibdir=$ac_im_libdir; break
   21839       fi
   21840     done
   21841     # Screen out bogus values from the imake configuration.  They are
   21842     # bogus both because they are the default anyway, and because
   21843     # using them would break gcc on systems where it needs fixed includes.
   21844     case $ac_im_incroot in
   21845 	/usr/include) ac_x_includes= ;;
   21846 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   21847     esac
   21848     case $ac_im_usrlibdir in
   21849 	/usr/lib | /lib) ;;
   21850 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   21851     esac
   21852   fi
   21853   cd ..
   21854   rm -f -r conftest.dir
   21855 fi
   21856 
   21857 # Standard set of common directories for X headers.
   21858 # Check X11 before X11Rn because it is often a symlink to the current release.
   21859 ac_x_header_dirs='
   21860 /usr/X11/include
   21861 /usr/X11R6/include
   21862 /usr/X11R5/include
   21863 /usr/X11R4/include
   21864 
   21865 /usr/include/X11
   21866 /usr/include/X11R6
   21867 /usr/include/X11R5
   21868 /usr/include/X11R4
   21869 
   21870 /usr/local/X11/include
   21871 /usr/local/X11R6/include
   21872 /usr/local/X11R5/include
   21873 /usr/local/X11R4/include
   21874 
   21875 /usr/local/include/X11
   21876 /usr/local/include/X11R6
   21877 /usr/local/include/X11R5
   21878 /usr/local/include/X11R4
   21879 
   21880 /usr/X386/include
   21881 /usr/x386/include
   21882 /usr/XFree86/include/X11
   21883 
   21884 /usr/include
   21885 /usr/local/include
   21886 /usr/unsupported/include
   21887 /usr/athena/include
   21888 /usr/local/x11r5/include
   21889 /usr/lpp/Xamples/include
   21890 
   21891 /usr/openwin/include
   21892 /usr/openwin/share/include'
   21893 
   21894 if test "$ac_x_includes" = no; then
   21895   # Guess where to find include files, by looking for Xlib.h.
   21896   # First, try using that file with no special directory specified.
   21897   cat >conftest.$ac_ext <<_ACEOF
   21898 /* confdefs.h.  */
   21899 _ACEOF
   21900 cat confdefs.h >>conftest.$ac_ext
   21901 cat >>conftest.$ac_ext <<_ACEOF
   21902 /* end confdefs.h.  */
   21903 #include <X11/Xlib.h>
   21904 _ACEOF
   21905 if { (ac_try="$ac_cpp conftest.$ac_ext"
   21906 case "(($ac_try" in
   21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21908   *) ac_try_echo=$ac_try;;
   21909 esac
   21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   21912   ac_status=$?
   21913   grep -v '^ *+' conftest.er1 >conftest.err
   21914   rm -f conftest.er1
   21915   cat conftest.err >&5
   21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21917   (exit $ac_status); } >/dev/null && {
   21918 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   21919 	 test ! -s conftest.err
   21920        }; then
   21921   # We can compile using X headers with no special include directory.
   21922 ac_x_includes=
   21923 else
   21924   echo "$as_me: failed program was:" >&5
   21925 sed 's/^/| /' conftest.$ac_ext >&5
   21926 
   21927   for ac_dir in $ac_x_header_dirs; do
   21928   if test -r "$ac_dir/X11/Xlib.h"; then
   21929     ac_x_includes=$ac_dir
   21930     break
   21931   fi
   21932 done
   21933 fi
   21934 
   21935 rm -f conftest.err conftest.$ac_ext
   21936 fi # $ac_x_includes = no
   21937 
   21938 if test "$ac_x_libraries" = no; then
   21939   # Check for the libraries.
   21940   # See if we find them without any special options.
   21941   # Don't add to $LIBS permanently.
   21942   ac_save_LIBS=$LIBS
   21943   LIBS="-lX11 $LIBS"
   21944   cat >conftest.$ac_ext <<_ACEOF
   21945 /* confdefs.h.  */
   21946 _ACEOF
   21947 cat confdefs.h >>conftest.$ac_ext
   21948 cat >>conftest.$ac_ext <<_ACEOF
   21949 /* end confdefs.h.  */
   21950 #include <X11/Xlib.h>
   21951 int
   21952 main ()
   21953 {
   21954 XrmInitialize ()
   21955   ;
   21956   return 0;
   21957 }
   21958 _ACEOF
   21959 rm -f conftest.$ac_objext conftest$ac_exeext
   21960 if { (ac_try="$ac_link"
   21961 case "(($ac_try" in
   21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21963   *) ac_try_echo=$ac_try;;
   21964 esac
   21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21966   (eval "$ac_link") 2>conftest.er1
   21967   ac_status=$?
   21968   grep -v '^ *+' conftest.er1 >conftest.err
   21969   rm -f conftest.er1
   21970   cat conftest.err >&5
   21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21972   (exit $ac_status); } && {
   21973 	 test -z "$ac_c_werror_flag" ||
   21974 	 test ! -s conftest.err
   21975        } && test -s conftest$ac_exeext &&
   21976        $as_test_x conftest$ac_exeext; then
   21977   LIBS=$ac_save_LIBS
   21978 # We can link X programs with no special library path.
   21979 ac_x_libraries=
   21980 else
   21981   echo "$as_me: failed program was:" >&5
   21982 sed 's/^/| /' conftest.$ac_ext >&5
   21983 
   21984 	LIBS=$ac_save_LIBS
   21985 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   21986 do
   21987   # Don't even attempt the hair of trying to link an X program!
   21988   for ac_extension in a so sl; do
   21989     if test -r "$ac_dir/libX11.$ac_extension"; then
   21990       ac_x_libraries=$ac_dir
   21991       break 2
   21992     fi
   21993   done
   21994 done
   21995 fi
   21996 
   21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21998       conftest$ac_exeext conftest.$ac_ext
   21999 fi # $ac_x_libraries = no
   22000 
   22001 case $ac_x_includes,$ac_x_libraries in #(
   22002   no,* | *,no | *\'*)
   22003     # Didn't find X, or a directory has "'" in its name.
   22004     ac_cv_have_x="have_x=no";; #(
   22005   *)
   22006     # Record where we found X for the cache.
   22007     ac_cv_have_x="have_x=yes\
   22008 	ac_x_includes='$ac_x_includes'\
   22009 	ac_x_libraries='$ac_x_libraries'"
   22010 esac
   22011 fi
   22012 ;; #(
   22013     *) have_x=yes;;
   22014   esac
   22015   eval "$ac_cv_have_x"
   22016 fi # $with_x != no
   22017 
   22018 if test "$have_x" != yes; then
   22019   { echo "$as_me:$LINENO: result: $have_x" >&5
   22020 echo "${ECHO_T}$have_x" >&6; }
   22021   no_x=yes
   22022 else
   22023   # If each of the values was on the command line, it overrides each guess.
   22024   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   22025   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   22026   # Update the cache value to reflect the command line values.
   22027   ac_cv_have_x="have_x=yes\
   22028 	ac_x_includes='$x_includes'\
   22029 	ac_x_libraries='$x_libraries'"
   22030   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
   22031 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
   22032 fi
   22033 
   22034 if test "$no_x" = yes; then
   22035   # Not all programs may use this symbol, but it does not hurt to define it.
   22036 
   22037 cat >>confdefs.h <<\_ACEOF
   22038 #define X_DISPLAY_MISSING 1
   22039 _ACEOF
   22040 
   22041   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   22042 else
   22043   if test -n "$x_includes"; then
   22044     X_CFLAGS="$X_CFLAGS -I$x_includes"
   22045   fi
   22046 
   22047   # It would also be nice to do this for all -L options, not just this one.
   22048   if test -n "$x_libraries"; then
   22049     X_LIBS="$X_LIBS -L$x_libraries"
   22050     # For Solaris; some versions of Sun CC require a space after -R and
   22051     # others require no space.  Words are not sufficient . . . .
   22052     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
   22053 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
   22054     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   22055     ac_xsave_c_werror_flag=$ac_c_werror_flag
   22056     ac_c_werror_flag=yes
   22057     cat >conftest.$ac_ext <<_ACEOF
   22058 /* confdefs.h.  */
   22059 _ACEOF
   22060 cat confdefs.h >>conftest.$ac_ext
   22061 cat >>conftest.$ac_ext <<_ACEOF
   22062 /* end confdefs.h.  */
   22063 
   22064 int
   22065 main ()
   22066 {
   22067 
   22068   ;
   22069   return 0;
   22070 }
   22071 _ACEOF
   22072 rm -f conftest.$ac_objext conftest$ac_exeext
   22073 if { (ac_try="$ac_link"
   22074 case "(($ac_try" in
   22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22076   *) ac_try_echo=$ac_try;;
   22077 esac
   22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22079   (eval "$ac_link") 2>conftest.er1
   22080   ac_status=$?
   22081   grep -v '^ *+' conftest.er1 >conftest.err
   22082   rm -f conftest.er1
   22083   cat conftest.err >&5
   22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22085   (exit $ac_status); } && {
   22086 	 test -z "$ac_c_werror_flag" ||
   22087 	 test ! -s conftest.err
   22088        } && test -s conftest$ac_exeext &&
   22089        $as_test_x conftest$ac_exeext; then
   22090   { echo "$as_me:$LINENO: result: no" >&5
   22091 echo "${ECHO_T}no" >&6; }
   22092        X_LIBS="$X_LIBS -R$x_libraries"
   22093 else
   22094   echo "$as_me: failed program was:" >&5
   22095 sed 's/^/| /' conftest.$ac_ext >&5
   22096 
   22097 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   22098        cat >conftest.$ac_ext <<_ACEOF
   22099 /* confdefs.h.  */
   22100 _ACEOF
   22101 cat confdefs.h >>conftest.$ac_ext
   22102 cat >>conftest.$ac_ext <<_ACEOF
   22103 /* end confdefs.h.  */
   22104 
   22105 int
   22106 main ()
   22107 {
   22108 
   22109   ;
   22110   return 0;
   22111 }
   22112 _ACEOF
   22113 rm -f conftest.$ac_objext conftest$ac_exeext
   22114 if { (ac_try="$ac_link"
   22115 case "(($ac_try" in
   22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22117   *) ac_try_echo=$ac_try;;
   22118 esac
   22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22120   (eval "$ac_link") 2>conftest.er1
   22121   ac_status=$?
   22122   grep -v '^ *+' conftest.er1 >conftest.err
   22123   rm -f conftest.er1
   22124   cat conftest.err >&5
   22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22126   (exit $ac_status); } && {
   22127 	 test -z "$ac_c_werror_flag" ||
   22128 	 test ! -s conftest.err
   22129        } && test -s conftest$ac_exeext &&
   22130        $as_test_x conftest$ac_exeext; then
   22131   { echo "$as_me:$LINENO: result: yes" >&5
   22132 echo "${ECHO_T}yes" >&6; }
   22133 	  X_LIBS="$X_LIBS -R $x_libraries"
   22134 else
   22135   echo "$as_me: failed program was:" >&5
   22136 sed 's/^/| /' conftest.$ac_ext >&5
   22137 
   22138 	{ echo "$as_me:$LINENO: result: neither works" >&5
   22139 echo "${ECHO_T}neither works" >&6; }
   22140 fi
   22141 
   22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22143       conftest$ac_exeext conftest.$ac_ext
   22144 fi
   22145 
   22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22147       conftest$ac_exeext conftest.$ac_ext
   22148     ac_c_werror_flag=$ac_xsave_c_werror_flag
   22149     LIBS=$ac_xsave_LIBS
   22150   fi
   22151 
   22152   # Check for system-dependent libraries X programs must link with.
   22153   # Do this before checking for the system-independent R6 libraries
   22154   # (-lICE), since we may need -lsocket or whatever for X linking.
   22155 
   22156   if test "$ISC" = yes; then
   22157     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   22158   else
   22159     # Martyn Johnson says this is needed for Ultrix, if the X
   22160     # libraries were built with DECnet support.  And Karl Berry says
   22161     # the Alpha needs dnet_stub (dnet does not exist).
   22162     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   22163     cat >conftest.$ac_ext <<_ACEOF
   22164 /* confdefs.h.  */
   22165 _ACEOF
   22166 cat confdefs.h >>conftest.$ac_ext
   22167 cat >>conftest.$ac_ext <<_ACEOF
   22168 /* end confdefs.h.  */
   22169 
   22170 /* Override any GCC internal prototype to avoid an error.
   22171    Use char because int might match the return type of a GCC
   22172    builtin and then its argument prototype would still apply.  */
   22173 #ifdef __cplusplus
   22174 extern "C"
   22175 #endif
   22176 char XOpenDisplay ();
   22177 int
   22178 main ()
   22179 {
   22180 return XOpenDisplay ();
   22181   ;
   22182   return 0;
   22183 }
   22184 _ACEOF
   22185 rm -f conftest.$ac_objext conftest$ac_exeext
   22186 if { (ac_try="$ac_link"
   22187 case "(($ac_try" in
   22188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22189   *) ac_try_echo=$ac_try;;
   22190 esac
   22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22192   (eval "$ac_link") 2>conftest.er1
   22193   ac_status=$?
   22194   grep -v '^ *+' conftest.er1 >conftest.err
   22195   rm -f conftest.er1
   22196   cat conftest.err >&5
   22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22198   (exit $ac_status); } && {
   22199 	 test -z "$ac_c_werror_flag" ||
   22200 	 test ! -s conftest.err
   22201        } && test -s conftest$ac_exeext &&
   22202        $as_test_x conftest$ac_exeext; then
   22203   :
   22204 else
   22205   echo "$as_me: failed program was:" >&5
   22206 sed 's/^/| /' conftest.$ac_ext >&5
   22207 
   22208 	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
   22209 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
   22210 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   22211   echo $ECHO_N "(cached) $ECHO_C" >&6
   22212 else
   22213   ac_check_lib_save_LIBS=$LIBS
   22214 LIBS="-ldnet  $LIBS"
   22215 cat >conftest.$ac_ext <<_ACEOF
   22216 /* confdefs.h.  */
   22217 _ACEOF
   22218 cat confdefs.h >>conftest.$ac_ext
   22219 cat >>conftest.$ac_ext <<_ACEOF
   22220 /* end confdefs.h.  */
   22221 
   22222 /* Override any GCC internal prototype to avoid an error.
   22223    Use char because int might match the return type of a GCC
   22224    builtin and then its argument prototype would still apply.  */
   22225 #ifdef __cplusplus
   22226 extern "C"
   22227 #endif
   22228 char dnet_ntoa ();
   22229 int
   22230 main ()
   22231 {
   22232 return dnet_ntoa ();
   22233   ;
   22234   return 0;
   22235 }
   22236 _ACEOF
   22237 rm -f conftest.$ac_objext conftest$ac_exeext
   22238 if { (ac_try="$ac_link"
   22239 case "(($ac_try" in
   22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22241   *) ac_try_echo=$ac_try;;
   22242 esac
   22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22244   (eval "$ac_link") 2>conftest.er1
   22245   ac_status=$?
   22246   grep -v '^ *+' conftest.er1 >conftest.err
   22247   rm -f conftest.er1
   22248   cat conftest.err >&5
   22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22250   (exit $ac_status); } && {
   22251 	 test -z "$ac_c_werror_flag" ||
   22252 	 test ! -s conftest.err
   22253        } && test -s conftest$ac_exeext &&
   22254        $as_test_x conftest$ac_exeext; then
   22255   ac_cv_lib_dnet_dnet_ntoa=yes
   22256 else
   22257   echo "$as_me: failed program was:" >&5
   22258 sed 's/^/| /' conftest.$ac_ext >&5
   22259 
   22260 	ac_cv_lib_dnet_dnet_ntoa=no
   22261 fi
   22262 
   22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22264       conftest$ac_exeext conftest.$ac_ext
   22265 LIBS=$ac_check_lib_save_LIBS
   22266 fi
   22267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   22268 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
   22269 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   22270   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   22271 fi
   22272 
   22273     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   22274       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
   22275 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
   22276 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   22277   echo $ECHO_N "(cached) $ECHO_C" >&6
   22278 else
   22279   ac_check_lib_save_LIBS=$LIBS
   22280 LIBS="-ldnet_stub  $LIBS"
   22281 cat >conftest.$ac_ext <<_ACEOF
   22282 /* confdefs.h.  */
   22283 _ACEOF
   22284 cat confdefs.h >>conftest.$ac_ext
   22285 cat >>conftest.$ac_ext <<_ACEOF
   22286 /* end confdefs.h.  */
   22287 
   22288 /* Override any GCC internal prototype to avoid an error.
   22289    Use char because int might match the return type of a GCC
   22290    builtin and then its argument prototype would still apply.  */
   22291 #ifdef __cplusplus
   22292 extern "C"
   22293 #endif
   22294 char dnet_ntoa ();
   22295 int
   22296 main ()
   22297 {
   22298 return dnet_ntoa ();
   22299   ;
   22300   return 0;
   22301 }
   22302 _ACEOF
   22303 rm -f conftest.$ac_objext conftest$ac_exeext
   22304 if { (ac_try="$ac_link"
   22305 case "(($ac_try" in
   22306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22307   *) ac_try_echo=$ac_try;;
   22308 esac
   22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22310   (eval "$ac_link") 2>conftest.er1
   22311   ac_status=$?
   22312   grep -v '^ *+' conftest.er1 >conftest.err
   22313   rm -f conftest.er1
   22314   cat conftest.err >&5
   22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22316   (exit $ac_status); } && {
   22317 	 test -z "$ac_c_werror_flag" ||
   22318 	 test ! -s conftest.err
   22319        } && test -s conftest$ac_exeext &&
   22320        $as_test_x conftest$ac_exeext; then
   22321   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   22322 else
   22323   echo "$as_me: failed program was:" >&5
   22324 sed 's/^/| /' conftest.$ac_ext >&5
   22325 
   22326 	ac_cv_lib_dnet_stub_dnet_ntoa=no
   22327 fi
   22328 
   22329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22330       conftest$ac_exeext conftest.$ac_ext
   22331 LIBS=$ac_check_lib_save_LIBS
   22332 fi
   22333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   22334 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
   22335 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   22336   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   22337 fi
   22338 
   22339     fi
   22340 fi
   22341 
   22342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22343       conftest$ac_exeext conftest.$ac_ext
   22344     LIBS="$ac_xsave_LIBS"
   22345 
   22346     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   22347     # to get the SysV transport functions.
   22348     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   22349     # needs -lnsl.
   22350     # The nsl library prevents programs from opening the X display
   22351     # on Irix 5.2, according to T.E. Dickey.
   22352     # The functions gethostbyname, getservbyname, and inet_addr are
   22353     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   22354     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
   22355 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
   22356 if test "${ac_cv_func_gethostbyname+set}" = set; then
   22357   echo $ECHO_N "(cached) $ECHO_C" >&6
   22358 else
   22359   cat >conftest.$ac_ext <<_ACEOF
   22360 /* confdefs.h.  */
   22361 _ACEOF
   22362 cat confdefs.h >>conftest.$ac_ext
   22363 cat >>conftest.$ac_ext <<_ACEOF
   22364 /* end confdefs.h.  */
   22365 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   22366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22367 #define gethostbyname innocuous_gethostbyname
   22368 
   22369 /* System header to define __stub macros and hopefully few prototypes,
   22370     which can conflict with char gethostbyname (); below.
   22371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22372     <limits.h> exists even on freestanding compilers.  */
   22373 
   22374 #ifdef __STDC__
   22375 # include <limits.h>
   22376 #else
   22377 # include <assert.h>
   22378 #endif
   22379 
   22380 #undef gethostbyname
   22381 
   22382 /* Override any GCC internal prototype to avoid an error.
   22383    Use char because int might match the return type of a GCC
   22384    builtin and then its argument prototype would still apply.  */
   22385 #ifdef __cplusplus
   22386 extern "C"
   22387 #endif
   22388 char gethostbyname ();
   22389 /* The GNU C library defines this for functions which it implements
   22390     to always fail with ENOSYS.  Some functions are actually named
   22391     something starting with __ and the normal name is an alias.  */
   22392 #if defined __stub_gethostbyname || defined __stub___gethostbyname
   22393 choke me
   22394 #endif
   22395 
   22396 int
   22397 main ()
   22398 {
   22399 return gethostbyname ();
   22400   ;
   22401   return 0;
   22402 }
   22403 _ACEOF
   22404 rm -f conftest.$ac_objext conftest$ac_exeext
   22405 if { (ac_try="$ac_link"
   22406 case "(($ac_try" in
   22407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22408   *) ac_try_echo=$ac_try;;
   22409 esac
   22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22411   (eval "$ac_link") 2>conftest.er1
   22412   ac_status=$?
   22413   grep -v '^ *+' conftest.er1 >conftest.err
   22414   rm -f conftest.er1
   22415   cat conftest.err >&5
   22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22417   (exit $ac_status); } && {
   22418 	 test -z "$ac_c_werror_flag" ||
   22419 	 test ! -s conftest.err
   22420        } && test -s conftest$ac_exeext &&
   22421        $as_test_x conftest$ac_exeext; then
   22422   ac_cv_func_gethostbyname=yes
   22423 else
   22424   echo "$as_me: failed program was:" >&5
   22425 sed 's/^/| /' conftest.$ac_ext >&5
   22426 
   22427 	ac_cv_func_gethostbyname=no
   22428 fi
   22429 
   22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22431       conftest$ac_exeext conftest.$ac_ext
   22432 fi
   22433 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
   22434 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
   22435 
   22436     if test $ac_cv_func_gethostbyname = no; then
   22437       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
   22438 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
   22439 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   22440   echo $ECHO_N "(cached) $ECHO_C" >&6
   22441 else
   22442   ac_check_lib_save_LIBS=$LIBS
   22443 LIBS="-lnsl  $LIBS"
   22444 cat >conftest.$ac_ext <<_ACEOF
   22445 /* confdefs.h.  */
   22446 _ACEOF
   22447 cat confdefs.h >>conftest.$ac_ext
   22448 cat >>conftest.$ac_ext <<_ACEOF
   22449 /* end confdefs.h.  */
   22450 
   22451 /* Override any GCC internal prototype to avoid an error.
   22452    Use char because int might match the return type of a GCC
   22453    builtin and then its argument prototype would still apply.  */
   22454 #ifdef __cplusplus
   22455 extern "C"
   22456 #endif
   22457 char gethostbyname ();
   22458 int
   22459 main ()
   22460 {
   22461 return gethostbyname ();
   22462   ;
   22463   return 0;
   22464 }
   22465 _ACEOF
   22466 rm -f conftest.$ac_objext conftest$ac_exeext
   22467 if { (ac_try="$ac_link"
   22468 case "(($ac_try" in
   22469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22470   *) ac_try_echo=$ac_try;;
   22471 esac
   22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22473   (eval "$ac_link") 2>conftest.er1
   22474   ac_status=$?
   22475   grep -v '^ *+' conftest.er1 >conftest.err
   22476   rm -f conftest.er1
   22477   cat conftest.err >&5
   22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22479   (exit $ac_status); } && {
   22480 	 test -z "$ac_c_werror_flag" ||
   22481 	 test ! -s conftest.err
   22482        } && test -s conftest$ac_exeext &&
   22483        $as_test_x conftest$ac_exeext; then
   22484   ac_cv_lib_nsl_gethostbyname=yes
   22485 else
   22486   echo "$as_me: failed program was:" >&5
   22487 sed 's/^/| /' conftest.$ac_ext >&5
   22488 
   22489 	ac_cv_lib_nsl_gethostbyname=no
   22490 fi
   22491 
   22492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22493       conftest$ac_exeext conftest.$ac_ext
   22494 LIBS=$ac_check_lib_save_LIBS
   22495 fi
   22496 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
   22497 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
   22498 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   22499   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   22500 fi
   22501 
   22502       if test $ac_cv_lib_nsl_gethostbyname = no; then
   22503 	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
   22504 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
   22505 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   22506   echo $ECHO_N "(cached) $ECHO_C" >&6
   22507 else
   22508   ac_check_lib_save_LIBS=$LIBS
   22509 LIBS="-lbsd  $LIBS"
   22510 cat >conftest.$ac_ext <<_ACEOF
   22511 /* confdefs.h.  */
   22512 _ACEOF
   22513 cat confdefs.h >>conftest.$ac_ext
   22514 cat >>conftest.$ac_ext <<_ACEOF
   22515 /* end confdefs.h.  */
   22516 
   22517 /* Override any GCC internal prototype to avoid an error.
   22518    Use char because int might match the return type of a GCC
   22519    builtin and then its argument prototype would still apply.  */
   22520 #ifdef __cplusplus
   22521 extern "C"
   22522 #endif
   22523 char gethostbyname ();
   22524 int
   22525 main ()
   22526 {
   22527 return gethostbyname ();
   22528   ;
   22529   return 0;
   22530 }
   22531 _ACEOF
   22532 rm -f conftest.$ac_objext conftest$ac_exeext
   22533 if { (ac_try="$ac_link"
   22534 case "(($ac_try" in
   22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22536   *) ac_try_echo=$ac_try;;
   22537 esac
   22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22539   (eval "$ac_link") 2>conftest.er1
   22540   ac_status=$?
   22541   grep -v '^ *+' conftest.er1 >conftest.err
   22542   rm -f conftest.er1
   22543   cat conftest.err >&5
   22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22545   (exit $ac_status); } && {
   22546 	 test -z "$ac_c_werror_flag" ||
   22547 	 test ! -s conftest.err
   22548        } && test -s conftest$ac_exeext &&
   22549        $as_test_x conftest$ac_exeext; then
   22550   ac_cv_lib_bsd_gethostbyname=yes
   22551 else
   22552   echo "$as_me: failed program was:" >&5
   22553 sed 's/^/| /' conftest.$ac_ext >&5
   22554 
   22555 	ac_cv_lib_bsd_gethostbyname=no
   22556 fi
   22557 
   22558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22559       conftest$ac_exeext conftest.$ac_ext
   22560 LIBS=$ac_check_lib_save_LIBS
   22561 fi
   22562 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
   22563 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
   22564 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   22565   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   22566 fi
   22567 
   22568       fi
   22569     fi
   22570 
   22571     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   22572     # socket/setsockopt and other routines are undefined under SCO ODT
   22573     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   22574     # on later versions), says Simon Leinen: it contains gethostby*
   22575     # variants that don't use the name server (or something).  -lsocket
   22576     # must be given before -lnsl if both are needed.  We assume that
   22577     # if connect needs -lnsl, so does gethostbyname.
   22578     { echo "$as_me:$LINENO: checking for connect" >&5
   22579 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
   22580 if test "${ac_cv_func_connect+set}" = set; then
   22581   echo $ECHO_N "(cached) $ECHO_C" >&6
   22582 else
   22583   cat >conftest.$ac_ext <<_ACEOF
   22584 /* confdefs.h.  */
   22585 _ACEOF
   22586 cat confdefs.h >>conftest.$ac_ext
   22587 cat >>conftest.$ac_ext <<_ACEOF
   22588 /* end confdefs.h.  */
   22589 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
   22590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22591 #define connect innocuous_connect
   22592 
   22593 /* System header to define __stub macros and hopefully few prototypes,
   22594     which can conflict with char connect (); below.
   22595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22596     <limits.h> exists even on freestanding compilers.  */
   22597 
   22598 #ifdef __STDC__
   22599 # include <limits.h>
   22600 #else
   22601 # include <assert.h>
   22602 #endif
   22603 
   22604 #undef connect
   22605 
   22606 /* Override any GCC internal prototype to avoid an error.
   22607    Use char because int might match the return type of a GCC
   22608    builtin and then its argument prototype would still apply.  */
   22609 #ifdef __cplusplus
   22610 extern "C"
   22611 #endif
   22612 char connect ();
   22613 /* The GNU C library defines this for functions which it implements
   22614     to always fail with ENOSYS.  Some functions are actually named
   22615     something starting with __ and the normal name is an alias.  */
   22616 #if defined __stub_connect || defined __stub___connect
   22617 choke me
   22618 #endif
   22619 
   22620 int
   22621 main ()
   22622 {
   22623 return connect ();
   22624   ;
   22625   return 0;
   22626 }
   22627 _ACEOF
   22628 rm -f conftest.$ac_objext conftest$ac_exeext
   22629 if { (ac_try="$ac_link"
   22630 case "(($ac_try" in
   22631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22632   *) ac_try_echo=$ac_try;;
   22633 esac
   22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22635   (eval "$ac_link") 2>conftest.er1
   22636   ac_status=$?
   22637   grep -v '^ *+' conftest.er1 >conftest.err
   22638   rm -f conftest.er1
   22639   cat conftest.err >&5
   22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22641   (exit $ac_status); } && {
   22642 	 test -z "$ac_c_werror_flag" ||
   22643 	 test ! -s conftest.err
   22644        } && test -s conftest$ac_exeext &&
   22645        $as_test_x conftest$ac_exeext; then
   22646   ac_cv_func_connect=yes
   22647 else
   22648   echo "$as_me: failed program was:" >&5
   22649 sed 's/^/| /' conftest.$ac_ext >&5
   22650 
   22651 	ac_cv_func_connect=no
   22652 fi
   22653 
   22654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22655       conftest$ac_exeext conftest.$ac_ext
   22656 fi
   22657 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
   22658 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
   22659 
   22660     if test $ac_cv_func_connect = no; then
   22661       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
   22662 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
   22663 if test "${ac_cv_lib_socket_connect+set}" = set; then
   22664   echo $ECHO_N "(cached) $ECHO_C" >&6
   22665 else
   22666   ac_check_lib_save_LIBS=$LIBS
   22667 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   22668 cat >conftest.$ac_ext <<_ACEOF
   22669 /* confdefs.h.  */
   22670 _ACEOF
   22671 cat confdefs.h >>conftest.$ac_ext
   22672 cat >>conftest.$ac_ext <<_ACEOF
   22673 /* end confdefs.h.  */
   22674 
   22675 /* Override any GCC internal prototype to avoid an error.
   22676    Use char because int might match the return type of a GCC
   22677    builtin and then its argument prototype would still apply.  */
   22678 #ifdef __cplusplus
   22679 extern "C"
   22680 #endif
   22681 char connect ();
   22682 int
   22683 main ()
   22684 {
   22685 return connect ();
   22686   ;
   22687   return 0;
   22688 }
   22689 _ACEOF
   22690 rm -f conftest.$ac_objext conftest$ac_exeext
   22691 if { (ac_try="$ac_link"
   22692 case "(($ac_try" in
   22693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22694   *) ac_try_echo=$ac_try;;
   22695 esac
   22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22697   (eval "$ac_link") 2>conftest.er1
   22698   ac_status=$?
   22699   grep -v '^ *+' conftest.er1 >conftest.err
   22700   rm -f conftest.er1
   22701   cat conftest.err >&5
   22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22703   (exit $ac_status); } && {
   22704 	 test -z "$ac_c_werror_flag" ||
   22705 	 test ! -s conftest.err
   22706        } && test -s conftest$ac_exeext &&
   22707        $as_test_x conftest$ac_exeext; then
   22708   ac_cv_lib_socket_connect=yes
   22709 else
   22710   echo "$as_me: failed program was:" >&5
   22711 sed 's/^/| /' conftest.$ac_ext >&5
   22712 
   22713 	ac_cv_lib_socket_connect=no
   22714 fi
   22715 
   22716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22717       conftest$ac_exeext conftest.$ac_ext
   22718 LIBS=$ac_check_lib_save_LIBS
   22719 fi
   22720 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
   22721 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
   22722 if test $ac_cv_lib_socket_connect = yes; then
   22723   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   22724 fi
   22725 
   22726     fi
   22727 
   22728     # Guillermo Gomez says -lposix is necessary on A/UX.
   22729     { echo "$as_me:$LINENO: checking for remove" >&5
   22730 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
   22731 if test "${ac_cv_func_remove+set}" = set; then
   22732   echo $ECHO_N "(cached) $ECHO_C" >&6
   22733 else
   22734   cat >conftest.$ac_ext <<_ACEOF
   22735 /* confdefs.h.  */
   22736 _ACEOF
   22737 cat confdefs.h >>conftest.$ac_ext
   22738 cat >>conftest.$ac_ext <<_ACEOF
   22739 /* end confdefs.h.  */
   22740 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
   22741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22742 #define remove innocuous_remove
   22743 
   22744 /* System header to define __stub macros and hopefully few prototypes,
   22745     which can conflict with char remove (); below.
   22746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22747     <limits.h> exists even on freestanding compilers.  */
   22748 
   22749 #ifdef __STDC__
   22750 # include <limits.h>
   22751 #else
   22752 # include <assert.h>
   22753 #endif
   22754 
   22755 #undef remove
   22756 
   22757 /* Override any GCC internal prototype to avoid an error.
   22758    Use char because int might match the return type of a GCC
   22759    builtin and then its argument prototype would still apply.  */
   22760 #ifdef __cplusplus
   22761 extern "C"
   22762 #endif
   22763 char remove ();
   22764 /* The GNU C library defines this for functions which it implements
   22765     to always fail with ENOSYS.  Some functions are actually named
   22766     something starting with __ and the normal name is an alias.  */
   22767 #if defined __stub_remove || defined __stub___remove
   22768 choke me
   22769 #endif
   22770 
   22771 int
   22772 main ()
   22773 {
   22774 return remove ();
   22775   ;
   22776   return 0;
   22777 }
   22778 _ACEOF
   22779 rm -f conftest.$ac_objext conftest$ac_exeext
   22780 if { (ac_try="$ac_link"
   22781 case "(($ac_try" in
   22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22783   *) ac_try_echo=$ac_try;;
   22784 esac
   22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22786   (eval "$ac_link") 2>conftest.er1
   22787   ac_status=$?
   22788   grep -v '^ *+' conftest.er1 >conftest.err
   22789   rm -f conftest.er1
   22790   cat conftest.err >&5
   22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22792   (exit $ac_status); } && {
   22793 	 test -z "$ac_c_werror_flag" ||
   22794 	 test ! -s conftest.err
   22795        } && test -s conftest$ac_exeext &&
   22796        $as_test_x conftest$ac_exeext; then
   22797   ac_cv_func_remove=yes
   22798 else
   22799   echo "$as_me: failed program was:" >&5
   22800 sed 's/^/| /' conftest.$ac_ext >&5
   22801 
   22802 	ac_cv_func_remove=no
   22803 fi
   22804 
   22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22806       conftest$ac_exeext conftest.$ac_ext
   22807 fi
   22808 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
   22809 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
   22810 
   22811     if test $ac_cv_func_remove = no; then
   22812       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
   22813 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
   22814 if test "${ac_cv_lib_posix_remove+set}" = set; then
   22815   echo $ECHO_N "(cached) $ECHO_C" >&6
   22816 else
   22817   ac_check_lib_save_LIBS=$LIBS
   22818 LIBS="-lposix  $LIBS"
   22819 cat >conftest.$ac_ext <<_ACEOF
   22820 /* confdefs.h.  */
   22821 _ACEOF
   22822 cat confdefs.h >>conftest.$ac_ext
   22823 cat >>conftest.$ac_ext <<_ACEOF
   22824 /* end confdefs.h.  */
   22825 
   22826 /* Override any GCC internal prototype to avoid an error.
   22827    Use char because int might match the return type of a GCC
   22828    builtin and then its argument prototype would still apply.  */
   22829 #ifdef __cplusplus
   22830 extern "C"
   22831 #endif
   22832 char remove ();
   22833 int
   22834 main ()
   22835 {
   22836 return remove ();
   22837   ;
   22838   return 0;
   22839 }
   22840 _ACEOF
   22841 rm -f conftest.$ac_objext conftest$ac_exeext
   22842 if { (ac_try="$ac_link"
   22843 case "(($ac_try" in
   22844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22845   *) ac_try_echo=$ac_try;;
   22846 esac
   22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22848   (eval "$ac_link") 2>conftest.er1
   22849   ac_status=$?
   22850   grep -v '^ *+' conftest.er1 >conftest.err
   22851   rm -f conftest.er1
   22852   cat conftest.err >&5
   22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22854   (exit $ac_status); } && {
   22855 	 test -z "$ac_c_werror_flag" ||
   22856 	 test ! -s conftest.err
   22857        } && test -s conftest$ac_exeext &&
   22858        $as_test_x conftest$ac_exeext; then
   22859   ac_cv_lib_posix_remove=yes
   22860 else
   22861   echo "$as_me: failed program was:" >&5
   22862 sed 's/^/| /' conftest.$ac_ext >&5
   22863 
   22864 	ac_cv_lib_posix_remove=no
   22865 fi
   22866 
   22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22868       conftest$ac_exeext conftest.$ac_ext
   22869 LIBS=$ac_check_lib_save_LIBS
   22870 fi
   22871 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
   22872 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
   22873 if test $ac_cv_lib_posix_remove = yes; then
   22874   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   22875 fi
   22876 
   22877     fi
   22878 
   22879     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   22880     { echo "$as_me:$LINENO: checking for shmat" >&5
   22881 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
   22882 if test "${ac_cv_func_shmat+set}" = set; then
   22883   echo $ECHO_N "(cached) $ECHO_C" >&6
   22884 else
   22885   cat >conftest.$ac_ext <<_ACEOF
   22886 /* confdefs.h.  */
   22887 _ACEOF
   22888 cat confdefs.h >>conftest.$ac_ext
   22889 cat >>conftest.$ac_ext <<_ACEOF
   22890 /* end confdefs.h.  */
   22891 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   22892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22893 #define shmat innocuous_shmat
   22894 
   22895 /* System header to define __stub macros and hopefully few prototypes,
   22896     which can conflict with char shmat (); below.
   22897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22898     <limits.h> exists even on freestanding compilers.  */
   22899 
   22900 #ifdef __STDC__
   22901 # include <limits.h>
   22902 #else
   22903 # include <assert.h>
   22904 #endif
   22905 
   22906 #undef shmat
   22907 
   22908 /* Override any GCC internal prototype to avoid an error.
   22909    Use char because int might match the return type of a GCC
   22910    builtin and then its argument prototype would still apply.  */
   22911 #ifdef __cplusplus
   22912 extern "C"
   22913 #endif
   22914 char shmat ();
   22915 /* The GNU C library defines this for functions which it implements
   22916     to always fail with ENOSYS.  Some functions are actually named
   22917     something starting with __ and the normal name is an alias.  */
   22918 #if defined __stub_shmat || defined __stub___shmat
   22919 choke me
   22920 #endif
   22921 
   22922 int
   22923 main ()
   22924 {
   22925 return shmat ();
   22926   ;
   22927   return 0;
   22928 }
   22929 _ACEOF
   22930 rm -f conftest.$ac_objext conftest$ac_exeext
   22931 if { (ac_try="$ac_link"
   22932 case "(($ac_try" in
   22933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22934   *) ac_try_echo=$ac_try;;
   22935 esac
   22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22937   (eval "$ac_link") 2>conftest.er1
   22938   ac_status=$?
   22939   grep -v '^ *+' conftest.er1 >conftest.err
   22940   rm -f conftest.er1
   22941   cat conftest.err >&5
   22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22943   (exit $ac_status); } && {
   22944 	 test -z "$ac_c_werror_flag" ||
   22945 	 test ! -s conftest.err
   22946        } && test -s conftest$ac_exeext &&
   22947        $as_test_x conftest$ac_exeext; then
   22948   ac_cv_func_shmat=yes
   22949 else
   22950   echo "$as_me: failed program was:" >&5
   22951 sed 's/^/| /' conftest.$ac_ext >&5
   22952 
   22953 	ac_cv_func_shmat=no
   22954 fi
   22955 
   22956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22957       conftest$ac_exeext conftest.$ac_ext
   22958 fi
   22959 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
   22960 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
   22961 
   22962     if test $ac_cv_func_shmat = no; then
   22963       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
   22964 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
   22965 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   22966   echo $ECHO_N "(cached) $ECHO_C" >&6
   22967 else
   22968   ac_check_lib_save_LIBS=$LIBS
   22969 LIBS="-lipc  $LIBS"
   22970 cat >conftest.$ac_ext <<_ACEOF
   22971 /* confdefs.h.  */
   22972 _ACEOF
   22973 cat confdefs.h >>conftest.$ac_ext
   22974 cat >>conftest.$ac_ext <<_ACEOF
   22975 /* end confdefs.h.  */
   22976 
   22977 /* Override any GCC internal prototype to avoid an error.
   22978    Use char because int might match the return type of a GCC
   22979    builtin and then its argument prototype would still apply.  */
   22980 #ifdef __cplusplus
   22981 extern "C"
   22982 #endif
   22983 char shmat ();
   22984 int
   22985 main ()
   22986 {
   22987 return shmat ();
   22988   ;
   22989   return 0;
   22990 }
   22991 _ACEOF
   22992 rm -f conftest.$ac_objext conftest$ac_exeext
   22993 if { (ac_try="$ac_link"
   22994 case "(($ac_try" in
   22995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22996   *) ac_try_echo=$ac_try;;
   22997 esac
   22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22999   (eval "$ac_link") 2>conftest.er1
   23000   ac_status=$?
   23001   grep -v '^ *+' conftest.er1 >conftest.err
   23002   rm -f conftest.er1
   23003   cat conftest.err >&5
   23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23005   (exit $ac_status); } && {
   23006 	 test -z "$ac_c_werror_flag" ||
   23007 	 test ! -s conftest.err
   23008        } && test -s conftest$ac_exeext &&
   23009        $as_test_x conftest$ac_exeext; then
   23010   ac_cv_lib_ipc_shmat=yes
   23011 else
   23012   echo "$as_me: failed program was:" >&5
   23013 sed 's/^/| /' conftest.$ac_ext >&5
   23014 
   23015 	ac_cv_lib_ipc_shmat=no
   23016 fi
   23017 
   23018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23019       conftest$ac_exeext conftest.$ac_ext
   23020 LIBS=$ac_check_lib_save_LIBS
   23021 fi
   23022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
   23023 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
   23024 if test $ac_cv_lib_ipc_shmat = yes; then
   23025   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   23026 fi
   23027 
   23028     fi
   23029   fi
   23030 
   23031   # Check for libraries that X11R6 Xt/Xaw programs need.
   23032   ac_save_LDFLAGS=$LDFLAGS
   23033   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   23034   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   23035   # check for ICE first), but we must link in the order -lSM -lICE or
   23036   # we get undefined symbols.  So assume we have SM if we have ICE.
   23037   # These have to be linked with before -lX11, unlike the other
   23038   # libraries we check for below, so use a different variable.
   23039   # John Interrante, Karl Berry
   23040   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
   23041 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
   23042 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   23043   echo $ECHO_N "(cached) $ECHO_C" >&6
   23044 else
   23045   ac_check_lib_save_LIBS=$LIBS
   23046 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   23047 cat >conftest.$ac_ext <<_ACEOF
   23048 /* confdefs.h.  */
   23049 _ACEOF
   23050 cat confdefs.h >>conftest.$ac_ext
   23051 cat >>conftest.$ac_ext <<_ACEOF
   23052 /* end confdefs.h.  */
   23053 
   23054 /* Override any GCC internal prototype to avoid an error.
   23055    Use char because int might match the return type of a GCC
   23056    builtin and then its argument prototype would still apply.  */
   23057 #ifdef __cplusplus
   23058 extern "C"
   23059 #endif
   23060 char IceConnectionNumber ();
   23061 int
   23062 main ()
   23063 {
   23064 return IceConnectionNumber ();
   23065   ;
   23066   return 0;
   23067 }
   23068 _ACEOF
   23069 rm -f conftest.$ac_objext conftest$ac_exeext
   23070 if { (ac_try="$ac_link"
   23071 case "(($ac_try" in
   23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23073   *) ac_try_echo=$ac_try;;
   23074 esac
   23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23076   (eval "$ac_link") 2>conftest.er1
   23077   ac_status=$?
   23078   grep -v '^ *+' conftest.er1 >conftest.err
   23079   rm -f conftest.er1
   23080   cat conftest.err >&5
   23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23082   (exit $ac_status); } && {
   23083 	 test -z "$ac_c_werror_flag" ||
   23084 	 test ! -s conftest.err
   23085        } && test -s conftest$ac_exeext &&
   23086        $as_test_x conftest$ac_exeext; then
   23087   ac_cv_lib_ICE_IceConnectionNumber=yes
   23088 else
   23089   echo "$as_me: failed program was:" >&5
   23090 sed 's/^/| /' conftest.$ac_ext >&5
   23091 
   23092 	ac_cv_lib_ICE_IceConnectionNumber=no
   23093 fi
   23094 
   23095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23096       conftest$ac_exeext conftest.$ac_ext
   23097 LIBS=$ac_check_lib_save_LIBS
   23098 fi
   23099 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   23100 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
   23101 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   23102   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   23103 fi
   23104 
   23105   LDFLAGS=$ac_save_LDFLAGS
   23106 
   23107 fi
   23108 
   23109 
   23110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   23111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   23112 if test "${ac_cv_c_bigendian+set}" = set; then
   23113   echo $ECHO_N "(cached) $ECHO_C" >&6
   23114 else
   23115   # See if sys/param.h defines the BYTE_ORDER macro.
   23116 cat >conftest.$ac_ext <<_ACEOF
   23117 /* confdefs.h.  */
   23118 _ACEOF
   23119 cat confdefs.h >>conftest.$ac_ext
   23120 cat >>conftest.$ac_ext <<_ACEOF
   23121 /* end confdefs.h.  */
   23122 #include <sys/types.h>
   23123 #include <sys/param.h>
   23124 
   23125 int
   23126 main ()
   23127 {
   23128 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
   23129 	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
   23130  bogus endian macros
   23131 #endif
   23132 
   23133   ;
   23134   return 0;
   23135 }
   23136 _ACEOF
   23137 rm -f conftest.$ac_objext
   23138 if { (ac_try="$ac_compile"
   23139 case "(($ac_try" in
   23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23141   *) ac_try_echo=$ac_try;;
   23142 esac
   23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23144   (eval "$ac_compile") 2>conftest.er1
   23145   ac_status=$?
   23146   grep -v '^ *+' conftest.er1 >conftest.err
   23147   rm -f conftest.er1
   23148   cat conftest.err >&5
   23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23150   (exit $ac_status); } && {
   23151 	 test -z "$ac_c_werror_flag" ||
   23152 	 test ! -s conftest.err
   23153        } && test -s conftest.$ac_objext; then
   23154   # It does; now see whether it defined to BIG_ENDIAN or not.
   23155 cat >conftest.$ac_ext <<_ACEOF
   23156 /* confdefs.h.  */
   23157 _ACEOF
   23158 cat confdefs.h >>conftest.$ac_ext
   23159 cat >>conftest.$ac_ext <<_ACEOF
   23160 /* end confdefs.h.  */
   23161 #include <sys/types.h>
   23162 #include <sys/param.h>
   23163 
   23164 int
   23165 main ()
   23166 {
   23167 #if BYTE_ORDER != BIG_ENDIAN
   23168  not big endian
   23169 #endif
   23170 
   23171   ;
   23172   return 0;
   23173 }
   23174 _ACEOF
   23175 rm -f conftest.$ac_objext
   23176 if { (ac_try="$ac_compile"
   23177 case "(($ac_try" in
   23178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23179   *) ac_try_echo=$ac_try;;
   23180 esac
   23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23182   (eval "$ac_compile") 2>conftest.er1
   23183   ac_status=$?
   23184   grep -v '^ *+' conftest.er1 >conftest.err
   23185   rm -f conftest.er1
   23186   cat conftest.err >&5
   23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23188   (exit $ac_status); } && {
   23189 	 test -z "$ac_c_werror_flag" ||
   23190 	 test ! -s conftest.err
   23191        } && test -s conftest.$ac_objext; then
   23192   ac_cv_c_bigendian=yes
   23193 else
   23194   echo "$as_me: failed program was:" >&5
   23195 sed 's/^/| /' conftest.$ac_ext >&5
   23196 
   23197 	ac_cv_c_bigendian=no
   23198 fi
   23199 
   23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23201 else
   23202   echo "$as_me: failed program was:" >&5
   23203 sed 's/^/| /' conftest.$ac_ext >&5
   23204 
   23205 	# It does not; compile a test program.
   23206 if test "$cross_compiling" = yes; then
   23207   # try to guess the endianness by grepping values into an object file
   23208   ac_cv_c_bigendian=unknown
   23209   cat >conftest.$ac_ext <<_ACEOF
   23210 /* confdefs.h.  */
   23211 _ACEOF
   23212 cat confdefs.h >>conftest.$ac_ext
   23213 cat >>conftest.$ac_ext <<_ACEOF
   23214 /* end confdefs.h.  */
   23215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   23216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   23217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   23218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   23219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   23220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   23221 int
   23222 main ()
   23223 {
   23224  _ascii (); _ebcdic ();
   23225   ;
   23226   return 0;
   23227 }
   23228 _ACEOF
   23229 rm -f conftest.$ac_objext
   23230 if { (ac_try="$ac_compile"
   23231 case "(($ac_try" in
   23232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23233   *) ac_try_echo=$ac_try;;
   23234 esac
   23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23236   (eval "$ac_compile") 2>conftest.er1
   23237   ac_status=$?
   23238   grep -v '^ *+' conftest.er1 >conftest.err
   23239   rm -f conftest.er1
   23240   cat conftest.err >&5
   23241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23242   (exit $ac_status); } && {
   23243 	 test -z "$ac_c_werror_flag" ||
   23244 	 test ! -s conftest.err
   23245        } && test -s conftest.$ac_objext; then
   23246   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   23247   ac_cv_c_bigendian=yes
   23248 fi
   23249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   23250   if test "$ac_cv_c_bigendian" = unknown; then
   23251     ac_cv_c_bigendian=no
   23252   else
   23253     # finding both strings is unlikely to happen, but who knows?
   23254     ac_cv_c_bigendian=unknown
   23255   fi
   23256 fi
   23257 else
   23258   echo "$as_me: failed program was:" >&5
   23259 sed 's/^/| /' conftest.$ac_ext >&5
   23260 
   23261 
   23262 fi
   23263 
   23264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23265 else
   23266   cat >conftest.$ac_ext <<_ACEOF
   23267 /* confdefs.h.  */
   23268 _ACEOF
   23269 cat confdefs.h >>conftest.$ac_ext
   23270 cat >>conftest.$ac_ext <<_ACEOF
   23271 /* end confdefs.h.  */
   23272 $ac_includes_default
   23273 int
   23274 main ()
   23275 {
   23276 
   23277   /* Are we little or big endian?  From Harbison&Steele.  */
   23278   union
   23279   {
   23280     long int l;
   23281     char c[sizeof (long int)];
   23282   } u;
   23283   u.l = 1;
   23284   return u.c[sizeof (long int) - 1] == 1;
   23285 
   23286   ;
   23287   return 0;
   23288 }
   23289 _ACEOF
   23290 rm -f conftest$ac_exeext
   23291 if { (ac_try="$ac_link"
   23292 case "(($ac_try" in
   23293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23294   *) ac_try_echo=$ac_try;;
   23295 esac
   23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23297   (eval "$ac_link") 2>&5
   23298   ac_status=$?
   23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23301   { (case "(($ac_try" in
   23302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23303   *) ac_try_echo=$ac_try;;
   23304 esac
   23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23306   (eval "$ac_try") 2>&5
   23307   ac_status=$?
   23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23309   (exit $ac_status); }; }; then
   23310   ac_cv_c_bigendian=no
   23311 else
   23312   echo "$as_me: program exited with status $ac_status" >&5
   23313 echo "$as_me: failed program was:" >&5
   23314 sed 's/^/| /' conftest.$ac_ext >&5
   23315 
   23316 ( exit $ac_status )
   23317 ac_cv_c_bigendian=yes
   23318 fi
   23319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23320 fi
   23321 
   23322 
   23323 fi
   23324 
   23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23326 fi
   23327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   23328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   23329 case $ac_cv_c_bigendian in
   23330   yes)
   23331 
   23332 cat >>confdefs.h <<\_ACEOF
   23333 #define WORDS_BIGENDIAN 1
   23334 _ACEOF
   23335  ;;
   23336   no)
   23337      ;;
   23338   *)
   23339     { { echo "$as_me:$LINENO: error: unknown endianness
   23340 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   23341 echo "$as_me: error: unknown endianness
   23342 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   23343    { (exit 1); exit 1; }; } ;;
   23344 esac
   23345 
   23346 { echo "$as_me:$LINENO: checking for inline" >&5
   23347 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
   23348 if test "${ac_cv_c_inline+set}" = set; then
   23349   echo $ECHO_N "(cached) $ECHO_C" >&6
   23350 else
   23351   ac_cv_c_inline=no
   23352 for ac_kw in inline __inline__ __inline; do
   23353   cat >conftest.$ac_ext <<_ACEOF
   23354 /* confdefs.h.  */
   23355 _ACEOF
   23356 cat confdefs.h >>conftest.$ac_ext
   23357 cat >>conftest.$ac_ext <<_ACEOF
   23358 /* end confdefs.h.  */
   23359 #ifndef __cplusplus
   23360 typedef int foo_t;
   23361 static $ac_kw foo_t static_foo () {return 0; }
   23362 $ac_kw foo_t foo () {return 0; }
   23363 #endif
   23364 
   23365 _ACEOF
   23366 rm -f conftest.$ac_objext
   23367 if { (ac_try="$ac_compile"
   23368 case "(($ac_try" in
   23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23370   *) ac_try_echo=$ac_try;;
   23371 esac
   23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23373   (eval "$ac_compile") 2>conftest.er1
   23374   ac_status=$?
   23375   grep -v '^ *+' conftest.er1 >conftest.err
   23376   rm -f conftest.er1
   23377   cat conftest.err >&5
   23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23379   (exit $ac_status); } && {
   23380 	 test -z "$ac_c_werror_flag" ||
   23381 	 test ! -s conftest.err
   23382        } && test -s conftest.$ac_objext; then
   23383   ac_cv_c_inline=$ac_kw
   23384 else
   23385   echo "$as_me: failed program was:" >&5
   23386 sed 's/^/| /' conftest.$ac_ext >&5
   23387 
   23388 
   23389 fi
   23390 
   23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23392   test "$ac_cv_c_inline" != no && break
   23393 done
   23394 
   23395 fi
   23396 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
   23397 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
   23398 
   23399 
   23400 case $ac_cv_c_inline in
   23401   inline | yes) ;;
   23402   *)
   23403     case $ac_cv_c_inline in
   23404       no) ac_val=;;
   23405       *) ac_val=$ac_cv_c_inline;;
   23406     esac
   23407     cat >>confdefs.h <<_ACEOF
   23408 #ifndef __cplusplus
   23409 #define inline $ac_val
   23410 #endif
   23411 _ACEOF
   23412     ;;
   23413 esac
   23414 
   23415 { echo "$as_me:$LINENO: checking for unsigned char" >&5
   23416 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
   23417 if test "${ac_cv_type_unsigned_char+set}" = set; then
   23418   echo $ECHO_N "(cached) $ECHO_C" >&6
   23419 else
   23420   cat >conftest.$ac_ext <<_ACEOF
   23421 /* confdefs.h.  */
   23422 _ACEOF
   23423 cat confdefs.h >>conftest.$ac_ext
   23424 cat >>conftest.$ac_ext <<_ACEOF
   23425 /* end confdefs.h.  */
   23426 $ac_includes_default
   23427 typedef unsigned char ac__type_new_;
   23428 int
   23429 main ()
   23430 {
   23431 if ((ac__type_new_ *) 0)
   23432   return 0;
   23433 if (sizeof (ac__type_new_))
   23434   return 0;
   23435   ;
   23436   return 0;
   23437 }
   23438 _ACEOF
   23439 rm -f conftest.$ac_objext
   23440 if { (ac_try="$ac_compile"
   23441 case "(($ac_try" in
   23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23443   *) ac_try_echo=$ac_try;;
   23444 esac
   23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23446   (eval "$ac_compile") 2>conftest.er1
   23447   ac_status=$?
   23448   grep -v '^ *+' conftest.er1 >conftest.err
   23449   rm -f conftest.er1
   23450   cat conftest.err >&5
   23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23452   (exit $ac_status); } && {
   23453 	 test -z "$ac_c_werror_flag" ||
   23454 	 test ! -s conftest.err
   23455        } && test -s conftest.$ac_objext; then
   23456   ac_cv_type_unsigned_char=yes
   23457 else
   23458   echo "$as_me: failed program was:" >&5
   23459 sed 's/^/| /' conftest.$ac_ext >&5
   23460 
   23461 	ac_cv_type_unsigned_char=no
   23462 fi
   23463 
   23464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23465 fi
   23466 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
   23467 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
   23468 
   23469 # The cast to long int works around a bug in the HP C Compiler
   23470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   23471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   23472 # This bug is HP SR number 8606223364.
   23473 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
   23474 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
   23475 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
   23476   echo $ECHO_N "(cached) $ECHO_C" >&6
   23477 else
   23478   if test "$cross_compiling" = yes; then
   23479   # Depending upon the size, compute the lo and hi bounds.
   23480 cat >conftest.$ac_ext <<_ACEOF
   23481 /* confdefs.h.  */
   23482 _ACEOF
   23483 cat confdefs.h >>conftest.$ac_ext
   23484 cat >>conftest.$ac_ext <<_ACEOF
   23485 /* end confdefs.h.  */
   23486 $ac_includes_default
   23487    typedef unsigned char ac__type_sizeof_;
   23488 int
   23489 main ()
   23490 {
   23491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   23492 test_array [0] = 0
   23493 
   23494   ;
   23495   return 0;
   23496 }
   23497 _ACEOF
   23498 rm -f conftest.$ac_objext
   23499 if { (ac_try="$ac_compile"
   23500 case "(($ac_try" in
   23501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23502   *) ac_try_echo=$ac_try;;
   23503 esac
   23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23505   (eval "$ac_compile") 2>conftest.er1
   23506   ac_status=$?
   23507   grep -v '^ *+' conftest.er1 >conftest.err
   23508   rm -f conftest.er1
   23509   cat conftest.err >&5
   23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23511   (exit $ac_status); } && {
   23512 	 test -z "$ac_c_werror_flag" ||
   23513 	 test ! -s conftest.err
   23514        } && test -s conftest.$ac_objext; then
   23515   ac_lo=0 ac_mid=0
   23516   while :; do
   23517     cat >conftest.$ac_ext <<_ACEOF
   23518 /* confdefs.h.  */
   23519 _ACEOF
   23520 cat confdefs.h >>conftest.$ac_ext
   23521 cat >>conftest.$ac_ext <<_ACEOF
   23522 /* end confdefs.h.  */
   23523 $ac_includes_default
   23524    typedef unsigned char ac__type_sizeof_;
   23525 int
   23526 main ()
   23527 {
   23528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   23529 test_array [0] = 0
   23530 
   23531   ;
   23532   return 0;
   23533 }
   23534 _ACEOF
   23535 rm -f conftest.$ac_objext
   23536 if { (ac_try="$ac_compile"
   23537 case "(($ac_try" in
   23538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23539   *) ac_try_echo=$ac_try;;
   23540 esac
   23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23542   (eval "$ac_compile") 2>conftest.er1
   23543   ac_status=$?
   23544   grep -v '^ *+' conftest.er1 >conftest.err
   23545   rm -f conftest.er1
   23546   cat conftest.err >&5
   23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23548   (exit $ac_status); } && {
   23549 	 test -z "$ac_c_werror_flag" ||
   23550 	 test ! -s conftest.err
   23551        } && test -s conftest.$ac_objext; then
   23552   ac_hi=$ac_mid; break
   23553 else
   23554   echo "$as_me: failed program was:" >&5
   23555 sed 's/^/| /' conftest.$ac_ext >&5
   23556 
   23557 	ac_lo=`expr $ac_mid + 1`
   23558 			if test $ac_lo -le $ac_mid; then
   23559 			  ac_lo= ac_hi=
   23560 			  break
   23561 			fi
   23562 			ac_mid=`expr 2 '*' $ac_mid + 1`
   23563 fi
   23564 
   23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23566   done
   23567 else
   23568   echo "$as_me: failed program was:" >&5
   23569 sed 's/^/| /' conftest.$ac_ext >&5
   23570 
   23571 	cat >conftest.$ac_ext <<_ACEOF
   23572 /* confdefs.h.  */
   23573 _ACEOF
   23574 cat confdefs.h >>conftest.$ac_ext
   23575 cat >>conftest.$ac_ext <<_ACEOF
   23576 /* end confdefs.h.  */
   23577 $ac_includes_default
   23578    typedef unsigned char ac__type_sizeof_;
   23579 int
   23580 main ()
   23581 {
   23582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   23583 test_array [0] = 0
   23584 
   23585   ;
   23586   return 0;
   23587 }
   23588 _ACEOF
   23589 rm -f conftest.$ac_objext
   23590 if { (ac_try="$ac_compile"
   23591 case "(($ac_try" in
   23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23593   *) ac_try_echo=$ac_try;;
   23594 esac
   23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23596   (eval "$ac_compile") 2>conftest.er1
   23597   ac_status=$?
   23598   grep -v '^ *+' conftest.er1 >conftest.err
   23599   rm -f conftest.er1
   23600   cat conftest.err >&5
   23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23602   (exit $ac_status); } && {
   23603 	 test -z "$ac_c_werror_flag" ||
   23604 	 test ! -s conftest.err
   23605        } && test -s conftest.$ac_objext; then
   23606   ac_hi=-1 ac_mid=-1
   23607   while :; do
   23608     cat >conftest.$ac_ext <<_ACEOF
   23609 /* confdefs.h.  */
   23610 _ACEOF
   23611 cat confdefs.h >>conftest.$ac_ext
   23612 cat >>conftest.$ac_ext <<_ACEOF
   23613 /* end confdefs.h.  */
   23614 $ac_includes_default
   23615    typedef unsigned char ac__type_sizeof_;
   23616 int
   23617 main ()
   23618 {
   23619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   23620 test_array [0] = 0
   23621 
   23622   ;
   23623   return 0;
   23624 }
   23625 _ACEOF
   23626 rm -f conftest.$ac_objext
   23627 if { (ac_try="$ac_compile"
   23628 case "(($ac_try" in
   23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23630   *) ac_try_echo=$ac_try;;
   23631 esac
   23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23633   (eval "$ac_compile") 2>conftest.er1
   23634   ac_status=$?
   23635   grep -v '^ *+' conftest.er1 >conftest.err
   23636   rm -f conftest.er1
   23637   cat conftest.err >&5
   23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23639   (exit $ac_status); } && {
   23640 	 test -z "$ac_c_werror_flag" ||
   23641 	 test ! -s conftest.err
   23642        } && test -s conftest.$ac_objext; then
   23643   ac_lo=$ac_mid; break
   23644 else
   23645   echo "$as_me: failed program was:" >&5
   23646 sed 's/^/| /' conftest.$ac_ext >&5
   23647 
   23648 	ac_hi=`expr '(' $ac_mid ')' - 1`
   23649 			if test $ac_mid -le $ac_hi; then
   23650 			  ac_lo= ac_hi=
   23651 			  break
   23652 			fi
   23653 			ac_mid=`expr 2 '*' $ac_mid`
   23654 fi
   23655 
   23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23657   done
   23658 else
   23659   echo "$as_me: failed program was:" >&5
   23660 sed 's/^/| /' conftest.$ac_ext >&5
   23661 
   23662 	ac_lo= ac_hi=
   23663 fi
   23664 
   23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23666 fi
   23667 
   23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23669 # Binary search between lo and hi bounds.
   23670 while test "x$ac_lo" != "x$ac_hi"; do
   23671   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   23672   cat >conftest.$ac_ext <<_ACEOF
   23673 /* confdefs.h.  */
   23674 _ACEOF
   23675 cat confdefs.h >>conftest.$ac_ext
   23676 cat >>conftest.$ac_ext <<_ACEOF
   23677 /* end confdefs.h.  */
   23678 $ac_includes_default
   23679    typedef unsigned char ac__type_sizeof_;
   23680 int
   23681 main ()
   23682 {
   23683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   23684 test_array [0] = 0
   23685 
   23686   ;
   23687   return 0;
   23688 }
   23689 _ACEOF
   23690 rm -f conftest.$ac_objext
   23691 if { (ac_try="$ac_compile"
   23692 case "(($ac_try" in
   23693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23694   *) ac_try_echo=$ac_try;;
   23695 esac
   23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23697   (eval "$ac_compile") 2>conftest.er1
   23698   ac_status=$?
   23699   grep -v '^ *+' conftest.er1 >conftest.err
   23700   rm -f conftest.er1
   23701   cat conftest.err >&5
   23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23703   (exit $ac_status); } && {
   23704 	 test -z "$ac_c_werror_flag" ||
   23705 	 test ! -s conftest.err
   23706        } && test -s conftest.$ac_objext; then
   23707   ac_hi=$ac_mid
   23708 else
   23709   echo "$as_me: failed program was:" >&5
   23710 sed 's/^/| /' conftest.$ac_ext >&5
   23711 
   23712 	ac_lo=`expr '(' $ac_mid ')' + 1`
   23713 fi
   23714 
   23715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23716 done
   23717 case $ac_lo in
   23718 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
   23719 '') if test "$ac_cv_type_unsigned_char" = yes; then
   23720      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
   23721 See \`config.log' for more details." >&5
   23722 echo "$as_me: error: cannot compute sizeof (unsigned char)
   23723 See \`config.log' for more details." >&2;}
   23724    { (exit 77); exit 77; }; }
   23725    else
   23726      ac_cv_sizeof_unsigned_char=0
   23727    fi ;;
   23728 esac
   23729 else
   23730   cat >conftest.$ac_ext <<_ACEOF
   23731 /* confdefs.h.  */
   23732 _ACEOF
   23733 cat confdefs.h >>conftest.$ac_ext
   23734 cat >>conftest.$ac_ext <<_ACEOF
   23735 /* end confdefs.h.  */
   23736 $ac_includes_default
   23737    typedef unsigned char ac__type_sizeof_;
   23738 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   23739 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   23740 #include <stdio.h>
   23741 #include <stdlib.h>
   23742 int
   23743 main ()
   23744 {
   23745 
   23746   FILE *f = fopen ("conftest.val", "w");
   23747   if (! f)
   23748     return 1;
   23749   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   23750     {
   23751       long int i = longval ();
   23752       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   23753 	return 1;
   23754       fprintf (f, "%ld\n", i);
   23755     }
   23756   else
   23757     {
   23758       unsigned long int i = ulongval ();
   23759       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   23760 	return 1;
   23761       fprintf (f, "%lu\n", i);
   23762     }
   23763   return ferror (f) || fclose (f) != 0;
   23764 
   23765   ;
   23766   return 0;
   23767 }
   23768 _ACEOF
   23769 rm -f conftest$ac_exeext
   23770 if { (ac_try="$ac_link"
   23771 case "(($ac_try" in
   23772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23773   *) ac_try_echo=$ac_try;;
   23774 esac
   23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23776   (eval "$ac_link") 2>&5
   23777   ac_status=$?
   23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23780   { (case "(($ac_try" in
   23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23782   *) ac_try_echo=$ac_try;;
   23783 esac
   23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23785   (eval "$ac_try") 2>&5
   23786   ac_status=$?
   23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23788   (exit $ac_status); }; }; then
   23789   ac_cv_sizeof_unsigned_char=`cat conftest.val`
   23790 else
   23791   echo "$as_me: program exited with status $ac_status" >&5
   23792 echo "$as_me: failed program was:" >&5
   23793 sed 's/^/| /' conftest.$ac_ext >&5
   23794 
   23795 ( exit $ac_status )
   23796 if test "$ac_cv_type_unsigned_char" = yes; then
   23797      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
   23798 See \`config.log' for more details." >&5
   23799 echo "$as_me: error: cannot compute sizeof (unsigned char)
   23800 See \`config.log' for more details." >&2;}
   23801    { (exit 77); exit 77; }; }
   23802    else
   23803      ac_cv_sizeof_unsigned_char=0
   23804    fi
   23805 fi
   23806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23807 fi
   23808 rm -f conftest.val
   23809 fi
   23810 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
   23811 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
   23812 
   23813 
   23814 
   23815 cat >>confdefs.h <<_ACEOF
   23816 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
   23817 _ACEOF
   23818 
   23819 
   23820 { echo "$as_me:$LINENO: checking for unsigned short" >&5
   23821 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
   23822 if test "${ac_cv_type_unsigned_short+set}" = set; then
   23823   echo $ECHO_N "(cached) $ECHO_C" >&6
   23824 else
   23825   cat >conftest.$ac_ext <<_ACEOF
   23826 /* confdefs.h.  */
   23827 _ACEOF
   23828 cat confdefs.h >>conftest.$ac_ext
   23829 cat >>conftest.$ac_ext <<_ACEOF
   23830 /* end confdefs.h.  */
   23831 $ac_includes_default
   23832 typedef unsigned short ac__type_new_;
   23833 int
   23834 main ()
   23835 {
   23836 if ((ac__type_new_ *) 0)
   23837   return 0;
   23838 if (sizeof (ac__type_new_))
   23839   return 0;
   23840   ;
   23841   return 0;
   23842 }
   23843 _ACEOF
   23844 rm -f conftest.$ac_objext
   23845 if { (ac_try="$ac_compile"
   23846 case "(($ac_try" in
   23847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23848   *) ac_try_echo=$ac_try;;
   23849 esac
   23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23851   (eval "$ac_compile") 2>conftest.er1
   23852   ac_status=$?
   23853   grep -v '^ *+' conftest.er1 >conftest.err
   23854   rm -f conftest.er1
   23855   cat conftest.err >&5
   23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23857   (exit $ac_status); } && {
   23858 	 test -z "$ac_c_werror_flag" ||
   23859 	 test ! -s conftest.err
   23860        } && test -s conftest.$ac_objext; then
   23861   ac_cv_type_unsigned_short=yes
   23862 else
   23863   echo "$as_me: failed program was:" >&5
   23864 sed 's/^/| /' conftest.$ac_ext >&5
   23865 
   23866 	ac_cv_type_unsigned_short=no
   23867 fi
   23868 
   23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23870 fi
   23871 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
   23872 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
   23873 
   23874 # The cast to long int works around a bug in the HP C Compiler
   23875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   23876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   23877 # This bug is HP SR number 8606223364.
   23878 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
   23879 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
   23880 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
   23881   echo $ECHO_N "(cached) $ECHO_C" >&6
   23882 else
   23883   if test "$cross_compiling" = yes; then
   23884   # Depending upon the size, compute the lo and hi bounds.
   23885 cat >conftest.$ac_ext <<_ACEOF
   23886 /* confdefs.h.  */
   23887 _ACEOF
   23888 cat confdefs.h >>conftest.$ac_ext
   23889 cat >>conftest.$ac_ext <<_ACEOF
   23890 /* end confdefs.h.  */
   23891 $ac_includes_default
   23892    typedef unsigned short ac__type_sizeof_;
   23893 int
   23894 main ()
   23895 {
   23896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   23897 test_array [0] = 0
   23898 
   23899   ;
   23900   return 0;
   23901 }
   23902 _ACEOF
   23903 rm -f conftest.$ac_objext
   23904 if { (ac_try="$ac_compile"
   23905 case "(($ac_try" in
   23906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23907   *) ac_try_echo=$ac_try;;
   23908 esac
   23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23910   (eval "$ac_compile") 2>conftest.er1
   23911   ac_status=$?
   23912   grep -v '^ *+' conftest.er1 >conftest.err
   23913   rm -f conftest.er1
   23914   cat conftest.err >&5
   23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23916   (exit $ac_status); } && {
   23917 	 test -z "$ac_c_werror_flag" ||
   23918 	 test ! -s conftest.err
   23919        } && test -s conftest.$ac_objext; then
   23920   ac_lo=0 ac_mid=0
   23921   while :; do
   23922     cat >conftest.$ac_ext <<_ACEOF
   23923 /* confdefs.h.  */
   23924 _ACEOF
   23925 cat confdefs.h >>conftest.$ac_ext
   23926 cat >>conftest.$ac_ext <<_ACEOF
   23927 /* end confdefs.h.  */
   23928 $ac_includes_default
   23929    typedef unsigned short ac__type_sizeof_;
   23930 int
   23931 main ()
   23932 {
   23933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   23934 test_array [0] = 0
   23935 
   23936   ;
   23937   return 0;
   23938 }
   23939 _ACEOF
   23940 rm -f conftest.$ac_objext
   23941 if { (ac_try="$ac_compile"
   23942 case "(($ac_try" in
   23943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23944   *) ac_try_echo=$ac_try;;
   23945 esac
   23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23947   (eval "$ac_compile") 2>conftest.er1
   23948   ac_status=$?
   23949   grep -v '^ *+' conftest.er1 >conftest.err
   23950   rm -f conftest.er1
   23951   cat conftest.err >&5
   23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23953   (exit $ac_status); } && {
   23954 	 test -z "$ac_c_werror_flag" ||
   23955 	 test ! -s conftest.err
   23956        } && test -s conftest.$ac_objext; then
   23957   ac_hi=$ac_mid; break
   23958 else
   23959   echo "$as_me: failed program was:" >&5
   23960 sed 's/^/| /' conftest.$ac_ext >&5
   23961 
   23962 	ac_lo=`expr $ac_mid + 1`
   23963 			if test $ac_lo -le $ac_mid; then
   23964 			  ac_lo= ac_hi=
   23965 			  break
   23966 			fi
   23967 			ac_mid=`expr 2 '*' $ac_mid + 1`
   23968 fi
   23969 
   23970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23971   done
   23972 else
   23973   echo "$as_me: failed program was:" >&5
   23974 sed 's/^/| /' conftest.$ac_ext >&5
   23975 
   23976 	cat >conftest.$ac_ext <<_ACEOF
   23977 /* confdefs.h.  */
   23978 _ACEOF
   23979 cat confdefs.h >>conftest.$ac_ext
   23980 cat >>conftest.$ac_ext <<_ACEOF
   23981 /* end confdefs.h.  */
   23982 $ac_includes_default
   23983    typedef unsigned short ac__type_sizeof_;
   23984 int
   23985 main ()
   23986 {
   23987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   23988 test_array [0] = 0
   23989 
   23990   ;
   23991   return 0;
   23992 }
   23993 _ACEOF
   23994 rm -f conftest.$ac_objext
   23995 if { (ac_try="$ac_compile"
   23996 case "(($ac_try" in
   23997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23998   *) ac_try_echo=$ac_try;;
   23999 esac
   24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24001   (eval "$ac_compile") 2>conftest.er1
   24002   ac_status=$?
   24003   grep -v '^ *+' conftest.er1 >conftest.err
   24004   rm -f conftest.er1
   24005   cat conftest.err >&5
   24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24007   (exit $ac_status); } && {
   24008 	 test -z "$ac_c_werror_flag" ||
   24009 	 test ! -s conftest.err
   24010        } && test -s conftest.$ac_objext; then
   24011   ac_hi=-1 ac_mid=-1
   24012   while :; do
   24013     cat >conftest.$ac_ext <<_ACEOF
   24014 /* confdefs.h.  */
   24015 _ACEOF
   24016 cat confdefs.h >>conftest.$ac_ext
   24017 cat >>conftest.$ac_ext <<_ACEOF
   24018 /* end confdefs.h.  */
   24019 $ac_includes_default
   24020    typedef unsigned short ac__type_sizeof_;
   24021 int
   24022 main ()
   24023 {
   24024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24025 test_array [0] = 0
   24026 
   24027   ;
   24028   return 0;
   24029 }
   24030 _ACEOF
   24031 rm -f conftest.$ac_objext
   24032 if { (ac_try="$ac_compile"
   24033 case "(($ac_try" in
   24034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24035   *) ac_try_echo=$ac_try;;
   24036 esac
   24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24038   (eval "$ac_compile") 2>conftest.er1
   24039   ac_status=$?
   24040   grep -v '^ *+' conftest.er1 >conftest.err
   24041   rm -f conftest.er1
   24042   cat conftest.err >&5
   24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24044   (exit $ac_status); } && {
   24045 	 test -z "$ac_c_werror_flag" ||
   24046 	 test ! -s conftest.err
   24047        } && test -s conftest.$ac_objext; then
   24048   ac_lo=$ac_mid; break
   24049 else
   24050   echo "$as_me: failed program was:" >&5
   24051 sed 's/^/| /' conftest.$ac_ext >&5
   24052 
   24053 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24054 			if test $ac_mid -le $ac_hi; then
   24055 			  ac_lo= ac_hi=
   24056 			  break
   24057 			fi
   24058 			ac_mid=`expr 2 '*' $ac_mid`
   24059 fi
   24060 
   24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24062   done
   24063 else
   24064   echo "$as_me: failed program was:" >&5
   24065 sed 's/^/| /' conftest.$ac_ext >&5
   24066 
   24067 	ac_lo= ac_hi=
   24068 fi
   24069 
   24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24071 fi
   24072 
   24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24074 # Binary search between lo and hi bounds.
   24075 while test "x$ac_lo" != "x$ac_hi"; do
   24076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24077   cat >conftest.$ac_ext <<_ACEOF
   24078 /* confdefs.h.  */
   24079 _ACEOF
   24080 cat confdefs.h >>conftest.$ac_ext
   24081 cat >>conftest.$ac_ext <<_ACEOF
   24082 /* end confdefs.h.  */
   24083 $ac_includes_default
   24084    typedef unsigned short ac__type_sizeof_;
   24085 int
   24086 main ()
   24087 {
   24088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24089 test_array [0] = 0
   24090 
   24091   ;
   24092   return 0;
   24093 }
   24094 _ACEOF
   24095 rm -f conftest.$ac_objext
   24096 if { (ac_try="$ac_compile"
   24097 case "(($ac_try" in
   24098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24099   *) ac_try_echo=$ac_try;;
   24100 esac
   24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24102   (eval "$ac_compile") 2>conftest.er1
   24103   ac_status=$?
   24104   grep -v '^ *+' conftest.er1 >conftest.err
   24105   rm -f conftest.er1
   24106   cat conftest.err >&5
   24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24108   (exit $ac_status); } && {
   24109 	 test -z "$ac_c_werror_flag" ||
   24110 	 test ! -s conftest.err
   24111        } && test -s conftest.$ac_objext; then
   24112   ac_hi=$ac_mid
   24113 else
   24114   echo "$as_me: failed program was:" >&5
   24115 sed 's/^/| /' conftest.$ac_ext >&5
   24116 
   24117 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24118 fi
   24119 
   24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24121 done
   24122 case $ac_lo in
   24123 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
   24124 '') if test "$ac_cv_type_unsigned_short" = yes; then
   24125      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
   24126 See \`config.log' for more details." >&5
   24127 echo "$as_me: error: cannot compute sizeof (unsigned short)
   24128 See \`config.log' for more details." >&2;}
   24129    { (exit 77); exit 77; }; }
   24130    else
   24131      ac_cv_sizeof_unsigned_short=0
   24132    fi ;;
   24133 esac
   24134 else
   24135   cat >conftest.$ac_ext <<_ACEOF
   24136 /* confdefs.h.  */
   24137 _ACEOF
   24138 cat confdefs.h >>conftest.$ac_ext
   24139 cat >>conftest.$ac_ext <<_ACEOF
   24140 /* end confdefs.h.  */
   24141 $ac_includes_default
   24142    typedef unsigned short ac__type_sizeof_;
   24143 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24144 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24145 #include <stdio.h>
   24146 #include <stdlib.h>
   24147 int
   24148 main ()
   24149 {
   24150 
   24151   FILE *f = fopen ("conftest.val", "w");
   24152   if (! f)
   24153     return 1;
   24154   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24155     {
   24156       long int i = longval ();
   24157       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24158 	return 1;
   24159       fprintf (f, "%ld\n", i);
   24160     }
   24161   else
   24162     {
   24163       unsigned long int i = ulongval ();
   24164       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24165 	return 1;
   24166       fprintf (f, "%lu\n", i);
   24167     }
   24168   return ferror (f) || fclose (f) != 0;
   24169 
   24170   ;
   24171   return 0;
   24172 }
   24173 _ACEOF
   24174 rm -f conftest$ac_exeext
   24175 if { (ac_try="$ac_link"
   24176 case "(($ac_try" in
   24177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24178   *) ac_try_echo=$ac_try;;
   24179 esac
   24180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24181   (eval "$ac_link") 2>&5
   24182   ac_status=$?
   24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24185   { (case "(($ac_try" in
   24186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24187   *) ac_try_echo=$ac_try;;
   24188 esac
   24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24190   (eval "$ac_try") 2>&5
   24191   ac_status=$?
   24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24193   (exit $ac_status); }; }; then
   24194   ac_cv_sizeof_unsigned_short=`cat conftest.val`
   24195 else
   24196   echo "$as_me: program exited with status $ac_status" >&5
   24197 echo "$as_me: failed program was:" >&5
   24198 sed 's/^/| /' conftest.$ac_ext >&5
   24199 
   24200 ( exit $ac_status )
   24201 if test "$ac_cv_type_unsigned_short" = yes; then
   24202      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
   24203 See \`config.log' for more details." >&5
   24204 echo "$as_me: error: cannot compute sizeof (unsigned short)
   24205 See \`config.log' for more details." >&2;}
   24206    { (exit 77); exit 77; }; }
   24207    else
   24208      ac_cv_sizeof_unsigned_short=0
   24209    fi
   24210 fi
   24211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   24212 fi
   24213 rm -f conftest.val
   24214 fi
   24215 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
   24216 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
   24217 
   24218 
   24219 
   24220 cat >>confdefs.h <<_ACEOF
   24221 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
   24222 _ACEOF
   24223 
   24224 
   24225 { echo "$as_me:$LINENO: checking for unsigned int" >&5
   24226 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
   24227 if test "${ac_cv_type_unsigned_int+set}" = set; then
   24228   echo $ECHO_N "(cached) $ECHO_C" >&6
   24229 else
   24230   cat >conftest.$ac_ext <<_ACEOF
   24231 /* confdefs.h.  */
   24232 _ACEOF
   24233 cat confdefs.h >>conftest.$ac_ext
   24234 cat >>conftest.$ac_ext <<_ACEOF
   24235 /* end confdefs.h.  */
   24236 $ac_includes_default
   24237 typedef unsigned int ac__type_new_;
   24238 int
   24239 main ()
   24240 {
   24241 if ((ac__type_new_ *) 0)
   24242   return 0;
   24243 if (sizeof (ac__type_new_))
   24244   return 0;
   24245   ;
   24246   return 0;
   24247 }
   24248 _ACEOF
   24249 rm -f conftest.$ac_objext
   24250 if { (ac_try="$ac_compile"
   24251 case "(($ac_try" in
   24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24253   *) ac_try_echo=$ac_try;;
   24254 esac
   24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24256   (eval "$ac_compile") 2>conftest.er1
   24257   ac_status=$?
   24258   grep -v '^ *+' conftest.er1 >conftest.err
   24259   rm -f conftest.er1
   24260   cat conftest.err >&5
   24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24262   (exit $ac_status); } && {
   24263 	 test -z "$ac_c_werror_flag" ||
   24264 	 test ! -s conftest.err
   24265        } && test -s conftest.$ac_objext; then
   24266   ac_cv_type_unsigned_int=yes
   24267 else
   24268   echo "$as_me: failed program was:" >&5
   24269 sed 's/^/| /' conftest.$ac_ext >&5
   24270 
   24271 	ac_cv_type_unsigned_int=no
   24272 fi
   24273 
   24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24275 fi
   24276 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
   24277 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
   24278 
   24279 # The cast to long int works around a bug in the HP C Compiler
   24280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24282 # This bug is HP SR number 8606223364.
   24283 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
   24284 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
   24285 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
   24286   echo $ECHO_N "(cached) $ECHO_C" >&6
   24287 else
   24288   if test "$cross_compiling" = yes; then
   24289   # Depending upon the size, compute the lo and hi bounds.
   24290 cat >conftest.$ac_ext <<_ACEOF
   24291 /* confdefs.h.  */
   24292 _ACEOF
   24293 cat confdefs.h >>conftest.$ac_ext
   24294 cat >>conftest.$ac_ext <<_ACEOF
   24295 /* end confdefs.h.  */
   24296 $ac_includes_default
   24297    typedef unsigned int ac__type_sizeof_;
   24298 int
   24299 main ()
   24300 {
   24301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   24302 test_array [0] = 0
   24303 
   24304   ;
   24305   return 0;
   24306 }
   24307 _ACEOF
   24308 rm -f conftest.$ac_objext
   24309 if { (ac_try="$ac_compile"
   24310 case "(($ac_try" in
   24311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24312   *) ac_try_echo=$ac_try;;
   24313 esac
   24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24315   (eval "$ac_compile") 2>conftest.er1
   24316   ac_status=$?
   24317   grep -v '^ *+' conftest.er1 >conftest.err
   24318   rm -f conftest.er1
   24319   cat conftest.err >&5
   24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24321   (exit $ac_status); } && {
   24322 	 test -z "$ac_c_werror_flag" ||
   24323 	 test ! -s conftest.err
   24324        } && test -s conftest.$ac_objext; then
   24325   ac_lo=0 ac_mid=0
   24326   while :; do
   24327     cat >conftest.$ac_ext <<_ACEOF
   24328 /* confdefs.h.  */
   24329 _ACEOF
   24330 cat confdefs.h >>conftest.$ac_ext
   24331 cat >>conftest.$ac_ext <<_ACEOF
   24332 /* end confdefs.h.  */
   24333 $ac_includes_default
   24334    typedef unsigned int ac__type_sizeof_;
   24335 int
   24336 main ()
   24337 {
   24338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24339 test_array [0] = 0
   24340 
   24341   ;
   24342   return 0;
   24343 }
   24344 _ACEOF
   24345 rm -f conftest.$ac_objext
   24346 if { (ac_try="$ac_compile"
   24347 case "(($ac_try" in
   24348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24349   *) ac_try_echo=$ac_try;;
   24350 esac
   24351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24352   (eval "$ac_compile") 2>conftest.er1
   24353   ac_status=$?
   24354   grep -v '^ *+' conftest.er1 >conftest.err
   24355   rm -f conftest.er1
   24356   cat conftest.err >&5
   24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24358   (exit $ac_status); } && {
   24359 	 test -z "$ac_c_werror_flag" ||
   24360 	 test ! -s conftest.err
   24361        } && test -s conftest.$ac_objext; then
   24362   ac_hi=$ac_mid; break
   24363 else
   24364   echo "$as_me: failed program was:" >&5
   24365 sed 's/^/| /' conftest.$ac_ext >&5
   24366 
   24367 	ac_lo=`expr $ac_mid + 1`
   24368 			if test $ac_lo -le $ac_mid; then
   24369 			  ac_lo= ac_hi=
   24370 			  break
   24371 			fi
   24372 			ac_mid=`expr 2 '*' $ac_mid + 1`
   24373 fi
   24374 
   24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24376   done
   24377 else
   24378   echo "$as_me: failed program was:" >&5
   24379 sed 's/^/| /' conftest.$ac_ext >&5
   24380 
   24381 	cat >conftest.$ac_ext <<_ACEOF
   24382 /* confdefs.h.  */
   24383 _ACEOF
   24384 cat confdefs.h >>conftest.$ac_ext
   24385 cat >>conftest.$ac_ext <<_ACEOF
   24386 /* end confdefs.h.  */
   24387 $ac_includes_default
   24388    typedef unsigned int ac__type_sizeof_;
   24389 int
   24390 main ()
   24391 {
   24392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   24393 test_array [0] = 0
   24394 
   24395   ;
   24396   return 0;
   24397 }
   24398 _ACEOF
   24399 rm -f conftest.$ac_objext
   24400 if { (ac_try="$ac_compile"
   24401 case "(($ac_try" in
   24402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24403   *) ac_try_echo=$ac_try;;
   24404 esac
   24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24406   (eval "$ac_compile") 2>conftest.er1
   24407   ac_status=$?
   24408   grep -v '^ *+' conftest.er1 >conftest.err
   24409   rm -f conftest.er1
   24410   cat conftest.err >&5
   24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24412   (exit $ac_status); } && {
   24413 	 test -z "$ac_c_werror_flag" ||
   24414 	 test ! -s conftest.err
   24415        } && test -s conftest.$ac_objext; then
   24416   ac_hi=-1 ac_mid=-1
   24417   while :; do
   24418     cat >conftest.$ac_ext <<_ACEOF
   24419 /* confdefs.h.  */
   24420 _ACEOF
   24421 cat confdefs.h >>conftest.$ac_ext
   24422 cat >>conftest.$ac_ext <<_ACEOF
   24423 /* end confdefs.h.  */
   24424 $ac_includes_default
   24425    typedef unsigned int ac__type_sizeof_;
   24426 int
   24427 main ()
   24428 {
   24429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24430 test_array [0] = 0
   24431 
   24432   ;
   24433   return 0;
   24434 }
   24435 _ACEOF
   24436 rm -f conftest.$ac_objext
   24437 if { (ac_try="$ac_compile"
   24438 case "(($ac_try" in
   24439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24440   *) ac_try_echo=$ac_try;;
   24441 esac
   24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24443   (eval "$ac_compile") 2>conftest.er1
   24444   ac_status=$?
   24445   grep -v '^ *+' conftest.er1 >conftest.err
   24446   rm -f conftest.er1
   24447   cat conftest.err >&5
   24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24449   (exit $ac_status); } && {
   24450 	 test -z "$ac_c_werror_flag" ||
   24451 	 test ! -s conftest.err
   24452        } && test -s conftest.$ac_objext; then
   24453   ac_lo=$ac_mid; break
   24454 else
   24455   echo "$as_me: failed program was:" >&5
   24456 sed 's/^/| /' conftest.$ac_ext >&5
   24457 
   24458 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24459 			if test $ac_mid -le $ac_hi; then
   24460 			  ac_lo= ac_hi=
   24461 			  break
   24462 			fi
   24463 			ac_mid=`expr 2 '*' $ac_mid`
   24464 fi
   24465 
   24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24467   done
   24468 else
   24469   echo "$as_me: failed program was:" >&5
   24470 sed 's/^/| /' conftest.$ac_ext >&5
   24471 
   24472 	ac_lo= ac_hi=
   24473 fi
   24474 
   24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24476 fi
   24477 
   24478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24479 # Binary search between lo and hi bounds.
   24480 while test "x$ac_lo" != "x$ac_hi"; do
   24481   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24482   cat >conftest.$ac_ext <<_ACEOF
   24483 /* confdefs.h.  */
   24484 _ACEOF
   24485 cat confdefs.h >>conftest.$ac_ext
   24486 cat >>conftest.$ac_ext <<_ACEOF
   24487 /* end confdefs.h.  */
   24488 $ac_includes_default
   24489    typedef unsigned int ac__type_sizeof_;
   24490 int
   24491 main ()
   24492 {
   24493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24494 test_array [0] = 0
   24495 
   24496   ;
   24497   return 0;
   24498 }
   24499 _ACEOF
   24500 rm -f conftest.$ac_objext
   24501 if { (ac_try="$ac_compile"
   24502 case "(($ac_try" in
   24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24504   *) ac_try_echo=$ac_try;;
   24505 esac
   24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24507   (eval "$ac_compile") 2>conftest.er1
   24508   ac_status=$?
   24509   grep -v '^ *+' conftest.er1 >conftest.err
   24510   rm -f conftest.er1
   24511   cat conftest.err >&5
   24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24513   (exit $ac_status); } && {
   24514 	 test -z "$ac_c_werror_flag" ||
   24515 	 test ! -s conftest.err
   24516        } && test -s conftest.$ac_objext; then
   24517   ac_hi=$ac_mid
   24518 else
   24519   echo "$as_me: failed program was:" >&5
   24520 sed 's/^/| /' conftest.$ac_ext >&5
   24521 
   24522 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24523 fi
   24524 
   24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24526 done
   24527 case $ac_lo in
   24528 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
   24529 '') if test "$ac_cv_type_unsigned_int" = yes; then
   24530      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
   24531 See \`config.log' for more details." >&5
   24532 echo "$as_me: error: cannot compute sizeof (unsigned int)
   24533 See \`config.log' for more details." >&2;}
   24534    { (exit 77); exit 77; }; }
   24535    else
   24536      ac_cv_sizeof_unsigned_int=0
   24537    fi ;;
   24538 esac
   24539 else
   24540   cat >conftest.$ac_ext <<_ACEOF
   24541 /* confdefs.h.  */
   24542 _ACEOF
   24543 cat confdefs.h >>conftest.$ac_ext
   24544 cat >>conftest.$ac_ext <<_ACEOF
   24545 /* end confdefs.h.  */
   24546 $ac_includes_default
   24547    typedef unsigned int ac__type_sizeof_;
   24548 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24549 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24550 #include <stdio.h>
   24551 #include <stdlib.h>
   24552 int
   24553 main ()
   24554 {
   24555 
   24556   FILE *f = fopen ("conftest.val", "w");
   24557   if (! f)
   24558     return 1;
   24559   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24560     {
   24561       long int i = longval ();
   24562       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24563 	return 1;
   24564       fprintf (f, "%ld\n", i);
   24565     }
   24566   else
   24567     {
   24568       unsigned long int i = ulongval ();
   24569       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24570 	return 1;
   24571       fprintf (f, "%lu\n", i);
   24572     }
   24573   return ferror (f) || fclose (f) != 0;
   24574 
   24575   ;
   24576   return 0;
   24577 }
   24578 _ACEOF
   24579 rm -f conftest$ac_exeext
   24580 if { (ac_try="$ac_link"
   24581 case "(($ac_try" in
   24582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24583   *) ac_try_echo=$ac_try;;
   24584 esac
   24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24586   (eval "$ac_link") 2>&5
   24587   ac_status=$?
   24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24590   { (case "(($ac_try" in
   24591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24592   *) ac_try_echo=$ac_try;;
   24593 esac
   24594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24595   (eval "$ac_try") 2>&5
   24596   ac_status=$?
   24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24598   (exit $ac_status); }; }; then
   24599   ac_cv_sizeof_unsigned_int=`cat conftest.val`
   24600 else
   24601   echo "$as_me: program exited with status $ac_status" >&5
   24602 echo "$as_me: failed program was:" >&5
   24603 sed 's/^/| /' conftest.$ac_ext >&5
   24604 
   24605 ( exit $ac_status )
   24606 if test "$ac_cv_type_unsigned_int" = yes; then
   24607      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
   24608 See \`config.log' for more details." >&5
   24609 echo "$as_me: error: cannot compute sizeof (unsigned int)
   24610 See \`config.log' for more details." >&2;}
   24611    { (exit 77); exit 77; }; }
   24612    else
   24613      ac_cv_sizeof_unsigned_int=0
   24614    fi
   24615 fi
   24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   24617 fi
   24618 rm -f conftest.val
   24619 fi
   24620 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
   24621 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
   24622 
   24623 
   24624 
   24625 cat >>confdefs.h <<_ACEOF
   24626 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
   24627 _ACEOF
   24628 
   24629 
   24630 { echo "$as_me:$LINENO: checking for unsigned long" >&5
   24631 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
   24632 if test "${ac_cv_type_unsigned_long+set}" = set; then
   24633   echo $ECHO_N "(cached) $ECHO_C" >&6
   24634 else
   24635   cat >conftest.$ac_ext <<_ACEOF
   24636 /* confdefs.h.  */
   24637 _ACEOF
   24638 cat confdefs.h >>conftest.$ac_ext
   24639 cat >>conftest.$ac_ext <<_ACEOF
   24640 /* end confdefs.h.  */
   24641 $ac_includes_default
   24642 typedef unsigned long ac__type_new_;
   24643 int
   24644 main ()
   24645 {
   24646 if ((ac__type_new_ *) 0)
   24647   return 0;
   24648 if (sizeof (ac__type_new_))
   24649   return 0;
   24650   ;
   24651   return 0;
   24652 }
   24653 _ACEOF
   24654 rm -f conftest.$ac_objext
   24655 if { (ac_try="$ac_compile"
   24656 case "(($ac_try" in
   24657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24658   *) ac_try_echo=$ac_try;;
   24659 esac
   24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24661   (eval "$ac_compile") 2>conftest.er1
   24662   ac_status=$?
   24663   grep -v '^ *+' conftest.er1 >conftest.err
   24664   rm -f conftest.er1
   24665   cat conftest.err >&5
   24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24667   (exit $ac_status); } && {
   24668 	 test -z "$ac_c_werror_flag" ||
   24669 	 test ! -s conftest.err
   24670        } && test -s conftest.$ac_objext; then
   24671   ac_cv_type_unsigned_long=yes
   24672 else
   24673   echo "$as_me: failed program was:" >&5
   24674 sed 's/^/| /' conftest.$ac_ext >&5
   24675 
   24676 	ac_cv_type_unsigned_long=no
   24677 fi
   24678 
   24679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24680 fi
   24681 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
   24682 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
   24683 
   24684 # The cast to long int works around a bug in the HP C Compiler
   24685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24687 # This bug is HP SR number 8606223364.
   24688 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
   24689 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
   24690 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
   24691   echo $ECHO_N "(cached) $ECHO_C" >&6
   24692 else
   24693   if test "$cross_compiling" = yes; then
   24694   # Depending upon the size, compute the lo and hi bounds.
   24695 cat >conftest.$ac_ext <<_ACEOF
   24696 /* confdefs.h.  */
   24697 _ACEOF
   24698 cat confdefs.h >>conftest.$ac_ext
   24699 cat >>conftest.$ac_ext <<_ACEOF
   24700 /* end confdefs.h.  */
   24701 $ac_includes_default
   24702    typedef unsigned long ac__type_sizeof_;
   24703 int
   24704 main ()
   24705 {
   24706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   24707 test_array [0] = 0
   24708 
   24709   ;
   24710   return 0;
   24711 }
   24712 _ACEOF
   24713 rm -f conftest.$ac_objext
   24714 if { (ac_try="$ac_compile"
   24715 case "(($ac_try" in
   24716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24717   *) ac_try_echo=$ac_try;;
   24718 esac
   24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24720   (eval "$ac_compile") 2>conftest.er1
   24721   ac_status=$?
   24722   grep -v '^ *+' conftest.er1 >conftest.err
   24723   rm -f conftest.er1
   24724   cat conftest.err >&5
   24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24726   (exit $ac_status); } && {
   24727 	 test -z "$ac_c_werror_flag" ||
   24728 	 test ! -s conftest.err
   24729        } && test -s conftest.$ac_objext; then
   24730   ac_lo=0 ac_mid=0
   24731   while :; do
   24732     cat >conftest.$ac_ext <<_ACEOF
   24733 /* confdefs.h.  */
   24734 _ACEOF
   24735 cat confdefs.h >>conftest.$ac_ext
   24736 cat >>conftest.$ac_ext <<_ACEOF
   24737 /* end confdefs.h.  */
   24738 $ac_includes_default
   24739    typedef unsigned long ac__type_sizeof_;
   24740 int
   24741 main ()
   24742 {
   24743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24744 test_array [0] = 0
   24745 
   24746   ;
   24747   return 0;
   24748 }
   24749 _ACEOF
   24750 rm -f conftest.$ac_objext
   24751 if { (ac_try="$ac_compile"
   24752 case "(($ac_try" in
   24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24754   *) ac_try_echo=$ac_try;;
   24755 esac
   24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24757   (eval "$ac_compile") 2>conftest.er1
   24758   ac_status=$?
   24759   grep -v '^ *+' conftest.er1 >conftest.err
   24760   rm -f conftest.er1
   24761   cat conftest.err >&5
   24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24763   (exit $ac_status); } && {
   24764 	 test -z "$ac_c_werror_flag" ||
   24765 	 test ! -s conftest.err
   24766        } && test -s conftest.$ac_objext; then
   24767   ac_hi=$ac_mid; break
   24768 else
   24769   echo "$as_me: failed program was:" >&5
   24770 sed 's/^/| /' conftest.$ac_ext >&5
   24771 
   24772 	ac_lo=`expr $ac_mid + 1`
   24773 			if test $ac_lo -le $ac_mid; then
   24774 			  ac_lo= ac_hi=
   24775 			  break
   24776 			fi
   24777 			ac_mid=`expr 2 '*' $ac_mid + 1`
   24778 fi
   24779 
   24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24781   done
   24782 else
   24783   echo "$as_me: failed program was:" >&5
   24784 sed 's/^/| /' conftest.$ac_ext >&5
   24785 
   24786 	cat >conftest.$ac_ext <<_ACEOF
   24787 /* confdefs.h.  */
   24788 _ACEOF
   24789 cat confdefs.h >>conftest.$ac_ext
   24790 cat >>conftest.$ac_ext <<_ACEOF
   24791 /* end confdefs.h.  */
   24792 $ac_includes_default
   24793    typedef unsigned long ac__type_sizeof_;
   24794 int
   24795 main ()
   24796 {
   24797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   24798 test_array [0] = 0
   24799 
   24800   ;
   24801   return 0;
   24802 }
   24803 _ACEOF
   24804 rm -f conftest.$ac_objext
   24805 if { (ac_try="$ac_compile"
   24806 case "(($ac_try" in
   24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24808   *) ac_try_echo=$ac_try;;
   24809 esac
   24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24811   (eval "$ac_compile") 2>conftest.er1
   24812   ac_status=$?
   24813   grep -v '^ *+' conftest.er1 >conftest.err
   24814   rm -f conftest.er1
   24815   cat conftest.err >&5
   24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24817   (exit $ac_status); } && {
   24818 	 test -z "$ac_c_werror_flag" ||
   24819 	 test ! -s conftest.err
   24820        } && test -s conftest.$ac_objext; then
   24821   ac_hi=-1 ac_mid=-1
   24822   while :; do
   24823     cat >conftest.$ac_ext <<_ACEOF
   24824 /* confdefs.h.  */
   24825 _ACEOF
   24826 cat confdefs.h >>conftest.$ac_ext
   24827 cat >>conftest.$ac_ext <<_ACEOF
   24828 /* end confdefs.h.  */
   24829 $ac_includes_default
   24830    typedef unsigned long ac__type_sizeof_;
   24831 int
   24832 main ()
   24833 {
   24834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24835 test_array [0] = 0
   24836 
   24837   ;
   24838   return 0;
   24839 }
   24840 _ACEOF
   24841 rm -f conftest.$ac_objext
   24842 if { (ac_try="$ac_compile"
   24843 case "(($ac_try" in
   24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24845   *) ac_try_echo=$ac_try;;
   24846 esac
   24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24848   (eval "$ac_compile") 2>conftest.er1
   24849   ac_status=$?
   24850   grep -v '^ *+' conftest.er1 >conftest.err
   24851   rm -f conftest.er1
   24852   cat conftest.err >&5
   24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24854   (exit $ac_status); } && {
   24855 	 test -z "$ac_c_werror_flag" ||
   24856 	 test ! -s conftest.err
   24857        } && test -s conftest.$ac_objext; then
   24858   ac_lo=$ac_mid; break
   24859 else
   24860   echo "$as_me: failed program was:" >&5
   24861 sed 's/^/| /' conftest.$ac_ext >&5
   24862 
   24863 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24864 			if test $ac_mid -le $ac_hi; then
   24865 			  ac_lo= ac_hi=
   24866 			  break
   24867 			fi
   24868 			ac_mid=`expr 2 '*' $ac_mid`
   24869 fi
   24870 
   24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24872   done
   24873 else
   24874   echo "$as_me: failed program was:" >&5
   24875 sed 's/^/| /' conftest.$ac_ext >&5
   24876 
   24877 	ac_lo= ac_hi=
   24878 fi
   24879 
   24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24881 fi
   24882 
   24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24884 # Binary search between lo and hi bounds.
   24885 while test "x$ac_lo" != "x$ac_hi"; do
   24886   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24887   cat >conftest.$ac_ext <<_ACEOF
   24888 /* confdefs.h.  */
   24889 _ACEOF
   24890 cat confdefs.h >>conftest.$ac_ext
   24891 cat >>conftest.$ac_ext <<_ACEOF
   24892 /* end confdefs.h.  */
   24893 $ac_includes_default
   24894    typedef unsigned long ac__type_sizeof_;
   24895 int
   24896 main ()
   24897 {
   24898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24899 test_array [0] = 0
   24900 
   24901   ;
   24902   return 0;
   24903 }
   24904 _ACEOF
   24905 rm -f conftest.$ac_objext
   24906 if { (ac_try="$ac_compile"
   24907 case "(($ac_try" in
   24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24909   *) ac_try_echo=$ac_try;;
   24910 esac
   24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24912   (eval "$ac_compile") 2>conftest.er1
   24913   ac_status=$?
   24914   grep -v '^ *+' conftest.er1 >conftest.err
   24915   rm -f conftest.er1
   24916   cat conftest.err >&5
   24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24918   (exit $ac_status); } && {
   24919 	 test -z "$ac_c_werror_flag" ||
   24920 	 test ! -s conftest.err
   24921        } && test -s conftest.$ac_objext; then
   24922   ac_hi=$ac_mid
   24923 else
   24924   echo "$as_me: failed program was:" >&5
   24925 sed 's/^/| /' conftest.$ac_ext >&5
   24926 
   24927 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24928 fi
   24929 
   24930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24931 done
   24932 case $ac_lo in
   24933 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
   24934 '') if test "$ac_cv_type_unsigned_long" = yes; then
   24935      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
   24936 See \`config.log' for more details." >&5
   24937 echo "$as_me: error: cannot compute sizeof (unsigned long)
   24938 See \`config.log' for more details." >&2;}
   24939    { (exit 77); exit 77; }; }
   24940    else
   24941      ac_cv_sizeof_unsigned_long=0
   24942    fi ;;
   24943 esac
   24944 else
   24945   cat >conftest.$ac_ext <<_ACEOF
   24946 /* confdefs.h.  */
   24947 _ACEOF
   24948 cat confdefs.h >>conftest.$ac_ext
   24949 cat >>conftest.$ac_ext <<_ACEOF
   24950 /* end confdefs.h.  */
   24951 $ac_includes_default
   24952    typedef unsigned long ac__type_sizeof_;
   24953 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24954 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24955 #include <stdio.h>
   24956 #include <stdlib.h>
   24957 int
   24958 main ()
   24959 {
   24960 
   24961   FILE *f = fopen ("conftest.val", "w");
   24962   if (! f)
   24963     return 1;
   24964   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24965     {
   24966       long int i = longval ();
   24967       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24968 	return 1;
   24969       fprintf (f, "%ld\n", i);
   24970     }
   24971   else
   24972     {
   24973       unsigned long int i = ulongval ();
   24974       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24975 	return 1;
   24976       fprintf (f, "%lu\n", i);
   24977     }
   24978   return ferror (f) || fclose (f) != 0;
   24979 
   24980   ;
   24981   return 0;
   24982 }
   24983 _ACEOF
   24984 rm -f conftest$ac_exeext
   24985 if { (ac_try="$ac_link"
   24986 case "(($ac_try" in
   24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24988   *) ac_try_echo=$ac_try;;
   24989 esac
   24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24991   (eval "$ac_link") 2>&5
   24992   ac_status=$?
   24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24995   { (case "(($ac_try" in
   24996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24997   *) ac_try_echo=$ac_try;;
   24998 esac
   24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25000   (eval "$ac_try") 2>&5
   25001   ac_status=$?
   25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25003   (exit $ac_status); }; }; then
   25004   ac_cv_sizeof_unsigned_long=`cat conftest.val`
   25005 else
   25006   echo "$as_me: program exited with status $ac_status" >&5
   25007 echo "$as_me: failed program was:" >&5
   25008 sed 's/^/| /' conftest.$ac_ext >&5
   25009 
   25010 ( exit $ac_status )
   25011 if test "$ac_cv_type_unsigned_long" = yes; then
   25012      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
   25013 See \`config.log' for more details." >&5
   25014 echo "$as_me: error: cannot compute sizeof (unsigned long)
   25015 See \`config.log' for more details." >&2;}
   25016    { (exit 77); exit 77; }; }
   25017    else
   25018      ac_cv_sizeof_unsigned_long=0
   25019    fi
   25020 fi
   25021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25022 fi
   25023 rm -f conftest.val
   25024 fi
   25025 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
   25026 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
   25027 
   25028 
   25029 
   25030 cat >>confdefs.h <<_ACEOF
   25031 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   25032 _ACEOF
   25033 
   25034 
   25035 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
   25036 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
   25037 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
   25038   echo $ECHO_N "(cached) $ECHO_C" >&6
   25039 else
   25040   cat >conftest.$ac_ext <<_ACEOF
   25041 /* confdefs.h.  */
   25042 _ACEOF
   25043 cat confdefs.h >>conftest.$ac_ext
   25044 cat >>conftest.$ac_ext <<_ACEOF
   25045 /* end confdefs.h.  */
   25046 $ac_includes_default
   25047 typedef unsigned long long ac__type_new_;
   25048 int
   25049 main ()
   25050 {
   25051 if ((ac__type_new_ *) 0)
   25052   return 0;
   25053 if (sizeof (ac__type_new_))
   25054   return 0;
   25055   ;
   25056   return 0;
   25057 }
   25058 _ACEOF
   25059 rm -f conftest.$ac_objext
   25060 if { (ac_try="$ac_compile"
   25061 case "(($ac_try" in
   25062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25063   *) ac_try_echo=$ac_try;;
   25064 esac
   25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25066   (eval "$ac_compile") 2>conftest.er1
   25067   ac_status=$?
   25068   grep -v '^ *+' conftest.er1 >conftest.err
   25069   rm -f conftest.er1
   25070   cat conftest.err >&5
   25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25072   (exit $ac_status); } && {
   25073 	 test -z "$ac_c_werror_flag" ||
   25074 	 test ! -s conftest.err
   25075        } && test -s conftest.$ac_objext; then
   25076   ac_cv_type_unsigned_long_long=yes
   25077 else
   25078   echo "$as_me: failed program was:" >&5
   25079 sed 's/^/| /' conftest.$ac_ext >&5
   25080 
   25081 	ac_cv_type_unsigned_long_long=no
   25082 fi
   25083 
   25084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25085 fi
   25086 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
   25087 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
   25088 
   25089 # The cast to long int works around a bug in the HP C Compiler
   25090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25092 # This bug is HP SR number 8606223364.
   25093 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
   25094 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
   25095 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
   25096   echo $ECHO_N "(cached) $ECHO_C" >&6
   25097 else
   25098   if test "$cross_compiling" = yes; then
   25099   # Depending upon the size, compute the lo and hi bounds.
   25100 cat >conftest.$ac_ext <<_ACEOF
   25101 /* confdefs.h.  */
   25102 _ACEOF
   25103 cat confdefs.h >>conftest.$ac_ext
   25104 cat >>conftest.$ac_ext <<_ACEOF
   25105 /* end confdefs.h.  */
   25106 $ac_includes_default
   25107    typedef unsigned long long ac__type_sizeof_;
   25108 int
   25109 main ()
   25110 {
   25111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   25112 test_array [0] = 0
   25113 
   25114   ;
   25115   return 0;
   25116 }
   25117 _ACEOF
   25118 rm -f conftest.$ac_objext
   25119 if { (ac_try="$ac_compile"
   25120 case "(($ac_try" in
   25121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25122   *) ac_try_echo=$ac_try;;
   25123 esac
   25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25125   (eval "$ac_compile") 2>conftest.er1
   25126   ac_status=$?
   25127   grep -v '^ *+' conftest.er1 >conftest.err
   25128   rm -f conftest.er1
   25129   cat conftest.err >&5
   25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25131   (exit $ac_status); } && {
   25132 	 test -z "$ac_c_werror_flag" ||
   25133 	 test ! -s conftest.err
   25134        } && test -s conftest.$ac_objext; then
   25135   ac_lo=0 ac_mid=0
   25136   while :; do
   25137     cat >conftest.$ac_ext <<_ACEOF
   25138 /* confdefs.h.  */
   25139 _ACEOF
   25140 cat confdefs.h >>conftest.$ac_ext
   25141 cat >>conftest.$ac_ext <<_ACEOF
   25142 /* end confdefs.h.  */
   25143 $ac_includes_default
   25144    typedef unsigned long long ac__type_sizeof_;
   25145 int
   25146 main ()
   25147 {
   25148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25149 test_array [0] = 0
   25150 
   25151   ;
   25152   return 0;
   25153 }
   25154 _ACEOF
   25155 rm -f conftest.$ac_objext
   25156 if { (ac_try="$ac_compile"
   25157 case "(($ac_try" in
   25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25159   *) ac_try_echo=$ac_try;;
   25160 esac
   25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25162   (eval "$ac_compile") 2>conftest.er1
   25163   ac_status=$?
   25164   grep -v '^ *+' conftest.er1 >conftest.err
   25165   rm -f conftest.er1
   25166   cat conftest.err >&5
   25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25168   (exit $ac_status); } && {
   25169 	 test -z "$ac_c_werror_flag" ||
   25170 	 test ! -s conftest.err
   25171        } && test -s conftest.$ac_objext; then
   25172   ac_hi=$ac_mid; break
   25173 else
   25174   echo "$as_me: failed program was:" >&5
   25175 sed 's/^/| /' conftest.$ac_ext >&5
   25176 
   25177 	ac_lo=`expr $ac_mid + 1`
   25178 			if test $ac_lo -le $ac_mid; then
   25179 			  ac_lo= ac_hi=
   25180 			  break
   25181 			fi
   25182 			ac_mid=`expr 2 '*' $ac_mid + 1`
   25183 fi
   25184 
   25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25186   done
   25187 else
   25188   echo "$as_me: failed program was:" >&5
   25189 sed 's/^/| /' conftest.$ac_ext >&5
   25190 
   25191 	cat >conftest.$ac_ext <<_ACEOF
   25192 /* confdefs.h.  */
   25193 _ACEOF
   25194 cat confdefs.h >>conftest.$ac_ext
   25195 cat >>conftest.$ac_ext <<_ACEOF
   25196 /* end confdefs.h.  */
   25197 $ac_includes_default
   25198    typedef unsigned long long ac__type_sizeof_;
   25199 int
   25200 main ()
   25201 {
   25202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   25203 test_array [0] = 0
   25204 
   25205   ;
   25206   return 0;
   25207 }
   25208 _ACEOF
   25209 rm -f conftest.$ac_objext
   25210 if { (ac_try="$ac_compile"
   25211 case "(($ac_try" in
   25212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25213   *) ac_try_echo=$ac_try;;
   25214 esac
   25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25216   (eval "$ac_compile") 2>conftest.er1
   25217   ac_status=$?
   25218   grep -v '^ *+' conftest.er1 >conftest.err
   25219   rm -f conftest.er1
   25220   cat conftest.err >&5
   25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25222   (exit $ac_status); } && {
   25223 	 test -z "$ac_c_werror_flag" ||
   25224 	 test ! -s conftest.err
   25225        } && test -s conftest.$ac_objext; then
   25226   ac_hi=-1 ac_mid=-1
   25227   while :; do
   25228     cat >conftest.$ac_ext <<_ACEOF
   25229 /* confdefs.h.  */
   25230 _ACEOF
   25231 cat confdefs.h >>conftest.$ac_ext
   25232 cat >>conftest.$ac_ext <<_ACEOF
   25233 /* end confdefs.h.  */
   25234 $ac_includes_default
   25235    typedef unsigned long long ac__type_sizeof_;
   25236 int
   25237 main ()
   25238 {
   25239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   25240 test_array [0] = 0
   25241 
   25242   ;
   25243   return 0;
   25244 }
   25245 _ACEOF
   25246 rm -f conftest.$ac_objext
   25247 if { (ac_try="$ac_compile"
   25248 case "(($ac_try" in
   25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25250   *) ac_try_echo=$ac_try;;
   25251 esac
   25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25253   (eval "$ac_compile") 2>conftest.er1
   25254   ac_status=$?
   25255   grep -v '^ *+' conftest.er1 >conftest.err
   25256   rm -f conftest.er1
   25257   cat conftest.err >&5
   25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25259   (exit $ac_status); } && {
   25260 	 test -z "$ac_c_werror_flag" ||
   25261 	 test ! -s conftest.err
   25262        } && test -s conftest.$ac_objext; then
   25263   ac_lo=$ac_mid; break
   25264 else
   25265   echo "$as_me: failed program was:" >&5
   25266 sed 's/^/| /' conftest.$ac_ext >&5
   25267 
   25268 	ac_hi=`expr '(' $ac_mid ')' - 1`
   25269 			if test $ac_mid -le $ac_hi; then
   25270 			  ac_lo= ac_hi=
   25271 			  break
   25272 			fi
   25273 			ac_mid=`expr 2 '*' $ac_mid`
   25274 fi
   25275 
   25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25277   done
   25278 else
   25279   echo "$as_me: failed program was:" >&5
   25280 sed 's/^/| /' conftest.$ac_ext >&5
   25281 
   25282 	ac_lo= ac_hi=
   25283 fi
   25284 
   25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25286 fi
   25287 
   25288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25289 # Binary search between lo and hi bounds.
   25290 while test "x$ac_lo" != "x$ac_hi"; do
   25291   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   25292   cat >conftest.$ac_ext <<_ACEOF
   25293 /* confdefs.h.  */
   25294 _ACEOF
   25295 cat confdefs.h >>conftest.$ac_ext
   25296 cat >>conftest.$ac_ext <<_ACEOF
   25297 /* end confdefs.h.  */
   25298 $ac_includes_default
   25299    typedef unsigned long long ac__type_sizeof_;
   25300 int
   25301 main ()
   25302 {
   25303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25304 test_array [0] = 0
   25305 
   25306   ;
   25307   return 0;
   25308 }
   25309 _ACEOF
   25310 rm -f conftest.$ac_objext
   25311 if { (ac_try="$ac_compile"
   25312 case "(($ac_try" in
   25313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25314   *) ac_try_echo=$ac_try;;
   25315 esac
   25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25317   (eval "$ac_compile") 2>conftest.er1
   25318   ac_status=$?
   25319   grep -v '^ *+' conftest.er1 >conftest.err
   25320   rm -f conftest.er1
   25321   cat conftest.err >&5
   25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25323   (exit $ac_status); } && {
   25324 	 test -z "$ac_c_werror_flag" ||
   25325 	 test ! -s conftest.err
   25326        } && test -s conftest.$ac_objext; then
   25327   ac_hi=$ac_mid
   25328 else
   25329   echo "$as_me: failed program was:" >&5
   25330 sed 's/^/| /' conftest.$ac_ext >&5
   25331 
   25332 	ac_lo=`expr '(' $ac_mid ')' + 1`
   25333 fi
   25334 
   25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25336 done
   25337 case $ac_lo in
   25338 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
   25339 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
   25340      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
   25341 See \`config.log' for more details." >&5
   25342 echo "$as_me: error: cannot compute sizeof (unsigned long long)
   25343 See \`config.log' for more details." >&2;}
   25344    { (exit 77); exit 77; }; }
   25345    else
   25346      ac_cv_sizeof_unsigned_long_long=0
   25347    fi ;;
   25348 esac
   25349 else
   25350   cat >conftest.$ac_ext <<_ACEOF
   25351 /* confdefs.h.  */
   25352 _ACEOF
   25353 cat confdefs.h >>conftest.$ac_ext
   25354 cat >>conftest.$ac_ext <<_ACEOF
   25355 /* end confdefs.h.  */
   25356 $ac_includes_default
   25357    typedef unsigned long long ac__type_sizeof_;
   25358 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25359 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25360 #include <stdio.h>
   25361 #include <stdlib.h>
   25362 int
   25363 main ()
   25364 {
   25365 
   25366   FILE *f = fopen ("conftest.val", "w");
   25367   if (! f)
   25368     return 1;
   25369   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   25370     {
   25371       long int i = longval ();
   25372       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25373 	return 1;
   25374       fprintf (f, "%ld\n", i);
   25375     }
   25376   else
   25377     {
   25378       unsigned long int i = ulongval ();
   25379       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25380 	return 1;
   25381       fprintf (f, "%lu\n", i);
   25382     }
   25383   return ferror (f) || fclose (f) != 0;
   25384 
   25385   ;
   25386   return 0;
   25387 }
   25388 _ACEOF
   25389 rm -f conftest$ac_exeext
   25390 if { (ac_try="$ac_link"
   25391 case "(($ac_try" in
   25392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25393   *) ac_try_echo=$ac_try;;
   25394 esac
   25395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25396   (eval "$ac_link") 2>&5
   25397   ac_status=$?
   25398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   25400   { (case "(($ac_try" in
   25401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25402   *) ac_try_echo=$ac_try;;
   25403 esac
   25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25405   (eval "$ac_try") 2>&5
   25406   ac_status=$?
   25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25408   (exit $ac_status); }; }; then
   25409   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
   25410 else
   25411   echo "$as_me: program exited with status $ac_status" >&5
   25412 echo "$as_me: failed program was:" >&5
   25413 sed 's/^/| /' conftest.$ac_ext >&5
   25414 
   25415 ( exit $ac_status )
   25416 if test "$ac_cv_type_unsigned_long_long" = yes; then
   25417      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
   25418 See \`config.log' for more details." >&5
   25419 echo "$as_me: error: cannot compute sizeof (unsigned long long)
   25420 See \`config.log' for more details." >&2;}
   25421    { (exit 77); exit 77; }; }
   25422    else
   25423      ac_cv_sizeof_unsigned_long_long=0
   25424    fi
   25425 fi
   25426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25427 fi
   25428 rm -f conftest.val
   25429 fi
   25430 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
   25431 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
   25432 
   25433 
   25434 
   25435 cat >>confdefs.h <<_ACEOF
   25436 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   25437 _ACEOF
   25438 
   25439 
   25440 { echo "$as_me:$LINENO: checking for int *" >&5
   25441 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
   25442 if test "${ac_cv_type_int_p+set}" = set; then
   25443   echo $ECHO_N "(cached) $ECHO_C" >&6
   25444 else
   25445   cat >conftest.$ac_ext <<_ACEOF
   25446 /* confdefs.h.  */
   25447 _ACEOF
   25448 cat confdefs.h >>conftest.$ac_ext
   25449 cat >>conftest.$ac_ext <<_ACEOF
   25450 /* end confdefs.h.  */
   25451 $ac_includes_default
   25452 typedef int * ac__type_new_;
   25453 int
   25454 main ()
   25455 {
   25456 if ((ac__type_new_ *) 0)
   25457   return 0;
   25458 if (sizeof (ac__type_new_))
   25459   return 0;
   25460   ;
   25461   return 0;
   25462 }
   25463 _ACEOF
   25464 rm -f conftest.$ac_objext
   25465 if { (ac_try="$ac_compile"
   25466 case "(($ac_try" in
   25467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25468   *) ac_try_echo=$ac_try;;
   25469 esac
   25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25471   (eval "$ac_compile") 2>conftest.er1
   25472   ac_status=$?
   25473   grep -v '^ *+' conftest.er1 >conftest.err
   25474   rm -f conftest.er1
   25475   cat conftest.err >&5
   25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25477   (exit $ac_status); } && {
   25478 	 test -z "$ac_c_werror_flag" ||
   25479 	 test ! -s conftest.err
   25480        } && test -s conftest.$ac_objext; then
   25481   ac_cv_type_int_p=yes
   25482 else
   25483   echo "$as_me: failed program was:" >&5
   25484 sed 's/^/| /' conftest.$ac_ext >&5
   25485 
   25486 	ac_cv_type_int_p=no
   25487 fi
   25488 
   25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25490 fi
   25491 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
   25492 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
   25493 
   25494 # The cast to long int works around a bug in the HP C Compiler
   25495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25497 # This bug is HP SR number 8606223364.
   25498 { echo "$as_me:$LINENO: checking size of int *" >&5
   25499 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
   25500 if test "${ac_cv_sizeof_int_p+set}" = set; then
   25501   echo $ECHO_N "(cached) $ECHO_C" >&6
   25502 else
   25503   if test "$cross_compiling" = yes; then
   25504   # Depending upon the size, compute the lo and hi bounds.
   25505 cat >conftest.$ac_ext <<_ACEOF
   25506 /* confdefs.h.  */
   25507 _ACEOF
   25508 cat confdefs.h >>conftest.$ac_ext
   25509 cat >>conftest.$ac_ext <<_ACEOF
   25510 /* end confdefs.h.  */
   25511 $ac_includes_default
   25512    typedef int * ac__type_sizeof_;
   25513 int
   25514 main ()
   25515 {
   25516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   25517 test_array [0] = 0
   25518 
   25519   ;
   25520   return 0;
   25521 }
   25522 _ACEOF
   25523 rm -f conftest.$ac_objext
   25524 if { (ac_try="$ac_compile"
   25525 case "(($ac_try" in
   25526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25527   *) ac_try_echo=$ac_try;;
   25528 esac
   25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25530   (eval "$ac_compile") 2>conftest.er1
   25531   ac_status=$?
   25532   grep -v '^ *+' conftest.er1 >conftest.err
   25533   rm -f conftest.er1
   25534   cat conftest.err >&5
   25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25536   (exit $ac_status); } && {
   25537 	 test -z "$ac_c_werror_flag" ||
   25538 	 test ! -s conftest.err
   25539        } && test -s conftest.$ac_objext; then
   25540   ac_lo=0 ac_mid=0
   25541   while :; do
   25542     cat >conftest.$ac_ext <<_ACEOF
   25543 /* confdefs.h.  */
   25544 _ACEOF
   25545 cat confdefs.h >>conftest.$ac_ext
   25546 cat >>conftest.$ac_ext <<_ACEOF
   25547 /* end confdefs.h.  */
   25548 $ac_includes_default
   25549    typedef int * ac__type_sizeof_;
   25550 int
   25551 main ()
   25552 {
   25553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25554 test_array [0] = 0
   25555 
   25556   ;
   25557   return 0;
   25558 }
   25559 _ACEOF
   25560 rm -f conftest.$ac_objext
   25561 if { (ac_try="$ac_compile"
   25562 case "(($ac_try" in
   25563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25564   *) ac_try_echo=$ac_try;;
   25565 esac
   25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25567   (eval "$ac_compile") 2>conftest.er1
   25568   ac_status=$?
   25569   grep -v '^ *+' conftest.er1 >conftest.err
   25570   rm -f conftest.er1
   25571   cat conftest.err >&5
   25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25573   (exit $ac_status); } && {
   25574 	 test -z "$ac_c_werror_flag" ||
   25575 	 test ! -s conftest.err
   25576        } && test -s conftest.$ac_objext; then
   25577   ac_hi=$ac_mid; break
   25578 else
   25579   echo "$as_me: failed program was:" >&5
   25580 sed 's/^/| /' conftest.$ac_ext >&5
   25581 
   25582 	ac_lo=`expr $ac_mid + 1`
   25583 			if test $ac_lo -le $ac_mid; then
   25584 			  ac_lo= ac_hi=
   25585 			  break
   25586 			fi
   25587 			ac_mid=`expr 2 '*' $ac_mid + 1`
   25588 fi
   25589 
   25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25591   done
   25592 else
   25593   echo "$as_me: failed program was:" >&5
   25594 sed 's/^/| /' conftest.$ac_ext >&5
   25595 
   25596 	cat >conftest.$ac_ext <<_ACEOF
   25597 /* confdefs.h.  */
   25598 _ACEOF
   25599 cat confdefs.h >>conftest.$ac_ext
   25600 cat >>conftest.$ac_ext <<_ACEOF
   25601 /* end confdefs.h.  */
   25602 $ac_includes_default
   25603    typedef int * ac__type_sizeof_;
   25604 int
   25605 main ()
   25606 {
   25607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   25608 test_array [0] = 0
   25609 
   25610   ;
   25611   return 0;
   25612 }
   25613 _ACEOF
   25614 rm -f conftest.$ac_objext
   25615 if { (ac_try="$ac_compile"
   25616 case "(($ac_try" in
   25617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25618   *) ac_try_echo=$ac_try;;
   25619 esac
   25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25621   (eval "$ac_compile") 2>conftest.er1
   25622   ac_status=$?
   25623   grep -v '^ *+' conftest.er1 >conftest.err
   25624   rm -f conftest.er1
   25625   cat conftest.err >&5
   25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25627   (exit $ac_status); } && {
   25628 	 test -z "$ac_c_werror_flag" ||
   25629 	 test ! -s conftest.err
   25630        } && test -s conftest.$ac_objext; then
   25631   ac_hi=-1 ac_mid=-1
   25632   while :; do
   25633     cat >conftest.$ac_ext <<_ACEOF
   25634 /* confdefs.h.  */
   25635 _ACEOF
   25636 cat confdefs.h >>conftest.$ac_ext
   25637 cat >>conftest.$ac_ext <<_ACEOF
   25638 /* end confdefs.h.  */
   25639 $ac_includes_default
   25640    typedef int * ac__type_sizeof_;
   25641 int
   25642 main ()
   25643 {
   25644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   25645 test_array [0] = 0
   25646 
   25647   ;
   25648   return 0;
   25649 }
   25650 _ACEOF
   25651 rm -f conftest.$ac_objext
   25652 if { (ac_try="$ac_compile"
   25653 case "(($ac_try" in
   25654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25655   *) ac_try_echo=$ac_try;;
   25656 esac
   25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25658   (eval "$ac_compile") 2>conftest.er1
   25659   ac_status=$?
   25660   grep -v '^ *+' conftest.er1 >conftest.err
   25661   rm -f conftest.er1
   25662   cat conftest.err >&5
   25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25664   (exit $ac_status); } && {
   25665 	 test -z "$ac_c_werror_flag" ||
   25666 	 test ! -s conftest.err
   25667        } && test -s conftest.$ac_objext; then
   25668   ac_lo=$ac_mid; break
   25669 else
   25670   echo "$as_me: failed program was:" >&5
   25671 sed 's/^/| /' conftest.$ac_ext >&5
   25672 
   25673 	ac_hi=`expr '(' $ac_mid ')' - 1`
   25674 			if test $ac_mid -le $ac_hi; then
   25675 			  ac_lo= ac_hi=
   25676 			  break
   25677 			fi
   25678 			ac_mid=`expr 2 '*' $ac_mid`
   25679 fi
   25680 
   25681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25682   done
   25683 else
   25684   echo "$as_me: failed program was:" >&5
   25685 sed 's/^/| /' conftest.$ac_ext >&5
   25686 
   25687 	ac_lo= ac_hi=
   25688 fi
   25689 
   25690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25691 fi
   25692 
   25693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25694 # Binary search between lo and hi bounds.
   25695 while test "x$ac_lo" != "x$ac_hi"; do
   25696   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   25697   cat >conftest.$ac_ext <<_ACEOF
   25698 /* confdefs.h.  */
   25699 _ACEOF
   25700 cat confdefs.h >>conftest.$ac_ext
   25701 cat >>conftest.$ac_ext <<_ACEOF
   25702 /* end confdefs.h.  */
   25703 $ac_includes_default
   25704    typedef int * ac__type_sizeof_;
   25705 int
   25706 main ()
   25707 {
   25708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25709 test_array [0] = 0
   25710 
   25711   ;
   25712   return 0;
   25713 }
   25714 _ACEOF
   25715 rm -f conftest.$ac_objext
   25716 if { (ac_try="$ac_compile"
   25717 case "(($ac_try" in
   25718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25719   *) ac_try_echo=$ac_try;;
   25720 esac
   25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25722   (eval "$ac_compile") 2>conftest.er1
   25723   ac_status=$?
   25724   grep -v '^ *+' conftest.er1 >conftest.err
   25725   rm -f conftest.er1
   25726   cat conftest.err >&5
   25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25728   (exit $ac_status); } && {
   25729 	 test -z "$ac_c_werror_flag" ||
   25730 	 test ! -s conftest.err
   25731        } && test -s conftest.$ac_objext; then
   25732   ac_hi=$ac_mid
   25733 else
   25734   echo "$as_me: failed program was:" >&5
   25735 sed 's/^/| /' conftest.$ac_ext >&5
   25736 
   25737 	ac_lo=`expr '(' $ac_mid ')' + 1`
   25738 fi
   25739 
   25740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25741 done
   25742 case $ac_lo in
   25743 ?*) ac_cv_sizeof_int_p=$ac_lo;;
   25744 '') if test "$ac_cv_type_int_p" = yes; then
   25745      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
   25746 See \`config.log' for more details." >&5
   25747 echo "$as_me: error: cannot compute sizeof (int *)
   25748 See \`config.log' for more details." >&2;}
   25749    { (exit 77); exit 77; }; }
   25750    else
   25751      ac_cv_sizeof_int_p=0
   25752    fi ;;
   25753 esac
   25754 else
   25755   cat >conftest.$ac_ext <<_ACEOF
   25756 /* confdefs.h.  */
   25757 _ACEOF
   25758 cat confdefs.h >>conftest.$ac_ext
   25759 cat >>conftest.$ac_ext <<_ACEOF
   25760 /* end confdefs.h.  */
   25761 $ac_includes_default
   25762    typedef int * ac__type_sizeof_;
   25763 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25764 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25765 #include <stdio.h>
   25766 #include <stdlib.h>
   25767 int
   25768 main ()
   25769 {
   25770 
   25771   FILE *f = fopen ("conftest.val", "w");
   25772   if (! f)
   25773     return 1;
   25774   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   25775     {
   25776       long int i = longval ();
   25777       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25778 	return 1;
   25779       fprintf (f, "%ld\n", i);
   25780     }
   25781   else
   25782     {
   25783       unsigned long int i = ulongval ();
   25784       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25785 	return 1;
   25786       fprintf (f, "%lu\n", i);
   25787     }
   25788   return ferror (f) || fclose (f) != 0;
   25789 
   25790   ;
   25791   return 0;
   25792 }
   25793 _ACEOF
   25794 rm -f conftest$ac_exeext
   25795 if { (ac_try="$ac_link"
   25796 case "(($ac_try" in
   25797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25798   *) ac_try_echo=$ac_try;;
   25799 esac
   25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25801   (eval "$ac_link") 2>&5
   25802   ac_status=$?
   25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   25805   { (case "(($ac_try" in
   25806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25807   *) ac_try_echo=$ac_try;;
   25808 esac
   25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25810   (eval "$ac_try") 2>&5
   25811   ac_status=$?
   25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25813   (exit $ac_status); }; }; then
   25814   ac_cv_sizeof_int_p=`cat conftest.val`
   25815 else
   25816   echo "$as_me: program exited with status $ac_status" >&5
   25817 echo "$as_me: failed program was:" >&5
   25818 sed 's/^/| /' conftest.$ac_ext >&5
   25819 
   25820 ( exit $ac_status )
   25821 if test "$ac_cv_type_int_p" = yes; then
   25822      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
   25823 See \`config.log' for more details." >&5
   25824 echo "$as_me: error: cannot compute sizeof (int *)
   25825 See \`config.log' for more details." >&2;}
   25826    { (exit 77); exit 77; }; }
   25827    else
   25828      ac_cv_sizeof_int_p=0
   25829    fi
   25830 fi
   25831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25832 fi
   25833 rm -f conftest.val
   25834 fi
   25835 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
   25836 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
   25837 
   25838 
   25839 
   25840 cat >>confdefs.h <<_ACEOF
   25841 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
   25842 _ACEOF
   25843 
   25844 
   25845 
   25846 for ac_func in getenv
   25847 do
   25848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   25849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   25850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   25851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   25852   echo $ECHO_N "(cached) $ECHO_C" >&6
   25853 else
   25854   cat >conftest.$ac_ext <<_ACEOF
   25855 /* confdefs.h.  */
   25856 _ACEOF
   25857 cat confdefs.h >>conftest.$ac_ext
   25858 cat >>conftest.$ac_ext <<_ACEOF
   25859 /* end confdefs.h.  */
   25860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   25861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   25862 #define $ac_func innocuous_$ac_func
   25863 
   25864 /* System header to define __stub macros and hopefully few prototypes,
   25865     which can conflict with char $ac_func (); below.
   25866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   25867     <limits.h> exists even on freestanding compilers.  */
   25868 
   25869 #ifdef __STDC__
   25870 # include <limits.h>
   25871 #else
   25872 # include <assert.h>
   25873 #endif
   25874 
   25875 #undef $ac_func
   25876 
   25877 /* Override any GCC internal prototype to avoid an error.
   25878    Use char because int might match the return type of a GCC
   25879    builtin and then its argument prototype would still apply.  */
   25880 #ifdef __cplusplus
   25881 extern "C"
   25882 #endif
   25883 char $ac_func ();
   25884 /* The GNU C library defines this for functions which it implements
   25885     to always fail with ENOSYS.  Some functions are actually named
   25886     something starting with __ and the normal name is an alias.  */
   25887 #if defined __stub_$ac_func || defined __stub___$ac_func
   25888 choke me
   25889 #endif
   25890 
   25891 int
   25892 main ()
   25893 {
   25894 return $ac_func ();
   25895   ;
   25896   return 0;
   25897 }
   25898 _ACEOF
   25899 rm -f conftest.$ac_objext conftest$ac_exeext
   25900 if { (ac_try="$ac_link"
   25901 case "(($ac_try" in
   25902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25903   *) ac_try_echo=$ac_try;;
   25904 esac
   25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25906   (eval "$ac_link") 2>conftest.er1
   25907   ac_status=$?
   25908   grep -v '^ *+' conftest.er1 >conftest.err
   25909   rm -f conftest.er1
   25910   cat conftest.err >&5
   25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25912   (exit $ac_status); } && {
   25913 	 test -z "$ac_c_werror_flag" ||
   25914 	 test ! -s conftest.err
   25915        } && test -s conftest$ac_exeext &&
   25916        $as_test_x conftest$ac_exeext; then
   25917   eval "$as_ac_var=yes"
   25918 else
   25919   echo "$as_me: failed program was:" >&5
   25920 sed 's/^/| /' conftest.$ac_ext >&5
   25921 
   25922 	eval "$as_ac_var=no"
   25923 fi
   25924 
   25925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   25926       conftest$ac_exeext conftest.$ac_ext
   25927 fi
   25928 ac_res=`eval echo '${'$as_ac_var'}'`
   25929 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   25930 echo "${ECHO_T}$ac_res" >&6; }
   25931 if test `eval echo '${'$as_ac_var'}'` = yes; then
   25932   cat >>confdefs.h <<_ACEOF
   25933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   25934 _ACEOF
   25935  cat >>confdefs.h <<\_ACEOF
   25936 #define BX_HAVE_GETENV 1
   25937 _ACEOF
   25938 
   25939 fi
   25940 done
   25941 
   25942 
   25943 for ac_func in setenv
   25944 do
   25945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   25946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   25947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   25948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   25949   echo $ECHO_N "(cached) $ECHO_C" >&6
   25950 else
   25951   cat >conftest.$ac_ext <<_ACEOF
   25952 /* confdefs.h.  */
   25953 _ACEOF
   25954 cat confdefs.h >>conftest.$ac_ext
   25955 cat >>conftest.$ac_ext <<_ACEOF
   25956 /* end confdefs.h.  */
   25957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   25958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   25959 #define $ac_func innocuous_$ac_func
   25960 
   25961 /* System header to define __stub macros and hopefully few prototypes,
   25962     which can conflict with char $ac_func (); below.
   25963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   25964     <limits.h> exists even on freestanding compilers.  */
   25965 
   25966 #ifdef __STDC__
   25967 # include <limits.h>
   25968 #else
   25969 # include <assert.h>
   25970 #endif
   25971 
   25972 #undef $ac_func
   25973 
   25974 /* Override any GCC internal prototype to avoid an error.
   25975    Use char because int might match the return type of a GCC
   25976    builtin and then its argument prototype would still apply.  */
   25977 #ifdef __cplusplus
   25978 extern "C"
   25979 #endif
   25980 char $ac_func ();
   25981 /* The GNU C library defines this for functions which it implements
   25982     to always fail with ENOSYS.  Some functions are actually named
   25983     something starting with __ and the normal name is an alias.  */
   25984 #if defined __stub_$ac_func || defined __stub___$ac_func
   25985 choke me
   25986 #endif
   25987 
   25988 int
   25989 main ()
   25990 {
   25991 return $ac_func ();
   25992   ;
   25993   return 0;
   25994 }
   25995 _ACEOF
   25996 rm -f conftest.$ac_objext conftest$ac_exeext
   25997 if { (ac_try="$ac_link"
   25998 case "(($ac_try" in
   25999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26000   *) ac_try_echo=$ac_try;;
   26001 esac
   26002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26003   (eval "$ac_link") 2>conftest.er1
   26004   ac_status=$?
   26005   grep -v '^ *+' conftest.er1 >conftest.err
   26006   rm -f conftest.er1
   26007   cat conftest.err >&5
   26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26009   (exit $ac_status); } && {
   26010 	 test -z "$ac_c_werror_flag" ||
   26011 	 test ! -s conftest.err
   26012        } && test -s conftest$ac_exeext &&
   26013        $as_test_x conftest$ac_exeext; then
   26014   eval "$as_ac_var=yes"
   26015 else
   26016   echo "$as_me: failed program was:" >&5
   26017 sed 's/^/| /' conftest.$ac_ext >&5
   26018 
   26019 	eval "$as_ac_var=no"
   26020 fi
   26021 
   26022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26023       conftest$ac_exeext conftest.$ac_ext
   26024 fi
   26025 ac_res=`eval echo '${'$as_ac_var'}'`
   26026 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26027 echo "${ECHO_T}$ac_res" >&6; }
   26028 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26029   cat >>confdefs.h <<_ACEOF
   26030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26031 _ACEOF
   26032  cat >>confdefs.h <<\_ACEOF
   26033 #define BX_HAVE_SETENV 1
   26034 _ACEOF
   26035 
   26036 fi
   26037 done
   26038 
   26039 
   26040 for ac_func in select
   26041 do
   26042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26046   echo $ECHO_N "(cached) $ECHO_C" >&6
   26047 else
   26048   cat >conftest.$ac_ext <<_ACEOF
   26049 /* confdefs.h.  */
   26050 _ACEOF
   26051 cat confdefs.h >>conftest.$ac_ext
   26052 cat >>conftest.$ac_ext <<_ACEOF
   26053 /* end confdefs.h.  */
   26054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26056 #define $ac_func innocuous_$ac_func
   26057 
   26058 /* System header to define __stub macros and hopefully few prototypes,
   26059     which can conflict with char $ac_func (); below.
   26060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26061     <limits.h> exists even on freestanding compilers.  */
   26062 
   26063 #ifdef __STDC__
   26064 # include <limits.h>
   26065 #else
   26066 # include <assert.h>
   26067 #endif
   26068 
   26069 #undef $ac_func
   26070 
   26071 /* Override any GCC internal prototype to avoid an error.
   26072    Use char because int might match the return type of a GCC
   26073    builtin and then its argument prototype would still apply.  */
   26074 #ifdef __cplusplus
   26075 extern "C"
   26076 #endif
   26077 char $ac_func ();
   26078 /* The GNU C library defines this for functions which it implements
   26079     to always fail with ENOSYS.  Some functions are actually named
   26080     something starting with __ and the normal name is an alias.  */
   26081 #if defined __stub_$ac_func || defined __stub___$ac_func
   26082 choke me
   26083 #endif
   26084 
   26085 int
   26086 main ()
   26087 {
   26088 return $ac_func ();
   26089   ;
   26090   return 0;
   26091 }
   26092 _ACEOF
   26093 rm -f conftest.$ac_objext conftest$ac_exeext
   26094 if { (ac_try="$ac_link"
   26095 case "(($ac_try" in
   26096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26097   *) ac_try_echo=$ac_try;;
   26098 esac
   26099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26100   (eval "$ac_link") 2>conftest.er1
   26101   ac_status=$?
   26102   grep -v '^ *+' conftest.er1 >conftest.err
   26103   rm -f conftest.er1
   26104   cat conftest.err >&5
   26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26106   (exit $ac_status); } && {
   26107 	 test -z "$ac_c_werror_flag" ||
   26108 	 test ! -s conftest.err
   26109        } && test -s conftest$ac_exeext &&
   26110        $as_test_x conftest$ac_exeext; then
   26111   eval "$as_ac_var=yes"
   26112 else
   26113   echo "$as_me: failed program was:" >&5
   26114 sed 's/^/| /' conftest.$ac_ext >&5
   26115 
   26116 	eval "$as_ac_var=no"
   26117 fi
   26118 
   26119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26120       conftest$ac_exeext conftest.$ac_ext
   26121 fi
   26122 ac_res=`eval echo '${'$as_ac_var'}'`
   26123 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26124 echo "${ECHO_T}$ac_res" >&6; }
   26125 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26126   cat >>confdefs.h <<_ACEOF
   26127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26128 _ACEOF
   26129  cat >>confdefs.h <<\_ACEOF
   26130 #define BX_HAVE_SELECT 1
   26131 _ACEOF
   26132 
   26133 fi
   26134 done
   26135 
   26136 
   26137 for ac_func in snprintf
   26138 do
   26139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26143   echo $ECHO_N "(cached) $ECHO_C" >&6
   26144 else
   26145   cat >conftest.$ac_ext <<_ACEOF
   26146 /* confdefs.h.  */
   26147 _ACEOF
   26148 cat confdefs.h >>conftest.$ac_ext
   26149 cat >>conftest.$ac_ext <<_ACEOF
   26150 /* end confdefs.h.  */
   26151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26153 #define $ac_func innocuous_$ac_func
   26154 
   26155 /* System header to define __stub macros and hopefully few prototypes,
   26156     which can conflict with char $ac_func (); below.
   26157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26158     <limits.h> exists even on freestanding compilers.  */
   26159 
   26160 #ifdef __STDC__
   26161 # include <limits.h>
   26162 #else
   26163 # include <assert.h>
   26164 #endif
   26165 
   26166 #undef $ac_func
   26167 
   26168 /* Override any GCC internal prototype to avoid an error.
   26169    Use char because int might match the return type of a GCC
   26170    builtin and then its argument prototype would still apply.  */
   26171 #ifdef __cplusplus
   26172 extern "C"
   26173 #endif
   26174 char $ac_func ();
   26175 /* The GNU C library defines this for functions which it implements
   26176     to always fail with ENOSYS.  Some functions are actually named
   26177     something starting with __ and the normal name is an alias.  */
   26178 #if defined __stub_$ac_func || defined __stub___$ac_func
   26179 choke me
   26180 #endif
   26181 
   26182 int
   26183 main ()
   26184 {
   26185 return $ac_func ();
   26186   ;
   26187   return 0;
   26188 }
   26189 _ACEOF
   26190 rm -f conftest.$ac_objext conftest$ac_exeext
   26191 if { (ac_try="$ac_link"
   26192 case "(($ac_try" in
   26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26194   *) ac_try_echo=$ac_try;;
   26195 esac
   26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26197   (eval "$ac_link") 2>conftest.er1
   26198   ac_status=$?
   26199   grep -v '^ *+' conftest.er1 >conftest.err
   26200   rm -f conftest.er1
   26201   cat conftest.err >&5
   26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26203   (exit $ac_status); } && {
   26204 	 test -z "$ac_c_werror_flag" ||
   26205 	 test ! -s conftest.err
   26206        } && test -s conftest$ac_exeext &&
   26207        $as_test_x conftest$ac_exeext; then
   26208   eval "$as_ac_var=yes"
   26209 else
   26210   echo "$as_me: failed program was:" >&5
   26211 sed 's/^/| /' conftest.$ac_ext >&5
   26212 
   26213 	eval "$as_ac_var=no"
   26214 fi
   26215 
   26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26217       conftest$ac_exeext conftest.$ac_ext
   26218 fi
   26219 ac_res=`eval echo '${'$as_ac_var'}'`
   26220 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26221 echo "${ECHO_T}$ac_res" >&6; }
   26222 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26223   cat >>confdefs.h <<_ACEOF
   26224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26225 _ACEOF
   26226  cat >>confdefs.h <<\_ACEOF
   26227 #define BX_HAVE_SNPRINTF 1
   26228 _ACEOF
   26229 
   26230 fi
   26231 done
   26232 
   26233 
   26234 for ac_func in vsnprintf
   26235 do
   26236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26240   echo $ECHO_N "(cached) $ECHO_C" >&6
   26241 else
   26242   cat >conftest.$ac_ext <<_ACEOF
   26243 /* confdefs.h.  */
   26244 _ACEOF
   26245 cat confdefs.h >>conftest.$ac_ext
   26246 cat >>conftest.$ac_ext <<_ACEOF
   26247 /* end confdefs.h.  */
   26248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26250 #define $ac_func innocuous_$ac_func
   26251 
   26252 /* System header to define __stub macros and hopefully few prototypes,
   26253     which can conflict with char $ac_func (); below.
   26254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26255     <limits.h> exists even on freestanding compilers.  */
   26256 
   26257 #ifdef __STDC__
   26258 # include <limits.h>
   26259 #else
   26260 # include <assert.h>
   26261 #endif
   26262 
   26263 #undef $ac_func
   26264 
   26265 /* Override any GCC internal prototype to avoid an error.
   26266    Use char because int might match the return type of a GCC
   26267    builtin and then its argument prototype would still apply.  */
   26268 #ifdef __cplusplus
   26269 extern "C"
   26270 #endif
   26271 char $ac_func ();
   26272 /* The GNU C library defines this for functions which it implements
   26273     to always fail with ENOSYS.  Some functions are actually named
   26274     something starting with __ and the normal name is an alias.  */
   26275 #if defined __stub_$ac_func || defined __stub___$ac_func
   26276 choke me
   26277 #endif
   26278 
   26279 int
   26280 main ()
   26281 {
   26282 return $ac_func ();
   26283   ;
   26284   return 0;
   26285 }
   26286 _ACEOF
   26287 rm -f conftest.$ac_objext conftest$ac_exeext
   26288 if { (ac_try="$ac_link"
   26289 case "(($ac_try" in
   26290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26291   *) ac_try_echo=$ac_try;;
   26292 esac
   26293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26294   (eval "$ac_link") 2>conftest.er1
   26295   ac_status=$?
   26296   grep -v '^ *+' conftest.er1 >conftest.err
   26297   rm -f conftest.er1
   26298   cat conftest.err >&5
   26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26300   (exit $ac_status); } && {
   26301 	 test -z "$ac_c_werror_flag" ||
   26302 	 test ! -s conftest.err
   26303        } && test -s conftest$ac_exeext &&
   26304        $as_test_x conftest$ac_exeext; then
   26305   eval "$as_ac_var=yes"
   26306 else
   26307   echo "$as_me: failed program was:" >&5
   26308 sed 's/^/| /' conftest.$ac_ext >&5
   26309 
   26310 	eval "$as_ac_var=no"
   26311 fi
   26312 
   26313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26314       conftest$ac_exeext conftest.$ac_ext
   26315 fi
   26316 ac_res=`eval echo '${'$as_ac_var'}'`
   26317 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26318 echo "${ECHO_T}$ac_res" >&6; }
   26319 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26320   cat >>confdefs.h <<_ACEOF
   26321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26322 _ACEOF
   26323  cat >>confdefs.h <<\_ACEOF
   26324 #define BX_HAVE_VSNPRINTF 1
   26325 _ACEOF
   26326 
   26327 fi
   26328 done
   26329 
   26330 
   26331 for ac_func in strtoull
   26332 do
   26333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26337   echo $ECHO_N "(cached) $ECHO_C" >&6
   26338 else
   26339   cat >conftest.$ac_ext <<_ACEOF
   26340 /* confdefs.h.  */
   26341 _ACEOF
   26342 cat confdefs.h >>conftest.$ac_ext
   26343 cat >>conftest.$ac_ext <<_ACEOF
   26344 /* end confdefs.h.  */
   26345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26347 #define $ac_func innocuous_$ac_func
   26348 
   26349 /* System header to define __stub macros and hopefully few prototypes,
   26350     which can conflict with char $ac_func (); below.
   26351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26352     <limits.h> exists even on freestanding compilers.  */
   26353 
   26354 #ifdef __STDC__
   26355 # include <limits.h>
   26356 #else
   26357 # include <assert.h>
   26358 #endif
   26359 
   26360 #undef $ac_func
   26361 
   26362 /* Override any GCC internal prototype to avoid an error.
   26363    Use char because int might match the return type of a GCC
   26364    builtin and then its argument prototype would still apply.  */
   26365 #ifdef __cplusplus
   26366 extern "C"
   26367 #endif
   26368 char $ac_func ();
   26369 /* The GNU C library defines this for functions which it implements
   26370     to always fail with ENOSYS.  Some functions are actually named
   26371     something starting with __ and the normal name is an alias.  */
   26372 #if defined __stub_$ac_func || defined __stub___$ac_func
   26373 choke me
   26374 #endif
   26375 
   26376 int
   26377 main ()
   26378 {
   26379 return $ac_func ();
   26380   ;
   26381   return 0;
   26382 }
   26383 _ACEOF
   26384 rm -f conftest.$ac_objext conftest$ac_exeext
   26385 if { (ac_try="$ac_link"
   26386 case "(($ac_try" in
   26387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26388   *) ac_try_echo=$ac_try;;
   26389 esac
   26390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26391   (eval "$ac_link") 2>conftest.er1
   26392   ac_status=$?
   26393   grep -v '^ *+' conftest.er1 >conftest.err
   26394   rm -f conftest.er1
   26395   cat conftest.err >&5
   26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26397   (exit $ac_status); } && {
   26398 	 test -z "$ac_c_werror_flag" ||
   26399 	 test ! -s conftest.err
   26400        } && test -s conftest$ac_exeext &&
   26401        $as_test_x conftest$ac_exeext; then
   26402   eval "$as_ac_var=yes"
   26403 else
   26404   echo "$as_me: failed program was:" >&5
   26405 sed 's/^/| /' conftest.$ac_ext >&5
   26406 
   26407 	eval "$as_ac_var=no"
   26408 fi
   26409 
   26410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26411       conftest$ac_exeext conftest.$ac_ext
   26412 fi
   26413 ac_res=`eval echo '${'$as_ac_var'}'`
   26414 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26415 echo "${ECHO_T}$ac_res" >&6; }
   26416 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26417   cat >>confdefs.h <<_ACEOF
   26418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26419 _ACEOF
   26420  cat >>confdefs.h <<\_ACEOF
   26421 #define BX_HAVE_STRTOULL 1
   26422 _ACEOF
   26423 
   26424 fi
   26425 done
   26426 
   26427 
   26428 for ac_func in strtouq
   26429 do
   26430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26434   echo $ECHO_N "(cached) $ECHO_C" >&6
   26435 else
   26436   cat >conftest.$ac_ext <<_ACEOF
   26437 /* confdefs.h.  */
   26438 _ACEOF
   26439 cat confdefs.h >>conftest.$ac_ext
   26440 cat >>conftest.$ac_ext <<_ACEOF
   26441 /* end confdefs.h.  */
   26442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26444 #define $ac_func innocuous_$ac_func
   26445 
   26446 /* System header to define __stub macros and hopefully few prototypes,
   26447     which can conflict with char $ac_func (); below.
   26448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26449     <limits.h> exists even on freestanding compilers.  */
   26450 
   26451 #ifdef __STDC__
   26452 # include <limits.h>
   26453 #else
   26454 # include <assert.h>
   26455 #endif
   26456 
   26457 #undef $ac_func
   26458 
   26459 /* Override any GCC internal prototype to avoid an error.
   26460    Use char because int might match the return type of a GCC
   26461    builtin and then its argument prototype would still apply.  */
   26462 #ifdef __cplusplus
   26463 extern "C"
   26464 #endif
   26465 char $ac_func ();
   26466 /* The GNU C library defines this for functions which it implements
   26467     to always fail with ENOSYS.  Some functions are actually named
   26468     something starting with __ and the normal name is an alias.  */
   26469 #if defined __stub_$ac_func || defined __stub___$ac_func
   26470 choke me
   26471 #endif
   26472 
   26473 int
   26474 main ()
   26475 {
   26476 return $ac_func ();
   26477   ;
   26478   return 0;
   26479 }
   26480 _ACEOF
   26481 rm -f conftest.$ac_objext conftest$ac_exeext
   26482 if { (ac_try="$ac_link"
   26483 case "(($ac_try" in
   26484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26485   *) ac_try_echo=$ac_try;;
   26486 esac
   26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26488   (eval "$ac_link") 2>conftest.er1
   26489   ac_status=$?
   26490   grep -v '^ *+' conftest.er1 >conftest.err
   26491   rm -f conftest.er1
   26492   cat conftest.err >&5
   26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26494   (exit $ac_status); } && {
   26495 	 test -z "$ac_c_werror_flag" ||
   26496 	 test ! -s conftest.err
   26497        } && test -s conftest$ac_exeext &&
   26498        $as_test_x conftest$ac_exeext; then
   26499   eval "$as_ac_var=yes"
   26500 else
   26501   echo "$as_me: failed program was:" >&5
   26502 sed 's/^/| /' conftest.$ac_ext >&5
   26503 
   26504 	eval "$as_ac_var=no"
   26505 fi
   26506 
   26507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26508       conftest$ac_exeext conftest.$ac_ext
   26509 fi
   26510 ac_res=`eval echo '${'$as_ac_var'}'`
   26511 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26512 echo "${ECHO_T}$ac_res" >&6; }
   26513 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26514   cat >>confdefs.h <<_ACEOF
   26515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26516 _ACEOF
   26517  cat >>confdefs.h <<\_ACEOF
   26518 #define BX_HAVE_STRTOUQ 1
   26519 _ACEOF
   26520 
   26521 fi
   26522 done
   26523 
   26524 
   26525 for ac_func in strdup
   26526 do
   26527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26531   echo $ECHO_N "(cached) $ECHO_C" >&6
   26532 else
   26533   cat >conftest.$ac_ext <<_ACEOF
   26534 /* confdefs.h.  */
   26535 _ACEOF
   26536 cat confdefs.h >>conftest.$ac_ext
   26537 cat >>conftest.$ac_ext <<_ACEOF
   26538 /* end confdefs.h.  */
   26539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26541 #define $ac_func innocuous_$ac_func
   26542 
   26543 /* System header to define __stub macros and hopefully few prototypes,
   26544     which can conflict with char $ac_func (); below.
   26545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26546     <limits.h> exists even on freestanding compilers.  */
   26547 
   26548 #ifdef __STDC__
   26549 # include <limits.h>
   26550 #else
   26551 # include <assert.h>
   26552 #endif
   26553 
   26554 #undef $ac_func
   26555 
   26556 /* Override any GCC internal prototype to avoid an error.
   26557    Use char because int might match the return type of a GCC
   26558    builtin and then its argument prototype would still apply.  */
   26559 #ifdef __cplusplus
   26560 extern "C"
   26561 #endif
   26562 char $ac_func ();
   26563 /* The GNU C library defines this for functions which it implements
   26564     to always fail with ENOSYS.  Some functions are actually named
   26565     something starting with __ and the normal name is an alias.  */
   26566 #if defined __stub_$ac_func || defined __stub___$ac_func
   26567 choke me
   26568 #endif
   26569 
   26570 int
   26571 main ()
   26572 {
   26573 return $ac_func ();
   26574   ;
   26575   return 0;
   26576 }
   26577 _ACEOF
   26578 rm -f conftest.$ac_objext conftest$ac_exeext
   26579 if { (ac_try="$ac_link"
   26580 case "(($ac_try" in
   26581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26582   *) ac_try_echo=$ac_try;;
   26583 esac
   26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26585   (eval "$ac_link") 2>conftest.er1
   26586   ac_status=$?
   26587   grep -v '^ *+' conftest.er1 >conftest.err
   26588   rm -f conftest.er1
   26589   cat conftest.err >&5
   26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26591   (exit $ac_status); } && {
   26592 	 test -z "$ac_c_werror_flag" ||
   26593 	 test ! -s conftest.err
   26594        } && test -s conftest$ac_exeext &&
   26595        $as_test_x conftest$ac_exeext; then
   26596   eval "$as_ac_var=yes"
   26597 else
   26598   echo "$as_me: failed program was:" >&5
   26599 sed 's/^/| /' conftest.$ac_ext >&5
   26600 
   26601 	eval "$as_ac_var=no"
   26602 fi
   26603 
   26604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26605       conftest$ac_exeext conftest.$ac_ext
   26606 fi
   26607 ac_res=`eval echo '${'$as_ac_var'}'`
   26608 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26609 echo "${ECHO_T}$ac_res" >&6; }
   26610 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26611   cat >>confdefs.h <<_ACEOF
   26612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26613 _ACEOF
   26614  cat >>confdefs.h <<\_ACEOF
   26615 #define BX_HAVE_STRDUP 1
   26616 _ACEOF
   26617 
   26618 fi
   26619 done
   26620 
   26621 
   26622 for ac_func in strrev
   26623 do
   26624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26628   echo $ECHO_N "(cached) $ECHO_C" >&6
   26629 else
   26630   cat >conftest.$ac_ext <<_ACEOF
   26631 /* confdefs.h.  */
   26632 _ACEOF
   26633 cat confdefs.h >>conftest.$ac_ext
   26634 cat >>conftest.$ac_ext <<_ACEOF
   26635 /* end confdefs.h.  */
   26636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26638 #define $ac_func innocuous_$ac_func
   26639 
   26640 /* System header to define __stub macros and hopefully few prototypes,
   26641     which can conflict with char $ac_func (); below.
   26642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26643     <limits.h> exists even on freestanding compilers.  */
   26644 
   26645 #ifdef __STDC__
   26646 # include <limits.h>
   26647 #else
   26648 # include <assert.h>
   26649 #endif
   26650 
   26651 #undef $ac_func
   26652 
   26653 /* Override any GCC internal prototype to avoid an error.
   26654    Use char because int might match the return type of a GCC
   26655    builtin and then its argument prototype would still apply.  */
   26656 #ifdef __cplusplus
   26657 extern "C"
   26658 #endif
   26659 char $ac_func ();
   26660 /* The GNU C library defines this for functions which it implements
   26661     to always fail with ENOSYS.  Some functions are actually named
   26662     something starting with __ and the normal name is an alias.  */
   26663 #if defined __stub_$ac_func || defined __stub___$ac_func
   26664 choke me
   26665 #endif
   26666 
   26667 int
   26668 main ()
   26669 {
   26670 return $ac_func ();
   26671   ;
   26672   return 0;
   26673 }
   26674 _ACEOF
   26675 rm -f conftest.$ac_objext conftest$ac_exeext
   26676 if { (ac_try="$ac_link"
   26677 case "(($ac_try" in
   26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26679   *) ac_try_echo=$ac_try;;
   26680 esac
   26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26682   (eval "$ac_link") 2>conftest.er1
   26683   ac_status=$?
   26684   grep -v '^ *+' conftest.er1 >conftest.err
   26685   rm -f conftest.er1
   26686   cat conftest.err >&5
   26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26688   (exit $ac_status); } && {
   26689 	 test -z "$ac_c_werror_flag" ||
   26690 	 test ! -s conftest.err
   26691        } && test -s conftest$ac_exeext &&
   26692        $as_test_x conftest$ac_exeext; then
   26693   eval "$as_ac_var=yes"
   26694 else
   26695   echo "$as_me: failed program was:" >&5
   26696 sed 's/^/| /' conftest.$ac_ext >&5
   26697 
   26698 	eval "$as_ac_var=no"
   26699 fi
   26700 
   26701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26702       conftest$ac_exeext conftest.$ac_ext
   26703 fi
   26704 ac_res=`eval echo '${'$as_ac_var'}'`
   26705 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26706 echo "${ECHO_T}$ac_res" >&6; }
   26707 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26708   cat >>confdefs.h <<_ACEOF
   26709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26710 _ACEOF
   26711  cat >>confdefs.h <<\_ACEOF
   26712 #define BX_HAVE_STRREV 1
   26713 _ACEOF
   26714 
   26715 fi
   26716 done
   26717 
   26718 
   26719 for ac_func in stricmp
   26720 do
   26721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26725   echo $ECHO_N "(cached) $ECHO_C" >&6
   26726 else
   26727   cat >conftest.$ac_ext <<_ACEOF
   26728 /* confdefs.h.  */
   26729 _ACEOF
   26730 cat confdefs.h >>conftest.$ac_ext
   26731 cat >>conftest.$ac_ext <<_ACEOF
   26732 /* end confdefs.h.  */
   26733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26735 #define $ac_func innocuous_$ac_func
   26736 
   26737 /* System header to define __stub macros and hopefully few prototypes,
   26738     which can conflict with char $ac_func (); below.
   26739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26740     <limits.h> exists even on freestanding compilers.  */
   26741 
   26742 #ifdef __STDC__
   26743 # include <limits.h>
   26744 #else
   26745 # include <assert.h>
   26746 #endif
   26747 
   26748 #undef $ac_func
   26749 
   26750 /* Override any GCC internal prototype to avoid an error.
   26751    Use char because int might match the return type of a GCC
   26752    builtin and then its argument prototype would still apply.  */
   26753 #ifdef __cplusplus
   26754 extern "C"
   26755 #endif
   26756 char $ac_func ();
   26757 /* The GNU C library defines this for functions which it implements
   26758     to always fail with ENOSYS.  Some functions are actually named
   26759     something starting with __ and the normal name is an alias.  */
   26760 #if defined __stub_$ac_func || defined __stub___$ac_func
   26761 choke me
   26762 #endif
   26763 
   26764 int
   26765 main ()
   26766 {
   26767 return $ac_func ();
   26768   ;
   26769   return 0;
   26770 }
   26771 _ACEOF
   26772 rm -f conftest.$ac_objext conftest$ac_exeext
   26773 if { (ac_try="$ac_link"
   26774 case "(($ac_try" in
   26775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26776   *) ac_try_echo=$ac_try;;
   26777 esac
   26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26779   (eval "$ac_link") 2>conftest.er1
   26780   ac_status=$?
   26781   grep -v '^ *+' conftest.er1 >conftest.err
   26782   rm -f conftest.er1
   26783   cat conftest.err >&5
   26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26785   (exit $ac_status); } && {
   26786 	 test -z "$ac_c_werror_flag" ||
   26787 	 test ! -s conftest.err
   26788        } && test -s conftest$ac_exeext &&
   26789        $as_test_x conftest$ac_exeext; then
   26790   eval "$as_ac_var=yes"
   26791 else
   26792   echo "$as_me: failed program was:" >&5
   26793 sed 's/^/| /' conftest.$ac_ext >&5
   26794 
   26795 	eval "$as_ac_var=no"
   26796 fi
   26797 
   26798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26799       conftest$ac_exeext conftest.$ac_ext
   26800 fi
   26801 ac_res=`eval echo '${'$as_ac_var'}'`
   26802 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26803 echo "${ECHO_T}$ac_res" >&6; }
   26804 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26805   cat >>confdefs.h <<_ACEOF
   26806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26807 _ACEOF
   26808  cat >>confdefs.h <<\_ACEOF
   26809 #define BX_HAVE_STRICMP 1
   26810 _ACEOF
   26811 
   26812 fi
   26813 done
   26814 
   26815 
   26816 for ac_func in strcasecmp
   26817 do
   26818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26822   echo $ECHO_N "(cached) $ECHO_C" >&6
   26823 else
   26824   cat >conftest.$ac_ext <<_ACEOF
   26825 /* confdefs.h.  */
   26826 _ACEOF
   26827 cat confdefs.h >>conftest.$ac_ext
   26828 cat >>conftest.$ac_ext <<_ACEOF
   26829 /* end confdefs.h.  */
   26830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26832 #define $ac_func innocuous_$ac_func
   26833 
   26834 /* System header to define __stub macros and hopefully few prototypes,
   26835     which can conflict with char $ac_func (); below.
   26836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26837     <limits.h> exists even on freestanding compilers.  */
   26838 
   26839 #ifdef __STDC__
   26840 # include <limits.h>
   26841 #else
   26842 # include <assert.h>
   26843 #endif
   26844 
   26845 #undef $ac_func
   26846 
   26847 /* Override any GCC internal prototype to avoid an error.
   26848    Use char because int might match the return type of a GCC
   26849    builtin and then its argument prototype would still apply.  */
   26850 #ifdef __cplusplus
   26851 extern "C"
   26852 #endif
   26853 char $ac_func ();
   26854 /* The GNU C library defines this for functions which it implements
   26855     to always fail with ENOSYS.  Some functions are actually named
   26856     something starting with __ and the normal name is an alias.  */
   26857 #if defined __stub_$ac_func || defined __stub___$ac_func
   26858 choke me
   26859 #endif
   26860 
   26861 int
   26862 main ()
   26863 {
   26864 return $ac_func ();
   26865   ;
   26866   return 0;
   26867 }
   26868 _ACEOF
   26869 rm -f conftest.$ac_objext conftest$ac_exeext
   26870 if { (ac_try="$ac_link"
   26871 case "(($ac_try" in
   26872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26873   *) ac_try_echo=$ac_try;;
   26874 esac
   26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26876   (eval "$ac_link") 2>conftest.er1
   26877   ac_status=$?
   26878   grep -v '^ *+' conftest.er1 >conftest.err
   26879   rm -f conftest.er1
   26880   cat conftest.err >&5
   26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26882   (exit $ac_status); } && {
   26883 	 test -z "$ac_c_werror_flag" ||
   26884 	 test ! -s conftest.err
   26885        } && test -s conftest$ac_exeext &&
   26886        $as_test_x conftest$ac_exeext; then
   26887   eval "$as_ac_var=yes"
   26888 else
   26889   echo "$as_me: failed program was:" >&5
   26890 sed 's/^/| /' conftest.$ac_ext >&5
   26891 
   26892 	eval "$as_ac_var=no"
   26893 fi
   26894 
   26895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26896       conftest$ac_exeext conftest.$ac_ext
   26897 fi
   26898 ac_res=`eval echo '${'$as_ac_var'}'`
   26899 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26900 echo "${ECHO_T}$ac_res" >&6; }
   26901 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26902   cat >>confdefs.h <<_ACEOF
   26903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   26904 _ACEOF
   26905  cat >>confdefs.h <<\_ACEOF
   26906 #define BX_HAVE_STRCASECMP 1
   26907 _ACEOF
   26908 
   26909 fi
   26910 done
   26911 
   26912 
   26913 for ac_func in sleep
   26914 do
   26915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   26916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   26917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   26918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   26919   echo $ECHO_N "(cached) $ECHO_C" >&6
   26920 else
   26921   cat >conftest.$ac_ext <<_ACEOF
   26922 /* confdefs.h.  */
   26923 _ACEOF
   26924 cat confdefs.h >>conftest.$ac_ext
   26925 cat >>conftest.$ac_ext <<_ACEOF
   26926 /* end confdefs.h.  */
   26927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   26928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   26929 #define $ac_func innocuous_$ac_func
   26930 
   26931 /* System header to define __stub macros and hopefully few prototypes,
   26932     which can conflict with char $ac_func (); below.
   26933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   26934     <limits.h> exists even on freestanding compilers.  */
   26935 
   26936 #ifdef __STDC__
   26937 # include <limits.h>
   26938 #else
   26939 # include <assert.h>
   26940 #endif
   26941 
   26942 #undef $ac_func
   26943 
   26944 /* Override any GCC internal prototype to avoid an error.
   26945    Use char because int might match the return type of a GCC
   26946    builtin and then its argument prototype would still apply.  */
   26947 #ifdef __cplusplus
   26948 extern "C"
   26949 #endif
   26950 char $ac_func ();
   26951 /* The GNU C library defines this for functions which it implements
   26952     to always fail with ENOSYS.  Some functions are actually named
   26953     something starting with __ and the normal name is an alias.  */
   26954 #if defined __stub_$ac_func || defined __stub___$ac_func
   26955 choke me
   26956 #endif
   26957 
   26958 int
   26959 main ()
   26960 {
   26961 return $ac_func ();
   26962   ;
   26963   return 0;
   26964 }
   26965 _ACEOF
   26966 rm -f conftest.$ac_objext conftest$ac_exeext
   26967 if { (ac_try="$ac_link"
   26968 case "(($ac_try" in
   26969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26970   *) ac_try_echo=$ac_try;;
   26971 esac
   26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26973   (eval "$ac_link") 2>conftest.er1
   26974   ac_status=$?
   26975   grep -v '^ *+' conftest.er1 >conftest.err
   26976   rm -f conftest.er1
   26977   cat conftest.err >&5
   26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26979   (exit $ac_status); } && {
   26980 	 test -z "$ac_c_werror_flag" ||
   26981 	 test ! -s conftest.err
   26982        } && test -s conftest$ac_exeext &&
   26983        $as_test_x conftest$ac_exeext; then
   26984   eval "$as_ac_var=yes"
   26985 else
   26986   echo "$as_me: failed program was:" >&5
   26987 sed 's/^/| /' conftest.$ac_ext >&5
   26988 
   26989 	eval "$as_ac_var=no"
   26990 fi
   26991 
   26992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   26993       conftest$ac_exeext conftest.$ac_ext
   26994 fi
   26995 ac_res=`eval echo '${'$as_ac_var'}'`
   26996 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   26997 echo "${ECHO_T}$ac_res" >&6; }
   26998 if test `eval echo '${'$as_ac_var'}'` = yes; then
   26999   cat >>confdefs.h <<_ACEOF
   27000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27001 _ACEOF
   27002  cat >>confdefs.h <<\_ACEOF
   27003 #define BX_HAVE_SLEEP 1
   27004 _ACEOF
   27005 
   27006 fi
   27007 done
   27008 
   27009 
   27010 for ac_func in usleep
   27011 do
   27012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27016   echo $ECHO_N "(cached) $ECHO_C" >&6
   27017 else
   27018   cat >conftest.$ac_ext <<_ACEOF
   27019 /* confdefs.h.  */
   27020 _ACEOF
   27021 cat confdefs.h >>conftest.$ac_ext
   27022 cat >>conftest.$ac_ext <<_ACEOF
   27023 /* end confdefs.h.  */
   27024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27026 #define $ac_func innocuous_$ac_func
   27027 
   27028 /* System header to define __stub macros and hopefully few prototypes,
   27029     which can conflict with char $ac_func (); below.
   27030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27031     <limits.h> exists even on freestanding compilers.  */
   27032 
   27033 #ifdef __STDC__
   27034 # include <limits.h>
   27035 #else
   27036 # include <assert.h>
   27037 #endif
   27038 
   27039 #undef $ac_func
   27040 
   27041 /* Override any GCC internal prototype to avoid an error.
   27042    Use char because int might match the return type of a GCC
   27043    builtin and then its argument prototype would still apply.  */
   27044 #ifdef __cplusplus
   27045 extern "C"
   27046 #endif
   27047 char $ac_func ();
   27048 /* The GNU C library defines this for functions which it implements
   27049     to always fail with ENOSYS.  Some functions are actually named
   27050     something starting with __ and the normal name is an alias.  */
   27051 #if defined __stub_$ac_func || defined __stub___$ac_func
   27052 choke me
   27053 #endif
   27054 
   27055 int
   27056 main ()
   27057 {
   27058 return $ac_func ();
   27059   ;
   27060   return 0;
   27061 }
   27062 _ACEOF
   27063 rm -f conftest.$ac_objext conftest$ac_exeext
   27064 if { (ac_try="$ac_link"
   27065 case "(($ac_try" in
   27066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27067   *) ac_try_echo=$ac_try;;
   27068 esac
   27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27070   (eval "$ac_link") 2>conftest.er1
   27071   ac_status=$?
   27072   grep -v '^ *+' conftest.er1 >conftest.err
   27073   rm -f conftest.er1
   27074   cat conftest.err >&5
   27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27076   (exit $ac_status); } && {
   27077 	 test -z "$ac_c_werror_flag" ||
   27078 	 test ! -s conftest.err
   27079        } && test -s conftest$ac_exeext &&
   27080        $as_test_x conftest$ac_exeext; then
   27081   eval "$as_ac_var=yes"
   27082 else
   27083   echo "$as_me: failed program was:" >&5
   27084 sed 's/^/| /' conftest.$ac_ext >&5
   27085 
   27086 	eval "$as_ac_var=no"
   27087 fi
   27088 
   27089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27090       conftest$ac_exeext conftest.$ac_ext
   27091 fi
   27092 ac_res=`eval echo '${'$as_ac_var'}'`
   27093 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27094 echo "${ECHO_T}$ac_res" >&6; }
   27095 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27096   cat >>confdefs.h <<_ACEOF
   27097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27098 _ACEOF
   27099  cat >>confdefs.h <<\_ACEOF
   27100 #define BX_HAVE_USLEEP 1
   27101 _ACEOF
   27102 
   27103 fi
   27104 done
   27105 
   27106 
   27107 for ac_func in nanosleep
   27108 do
   27109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27113   echo $ECHO_N "(cached) $ECHO_C" >&6
   27114 else
   27115   cat >conftest.$ac_ext <<_ACEOF
   27116 /* confdefs.h.  */
   27117 _ACEOF
   27118 cat confdefs.h >>conftest.$ac_ext
   27119 cat >>conftest.$ac_ext <<_ACEOF
   27120 /* end confdefs.h.  */
   27121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27123 #define $ac_func innocuous_$ac_func
   27124 
   27125 /* System header to define __stub macros and hopefully few prototypes,
   27126     which can conflict with char $ac_func (); below.
   27127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27128     <limits.h> exists even on freestanding compilers.  */
   27129 
   27130 #ifdef __STDC__
   27131 # include <limits.h>
   27132 #else
   27133 # include <assert.h>
   27134 #endif
   27135 
   27136 #undef $ac_func
   27137 
   27138 /* Override any GCC internal prototype to avoid an error.
   27139    Use char because int might match the return type of a GCC
   27140    builtin and then its argument prototype would still apply.  */
   27141 #ifdef __cplusplus
   27142 extern "C"
   27143 #endif
   27144 char $ac_func ();
   27145 /* The GNU C library defines this for functions which it implements
   27146     to always fail with ENOSYS.  Some functions are actually named
   27147     something starting with __ and the normal name is an alias.  */
   27148 #if defined __stub_$ac_func || defined __stub___$ac_func
   27149 choke me
   27150 #endif
   27151 
   27152 int
   27153 main ()
   27154 {
   27155 return $ac_func ();
   27156   ;
   27157   return 0;
   27158 }
   27159 _ACEOF
   27160 rm -f conftest.$ac_objext conftest$ac_exeext
   27161 if { (ac_try="$ac_link"
   27162 case "(($ac_try" in
   27163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27164   *) ac_try_echo=$ac_try;;
   27165 esac
   27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27167   (eval "$ac_link") 2>conftest.er1
   27168   ac_status=$?
   27169   grep -v '^ *+' conftest.er1 >conftest.err
   27170   rm -f conftest.er1
   27171   cat conftest.err >&5
   27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27173   (exit $ac_status); } && {
   27174 	 test -z "$ac_c_werror_flag" ||
   27175 	 test ! -s conftest.err
   27176        } && test -s conftest$ac_exeext &&
   27177        $as_test_x conftest$ac_exeext; then
   27178   eval "$as_ac_var=yes"
   27179 else
   27180   echo "$as_me: failed program was:" >&5
   27181 sed 's/^/| /' conftest.$ac_ext >&5
   27182 
   27183 	eval "$as_ac_var=no"
   27184 fi
   27185 
   27186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27187       conftest$ac_exeext conftest.$ac_ext
   27188 fi
   27189 ac_res=`eval echo '${'$as_ac_var'}'`
   27190 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27191 echo "${ECHO_T}$ac_res" >&6; }
   27192 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27193   cat >>confdefs.h <<_ACEOF
   27194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27195 _ACEOF
   27196  cat >>confdefs.h <<\_ACEOF
   27197 #define BX_HAVE_NANOSLEEP 1
   27198 _ACEOF
   27199 
   27200 fi
   27201 done
   27202 
   27203 
   27204 for ac_func in abort
   27205 do
   27206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27210   echo $ECHO_N "(cached) $ECHO_C" >&6
   27211 else
   27212   cat >conftest.$ac_ext <<_ACEOF
   27213 /* confdefs.h.  */
   27214 _ACEOF
   27215 cat confdefs.h >>conftest.$ac_ext
   27216 cat >>conftest.$ac_ext <<_ACEOF
   27217 /* end confdefs.h.  */
   27218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27220 #define $ac_func innocuous_$ac_func
   27221 
   27222 /* System header to define __stub macros and hopefully few prototypes,
   27223     which can conflict with char $ac_func (); below.
   27224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27225     <limits.h> exists even on freestanding compilers.  */
   27226 
   27227 #ifdef __STDC__
   27228 # include <limits.h>
   27229 #else
   27230 # include <assert.h>
   27231 #endif
   27232 
   27233 #undef $ac_func
   27234 
   27235 /* Override any GCC internal prototype to avoid an error.
   27236    Use char because int might match the return type of a GCC
   27237    builtin and then its argument prototype would still apply.  */
   27238 #ifdef __cplusplus
   27239 extern "C"
   27240 #endif
   27241 char $ac_func ();
   27242 /* The GNU C library defines this for functions which it implements
   27243     to always fail with ENOSYS.  Some functions are actually named
   27244     something starting with __ and the normal name is an alias.  */
   27245 #if defined __stub_$ac_func || defined __stub___$ac_func
   27246 choke me
   27247 #endif
   27248 
   27249 int
   27250 main ()
   27251 {
   27252 return $ac_func ();
   27253   ;
   27254   return 0;
   27255 }
   27256 _ACEOF
   27257 rm -f conftest.$ac_objext conftest$ac_exeext
   27258 if { (ac_try="$ac_link"
   27259 case "(($ac_try" in
   27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27261   *) ac_try_echo=$ac_try;;
   27262 esac
   27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27264   (eval "$ac_link") 2>conftest.er1
   27265   ac_status=$?
   27266   grep -v '^ *+' conftest.er1 >conftest.err
   27267   rm -f conftest.er1
   27268   cat conftest.err >&5
   27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27270   (exit $ac_status); } && {
   27271 	 test -z "$ac_c_werror_flag" ||
   27272 	 test ! -s conftest.err
   27273        } && test -s conftest$ac_exeext &&
   27274        $as_test_x conftest$ac_exeext; then
   27275   eval "$as_ac_var=yes"
   27276 else
   27277   echo "$as_me: failed program was:" >&5
   27278 sed 's/^/| /' conftest.$ac_ext >&5
   27279 
   27280 	eval "$as_ac_var=no"
   27281 fi
   27282 
   27283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27284       conftest$ac_exeext conftest.$ac_ext
   27285 fi
   27286 ac_res=`eval echo '${'$as_ac_var'}'`
   27287 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27288 echo "${ECHO_T}$ac_res" >&6; }
   27289 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27290   cat >>confdefs.h <<_ACEOF
   27291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27292 _ACEOF
   27293  cat >>confdefs.h <<\_ACEOF
   27294 #define BX_HAVE_ABORT 1
   27295 _ACEOF
   27296 
   27297 fi
   27298 done
   27299 
   27300 
   27301 for ac_func in gettimeofday
   27302 do
   27303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27307   echo $ECHO_N "(cached) $ECHO_C" >&6
   27308 else
   27309   cat >conftest.$ac_ext <<_ACEOF
   27310 /* confdefs.h.  */
   27311 _ACEOF
   27312 cat confdefs.h >>conftest.$ac_ext
   27313 cat >>conftest.$ac_ext <<_ACEOF
   27314 /* end confdefs.h.  */
   27315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27317 #define $ac_func innocuous_$ac_func
   27318 
   27319 /* System header to define __stub macros and hopefully few prototypes,
   27320     which can conflict with char $ac_func (); below.
   27321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27322     <limits.h> exists even on freestanding compilers.  */
   27323 
   27324 #ifdef __STDC__
   27325 # include <limits.h>
   27326 #else
   27327 # include <assert.h>
   27328 #endif
   27329 
   27330 #undef $ac_func
   27331 
   27332 /* Override any GCC internal prototype to avoid an error.
   27333    Use char because int might match the return type of a GCC
   27334    builtin and then its argument prototype would still apply.  */
   27335 #ifdef __cplusplus
   27336 extern "C"
   27337 #endif
   27338 char $ac_func ();
   27339 /* The GNU C library defines this for functions which it implements
   27340     to always fail with ENOSYS.  Some functions are actually named
   27341     something starting with __ and the normal name is an alias.  */
   27342 #if defined __stub_$ac_func || defined __stub___$ac_func
   27343 choke me
   27344 #endif
   27345 
   27346 int
   27347 main ()
   27348 {
   27349 return $ac_func ();
   27350   ;
   27351   return 0;
   27352 }
   27353 _ACEOF
   27354 rm -f conftest.$ac_objext conftest$ac_exeext
   27355 if { (ac_try="$ac_link"
   27356 case "(($ac_try" in
   27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27358   *) ac_try_echo=$ac_try;;
   27359 esac
   27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27361   (eval "$ac_link") 2>conftest.er1
   27362   ac_status=$?
   27363   grep -v '^ *+' conftest.er1 >conftest.err
   27364   rm -f conftest.er1
   27365   cat conftest.err >&5
   27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27367   (exit $ac_status); } && {
   27368 	 test -z "$ac_c_werror_flag" ||
   27369 	 test ! -s conftest.err
   27370        } && test -s conftest$ac_exeext &&
   27371        $as_test_x conftest$ac_exeext; then
   27372   eval "$as_ac_var=yes"
   27373 else
   27374   echo "$as_me: failed program was:" >&5
   27375 sed 's/^/| /' conftest.$ac_ext >&5
   27376 
   27377 	eval "$as_ac_var=no"
   27378 fi
   27379 
   27380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27381       conftest$ac_exeext conftest.$ac_ext
   27382 fi
   27383 ac_res=`eval echo '${'$as_ac_var'}'`
   27384 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27385 echo "${ECHO_T}$ac_res" >&6; }
   27386 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27387   cat >>confdefs.h <<_ACEOF
   27388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27389 _ACEOF
   27390  cat >>confdefs.h <<\_ACEOF
   27391 #define BX_HAVE_GETTIMEOFDAY 1
   27392 _ACEOF
   27393 
   27394 fi
   27395 done
   27396 
   27397 { echo "$as_me:$LINENO: checking for socklen_t" >&5
   27398 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
   27399 if test "${ac_cv_type_socklen_t+set}" = set; then
   27400   echo $ECHO_N "(cached) $ECHO_C" >&6
   27401 else
   27402   cat >conftest.$ac_ext <<_ACEOF
   27403 /* confdefs.h.  */
   27404 _ACEOF
   27405 cat confdefs.h >>conftest.$ac_ext
   27406 cat >>conftest.$ac_ext <<_ACEOF
   27407 /* end confdefs.h.  */
   27408 #include <sys/types.h>
   27409 #include <sys/socket.h>
   27410 
   27411 typedef socklen_t ac__type_new_;
   27412 int
   27413 main ()
   27414 {
   27415 if ((ac__type_new_ *) 0)
   27416   return 0;
   27417 if (sizeof (ac__type_new_))
   27418   return 0;
   27419   ;
   27420   return 0;
   27421 }
   27422 _ACEOF
   27423 rm -f conftest.$ac_objext
   27424 if { (ac_try="$ac_compile"
   27425 case "(($ac_try" in
   27426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27427   *) ac_try_echo=$ac_try;;
   27428 esac
   27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27430   (eval "$ac_compile") 2>conftest.er1
   27431   ac_status=$?
   27432   grep -v '^ *+' conftest.er1 >conftest.err
   27433   rm -f conftest.er1
   27434   cat conftest.err >&5
   27435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27436   (exit $ac_status); } && {
   27437 	 test -z "$ac_c_werror_flag" ||
   27438 	 test ! -s conftest.err
   27439        } && test -s conftest.$ac_objext; then
   27440   ac_cv_type_socklen_t=yes
   27441 else
   27442   echo "$as_me: failed program was:" >&5
   27443 sed 's/^/| /' conftest.$ac_ext >&5
   27444 
   27445 	ac_cv_type_socklen_t=no
   27446 fi
   27447 
   27448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27449 fi
   27450 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
   27451 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
   27452 if test $ac_cv_type_socklen_t = yes; then
   27453   cat >>confdefs.h <<\_ACEOF
   27454 #define BX_HAVE_SOCKLEN_T 1
   27455 _ACEOF
   27456 
   27457 fi
   27458 
   27459 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
   27460 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
   27461 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
   27462   echo $ECHO_N "(cached) $ECHO_C" >&6
   27463 else
   27464   cat >conftest.$ac_ext <<_ACEOF
   27465 /* confdefs.h.  */
   27466 _ACEOF
   27467 cat confdefs.h >>conftest.$ac_ext
   27468 cat >>conftest.$ac_ext <<_ACEOF
   27469 /* end confdefs.h.  */
   27470 #include <sys/socket.h>
   27471 #include <netinet/in.h>
   27472 
   27473 int
   27474 main ()
   27475 {
   27476 static struct sockaddr_in ac_aggr;
   27477 if (ac_aggr.sin_len)
   27478 return 0;
   27479   ;
   27480   return 0;
   27481 }
   27482 _ACEOF
   27483 rm -f conftest.$ac_objext
   27484 if { (ac_try="$ac_compile"
   27485 case "(($ac_try" in
   27486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27487   *) ac_try_echo=$ac_try;;
   27488 esac
   27489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27490   (eval "$ac_compile") 2>conftest.er1
   27491   ac_status=$?
   27492   grep -v '^ *+' conftest.er1 >conftest.err
   27493   rm -f conftest.er1
   27494   cat conftest.err >&5
   27495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27496   (exit $ac_status); } && {
   27497 	 test -z "$ac_c_werror_flag" ||
   27498 	 test ! -s conftest.err
   27499        } && test -s conftest.$ac_objext; then
   27500   ac_cv_member_struct_sockaddr_in_sin_len=yes
   27501 else
   27502   echo "$as_me: failed program was:" >&5
   27503 sed 's/^/| /' conftest.$ac_ext >&5
   27504 
   27505 	cat >conftest.$ac_ext <<_ACEOF
   27506 /* confdefs.h.  */
   27507 _ACEOF
   27508 cat confdefs.h >>conftest.$ac_ext
   27509 cat >>conftest.$ac_ext <<_ACEOF
   27510 /* end confdefs.h.  */
   27511 #include <sys/socket.h>
   27512 #include <netinet/in.h>
   27513 
   27514 int
   27515 main ()
   27516 {
   27517 static struct sockaddr_in ac_aggr;
   27518 if (sizeof ac_aggr.sin_len)
   27519 return 0;
   27520   ;
   27521   return 0;
   27522 }
   27523 _ACEOF
   27524 rm -f conftest.$ac_objext
   27525 if { (ac_try="$ac_compile"
   27526 case "(($ac_try" in
   27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27528   *) ac_try_echo=$ac_try;;
   27529 esac
   27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27531   (eval "$ac_compile") 2>conftest.er1
   27532   ac_status=$?
   27533   grep -v '^ *+' conftest.er1 >conftest.err
   27534   rm -f conftest.er1
   27535   cat conftest.err >&5
   27536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27537   (exit $ac_status); } && {
   27538 	 test -z "$ac_c_werror_flag" ||
   27539 	 test ! -s conftest.err
   27540        } && test -s conftest.$ac_objext; then
   27541   ac_cv_member_struct_sockaddr_in_sin_len=yes
   27542 else
   27543   echo "$as_me: failed program was:" >&5
   27544 sed 's/^/| /' conftest.$ac_ext >&5
   27545 
   27546 	ac_cv_member_struct_sockaddr_in_sin_len=no
   27547 fi
   27548 
   27549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27550 fi
   27551 
   27552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27553 fi
   27554 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
   27555 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
   27556 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
   27557   cat >>confdefs.h <<\_ACEOF
   27558 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
   27559 _ACEOF
   27560 
   27561 fi
   27562 
   27563 
   27564 for ac_func in mkstemp
   27565 do
   27566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27570   echo $ECHO_N "(cached) $ECHO_C" >&6
   27571 else
   27572   cat >conftest.$ac_ext <<_ACEOF
   27573 /* confdefs.h.  */
   27574 _ACEOF
   27575 cat confdefs.h >>conftest.$ac_ext
   27576 cat >>conftest.$ac_ext <<_ACEOF
   27577 /* end confdefs.h.  */
   27578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27580 #define $ac_func innocuous_$ac_func
   27581 
   27582 /* System header to define __stub macros and hopefully few prototypes,
   27583     which can conflict with char $ac_func (); below.
   27584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27585     <limits.h> exists even on freestanding compilers.  */
   27586 
   27587 #ifdef __STDC__
   27588 # include <limits.h>
   27589 #else
   27590 # include <assert.h>
   27591 #endif
   27592 
   27593 #undef $ac_func
   27594 
   27595 /* Override any GCC internal prototype to avoid an error.
   27596    Use char because int might match the return type of a GCC
   27597    builtin and then its argument prototype would still apply.  */
   27598 #ifdef __cplusplus
   27599 extern "C"
   27600 #endif
   27601 char $ac_func ();
   27602 /* The GNU C library defines this for functions which it implements
   27603     to always fail with ENOSYS.  Some functions are actually named
   27604     something starting with __ and the normal name is an alias.  */
   27605 #if defined __stub_$ac_func || defined __stub___$ac_func
   27606 choke me
   27607 #endif
   27608 
   27609 int
   27610 main ()
   27611 {
   27612 return $ac_func ();
   27613   ;
   27614   return 0;
   27615 }
   27616 _ACEOF
   27617 rm -f conftest.$ac_objext conftest$ac_exeext
   27618 if { (ac_try="$ac_link"
   27619 case "(($ac_try" in
   27620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27621   *) ac_try_echo=$ac_try;;
   27622 esac
   27623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27624   (eval "$ac_link") 2>conftest.er1
   27625   ac_status=$?
   27626   grep -v '^ *+' conftest.er1 >conftest.err
   27627   rm -f conftest.er1
   27628   cat conftest.err >&5
   27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27630   (exit $ac_status); } && {
   27631 	 test -z "$ac_c_werror_flag" ||
   27632 	 test ! -s conftest.err
   27633        } && test -s conftest$ac_exeext &&
   27634        $as_test_x conftest$ac_exeext; then
   27635   eval "$as_ac_var=yes"
   27636 else
   27637   echo "$as_me: failed program was:" >&5
   27638 sed 's/^/| /' conftest.$ac_ext >&5
   27639 
   27640 	eval "$as_ac_var=no"
   27641 fi
   27642 
   27643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27644       conftest$ac_exeext conftest.$ac_ext
   27645 fi
   27646 ac_res=`eval echo '${'$as_ac_var'}'`
   27647 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27648 echo "${ECHO_T}$ac_res" >&6; }
   27649 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27650   cat >>confdefs.h <<_ACEOF
   27651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27652 _ACEOF
   27653  cat >>confdefs.h <<\_ACEOF
   27654 #define BX_HAVE_MKSTEMP 1
   27655 _ACEOF
   27656 
   27657 fi
   27658 done
   27659 
   27660 if test "${ac_cv_header_sys_mman_h+set}" = set; then
   27661   { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
   27662 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
   27663 if test "${ac_cv_header_sys_mman_h+set}" = set; then
   27664   echo $ECHO_N "(cached) $ECHO_C" >&6
   27665 fi
   27666 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
   27667 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
   27668 else
   27669   # Is the header compilable?
   27670 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
   27671 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
   27672 cat >conftest.$ac_ext <<_ACEOF
   27673 /* confdefs.h.  */
   27674 _ACEOF
   27675 cat confdefs.h >>conftest.$ac_ext
   27676 cat >>conftest.$ac_ext <<_ACEOF
   27677 /* end confdefs.h.  */
   27678 $ac_includes_default
   27679 #include <sys/mman.h>
   27680 _ACEOF
   27681 rm -f conftest.$ac_objext
   27682 if { (ac_try="$ac_compile"
   27683 case "(($ac_try" in
   27684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27685   *) ac_try_echo=$ac_try;;
   27686 esac
   27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27688   (eval "$ac_compile") 2>conftest.er1
   27689   ac_status=$?
   27690   grep -v '^ *+' conftest.er1 >conftest.err
   27691   rm -f conftest.er1
   27692   cat conftest.err >&5
   27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27694   (exit $ac_status); } && {
   27695 	 test -z "$ac_c_werror_flag" ||
   27696 	 test ! -s conftest.err
   27697        } && test -s conftest.$ac_objext; then
   27698   ac_header_compiler=yes
   27699 else
   27700   echo "$as_me: failed program was:" >&5
   27701 sed 's/^/| /' conftest.$ac_ext >&5
   27702 
   27703 	ac_header_compiler=no
   27704 fi
   27705 
   27706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   27708 echo "${ECHO_T}$ac_header_compiler" >&6; }
   27709 
   27710 # Is the header present?
   27711 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
   27712 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
   27713 cat >conftest.$ac_ext <<_ACEOF
   27714 /* confdefs.h.  */
   27715 _ACEOF
   27716 cat confdefs.h >>conftest.$ac_ext
   27717 cat >>conftest.$ac_ext <<_ACEOF
   27718 /* end confdefs.h.  */
   27719 #include <sys/mman.h>
   27720 _ACEOF
   27721 if { (ac_try="$ac_cpp conftest.$ac_ext"
   27722 case "(($ac_try" in
   27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27724   *) ac_try_echo=$ac_try;;
   27725 esac
   27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   27728   ac_status=$?
   27729   grep -v '^ *+' conftest.er1 >conftest.err
   27730   rm -f conftest.er1
   27731   cat conftest.err >&5
   27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27733   (exit $ac_status); } >/dev/null && {
   27734 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   27735 	 test ! -s conftest.err
   27736        }; then
   27737   ac_header_preproc=yes
   27738 else
   27739   echo "$as_me: failed program was:" >&5
   27740 sed 's/^/| /' conftest.$ac_ext >&5
   27741 
   27742   ac_header_preproc=no
   27743 fi
   27744 
   27745 rm -f conftest.err conftest.$ac_ext
   27746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   27747 echo "${ECHO_T}$ac_header_preproc" >&6; }
   27748 
   27749 # So?  What about this header?
   27750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   27751   yes:no: )
   27752     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
   27753 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   27754     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
   27755 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
   27756     ac_header_preproc=yes
   27757     ;;
   27758   no:yes:* )
   27759     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
   27760 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
   27761     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
   27762 echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
   27763     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
   27764 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
   27765     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
   27766 echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   27767     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
   27768 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
   27769     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
   27770 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
   27771 
   27772     ;;
   27773 esac
   27774 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
   27775 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
   27776 if test "${ac_cv_header_sys_mman_h+set}" = set; then
   27777   echo $ECHO_N "(cached) $ECHO_C" >&6
   27778 else
   27779   ac_cv_header_sys_mman_h=$ac_header_preproc
   27780 fi
   27781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
   27782 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
   27783 
   27784 fi
   27785 if test $ac_cv_header_sys_mman_h = yes; then
   27786   cat >>confdefs.h <<\_ACEOF
   27787 #define BX_HAVE_SYS_MMAN_H 1
   27788 _ACEOF
   27789 
   27790 fi
   27791 
   27792 
   27793 
   27794 for ac_func in timelocal
   27795 do
   27796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27800   echo $ECHO_N "(cached) $ECHO_C" >&6
   27801 else
   27802   cat >conftest.$ac_ext <<_ACEOF
   27803 /* confdefs.h.  */
   27804 _ACEOF
   27805 cat confdefs.h >>conftest.$ac_ext
   27806 cat >>conftest.$ac_ext <<_ACEOF
   27807 /* end confdefs.h.  */
   27808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27810 #define $ac_func innocuous_$ac_func
   27811 
   27812 /* System header to define __stub macros and hopefully few prototypes,
   27813     which can conflict with char $ac_func (); below.
   27814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27815     <limits.h> exists even on freestanding compilers.  */
   27816 
   27817 #ifdef __STDC__
   27818 # include <limits.h>
   27819 #else
   27820 # include <assert.h>
   27821 #endif
   27822 
   27823 #undef $ac_func
   27824 
   27825 /* Override any GCC internal prototype to avoid an error.
   27826    Use char because int might match the return type of a GCC
   27827    builtin and then its argument prototype would still apply.  */
   27828 #ifdef __cplusplus
   27829 extern "C"
   27830 #endif
   27831 char $ac_func ();
   27832 /* The GNU C library defines this for functions which it implements
   27833     to always fail with ENOSYS.  Some functions are actually named
   27834     something starting with __ and the normal name is an alias.  */
   27835 #if defined __stub_$ac_func || defined __stub___$ac_func
   27836 choke me
   27837 #endif
   27838 
   27839 int
   27840 main ()
   27841 {
   27842 return $ac_func ();
   27843   ;
   27844   return 0;
   27845 }
   27846 _ACEOF
   27847 rm -f conftest.$ac_objext conftest$ac_exeext
   27848 if { (ac_try="$ac_link"
   27849 case "(($ac_try" in
   27850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27851   *) ac_try_echo=$ac_try;;
   27852 esac
   27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27854   (eval "$ac_link") 2>conftest.er1
   27855   ac_status=$?
   27856   grep -v '^ *+' conftest.er1 >conftest.err
   27857   rm -f conftest.er1
   27858   cat conftest.err >&5
   27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27860   (exit $ac_status); } && {
   27861 	 test -z "$ac_c_werror_flag" ||
   27862 	 test ! -s conftest.err
   27863        } && test -s conftest$ac_exeext &&
   27864        $as_test_x conftest$ac_exeext; then
   27865   eval "$as_ac_var=yes"
   27866 else
   27867   echo "$as_me: failed program was:" >&5
   27868 sed 's/^/| /' conftest.$ac_ext >&5
   27869 
   27870 	eval "$as_ac_var=no"
   27871 fi
   27872 
   27873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27874       conftest$ac_exeext conftest.$ac_ext
   27875 fi
   27876 ac_res=`eval echo '${'$as_ac_var'}'`
   27877 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27878 echo "${ECHO_T}$ac_res" >&6; }
   27879 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27880   cat >>confdefs.h <<_ACEOF
   27881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27882 _ACEOF
   27883  cat >>confdefs.h <<\_ACEOF
   27884 #define BX_HAVE_TIMELOCAL 1
   27885 _ACEOF
   27886 
   27887 fi
   27888 done
   27889 
   27890 
   27891 for ac_func in gmtime
   27892 do
   27893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27897   echo $ECHO_N "(cached) $ECHO_C" >&6
   27898 else
   27899   cat >conftest.$ac_ext <<_ACEOF
   27900 /* confdefs.h.  */
   27901 _ACEOF
   27902 cat confdefs.h >>conftest.$ac_ext
   27903 cat >>conftest.$ac_ext <<_ACEOF
   27904 /* end confdefs.h.  */
   27905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   27906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   27907 #define $ac_func innocuous_$ac_func
   27908 
   27909 /* System header to define __stub macros and hopefully few prototypes,
   27910     which can conflict with char $ac_func (); below.
   27911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   27912     <limits.h> exists even on freestanding compilers.  */
   27913 
   27914 #ifdef __STDC__
   27915 # include <limits.h>
   27916 #else
   27917 # include <assert.h>
   27918 #endif
   27919 
   27920 #undef $ac_func
   27921 
   27922 /* Override any GCC internal prototype to avoid an error.
   27923    Use char because int might match the return type of a GCC
   27924    builtin and then its argument prototype would still apply.  */
   27925 #ifdef __cplusplus
   27926 extern "C"
   27927 #endif
   27928 char $ac_func ();
   27929 /* The GNU C library defines this for functions which it implements
   27930     to always fail with ENOSYS.  Some functions are actually named
   27931     something starting with __ and the normal name is an alias.  */
   27932 #if defined __stub_$ac_func || defined __stub___$ac_func
   27933 choke me
   27934 #endif
   27935 
   27936 int
   27937 main ()
   27938 {
   27939 return $ac_func ();
   27940   ;
   27941   return 0;
   27942 }
   27943 _ACEOF
   27944 rm -f conftest.$ac_objext conftest$ac_exeext
   27945 if { (ac_try="$ac_link"
   27946 case "(($ac_try" in
   27947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27948   *) ac_try_echo=$ac_try;;
   27949 esac
   27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27951   (eval "$ac_link") 2>conftest.er1
   27952   ac_status=$?
   27953   grep -v '^ *+' conftest.er1 >conftest.err
   27954   rm -f conftest.er1
   27955   cat conftest.err >&5
   27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27957   (exit $ac_status); } && {
   27958 	 test -z "$ac_c_werror_flag" ||
   27959 	 test ! -s conftest.err
   27960        } && test -s conftest$ac_exeext &&
   27961        $as_test_x conftest$ac_exeext; then
   27962   eval "$as_ac_var=yes"
   27963 else
   27964   echo "$as_me: failed program was:" >&5
   27965 sed 's/^/| /' conftest.$ac_ext >&5
   27966 
   27967 	eval "$as_ac_var=no"
   27968 fi
   27969 
   27970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   27971       conftest$ac_exeext conftest.$ac_ext
   27972 fi
   27973 ac_res=`eval echo '${'$as_ac_var'}'`
   27974 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   27975 echo "${ECHO_T}$ac_res" >&6; }
   27976 if test `eval echo '${'$as_ac_var'}'` = yes; then
   27977   cat >>confdefs.h <<_ACEOF
   27978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   27979 _ACEOF
   27980  cat >>confdefs.h <<\_ACEOF
   27981 #define BX_HAVE_GMTIME 1
   27982 _ACEOF
   27983 
   27984 fi
   27985 done
   27986 
   27987 
   27988 for ac_func in mktime
   27989 do
   27990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   27991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   27992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   27993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   27994   echo $ECHO_N "(cached) $ECHO_C" >&6
   27995 else
   27996   cat >conftest.$ac_ext <<_ACEOF
   27997 /* confdefs.h.  */
   27998 _ACEOF
   27999 cat confdefs.h >>conftest.$ac_ext
   28000 cat >>conftest.$ac_ext <<_ACEOF
   28001 /* end confdefs.h.  */
   28002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   28003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   28004 #define $ac_func innocuous_$ac_func
   28005 
   28006 /* System header to define __stub macros and hopefully few prototypes,
   28007     which can conflict with char $ac_func (); below.
   28008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   28009     <limits.h> exists even on freestanding compilers.  */
   28010 
   28011 #ifdef __STDC__
   28012 # include <limits.h>
   28013 #else
   28014 # include <assert.h>
   28015 #endif
   28016 
   28017 #undef $ac_func
   28018 
   28019 /* Override any GCC internal prototype to avoid an error.
   28020    Use char because int might match the return type of a GCC
   28021    builtin and then its argument prototype would still apply.  */
   28022 #ifdef __cplusplus
   28023 extern "C"
   28024 #endif
   28025 char $ac_func ();
   28026 /* The GNU C library defines this for functions which it implements
   28027     to always fail with ENOSYS.  Some functions are actually named
   28028     something starting with __ and the normal name is an alias.  */
   28029 #if defined __stub_$ac_func || defined __stub___$ac_func
   28030 choke me
   28031 #endif
   28032 
   28033 int
   28034 main ()
   28035 {
   28036 return $ac_func ();
   28037   ;
   28038   return 0;
   28039 }
   28040 _ACEOF
   28041 rm -f conftest.$ac_objext conftest$ac_exeext
   28042 if { (ac_try="$ac_link"
   28043 case "(($ac_try" in
   28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28045   *) ac_try_echo=$ac_try;;
   28046 esac
   28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28048   (eval "$ac_link") 2>conftest.er1
   28049   ac_status=$?
   28050   grep -v '^ *+' conftest.er1 >conftest.err
   28051   rm -f conftest.er1
   28052   cat conftest.err >&5
   28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28054   (exit $ac_status); } && {
   28055 	 test -z "$ac_c_werror_flag" ||
   28056 	 test ! -s conftest.err
   28057        } && test -s conftest$ac_exeext &&
   28058        $as_test_x conftest$ac_exeext; then
   28059   eval "$as_ac_var=yes"
   28060 else
   28061   echo "$as_me: failed program was:" >&5
   28062 sed 's/^/| /' conftest.$ac_ext >&5
   28063 
   28064 	eval "$as_ac_var=no"
   28065 fi
   28066 
   28067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   28068       conftest$ac_exeext conftest.$ac_ext
   28069 fi
   28070 ac_res=`eval echo '${'$as_ac_var'}'`
   28071 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   28072 echo "${ECHO_T}$ac_res" >&6; }
   28073 if test `eval echo '${'$as_ac_var'}'` = yes; then
   28074   cat >>confdefs.h <<_ACEOF
   28075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   28076 _ACEOF
   28077  cat >>confdefs.h <<\_ACEOF
   28078 #define BX_HAVE_MKTIME 1
   28079 _ACEOF
   28080 
   28081 fi
   28082 done
   28083 
   28084 
   28085 # Check whether --enable-largefile was given.
   28086 if test "${enable_largefile+set}" = set; then
   28087   enableval=$enable_largefile;
   28088 fi
   28089 
   28090 if test "$enable_largefile" != no; then
   28091             wx_largefile=no
   28092 
   28093     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   28094 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
   28095 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
   28096   echo $ECHO_N "(cached) $ECHO_C" >&6
   28097 else
   28098 
   28099           cat >conftest.$ac_ext <<_ACEOF
   28100 /* confdefs.h.  */
   28101 _ACEOF
   28102 cat confdefs.h >>conftest.$ac_ext
   28103 cat >>conftest.$ac_ext <<_ACEOF
   28104 /* end confdefs.h.  */
   28105 #define _FILE_OFFSET_BITS 64
   28106                           #include <sys/types.h>
   28107 int
   28108 main ()
   28109 {
   28110 typedef struct {
   28111     unsigned int field: sizeof(off_t) == 8;
   28112 } wxlf;
   28113 
   28114   ;
   28115   return 0;
   28116 }
   28117 _ACEOF
   28118 rm -f conftest.$ac_objext
   28119 if { (ac_try="$ac_compile"
   28120 case "(($ac_try" in
   28121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28122   *) ac_try_echo=$ac_try;;
   28123 esac
   28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28125   (eval "$ac_compile") 2>conftest.er1
   28126   ac_status=$?
   28127   grep -v '^ *+' conftest.er1 >conftest.err
   28128   rm -f conftest.er1
   28129   cat conftest.err >&5
   28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28131   (exit $ac_status); } && {
   28132 	 test -z "$ac_c_werror_flag" ||
   28133 	 test ! -s conftest.err
   28134        } && test -s conftest.$ac_objext; then
   28135   ac_cv_sys_file_offset_bits=64
   28136 else
   28137   echo "$as_me: failed program was:" >&5
   28138 sed 's/^/| /' conftest.$ac_ext >&5
   28139 
   28140 	ac_cv_sys_file_offset_bits=no
   28141 fi
   28142 
   28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28144 
   28145 
   28146 fi
   28147 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
   28148 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
   28149 
   28150     if test "$ac_cv_sys_file_offset_bits" != no; then
   28151         wx_largefile=yes
   28152         cat >>confdefs.h <<_ACEOF
   28153 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   28154 _ACEOF
   28155 
   28156     fi
   28157 
   28158     if test "x$wx_largefile" != "xyes"; then
   28159 
   28160     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
   28161 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
   28162 if test "${ac_cv_sys_large_files+set}" = set; then
   28163   echo $ECHO_N "(cached) $ECHO_C" >&6
   28164 else
   28165 
   28166           cat >conftest.$ac_ext <<_ACEOF
   28167 /* confdefs.h.  */
   28168 _ACEOF
   28169 cat confdefs.h >>conftest.$ac_ext
   28170 cat >>conftest.$ac_ext <<_ACEOF
   28171 /* end confdefs.h.  */
   28172 #define _LARGE_FILES 1
   28173                           #include <sys/types.h>
   28174 int
   28175 main ()
   28176 {
   28177 typedef struct {
   28178     unsigned int field: sizeof(off_t) == 8;
   28179 } wxlf;
   28180 
   28181   ;
   28182   return 0;
   28183 }
   28184 _ACEOF
   28185 rm -f conftest.$ac_objext
   28186 if { (ac_try="$ac_compile"
   28187 case "(($ac_try" in
   28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28189   *) ac_try_echo=$ac_try;;
   28190 esac
   28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28192   (eval "$ac_compile") 2>conftest.er1
   28193   ac_status=$?
   28194   grep -v '^ *+' conftest.er1 >conftest.err
   28195   rm -f conftest.er1
   28196   cat conftest.err >&5
   28197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28198   (exit $ac_status); } && {
   28199 	 test -z "$ac_c_werror_flag" ||
   28200 	 test ! -s conftest.err
   28201        } && test -s conftest.$ac_objext; then
   28202   ac_cv_sys_large_files=1
   28203 else
   28204   echo "$as_me: failed program was:" >&5
   28205 sed 's/^/| /' conftest.$ac_ext >&5
   28206 
   28207 	ac_cv_sys_large_files=no
   28208 fi
   28209 
   28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28211 
   28212 
   28213 fi
   28214 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
   28215 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
   28216 
   28217     if test "$ac_cv_sys_large_files" != no; then
   28218         wx_largefile=yes
   28219         cat >>confdefs.h <<_ACEOF
   28220 #define _LARGE_FILES $ac_cv_sys_large_files
   28221 _ACEOF
   28222 
   28223     fi
   28224 
   28225     fi
   28226 
   28227     { echo "$as_me:$LINENO: checking if large file support is available" >&5
   28228 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
   28229     if test "x$wx_largefile" = "xyes"; then
   28230         cat >>confdefs.h <<\_ACEOF
   28231 #define HAVE_LARGEFILE_SUPPORT 1
   28232 _ACEOF
   28233 
   28234     fi
   28235     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
   28236 echo "${ECHO_T}$wx_largefile" >&6; }
   28237 fi
   28238 
   28239 
   28240 if test "x$wx_largefile" = "xyes"; then
   28241     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
   28242         BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
   28243     else
   28244         BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
   28245     fi
   28246     CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
   28247     CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
   28248     CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
   28249 fi
   28250 
   28251 have_cos=0
   28252 have_floor=0
   28253 
   28254 for ac_func in cos
   28255 do
   28256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   28257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   28258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   28259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   28260   echo $ECHO_N "(cached) $ECHO_C" >&6
   28261 else
   28262   cat >conftest.$ac_ext <<_ACEOF
   28263 /* confdefs.h.  */
   28264 _ACEOF
   28265 cat confdefs.h >>conftest.$ac_ext
   28266 cat >>conftest.$ac_ext <<_ACEOF
   28267 /* end confdefs.h.  */
   28268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   28269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   28270 #define $ac_func innocuous_$ac_func
   28271 
   28272 /* System header to define __stub macros and hopefully few prototypes,
   28273     which can conflict with char $ac_func (); below.
   28274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   28275     <limits.h> exists even on freestanding compilers.  */
   28276 
   28277 #ifdef __STDC__
   28278 # include <limits.h>
   28279 #else
   28280 # include <assert.h>
   28281 #endif
   28282 
   28283 #undef $ac_func
   28284 
   28285 /* Override any GCC internal prototype to avoid an error.
   28286    Use char because int might match the return type of a GCC
   28287    builtin and then its argument prototype would still apply.  */
   28288 #ifdef __cplusplus
   28289 extern "C"
   28290 #endif
   28291 char $ac_func ();
   28292 /* The GNU C library defines this for functions which it implements
   28293     to always fail with ENOSYS.  Some functions are actually named
   28294     something starting with __ and the normal name is an alias.  */
   28295 #if defined __stub_$ac_func || defined __stub___$ac_func
   28296 choke me
   28297 #endif
   28298 
   28299 int
   28300 main ()
   28301 {
   28302 return $ac_func ();
   28303   ;
   28304   return 0;
   28305 }
   28306 _ACEOF
   28307 rm -f conftest.$ac_objext conftest$ac_exeext
   28308 if { (ac_try="$ac_link"
   28309 case "(($ac_try" in
   28310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28311   *) ac_try_echo=$ac_try;;
   28312 esac
   28313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28314   (eval "$ac_link") 2>conftest.er1
   28315   ac_status=$?
   28316   grep -v '^ *+' conftest.er1 >conftest.err
   28317   rm -f conftest.er1
   28318   cat conftest.err >&5
   28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28320   (exit $ac_status); } && {
   28321 	 test -z "$ac_c_werror_flag" ||
   28322 	 test ! -s conftest.err
   28323        } && test -s conftest$ac_exeext &&
   28324        $as_test_x conftest$ac_exeext; then
   28325   eval "$as_ac_var=yes"
   28326 else
   28327   echo "$as_me: failed program was:" >&5
   28328 sed 's/^/| /' conftest.$ac_ext >&5
   28329 
   28330 	eval "$as_ac_var=no"
   28331 fi
   28332 
   28333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   28334       conftest$ac_exeext conftest.$ac_ext
   28335 fi
   28336 ac_res=`eval echo '${'$as_ac_var'}'`
   28337 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   28338 echo "${ECHO_T}$ac_res" >&6; }
   28339 if test `eval echo '${'$as_ac_var'}'` = yes; then
   28340   cat >>confdefs.h <<_ACEOF
   28341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   28342 _ACEOF
   28343  have_cos=1
   28344 fi
   28345 done
   28346 
   28347 
   28348 for ac_func in floor
   28349 do
   28350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   28351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   28352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   28353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   28354   echo $ECHO_N "(cached) $ECHO_C" >&6
   28355 else
   28356   cat >conftest.$ac_ext <<_ACEOF
   28357 /* confdefs.h.  */
   28358 _ACEOF
   28359 cat confdefs.h >>conftest.$ac_ext
   28360 cat >>conftest.$ac_ext <<_ACEOF
   28361 /* end confdefs.h.  */
   28362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   28363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   28364 #define $ac_func innocuous_$ac_func
   28365 
   28366 /* System header to define __stub macros and hopefully few prototypes,
   28367     which can conflict with char $ac_func (); below.
   28368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   28369     <limits.h> exists even on freestanding compilers.  */
   28370 
   28371 #ifdef __STDC__
   28372 # include <limits.h>
   28373 #else
   28374 # include <assert.h>
   28375 #endif
   28376 
   28377 #undef $ac_func
   28378 
   28379 /* Override any GCC internal prototype to avoid an error.
   28380    Use char because int might match the return type of a GCC
   28381    builtin and then its argument prototype would still apply.  */
   28382 #ifdef __cplusplus
   28383 extern "C"
   28384 #endif
   28385 char $ac_func ();
   28386 /* The GNU C library defines this for functions which it implements
   28387     to always fail with ENOSYS.  Some functions are actually named
   28388     something starting with __ and the normal name is an alias.  */
   28389 #if defined __stub_$ac_func || defined __stub___$ac_func
   28390 choke me
   28391 #endif
   28392 
   28393 int
   28394 main ()
   28395 {
   28396 return $ac_func ();
   28397   ;
   28398   return 0;
   28399 }
   28400 _ACEOF
   28401 rm -f conftest.$ac_objext conftest$ac_exeext
   28402 if { (ac_try="$ac_link"
   28403 case "(($ac_try" in
   28404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28405   *) ac_try_echo=$ac_try;;
   28406 esac
   28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28408   (eval "$ac_link") 2>conftest.er1
   28409   ac_status=$?
   28410   grep -v '^ *+' conftest.er1 >conftest.err
   28411   rm -f conftest.er1
   28412   cat conftest.err >&5
   28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28414   (exit $ac_status); } && {
   28415 	 test -z "$ac_c_werror_flag" ||
   28416 	 test ! -s conftest.err
   28417        } && test -s conftest$ac_exeext &&
   28418        $as_test_x conftest$ac_exeext; then
   28419   eval "$as_ac_var=yes"
   28420 else
   28421   echo "$as_me: failed program was:" >&5
   28422 sed 's/^/| /' conftest.$ac_ext >&5
   28423 
   28424 	eval "$as_ac_var=no"
   28425 fi
   28426 
   28427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   28428       conftest$ac_exeext conftest.$ac_ext
   28429 fi
   28430 ac_res=`eval echo '${'$as_ac_var'}'`
   28431 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   28432 echo "${ECHO_T}$ac_res" >&6; }
   28433 if test `eval echo '${'$as_ac_var'}'` = yes; then
   28434   cat >>confdefs.h <<_ACEOF
   28435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   28436 _ACEOF
   28437  have_floor=1
   28438 fi
   28439 done
   28440 
   28441 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
   28442 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
   28443 if test "$have_cos" = 1 -a "$have_floor" = 1; then
   28444     { echo "$as_me:$LINENO: result: yes" >&5
   28445 echo "${ECHO_T}yes" >&6; }
   28446 else
   28447     { echo "$as_me:$LINENO: result: no" >&5
   28448 echo "${ECHO_T}no" >&6; }
   28449     LIBS="$LIBS -lm"
   28450     # use different functions to bypass configure caching
   28451     have_sin=0
   28452     have_ceil=0
   28453 
   28454 for ac_func in sin
   28455 do
   28456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   28457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   28458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   28459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   28460   echo $ECHO_N "(cached) $ECHO_C" >&6
   28461 else
   28462   cat >conftest.$ac_ext <<_ACEOF
   28463 /* confdefs.h.  */
   28464 _ACEOF
   28465 cat confdefs.h >>conftest.$ac_ext
   28466 cat >>conftest.$ac_ext <<_ACEOF
   28467 /* end confdefs.h.  */
   28468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   28469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   28470 #define $ac_func innocuous_$ac_func
   28471 
   28472 /* System header to define __stub macros and hopefully few prototypes,
   28473     which can conflict with char $ac_func (); below.
   28474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   28475     <limits.h> exists even on freestanding compilers.  */
   28476 
   28477 #ifdef __STDC__
   28478 # include <limits.h>
   28479 #else
   28480 # include <assert.h>
   28481 #endif
   28482 
   28483 #undef $ac_func
   28484 
   28485 /* Override any GCC internal prototype to avoid an error.
   28486    Use char because int might match the return type of a GCC
   28487    builtin and then its argument prototype would still apply.  */
   28488 #ifdef __cplusplus
   28489 extern "C"
   28490 #endif
   28491 char $ac_func ();
   28492 /* The GNU C library defines this for functions which it implements
   28493     to always fail with ENOSYS.  Some functions are actually named
   28494     something starting with __ and the normal name is an alias.  */
   28495 #if defined __stub_$ac_func || defined __stub___$ac_func
   28496 choke me
   28497 #endif
   28498 
   28499 int
   28500 main ()
   28501 {
   28502 return $ac_func ();
   28503   ;
   28504   return 0;
   28505 }
   28506 _ACEOF
   28507 rm -f conftest.$ac_objext conftest$ac_exeext
   28508 if { (ac_try="$ac_link"
   28509 case "(($ac_try" in
   28510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28511   *) ac_try_echo=$ac_try;;
   28512 esac
   28513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28514   (eval "$ac_link") 2>conftest.er1
   28515   ac_status=$?
   28516   grep -v '^ *+' conftest.er1 >conftest.err
   28517   rm -f conftest.er1
   28518   cat conftest.err >&5
   28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28520   (exit $ac_status); } && {
   28521 	 test -z "$ac_c_werror_flag" ||
   28522 	 test ! -s conftest.err
   28523        } && test -s conftest$ac_exeext &&
   28524        $as_test_x conftest$ac_exeext; then
   28525   eval "$as_ac_var=yes"
   28526 else
   28527   echo "$as_me: failed program was:" >&5
   28528 sed 's/^/| /' conftest.$ac_ext >&5
   28529 
   28530 	eval "$as_ac_var=no"
   28531 fi
   28532 
   28533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   28534       conftest$ac_exeext conftest.$ac_ext
   28535 fi
   28536 ac_res=`eval echo '${'$as_ac_var'}'`
   28537 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   28538 echo "${ECHO_T}$ac_res" >&6; }
   28539 if test `eval echo '${'$as_ac_var'}'` = yes; then
   28540   cat >>confdefs.h <<_ACEOF
   28541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   28542 _ACEOF
   28543  have_sin=1
   28544 fi
   28545 done
   28546 
   28547 
   28548 for ac_func in ceil
   28549 do
   28550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   28551 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   28552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   28553 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   28554   echo $ECHO_N "(cached) $ECHO_C" >&6
   28555 else
   28556   cat >conftest.$ac_ext <<_ACEOF
   28557 /* confdefs.h.  */
   28558 _ACEOF
   28559 cat confdefs.h >>conftest.$ac_ext
   28560 cat >>conftest.$ac_ext <<_ACEOF
   28561 /* end confdefs.h.  */
   28562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   28563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   28564 #define $ac_func innocuous_$ac_func
   28565 
   28566 /* System header to define __stub macros and hopefully few prototypes,
   28567     which can conflict with char $ac_func (); below.
   28568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   28569     <limits.h> exists even on freestanding compilers.  */
   28570 
   28571 #ifdef __STDC__
   28572 # include <limits.h>
   28573 #else
   28574 # include <assert.h>
   28575 #endif
   28576 
   28577 #undef $ac_func
   28578 
   28579 /* Override any GCC internal prototype to avoid an error.
   28580    Use char because int might match the return type of a GCC
   28581    builtin and then its argument prototype would still apply.  */
   28582 #ifdef __cplusplus
   28583 extern "C"
   28584 #endif
   28585 char $ac_func ();
   28586 /* The GNU C library defines this for functions which it implements
   28587     to always fail with ENOSYS.  Some functions are actually named
   28588     something starting with __ and the normal name is an alias.  */
   28589 #if defined __stub_$ac_func || defined __stub___$ac_func
   28590 choke me
   28591 #endif
   28592 
   28593 int
   28594 main ()
   28595 {
   28596 return $ac_func ();
   28597   ;
   28598   return 0;
   28599 }
   28600 _ACEOF
   28601 rm -f conftest.$ac_objext conftest$ac_exeext
   28602 if { (ac_try="$ac_link"
   28603 case "(($ac_try" in
   28604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28605   *) ac_try_echo=$ac_try;;
   28606 esac
   28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28608   (eval "$ac_link") 2>conftest.er1
   28609   ac_status=$?
   28610   grep -v '^ *+' conftest.er1 >conftest.err
   28611   rm -f conftest.er1
   28612   cat conftest.err >&5
   28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28614   (exit $ac_status); } && {
   28615 	 test -z "$ac_c_werror_flag" ||
   28616 	 test ! -s conftest.err
   28617        } && test -s conftest$ac_exeext &&
   28618        $as_test_x conftest$ac_exeext; then
   28619   eval "$as_ac_var=yes"
   28620 else
   28621   echo "$as_me: failed program was:" >&5
   28622 sed 's/^/| /' conftest.$ac_ext >&5
   28623 
   28624 	eval "$as_ac_var=no"
   28625 fi
   28626 
   28627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   28628       conftest$ac_exeext conftest.$ac_ext
   28629 fi
   28630 ac_res=`eval echo '${'$as_ac_var'}'`
   28631 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   28632 echo "${ECHO_T}$ac_res" >&6; }
   28633 if test `eval echo '${'$as_ac_var'}'` = yes; then
   28634   cat >>confdefs.h <<_ACEOF
   28635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   28636 _ACEOF
   28637  have_ceil=1
   28638 fi
   28639 done
   28640 
   28641     { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
   28642 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
   28643     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
   28644         { echo "$as_me:$LINENO: result: yes" >&5
   28645 echo "${ECHO_T}yes" >&6; }
   28646     else
   28647         { echo "$as_me:$LINENO: result: no" >&5
   28648 echo "${ECHO_T}no" >&6; }
   28649         # not sure we should warn the user, crash, etc.
   28650 	# expect link failure
   28651     fi
   28652 fi
   28653 
   28654 { echo "$as_me:$LINENO: checking for struct timeval" >&5
   28655 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
   28656 cat >conftest.$ac_ext <<_ACEOF
   28657 /* confdefs.h.  */
   28658 _ACEOF
   28659 cat confdefs.h >>conftest.$ac_ext
   28660 cat >>conftest.$ac_ext <<_ACEOF
   28661 /* end confdefs.h.  */
   28662 #include <sys/time.h>
   28663 int
   28664 main ()
   28665 {
   28666 struct timeval x;
   28667   ;
   28668   return 0;
   28669 }
   28670 _ACEOF
   28671 rm -f conftest.$ac_objext
   28672 if { (ac_try="$ac_compile"
   28673 case "(($ac_try" in
   28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28675   *) ac_try_echo=$ac_try;;
   28676 esac
   28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28678   (eval "$ac_compile") 2>conftest.er1
   28679   ac_status=$?
   28680   grep -v '^ *+' conftest.er1 >conftest.err
   28681   rm -f conftest.er1
   28682   cat conftest.err >&5
   28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28684   (exit $ac_status); } && {
   28685 	 test -z "$ac_c_werror_flag" ||
   28686 	 test ! -s conftest.err
   28687        } && test -s conftest.$ac_objext; then
   28688 
   28689       { echo "$as_me:$LINENO: result: yes" >&5
   28690 echo "${ECHO_T}yes" >&6; }
   28691       cat >>confdefs.h <<\_ACEOF
   28692 #define BX_HAVE_STRUCT_TIMEVAL 1
   28693 _ACEOF
   28694 
   28695 
   28696 else
   28697   echo "$as_me: failed program was:" >&5
   28698 sed 's/^/| /' conftest.$ac_ext >&5
   28699 
   28700 	{ echo "$as_me:$LINENO: result: no" >&5
   28701 echo "${ECHO_T}no" >&6; }
   28702 fi
   28703 
   28704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28705 
   28706 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
   28707 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
   28708 cat >conftest.$ac_ext <<_ACEOF
   28709 /* confdefs.h.  */
   28710 _ACEOF
   28711 cat confdefs.h >>conftest.$ac_ext
   28712 cat >>conftest.$ac_ext <<_ACEOF
   28713 /* end confdefs.h.  */
   28714 
   28715 int
   28716 main ()
   28717 {
   28718 typedef struct { } junk;
   28719   ;
   28720   return 0;
   28721 }
   28722 _ACEOF
   28723 rm -f conftest.$ac_objext
   28724 if { (ac_try="$ac_compile"
   28725 case "(($ac_try" in
   28726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28727   *) ac_try_echo=$ac_try;;
   28728 esac
   28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28730   (eval "$ac_compile") 2>conftest.er1
   28731   ac_status=$?
   28732   grep -v '^ *+' conftest.er1 >conftest.err
   28733   rm -f conftest.er1
   28734   cat conftest.err >&5
   28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28736   (exit $ac_status); } && {
   28737 	 test -z "$ac_c_werror_flag" ||
   28738 	 test ! -s conftest.err
   28739        } && test -s conftest.$ac_objext; then
   28740   { echo "$as_me:$LINENO: result: yes" >&5
   28741 echo "${ECHO_T}yes" >&6; }
   28742 else
   28743   echo "$as_me: failed program was:" >&5
   28744 sed 's/^/| /' conftest.$ac_ext >&5
   28745 
   28746 
   28747       cat >>confdefs.h <<\_ACEOF
   28748 #define BX_NO_EMPTY_STRUCTS 1
   28749 _ACEOF
   28750 
   28751       { echo "$as_me:$LINENO: result: no" >&5
   28752 echo "${ECHO_T}no" >&6; }
   28753 
   28754 fi
   28755 
   28756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28757 
   28758 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
   28759 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
   28760 cat >conftest.$ac_ext <<_ACEOF
   28761 /* confdefs.h.  */
   28762 _ACEOF
   28763 cat confdefs.h >>conftest.$ac_ext
   28764 cat >>conftest.$ac_ext <<_ACEOF
   28765 /* end confdefs.h.  */
   28766 
   28767 int
   28768 main ()
   28769 {
   28770 typedef struct { } __attribute__ ((packed)) junk;
   28771   ;
   28772   return 0;
   28773 }
   28774 _ACEOF
   28775 rm -f conftest.$ac_objext
   28776 if { (ac_try="$ac_compile"
   28777 case "(($ac_try" in
   28778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28779   *) ac_try_echo=$ac_try;;
   28780 esac
   28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28782   (eval "$ac_compile") 2>conftest.er1
   28783   ac_status=$?
   28784   grep -v '^ *+' conftest.er1 >conftest.err
   28785   rm -f conftest.er1
   28786   cat conftest.err >&5
   28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28788   (exit $ac_status); } && {
   28789 	 test -z "$ac_c_werror_flag" ||
   28790 	 test ! -s conftest.err
   28791        } && test -s conftest.$ac_objext; then
   28792   { echo "$as_me:$LINENO: result: yes" >&5
   28793 echo "${ECHO_T}yes" >&6; }
   28794 else
   28795   echo "$as_me: failed program was:" >&5
   28796 sed 's/^/| /' conftest.$ac_ext >&5
   28797 
   28798 
   28799       { echo "$as_me:$LINENO: result: no" >&5
   28800 echo "${ECHO_T}no" >&6; }
   28801       cat >>confdefs.h <<\_ACEOF
   28802 #define BX_NO_ATTRIBUTES 1
   28803 _ACEOF
   28804 
   28805 
   28806 fi
   28807 
   28808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28809 
   28810 
   28811 ac_ext=cpp
   28812 ac_cpp='$CXXCPP $CPPFLAGS'
   28813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   28814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   28815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   28816 
   28817 { echo "$as_me:$LINENO: checking for hash_map" >&5
   28818 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
   28819 cat >conftest.$ac_ext <<_ACEOF
   28820 /* confdefs.h.  */
   28821 _ACEOF
   28822 cat confdefs.h >>conftest.$ac_ext
   28823 cat >>conftest.$ac_ext <<_ACEOF
   28824 /* end confdefs.h.  */
   28825 #include <hash_map>
   28826 int
   28827 main ()
   28828 {
   28829 
   28830   ;
   28831   return 0;
   28832 }
   28833 _ACEOF
   28834 rm -f conftest.$ac_objext
   28835 if { (ac_try="$ac_compile"
   28836 case "(($ac_try" in
   28837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28838   *) ac_try_echo=$ac_try;;
   28839 esac
   28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28841   (eval "$ac_compile") 2>conftest.er1
   28842   ac_status=$?
   28843   grep -v '^ *+' conftest.er1 >conftest.err
   28844   rm -f conftest.er1
   28845   cat conftest.err >&5
   28846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28847   (exit $ac_status); } && {
   28848 	 test -z "$ac_cxx_werror_flag" ||
   28849 	 test ! -s conftest.err
   28850        } && test -s conftest.$ac_objext; then
   28851 
   28852      { echo "$as_me:$LINENO: result: yes" >&5
   28853 echo "${ECHO_T}yes" >&6; }
   28854      cat >>confdefs.h <<\_ACEOF
   28855 #define BX_HAVE_HASH_MAP 1
   28856 _ACEOF
   28857 
   28858 
   28859 else
   28860   echo "$as_me: failed program was:" >&5
   28861 sed 's/^/| /' conftest.$ac_ext >&5
   28862 
   28863 	{ echo "$as_me:$LINENO: result: no" >&5
   28864 echo "${ECHO_T}no" >&6; }
   28865 fi
   28866 
   28867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28868 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
   28869 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
   28870 cat >conftest.$ac_ext <<_ACEOF
   28871 /* confdefs.h.  */
   28872 _ACEOF
   28873 cat confdefs.h >>conftest.$ac_ext
   28874 cat >>conftest.$ac_ext <<_ACEOF
   28875 /* end confdefs.h.  */
   28876 #include <hash_map.h>
   28877 int
   28878 main ()
   28879 {
   28880 
   28881   ;
   28882   return 0;
   28883 }
   28884 _ACEOF
   28885 rm -f conftest.$ac_objext
   28886 if { (ac_try="$ac_compile"
   28887 case "(($ac_try" in
   28888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28889   *) ac_try_echo=$ac_try;;
   28890 esac
   28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28892   (eval "$ac_compile") 2>conftest.er1
   28893   ac_status=$?
   28894   grep -v '^ *+' conftest.er1 >conftest.err
   28895   rm -f conftest.er1
   28896   cat conftest.err >&5
   28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28898   (exit $ac_status); } && {
   28899 	 test -z "$ac_cxx_werror_flag" ||
   28900 	 test ! -s conftest.err
   28901        } && test -s conftest.$ac_objext; then
   28902 
   28903      { echo "$as_me:$LINENO: result: yes" >&5
   28904 echo "${ECHO_T}yes" >&6; }
   28905      cat >>confdefs.h <<\_ACEOF
   28906 #define BX_HAVE_HASH_MAP_H 1
   28907 _ACEOF
   28908 
   28909 
   28910 else
   28911   echo "$as_me: failed program was:" >&5
   28912 sed 's/^/| /' conftest.$ac_ext >&5
   28913 
   28914 	{ echo "$as_me:$LINENO: result: no" >&5
   28915 echo "${ECHO_T}no" >&6; }
   28916 fi
   28917 
   28918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28919 { echo "$as_me:$LINENO: checking for set" >&5
   28920 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
   28921 cat >conftest.$ac_ext <<_ACEOF
   28922 /* confdefs.h.  */
   28923 _ACEOF
   28924 cat confdefs.h >>conftest.$ac_ext
   28925 cat >>conftest.$ac_ext <<_ACEOF
   28926 /* end confdefs.h.  */
   28927 #include <set>
   28928 int
   28929 main ()
   28930 {
   28931 
   28932   ;
   28933   return 0;
   28934 }
   28935 _ACEOF
   28936 rm -f conftest.$ac_objext
   28937 if { (ac_try="$ac_compile"
   28938 case "(($ac_try" in
   28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28940   *) ac_try_echo=$ac_try;;
   28941 esac
   28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28943   (eval "$ac_compile") 2>conftest.er1
   28944   ac_status=$?
   28945   grep -v '^ *+' conftest.er1 >conftest.err
   28946   rm -f conftest.er1
   28947   cat conftest.err >&5
   28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28949   (exit $ac_status); } && {
   28950 	 test -z "$ac_cxx_werror_flag" ||
   28951 	 test ! -s conftest.err
   28952        } && test -s conftest.$ac_objext; then
   28953 
   28954      { echo "$as_me:$LINENO: result: yes" >&5
   28955 echo "${ECHO_T}yes" >&6; }
   28956      cat >>confdefs.h <<\_ACEOF
   28957 #define BX_HAVE_SET 1
   28958 _ACEOF
   28959 
   28960 
   28961 else
   28962   echo "$as_me: failed program was:" >&5
   28963 sed 's/^/| /' conftest.$ac_ext >&5
   28964 
   28965 	{ echo "$as_me:$LINENO: result: no" >&5
   28966 echo "${ECHO_T}no" >&6; }
   28967 fi
   28968 
   28969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28970 { echo "$as_me:$LINENO: checking for set.h" >&5
   28971 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
   28972 cat >conftest.$ac_ext <<_ACEOF
   28973 /* confdefs.h.  */
   28974 _ACEOF
   28975 cat confdefs.h >>conftest.$ac_ext
   28976 cat >>conftest.$ac_ext <<_ACEOF
   28977 /* end confdefs.h.  */
   28978 #include <set.h>
   28979 int
   28980 main ()
   28981 {
   28982 
   28983   ;
   28984   return 0;
   28985 }
   28986 _ACEOF
   28987 rm -f conftest.$ac_objext
   28988 if { (ac_try="$ac_compile"
   28989 case "(($ac_try" in
   28990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28991   *) ac_try_echo=$ac_try;;
   28992 esac
   28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28994   (eval "$ac_compile") 2>conftest.er1
   28995   ac_status=$?
   28996   grep -v '^ *+' conftest.er1 >conftest.err
   28997   rm -f conftest.er1
   28998   cat conftest.err >&5
   28999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29000   (exit $ac_status); } && {
   29001 	 test -z "$ac_cxx_werror_flag" ||
   29002 	 test ! -s conftest.err
   29003        } && test -s conftest.$ac_objext; then
   29004 
   29005      { echo "$as_me:$LINENO: result: yes" >&5
   29006 echo "${ECHO_T}yes" >&6; }
   29007      cat >>confdefs.h <<\_ACEOF
   29008 #define BX_HAVE_SET_H 1
   29009 _ACEOF
   29010 
   29011 
   29012 else
   29013   echo "$as_me: failed program was:" >&5
   29014 sed 's/^/| /' conftest.$ac_ext >&5
   29015 
   29016 	{ echo "$as_me:$LINENO: result: no" >&5
   29017 echo "${ECHO_T}no" >&6; }
   29018 fi
   29019 
   29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29021 ac_ext=c
   29022 ac_cpp='$CPP $CPPFLAGS'
   29023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   29024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   29025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   29026 
   29027 
   29028 if test "$with_all_libs" = yes; then
   29029   if test "$cross_configure" = 1; then
   29030     { echo "$as_me:$LINENO: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want.  You should specify the --with-* args yourself." >&5
   29031 echo "$as_me: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want.  You should specify the --with-* args yourself." >&2;}
   29032   fi
   29033   if test "$with_beos" != yes; then
   29034     can_compile_beos=1
   29035     if test "${ac_cv_header_app_Application_h+set}" = set; then
   29036   { echo "$as_me:$LINENO: checking for app/Application.h" >&5
   29037 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
   29038 if test "${ac_cv_header_app_Application_h+set}" = set; then
   29039   echo $ECHO_N "(cached) $ECHO_C" >&6
   29040 fi
   29041 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
   29042 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
   29043 else
   29044   # Is the header compilable?
   29045 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
   29046 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
   29047 cat >conftest.$ac_ext <<_ACEOF
   29048 /* confdefs.h.  */
   29049 _ACEOF
   29050 cat confdefs.h >>conftest.$ac_ext
   29051 cat >>conftest.$ac_ext <<_ACEOF
   29052 /* end confdefs.h.  */
   29053 $ac_includes_default
   29054 #include <app/Application.h>
   29055 _ACEOF
   29056 rm -f conftest.$ac_objext
   29057 if { (ac_try="$ac_compile"
   29058 case "(($ac_try" in
   29059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29060   *) ac_try_echo=$ac_try;;
   29061 esac
   29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29063   (eval "$ac_compile") 2>conftest.er1
   29064   ac_status=$?
   29065   grep -v '^ *+' conftest.er1 >conftest.err
   29066   rm -f conftest.er1
   29067   cat conftest.err >&5
   29068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29069   (exit $ac_status); } && {
   29070 	 test -z "$ac_c_werror_flag" ||
   29071 	 test ! -s conftest.err
   29072        } && test -s conftest.$ac_objext; then
   29073   ac_header_compiler=yes
   29074 else
   29075   echo "$as_me: failed program was:" >&5
   29076 sed 's/^/| /' conftest.$ac_ext >&5
   29077 
   29078 	ac_header_compiler=no
   29079 fi
   29080 
   29081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29083 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29084 
   29085 # Is the header present?
   29086 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
   29087 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
   29088 cat >conftest.$ac_ext <<_ACEOF
   29089 /* confdefs.h.  */
   29090 _ACEOF
   29091 cat confdefs.h >>conftest.$ac_ext
   29092 cat >>conftest.$ac_ext <<_ACEOF
   29093 /* end confdefs.h.  */
   29094 #include <app/Application.h>
   29095 _ACEOF
   29096 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29097 case "(($ac_try" in
   29098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29099   *) ac_try_echo=$ac_try;;
   29100 esac
   29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29103   ac_status=$?
   29104   grep -v '^ *+' conftest.er1 >conftest.err
   29105   rm -f conftest.er1
   29106   cat conftest.err >&5
   29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29108   (exit $ac_status); } >/dev/null && {
   29109 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29110 	 test ! -s conftest.err
   29111        }; then
   29112   ac_header_preproc=yes
   29113 else
   29114   echo "$as_me: failed program was:" >&5
   29115 sed 's/^/| /' conftest.$ac_ext >&5
   29116 
   29117   ac_header_preproc=no
   29118 fi
   29119 
   29120 rm -f conftest.err conftest.$ac_ext
   29121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29122 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29123 
   29124 # So?  What about this header?
   29125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29126   yes:no: )
   29127     { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29128 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29129     { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
   29130 echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
   29131     ac_header_preproc=yes
   29132     ;;
   29133   no:yes:* )
   29134     { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
   29135 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
   29136     { echo "$as_me:$LINENO: WARNING: app/Application.h:     check for missing prerequisite headers?" >&5
   29137 echo "$as_me: WARNING: app/Application.h:     check for missing prerequisite headers?" >&2;}
   29138     { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
   29139 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
   29140     { echo "$as_me:$LINENO: WARNING: app/Application.h:     section \"Present But Cannot Be Compiled\"" >&5
   29141 echo "$as_me: WARNING: app/Application.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29142     { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
   29143 echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
   29144     { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
   29145 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
   29146 
   29147     ;;
   29148 esac
   29149 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
   29150 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
   29151 if test "${ac_cv_header_app_Application_h+set}" = set; then
   29152   echo $ECHO_N "(cached) $ECHO_C" >&6
   29153 else
   29154   ac_cv_header_app_Application_h=$ac_header_preproc
   29155 fi
   29156 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
   29157 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
   29158 
   29159 fi
   29160 if test $ac_cv_header_app_Application_h = yes; then
   29161   :
   29162 else
   29163    can_compile_beos=0
   29164 fi
   29165 
   29166 
   29167     if test "${ac_cv_header_interface_Window_h+set}" = set; then
   29168   { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
   29169 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
   29170 if test "${ac_cv_header_interface_Window_h+set}" = set; then
   29171   echo $ECHO_N "(cached) $ECHO_C" >&6
   29172 fi
   29173 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
   29174 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
   29175 else
   29176   # Is the header compilable?
   29177 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
   29178 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
   29179 cat >conftest.$ac_ext <<_ACEOF
   29180 /* confdefs.h.  */
   29181 _ACEOF
   29182 cat confdefs.h >>conftest.$ac_ext
   29183 cat >>conftest.$ac_ext <<_ACEOF
   29184 /* end confdefs.h.  */
   29185 $ac_includes_default
   29186 #include <interface/Window.h>
   29187 _ACEOF
   29188 rm -f conftest.$ac_objext
   29189 if { (ac_try="$ac_compile"
   29190 case "(($ac_try" in
   29191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29192   *) ac_try_echo=$ac_try;;
   29193 esac
   29194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29195   (eval "$ac_compile") 2>conftest.er1
   29196   ac_status=$?
   29197   grep -v '^ *+' conftest.er1 >conftest.err
   29198   rm -f conftest.er1
   29199   cat conftest.err >&5
   29200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29201   (exit $ac_status); } && {
   29202 	 test -z "$ac_c_werror_flag" ||
   29203 	 test ! -s conftest.err
   29204        } && test -s conftest.$ac_objext; then
   29205   ac_header_compiler=yes
   29206 else
   29207   echo "$as_me: failed program was:" >&5
   29208 sed 's/^/| /' conftest.$ac_ext >&5
   29209 
   29210 	ac_header_compiler=no
   29211 fi
   29212 
   29213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29215 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29216 
   29217 # Is the header present?
   29218 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
   29219 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
   29220 cat >conftest.$ac_ext <<_ACEOF
   29221 /* confdefs.h.  */
   29222 _ACEOF
   29223 cat confdefs.h >>conftest.$ac_ext
   29224 cat >>conftest.$ac_ext <<_ACEOF
   29225 /* end confdefs.h.  */
   29226 #include <interface/Window.h>
   29227 _ACEOF
   29228 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29229 case "(($ac_try" in
   29230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29231   *) ac_try_echo=$ac_try;;
   29232 esac
   29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29235   ac_status=$?
   29236   grep -v '^ *+' conftest.er1 >conftest.err
   29237   rm -f conftest.er1
   29238   cat conftest.err >&5
   29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29240   (exit $ac_status); } >/dev/null && {
   29241 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29242 	 test ! -s conftest.err
   29243        }; then
   29244   ac_header_preproc=yes
   29245 else
   29246   echo "$as_me: failed program was:" >&5
   29247 sed 's/^/| /' conftest.$ac_ext >&5
   29248 
   29249   ac_header_preproc=no
   29250 fi
   29251 
   29252 rm -f conftest.err conftest.$ac_ext
   29253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29254 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29255 
   29256 # So?  What about this header?
   29257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29258   yes:no: )
   29259     { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29260 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29261     { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
   29262 echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
   29263     ac_header_preproc=yes
   29264     ;;
   29265   no:yes:* )
   29266     { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
   29267 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
   29268     { echo "$as_me:$LINENO: WARNING: interface/Window.h:     check for missing prerequisite headers?" >&5
   29269 echo "$as_me: WARNING: interface/Window.h:     check for missing prerequisite headers?" >&2;}
   29270     { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
   29271 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
   29272     { echo "$as_me:$LINENO: WARNING: interface/Window.h:     section \"Present But Cannot Be Compiled\"" >&5
   29273 echo "$as_me: WARNING: interface/Window.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29274     { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
   29275 echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
   29276     { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
   29277 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
   29278 
   29279     ;;
   29280 esac
   29281 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
   29282 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
   29283 if test "${ac_cv_header_interface_Window_h+set}" = set; then
   29284   echo $ECHO_N "(cached) $ECHO_C" >&6
   29285 else
   29286   ac_cv_header_interface_Window_h=$ac_header_preproc
   29287 fi
   29288 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
   29289 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
   29290 
   29291 fi
   29292 if test $ac_cv_header_interface_Window_h = yes; then
   29293   :
   29294 else
   29295    can_compile_beos=0
   29296 fi
   29297 
   29298 
   29299     if test "${ac_cv_header_interface_View_h+set}" = set; then
   29300   { echo "$as_me:$LINENO: checking for interface/View.h" >&5
   29301 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
   29302 if test "${ac_cv_header_interface_View_h+set}" = set; then
   29303   echo $ECHO_N "(cached) $ECHO_C" >&6
   29304 fi
   29305 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
   29306 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
   29307 else
   29308   # Is the header compilable?
   29309 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
   29310 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
   29311 cat >conftest.$ac_ext <<_ACEOF
   29312 /* confdefs.h.  */
   29313 _ACEOF
   29314 cat confdefs.h >>conftest.$ac_ext
   29315 cat >>conftest.$ac_ext <<_ACEOF
   29316 /* end confdefs.h.  */
   29317 $ac_includes_default
   29318 #include <interface/View.h>
   29319 _ACEOF
   29320 rm -f conftest.$ac_objext
   29321 if { (ac_try="$ac_compile"
   29322 case "(($ac_try" in
   29323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29324   *) ac_try_echo=$ac_try;;
   29325 esac
   29326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29327   (eval "$ac_compile") 2>conftest.er1
   29328   ac_status=$?
   29329   grep -v '^ *+' conftest.er1 >conftest.err
   29330   rm -f conftest.er1
   29331   cat conftest.err >&5
   29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29333   (exit $ac_status); } && {
   29334 	 test -z "$ac_c_werror_flag" ||
   29335 	 test ! -s conftest.err
   29336        } && test -s conftest.$ac_objext; then
   29337   ac_header_compiler=yes
   29338 else
   29339   echo "$as_me: failed program was:" >&5
   29340 sed 's/^/| /' conftest.$ac_ext >&5
   29341 
   29342 	ac_header_compiler=no
   29343 fi
   29344 
   29345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29347 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29348 
   29349 # Is the header present?
   29350 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
   29351 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
   29352 cat >conftest.$ac_ext <<_ACEOF
   29353 /* confdefs.h.  */
   29354 _ACEOF
   29355 cat confdefs.h >>conftest.$ac_ext
   29356 cat >>conftest.$ac_ext <<_ACEOF
   29357 /* end confdefs.h.  */
   29358 #include <interface/View.h>
   29359 _ACEOF
   29360 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29361 case "(($ac_try" in
   29362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29363   *) ac_try_echo=$ac_try;;
   29364 esac
   29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29367   ac_status=$?
   29368   grep -v '^ *+' conftest.er1 >conftest.err
   29369   rm -f conftest.er1
   29370   cat conftest.err >&5
   29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29372   (exit $ac_status); } >/dev/null && {
   29373 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29374 	 test ! -s conftest.err
   29375        }; then
   29376   ac_header_preproc=yes
   29377 else
   29378   echo "$as_me: failed program was:" >&5
   29379 sed 's/^/| /' conftest.$ac_ext >&5
   29380 
   29381   ac_header_preproc=no
   29382 fi
   29383 
   29384 rm -f conftest.err conftest.$ac_ext
   29385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29386 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29387 
   29388 # So?  What about this header?
   29389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29390   yes:no: )
   29391     { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29392 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29393     { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
   29394 echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
   29395     ac_header_preproc=yes
   29396     ;;
   29397   no:yes:* )
   29398     { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
   29399 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
   29400     { echo "$as_me:$LINENO: WARNING: interface/View.h:     check for missing prerequisite headers?" >&5
   29401 echo "$as_me: WARNING: interface/View.h:     check for missing prerequisite headers?" >&2;}
   29402     { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
   29403 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
   29404     { echo "$as_me:$LINENO: WARNING: interface/View.h:     section \"Present But Cannot Be Compiled\"" >&5
   29405 echo "$as_me: WARNING: interface/View.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29406     { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
   29407 echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
   29408     { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
   29409 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
   29410 
   29411     ;;
   29412 esac
   29413 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
   29414 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
   29415 if test "${ac_cv_header_interface_View_h+set}" = set; then
   29416   echo $ECHO_N "(cached) $ECHO_C" >&6
   29417 else
   29418   ac_cv_header_interface_View_h=$ac_header_preproc
   29419 fi
   29420 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
   29421 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
   29422 
   29423 fi
   29424 if test $ac_cv_header_interface_View_h = yes; then
   29425   :
   29426 else
   29427    can_compile_beos=0
   29428 fi
   29429 
   29430 
   29431     if test $can_compile_beos = 1; then
   29432       with_beos=yes
   29433     fi
   29434   fi
   29435 
   29436   if test "$with_amigaos" != yes; then
   29437     can_compile_amigaos=1
   29438     if test "${ac_cv_header_proto_intuition_h+set}" = set; then
   29439   { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
   29440 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
   29441 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
   29442   echo $ECHO_N "(cached) $ECHO_C" >&6
   29443 fi
   29444 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
   29445 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
   29446 else
   29447   # Is the header compilable?
   29448 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
   29449 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
   29450 cat >conftest.$ac_ext <<_ACEOF
   29451 /* confdefs.h.  */
   29452 _ACEOF
   29453 cat confdefs.h >>conftest.$ac_ext
   29454 cat >>conftest.$ac_ext <<_ACEOF
   29455 /* end confdefs.h.  */
   29456 $ac_includes_default
   29457 #include <proto/intuition.h>
   29458 _ACEOF
   29459 rm -f conftest.$ac_objext
   29460 if { (ac_try="$ac_compile"
   29461 case "(($ac_try" in
   29462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29463   *) ac_try_echo=$ac_try;;
   29464 esac
   29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29466   (eval "$ac_compile") 2>conftest.er1
   29467   ac_status=$?
   29468   grep -v '^ *+' conftest.er1 >conftest.err
   29469   rm -f conftest.er1
   29470   cat conftest.err >&5
   29471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29472   (exit $ac_status); } && {
   29473 	 test -z "$ac_c_werror_flag" ||
   29474 	 test ! -s conftest.err
   29475        } && test -s conftest.$ac_objext; then
   29476   ac_header_compiler=yes
   29477 else
   29478   echo "$as_me: failed program was:" >&5
   29479 sed 's/^/| /' conftest.$ac_ext >&5
   29480 
   29481 	ac_header_compiler=no
   29482 fi
   29483 
   29484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29486 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29487 
   29488 # Is the header present?
   29489 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
   29490 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
   29491 cat >conftest.$ac_ext <<_ACEOF
   29492 /* confdefs.h.  */
   29493 _ACEOF
   29494 cat confdefs.h >>conftest.$ac_ext
   29495 cat >>conftest.$ac_ext <<_ACEOF
   29496 /* end confdefs.h.  */
   29497 #include <proto/intuition.h>
   29498 _ACEOF
   29499 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29500 case "(($ac_try" in
   29501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29502   *) ac_try_echo=$ac_try;;
   29503 esac
   29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29506   ac_status=$?
   29507   grep -v '^ *+' conftest.er1 >conftest.err
   29508   rm -f conftest.er1
   29509   cat conftest.err >&5
   29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29511   (exit $ac_status); } >/dev/null && {
   29512 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29513 	 test ! -s conftest.err
   29514        }; then
   29515   ac_header_preproc=yes
   29516 else
   29517   echo "$as_me: failed program was:" >&5
   29518 sed 's/^/| /' conftest.$ac_ext >&5
   29519 
   29520   ac_header_preproc=no
   29521 fi
   29522 
   29523 rm -f conftest.err conftest.$ac_ext
   29524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29525 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29526 
   29527 # So?  What about this header?
   29528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29529   yes:no: )
   29530     { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29531 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29532     { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
   29533 echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
   29534     ac_header_preproc=yes
   29535     ;;
   29536   no:yes:* )
   29537     { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
   29538 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
   29539     { echo "$as_me:$LINENO: WARNING: proto/intuition.h:     check for missing prerequisite headers?" >&5
   29540 echo "$as_me: WARNING: proto/intuition.h:     check for missing prerequisite headers?" >&2;}
   29541     { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
   29542 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
   29543     { echo "$as_me:$LINENO: WARNING: proto/intuition.h:     section \"Present But Cannot Be Compiled\"" >&5
   29544 echo "$as_me: WARNING: proto/intuition.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29545     { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
   29546 echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
   29547     { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
   29548 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
   29549 
   29550     ;;
   29551 esac
   29552 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
   29553 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
   29554 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
   29555   echo $ECHO_N "(cached) $ECHO_C" >&6
   29556 else
   29557   ac_cv_header_proto_intuition_h=$ac_header_preproc
   29558 fi
   29559 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
   29560 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
   29561 
   29562 fi
   29563 if test $ac_cv_header_proto_intuition_h = yes; then
   29564   :
   29565 else
   29566    can_compile_amigaos=0
   29567 fi
   29568 
   29569 
   29570     if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
   29571   { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
   29572 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
   29573 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
   29574   echo $ECHO_N "(cached) $ECHO_C" >&6
   29575 fi
   29576 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
   29577 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
   29578 else
   29579   # Is the header compilable?
   29580 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
   29581 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
   29582 cat >conftest.$ac_ext <<_ACEOF
   29583 /* confdefs.h.  */
   29584 _ACEOF
   29585 cat confdefs.h >>conftest.$ac_ext
   29586 cat >>conftest.$ac_ext <<_ACEOF
   29587 /* end confdefs.h.  */
   29588 $ac_includes_default
   29589 #include <intuition/intuitionbase.h>
   29590 _ACEOF
   29591 rm -f conftest.$ac_objext
   29592 if { (ac_try="$ac_compile"
   29593 case "(($ac_try" in
   29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29595   *) ac_try_echo=$ac_try;;
   29596 esac
   29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29598   (eval "$ac_compile") 2>conftest.er1
   29599   ac_status=$?
   29600   grep -v '^ *+' conftest.er1 >conftest.err
   29601   rm -f conftest.er1
   29602   cat conftest.err >&5
   29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29604   (exit $ac_status); } && {
   29605 	 test -z "$ac_c_werror_flag" ||
   29606 	 test ! -s conftest.err
   29607        } && test -s conftest.$ac_objext; then
   29608   ac_header_compiler=yes
   29609 else
   29610   echo "$as_me: failed program was:" >&5
   29611 sed 's/^/| /' conftest.$ac_ext >&5
   29612 
   29613 	ac_header_compiler=no
   29614 fi
   29615 
   29616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29618 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29619 
   29620 # Is the header present?
   29621 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
   29622 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
   29623 cat >conftest.$ac_ext <<_ACEOF
   29624 /* confdefs.h.  */
   29625 _ACEOF
   29626 cat confdefs.h >>conftest.$ac_ext
   29627 cat >>conftest.$ac_ext <<_ACEOF
   29628 /* end confdefs.h.  */
   29629 #include <intuition/intuitionbase.h>
   29630 _ACEOF
   29631 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29632 case "(($ac_try" in
   29633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29634   *) ac_try_echo=$ac_try;;
   29635 esac
   29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29638   ac_status=$?
   29639   grep -v '^ *+' conftest.er1 >conftest.err
   29640   rm -f conftest.er1
   29641   cat conftest.err >&5
   29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29643   (exit $ac_status); } >/dev/null && {
   29644 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29645 	 test ! -s conftest.err
   29646        }; then
   29647   ac_header_preproc=yes
   29648 else
   29649   echo "$as_me: failed program was:" >&5
   29650 sed 's/^/| /' conftest.$ac_ext >&5
   29651 
   29652   ac_header_preproc=no
   29653 fi
   29654 
   29655 rm -f conftest.err conftest.$ac_ext
   29656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29657 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29658 
   29659 # So?  What about this header?
   29660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29661   yes:no: )
   29662     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29663 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29664     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
   29665 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
   29666     ac_header_preproc=yes
   29667     ;;
   29668   no:yes:* )
   29669     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
   29670 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
   29671     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h:     check for missing prerequisite headers?" >&5
   29672 echo "$as_me: WARNING: intuition/intuitionbase.h:     check for missing prerequisite headers?" >&2;}
   29673     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
   29674 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
   29675     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h:     section \"Present But Cannot Be Compiled\"" >&5
   29676 echo "$as_me: WARNING: intuition/intuitionbase.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29677     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
   29678 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
   29679     { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
   29680 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
   29681 
   29682     ;;
   29683 esac
   29684 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
   29685 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
   29686 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
   29687   echo $ECHO_N "(cached) $ECHO_C" >&6
   29688 else
   29689   ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
   29690 fi
   29691 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
   29692 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
   29693 
   29694 fi
   29695 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
   29696   :
   29697 else
   29698    can_compile_amigaos=0
   29699 fi
   29700 
   29701 
   29702     if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
   29703   { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
   29704 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
   29705 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
   29706   echo $ECHO_N "(cached) $ECHO_C" >&6
   29707 fi
   29708 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
   29709 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
   29710 else
   29711   # Is the header compilable?
   29712 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
   29713 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
   29714 cat >conftest.$ac_ext <<_ACEOF
   29715 /* confdefs.h.  */
   29716 _ACEOF
   29717 cat confdefs.h >>conftest.$ac_ext
   29718 cat >>conftest.$ac_ext <<_ACEOF
   29719 /* end confdefs.h.  */
   29720 $ac_includes_default
   29721 #include <cybergraphx/cybergraphics.h>
   29722 _ACEOF
   29723 rm -f conftest.$ac_objext
   29724 if { (ac_try="$ac_compile"
   29725 case "(($ac_try" in
   29726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29727   *) ac_try_echo=$ac_try;;
   29728 esac
   29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29730   (eval "$ac_compile") 2>conftest.er1
   29731   ac_status=$?
   29732   grep -v '^ *+' conftest.er1 >conftest.err
   29733   rm -f conftest.er1
   29734   cat conftest.err >&5
   29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29736   (exit $ac_status); } && {
   29737 	 test -z "$ac_c_werror_flag" ||
   29738 	 test ! -s conftest.err
   29739        } && test -s conftest.$ac_objext; then
   29740   ac_header_compiler=yes
   29741 else
   29742   echo "$as_me: failed program was:" >&5
   29743 sed 's/^/| /' conftest.$ac_ext >&5
   29744 
   29745 	ac_header_compiler=no
   29746 fi
   29747 
   29748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29750 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29751 
   29752 # Is the header present?
   29753 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
   29754 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
   29755 cat >conftest.$ac_ext <<_ACEOF
   29756 /* confdefs.h.  */
   29757 _ACEOF
   29758 cat confdefs.h >>conftest.$ac_ext
   29759 cat >>conftest.$ac_ext <<_ACEOF
   29760 /* end confdefs.h.  */
   29761 #include <cybergraphx/cybergraphics.h>
   29762 _ACEOF
   29763 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29764 case "(($ac_try" in
   29765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29766   *) ac_try_echo=$ac_try;;
   29767 esac
   29768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29770   ac_status=$?
   29771   grep -v '^ *+' conftest.er1 >conftest.err
   29772   rm -f conftest.er1
   29773   cat conftest.err >&5
   29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29775   (exit $ac_status); } >/dev/null && {
   29776 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29777 	 test ! -s conftest.err
   29778        }; then
   29779   ac_header_preproc=yes
   29780 else
   29781   echo "$as_me: failed program was:" >&5
   29782 sed 's/^/| /' conftest.$ac_ext >&5
   29783 
   29784   ac_header_preproc=no
   29785 fi
   29786 
   29787 rm -f conftest.err conftest.$ac_ext
   29788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29789 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29790 
   29791 # So?  What about this header?
   29792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29793   yes:no: )
   29794     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29795 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29796     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
   29797 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
   29798     ac_header_preproc=yes
   29799     ;;
   29800   no:yes:* )
   29801     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
   29802 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
   29803     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h:     check for missing prerequisite headers?" >&5
   29804 echo "$as_me: WARNING: cybergraphx/cybergraphics.h:     check for missing prerequisite headers?" >&2;}
   29805     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
   29806 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
   29807     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h:     section \"Present But Cannot Be Compiled\"" >&5
   29808 echo "$as_me: WARNING: cybergraphx/cybergraphics.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29809     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
   29810 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
   29811     { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
   29812 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
   29813 
   29814     ;;
   29815 esac
   29816 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
   29817 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
   29818 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
   29819   echo $ECHO_N "(cached) $ECHO_C" >&6
   29820 else
   29821   ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
   29822 fi
   29823 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
   29824 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
   29825 
   29826 fi
   29827 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
   29828   :
   29829 else
   29830    can_compile_amigaos=0
   29831 fi
   29832 
   29833 
   29834     if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
   29835   { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
   29836 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
   29837 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
   29838   echo $ECHO_N "(cached) $ECHO_C" >&6
   29839 fi
   29840 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
   29841 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
   29842 else
   29843   # Is the header compilable?
   29844 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
   29845 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
   29846 cat >conftest.$ac_ext <<_ACEOF
   29847 /* confdefs.h.  */
   29848 _ACEOF
   29849 cat confdefs.h >>conftest.$ac_ext
   29850 cat >>conftest.$ac_ext <<_ACEOF
   29851 /* end confdefs.h.  */
   29852 $ac_includes_default
   29853 #include <devices/trackdisk.h>
   29854 _ACEOF
   29855 rm -f conftest.$ac_objext
   29856 if { (ac_try="$ac_compile"
   29857 case "(($ac_try" in
   29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29859   *) ac_try_echo=$ac_try;;
   29860 esac
   29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29862   (eval "$ac_compile") 2>conftest.er1
   29863   ac_status=$?
   29864   grep -v '^ *+' conftest.er1 >conftest.err
   29865   rm -f conftest.er1
   29866   cat conftest.err >&5
   29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29868   (exit $ac_status); } && {
   29869 	 test -z "$ac_c_werror_flag" ||
   29870 	 test ! -s conftest.err
   29871        } && test -s conftest.$ac_objext; then
   29872   ac_header_compiler=yes
   29873 else
   29874   echo "$as_me: failed program was:" >&5
   29875 sed 's/^/| /' conftest.$ac_ext >&5
   29876 
   29877 	ac_header_compiler=no
   29878 fi
   29879 
   29880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   29882 echo "${ECHO_T}$ac_header_compiler" >&6; }
   29883 
   29884 # Is the header present?
   29885 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
   29886 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
   29887 cat >conftest.$ac_ext <<_ACEOF
   29888 /* confdefs.h.  */
   29889 _ACEOF
   29890 cat confdefs.h >>conftest.$ac_ext
   29891 cat >>conftest.$ac_ext <<_ACEOF
   29892 /* end confdefs.h.  */
   29893 #include <devices/trackdisk.h>
   29894 _ACEOF
   29895 if { (ac_try="$ac_cpp conftest.$ac_ext"
   29896 case "(($ac_try" in
   29897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29898   *) ac_try_echo=$ac_try;;
   29899 esac
   29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   29902   ac_status=$?
   29903   grep -v '^ *+' conftest.er1 >conftest.err
   29904   rm -f conftest.er1
   29905   cat conftest.err >&5
   29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29907   (exit $ac_status); } >/dev/null && {
   29908 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   29909 	 test ! -s conftest.err
   29910        }; then
   29911   ac_header_preproc=yes
   29912 else
   29913   echo "$as_me: failed program was:" >&5
   29914 sed 's/^/| /' conftest.$ac_ext >&5
   29915 
   29916   ac_header_preproc=no
   29917 fi
   29918 
   29919 rm -f conftest.err conftest.$ac_ext
   29920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   29921 echo "${ECHO_T}$ac_header_preproc" >&6; }
   29922 
   29923 # So?  What about this header?
   29924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   29925   yes:no: )
   29926     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
   29927 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   29928     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
   29929 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
   29930     ac_header_preproc=yes
   29931     ;;
   29932   no:yes:* )
   29933     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
   29934 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
   29935     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h:     check for missing prerequisite headers?" >&5
   29936 echo "$as_me: WARNING: devices/trackdisk.h:     check for missing prerequisite headers?" >&2;}
   29937     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
   29938 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
   29939     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h:     section \"Present But Cannot Be Compiled\"" >&5
   29940 echo "$as_me: WARNING: devices/trackdisk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   29941     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
   29942 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
   29943     { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
   29944 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
   29945 
   29946     ;;
   29947 esac
   29948 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
   29949 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
   29950 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
   29951   echo $ECHO_N "(cached) $ECHO_C" >&6
   29952 else
   29953   ac_cv_header_devices_trackdisk_h=$ac_header_preproc
   29954 fi
   29955 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
   29956 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
   29957 
   29958 fi
   29959 if test $ac_cv_header_devices_trackdisk_h = yes; then
   29960   :
   29961 else
   29962    can_compile_amigaos=0
   29963 fi
   29964 
   29965 
   29966     if test $can_compile_amigaos = 1; then
   29967       with_amigaos=yes
   29968     fi
   29969   fi
   29970 
   29971   if test "$with_macos" != yes; then
   29972     can_compile_macos=1
   29973     if test "${ac_cv_header_Quickdraw_h+set}" = set; then
   29974   { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
   29975 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
   29976 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
   29977   echo $ECHO_N "(cached) $ECHO_C" >&6
   29978 fi
   29979 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
   29980 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
   29981 else
   29982   # Is the header compilable?
   29983 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
   29984 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
   29985 cat >conftest.$ac_ext <<_ACEOF
   29986 /* confdefs.h.  */
   29987 _ACEOF
   29988 cat confdefs.h >>conftest.$ac_ext
   29989 cat >>conftest.$ac_ext <<_ACEOF
   29990 /* end confdefs.h.  */
   29991 $ac_includes_default
   29992 #include <Quickdraw.h>
   29993 _ACEOF
   29994 rm -f conftest.$ac_objext
   29995 if { (ac_try="$ac_compile"
   29996 case "(($ac_try" in
   29997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29998   *) ac_try_echo=$ac_try;;
   29999 esac
   30000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30001   (eval "$ac_compile") 2>conftest.er1
   30002   ac_status=$?
   30003   grep -v '^ *+' conftest.er1 >conftest.err
   30004   rm -f conftest.er1
   30005   cat conftest.err >&5
   30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30007   (exit $ac_status); } && {
   30008 	 test -z "$ac_c_werror_flag" ||
   30009 	 test ! -s conftest.err
   30010        } && test -s conftest.$ac_objext; then
   30011   ac_header_compiler=yes
   30012 else
   30013   echo "$as_me: failed program was:" >&5
   30014 sed 's/^/| /' conftest.$ac_ext >&5
   30015 
   30016 	ac_header_compiler=no
   30017 fi
   30018 
   30019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30021 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30022 
   30023 # Is the header present?
   30024 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
   30025 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
   30026 cat >conftest.$ac_ext <<_ACEOF
   30027 /* confdefs.h.  */
   30028 _ACEOF
   30029 cat confdefs.h >>conftest.$ac_ext
   30030 cat >>conftest.$ac_ext <<_ACEOF
   30031 /* end confdefs.h.  */
   30032 #include <Quickdraw.h>
   30033 _ACEOF
   30034 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30035 case "(($ac_try" in
   30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30037   *) ac_try_echo=$ac_try;;
   30038 esac
   30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30041   ac_status=$?
   30042   grep -v '^ *+' conftest.er1 >conftest.err
   30043   rm -f conftest.er1
   30044   cat conftest.err >&5
   30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30046   (exit $ac_status); } >/dev/null && {
   30047 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30048 	 test ! -s conftest.err
   30049        }; then
   30050   ac_header_preproc=yes
   30051 else
   30052   echo "$as_me: failed program was:" >&5
   30053 sed 's/^/| /' conftest.$ac_ext >&5
   30054 
   30055   ac_header_preproc=no
   30056 fi
   30057 
   30058 rm -f conftest.err conftest.$ac_ext
   30059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30060 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30061 
   30062 # So?  What about this header?
   30063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30064   yes:no: )
   30065     { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30066 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30067     { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
   30068 echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
   30069     ac_header_preproc=yes
   30070     ;;
   30071   no:yes:* )
   30072     { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
   30073 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
   30074     { echo "$as_me:$LINENO: WARNING: Quickdraw.h:     check for missing prerequisite headers?" >&5
   30075 echo "$as_me: WARNING: Quickdraw.h:     check for missing prerequisite headers?" >&2;}
   30076     { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
   30077 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
   30078     { echo "$as_me:$LINENO: WARNING: Quickdraw.h:     section \"Present But Cannot Be Compiled\"" >&5
   30079 echo "$as_me: WARNING: Quickdraw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30080     { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
   30081 echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
   30082     { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
   30083 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
   30084 
   30085     ;;
   30086 esac
   30087 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
   30088 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
   30089 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
   30090   echo $ECHO_N "(cached) $ECHO_C" >&6
   30091 else
   30092   ac_cv_header_Quickdraw_h=$ac_header_preproc
   30093 fi
   30094 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
   30095 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
   30096 
   30097 fi
   30098 if test $ac_cv_header_Quickdraw_h = yes; then
   30099   :
   30100 else
   30101    can_compile_macos=0
   30102 fi
   30103 
   30104 
   30105     if test "${ac_cv_header_Dialogs_h+set}" = set; then
   30106   { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
   30107 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
   30108 if test "${ac_cv_header_Dialogs_h+set}" = set; then
   30109   echo $ECHO_N "(cached) $ECHO_C" >&6
   30110 fi
   30111 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
   30112 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
   30113 else
   30114   # Is the header compilable?
   30115 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
   30116 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
   30117 cat >conftest.$ac_ext <<_ACEOF
   30118 /* confdefs.h.  */
   30119 _ACEOF
   30120 cat confdefs.h >>conftest.$ac_ext
   30121 cat >>conftest.$ac_ext <<_ACEOF
   30122 /* end confdefs.h.  */
   30123 $ac_includes_default
   30124 #include <Dialogs.h>
   30125 _ACEOF
   30126 rm -f conftest.$ac_objext
   30127 if { (ac_try="$ac_compile"
   30128 case "(($ac_try" in
   30129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30130   *) ac_try_echo=$ac_try;;
   30131 esac
   30132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30133   (eval "$ac_compile") 2>conftest.er1
   30134   ac_status=$?
   30135   grep -v '^ *+' conftest.er1 >conftest.err
   30136   rm -f conftest.er1
   30137   cat conftest.err >&5
   30138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30139   (exit $ac_status); } && {
   30140 	 test -z "$ac_c_werror_flag" ||
   30141 	 test ! -s conftest.err
   30142        } && test -s conftest.$ac_objext; then
   30143   ac_header_compiler=yes
   30144 else
   30145   echo "$as_me: failed program was:" >&5
   30146 sed 's/^/| /' conftest.$ac_ext >&5
   30147 
   30148 	ac_header_compiler=no
   30149 fi
   30150 
   30151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30153 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30154 
   30155 # Is the header present?
   30156 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
   30157 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
   30158 cat >conftest.$ac_ext <<_ACEOF
   30159 /* confdefs.h.  */
   30160 _ACEOF
   30161 cat confdefs.h >>conftest.$ac_ext
   30162 cat >>conftest.$ac_ext <<_ACEOF
   30163 /* end confdefs.h.  */
   30164 #include <Dialogs.h>
   30165 _ACEOF
   30166 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30167 case "(($ac_try" in
   30168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30169   *) ac_try_echo=$ac_try;;
   30170 esac
   30171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30173   ac_status=$?
   30174   grep -v '^ *+' conftest.er1 >conftest.err
   30175   rm -f conftest.er1
   30176   cat conftest.err >&5
   30177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30178   (exit $ac_status); } >/dev/null && {
   30179 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30180 	 test ! -s conftest.err
   30181        }; then
   30182   ac_header_preproc=yes
   30183 else
   30184   echo "$as_me: failed program was:" >&5
   30185 sed 's/^/| /' conftest.$ac_ext >&5
   30186 
   30187   ac_header_preproc=no
   30188 fi
   30189 
   30190 rm -f conftest.err conftest.$ac_ext
   30191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30192 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30193 
   30194 # So?  What about this header?
   30195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30196   yes:no: )
   30197     { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30198 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30199     { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
   30200 echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
   30201     ac_header_preproc=yes
   30202     ;;
   30203   no:yes:* )
   30204     { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
   30205 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
   30206     { echo "$as_me:$LINENO: WARNING: Dialogs.h:     check for missing prerequisite headers?" >&5
   30207 echo "$as_me: WARNING: Dialogs.h:     check for missing prerequisite headers?" >&2;}
   30208     { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
   30209 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
   30210     { echo "$as_me:$LINENO: WARNING: Dialogs.h:     section \"Present But Cannot Be Compiled\"" >&5
   30211 echo "$as_me: WARNING: Dialogs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30212     { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
   30213 echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
   30214     { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
   30215 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
   30216 
   30217     ;;
   30218 esac
   30219 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
   30220 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
   30221 if test "${ac_cv_header_Dialogs_h+set}" = set; then
   30222   echo $ECHO_N "(cached) $ECHO_C" >&6
   30223 else
   30224   ac_cv_header_Dialogs_h=$ac_header_preproc
   30225 fi
   30226 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
   30227 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
   30228 
   30229 fi
   30230 if test $ac_cv_header_Dialogs_h = yes; then
   30231   :
   30232 else
   30233    can_compile_macos=0
   30234 fi
   30235 
   30236 
   30237     if test $can_compile_macos = 1; then
   30238       with_macos=yes
   30239     fi
   30240   fi
   30241 
   30242   if test "$with_carbon" != yes; then
   30243     can_compile_carbon=1
   30244     if test "${ac_cv_header_Carbon_h+set}" = set; then
   30245   { echo "$as_me:$LINENO: checking for Carbon.h" >&5
   30246 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
   30247 if test "${ac_cv_header_Carbon_h+set}" = set; then
   30248   echo $ECHO_N "(cached) $ECHO_C" >&6
   30249 fi
   30250 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
   30251 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
   30252 else
   30253   # Is the header compilable?
   30254 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
   30255 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
   30256 cat >conftest.$ac_ext <<_ACEOF
   30257 /* confdefs.h.  */
   30258 _ACEOF
   30259 cat confdefs.h >>conftest.$ac_ext
   30260 cat >>conftest.$ac_ext <<_ACEOF
   30261 /* end confdefs.h.  */
   30262 $ac_includes_default
   30263 #include <Carbon.h>
   30264 _ACEOF
   30265 rm -f conftest.$ac_objext
   30266 if { (ac_try="$ac_compile"
   30267 case "(($ac_try" in
   30268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30269   *) ac_try_echo=$ac_try;;
   30270 esac
   30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30272   (eval "$ac_compile") 2>conftest.er1
   30273   ac_status=$?
   30274   grep -v '^ *+' conftest.er1 >conftest.err
   30275   rm -f conftest.er1
   30276   cat conftest.err >&5
   30277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30278   (exit $ac_status); } && {
   30279 	 test -z "$ac_c_werror_flag" ||
   30280 	 test ! -s conftest.err
   30281        } && test -s conftest.$ac_objext; then
   30282   ac_header_compiler=yes
   30283 else
   30284   echo "$as_me: failed program was:" >&5
   30285 sed 's/^/| /' conftest.$ac_ext >&5
   30286 
   30287 	ac_header_compiler=no
   30288 fi
   30289 
   30290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30292 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30293 
   30294 # Is the header present?
   30295 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
   30296 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
   30297 cat >conftest.$ac_ext <<_ACEOF
   30298 /* confdefs.h.  */
   30299 _ACEOF
   30300 cat confdefs.h >>conftest.$ac_ext
   30301 cat >>conftest.$ac_ext <<_ACEOF
   30302 /* end confdefs.h.  */
   30303 #include <Carbon.h>
   30304 _ACEOF
   30305 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30306 case "(($ac_try" in
   30307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30308   *) ac_try_echo=$ac_try;;
   30309 esac
   30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30312   ac_status=$?
   30313   grep -v '^ *+' conftest.er1 >conftest.err
   30314   rm -f conftest.er1
   30315   cat conftest.err >&5
   30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30317   (exit $ac_status); } >/dev/null && {
   30318 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30319 	 test ! -s conftest.err
   30320        }; then
   30321   ac_header_preproc=yes
   30322 else
   30323   echo "$as_me: failed program was:" >&5
   30324 sed 's/^/| /' conftest.$ac_ext >&5
   30325 
   30326   ac_header_preproc=no
   30327 fi
   30328 
   30329 rm -f conftest.err conftest.$ac_ext
   30330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30331 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30332 
   30333 # So?  What about this header?
   30334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30335   yes:no: )
   30336     { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30337 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30338     { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
   30339 echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
   30340     ac_header_preproc=yes
   30341     ;;
   30342   no:yes:* )
   30343     { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
   30344 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
   30345     { echo "$as_me:$LINENO: WARNING: Carbon.h:     check for missing prerequisite headers?" >&5
   30346 echo "$as_me: WARNING: Carbon.h:     check for missing prerequisite headers?" >&2;}
   30347     { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
   30348 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
   30349     { echo "$as_me:$LINENO: WARNING: Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
   30350 echo "$as_me: WARNING: Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30351     { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
   30352 echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
   30353     { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
   30354 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
   30355 
   30356     ;;
   30357 esac
   30358 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
   30359 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
   30360 if test "${ac_cv_header_Carbon_h+set}" = set; then
   30361   echo $ECHO_N "(cached) $ECHO_C" >&6
   30362 else
   30363   ac_cv_header_Carbon_h=$ac_header_preproc
   30364 fi
   30365 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
   30366 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
   30367 
   30368 fi
   30369 if test $ac_cv_header_Carbon_h = yes; then
   30370   :
   30371 else
   30372    can_compile_carbon=0
   30373 fi
   30374 
   30375 
   30376     if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
   30377   { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
   30378 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
   30379 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
   30380   echo $ECHO_N "(cached) $ECHO_C" >&6
   30381 fi
   30382 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
   30383 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
   30384 else
   30385   # Is the header compilable?
   30386 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
   30387 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
   30388 cat >conftest.$ac_ext <<_ACEOF
   30389 /* confdefs.h.  */
   30390 _ACEOF
   30391 cat confdefs.h >>conftest.$ac_ext
   30392 cat >>conftest.$ac_ext <<_ACEOF
   30393 /* end confdefs.h.  */
   30394 $ac_includes_default
   30395 #include <ApplicationServices/ApplicationServices.h>
   30396 _ACEOF
   30397 rm -f conftest.$ac_objext
   30398 if { (ac_try="$ac_compile"
   30399 case "(($ac_try" in
   30400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30401   *) ac_try_echo=$ac_try;;
   30402 esac
   30403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30404   (eval "$ac_compile") 2>conftest.er1
   30405   ac_status=$?
   30406   grep -v '^ *+' conftest.er1 >conftest.err
   30407   rm -f conftest.er1
   30408   cat conftest.err >&5
   30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30410   (exit $ac_status); } && {
   30411 	 test -z "$ac_c_werror_flag" ||
   30412 	 test ! -s conftest.err
   30413        } && test -s conftest.$ac_objext; then
   30414   ac_header_compiler=yes
   30415 else
   30416   echo "$as_me: failed program was:" >&5
   30417 sed 's/^/| /' conftest.$ac_ext >&5
   30418 
   30419 	ac_header_compiler=no
   30420 fi
   30421 
   30422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30424 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30425 
   30426 # Is the header present?
   30427 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
   30428 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
   30429 cat >conftest.$ac_ext <<_ACEOF
   30430 /* confdefs.h.  */
   30431 _ACEOF
   30432 cat confdefs.h >>conftest.$ac_ext
   30433 cat >>conftest.$ac_ext <<_ACEOF
   30434 /* end confdefs.h.  */
   30435 #include <ApplicationServices/ApplicationServices.h>
   30436 _ACEOF
   30437 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30438 case "(($ac_try" in
   30439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30440   *) ac_try_echo=$ac_try;;
   30441 esac
   30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30444   ac_status=$?
   30445   grep -v '^ *+' conftest.er1 >conftest.err
   30446   rm -f conftest.er1
   30447   cat conftest.err >&5
   30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30449   (exit $ac_status); } >/dev/null && {
   30450 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30451 	 test ! -s conftest.err
   30452        }; then
   30453   ac_header_preproc=yes
   30454 else
   30455   echo "$as_me: failed program was:" >&5
   30456 sed 's/^/| /' conftest.$ac_ext >&5
   30457 
   30458   ac_header_preproc=no
   30459 fi
   30460 
   30461 rm -f conftest.err conftest.$ac_ext
   30462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30463 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30464 
   30465 # So?  What about this header?
   30466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30467   yes:no: )
   30468     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30469 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30470     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
   30471 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
   30472     ac_header_preproc=yes
   30473     ;;
   30474   no:yes:* )
   30475     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
   30476 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
   30477     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&5
   30478 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&2;}
   30479     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
   30480 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
   30481     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&5
   30482 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30483     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
   30484 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
   30485     { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
   30486 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
   30487 
   30488     ;;
   30489 esac
   30490 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
   30491 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
   30492 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
   30493   echo $ECHO_N "(cached) $ECHO_C" >&6
   30494 else
   30495   ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
   30496 fi
   30497 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
   30498 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
   30499 
   30500 fi
   30501 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
   30502   :
   30503 else
   30504    can_compile_carbon=0
   30505 fi
   30506 
   30507 
   30508     if test $can_compile_carbon = 1; then
   30509       with_carbon=yes
   30510     fi
   30511   fi
   30512 
   30513   if test "$with_win32" != yes; then
   30514     can_compile_win32=1
   30515     if test "${ac_cv_header_windows_h+set}" = set; then
   30516   { echo "$as_me:$LINENO: checking for windows.h" >&5
   30517 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
   30518 if test "${ac_cv_header_windows_h+set}" = set; then
   30519   echo $ECHO_N "(cached) $ECHO_C" >&6
   30520 fi
   30521 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
   30522 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
   30523 else
   30524   # Is the header compilable?
   30525 { echo "$as_me:$LINENO: checking windows.h usability" >&5
   30526 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
   30527 cat >conftest.$ac_ext <<_ACEOF
   30528 /* confdefs.h.  */
   30529 _ACEOF
   30530 cat confdefs.h >>conftest.$ac_ext
   30531 cat >>conftest.$ac_ext <<_ACEOF
   30532 /* end confdefs.h.  */
   30533 $ac_includes_default
   30534 #include <windows.h>
   30535 _ACEOF
   30536 rm -f conftest.$ac_objext
   30537 if { (ac_try="$ac_compile"
   30538 case "(($ac_try" in
   30539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30540   *) ac_try_echo=$ac_try;;
   30541 esac
   30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30543   (eval "$ac_compile") 2>conftest.er1
   30544   ac_status=$?
   30545   grep -v '^ *+' conftest.er1 >conftest.err
   30546   rm -f conftest.er1
   30547   cat conftest.err >&5
   30548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30549   (exit $ac_status); } && {
   30550 	 test -z "$ac_c_werror_flag" ||
   30551 	 test ! -s conftest.err
   30552        } && test -s conftest.$ac_objext; then
   30553   ac_header_compiler=yes
   30554 else
   30555   echo "$as_me: failed program was:" >&5
   30556 sed 's/^/| /' conftest.$ac_ext >&5
   30557 
   30558 	ac_header_compiler=no
   30559 fi
   30560 
   30561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30563 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30564 
   30565 # Is the header present?
   30566 { echo "$as_me:$LINENO: checking windows.h presence" >&5
   30567 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
   30568 cat >conftest.$ac_ext <<_ACEOF
   30569 /* confdefs.h.  */
   30570 _ACEOF
   30571 cat confdefs.h >>conftest.$ac_ext
   30572 cat >>conftest.$ac_ext <<_ACEOF
   30573 /* end confdefs.h.  */
   30574 #include <windows.h>
   30575 _ACEOF
   30576 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30577 case "(($ac_try" in
   30578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30579   *) ac_try_echo=$ac_try;;
   30580 esac
   30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30583   ac_status=$?
   30584   grep -v '^ *+' conftest.er1 >conftest.err
   30585   rm -f conftest.er1
   30586   cat conftest.err >&5
   30587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30588   (exit $ac_status); } >/dev/null && {
   30589 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30590 	 test ! -s conftest.err
   30591        }; then
   30592   ac_header_preproc=yes
   30593 else
   30594   echo "$as_me: failed program was:" >&5
   30595 sed 's/^/| /' conftest.$ac_ext >&5
   30596 
   30597   ac_header_preproc=no
   30598 fi
   30599 
   30600 rm -f conftest.err conftest.$ac_ext
   30601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30602 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30603 
   30604 # So?  What about this header?
   30605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30606   yes:no: )
   30607     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30608 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30609     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
   30610 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
   30611     ac_header_preproc=yes
   30612     ;;
   30613   no:yes:* )
   30614     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
   30615 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
   30616     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
   30617 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
   30618     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
   30619 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
   30620     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
   30621 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30622     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
   30623 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
   30624     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
   30625 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
   30626 
   30627     ;;
   30628 esac
   30629 { echo "$as_me:$LINENO: checking for windows.h" >&5
   30630 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
   30631 if test "${ac_cv_header_windows_h+set}" = set; then
   30632   echo $ECHO_N "(cached) $ECHO_C" >&6
   30633 else
   30634   ac_cv_header_windows_h=$ac_header_preproc
   30635 fi
   30636 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
   30637 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
   30638 
   30639 fi
   30640 if test $ac_cv_header_windows_h = yes; then
   30641   :
   30642 else
   30643    can_compile_win32=0
   30644 fi
   30645 
   30646 
   30647     if test "${ac_cv_header_commctrl_h+set}" = set; then
   30648   { echo "$as_me:$LINENO: checking for commctrl.h" >&5
   30649 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
   30650 if test "${ac_cv_header_commctrl_h+set}" = set; then
   30651   echo $ECHO_N "(cached) $ECHO_C" >&6
   30652 fi
   30653 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
   30654 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
   30655 else
   30656   # Is the header compilable?
   30657 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
   30658 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
   30659 cat >conftest.$ac_ext <<_ACEOF
   30660 /* confdefs.h.  */
   30661 _ACEOF
   30662 cat confdefs.h >>conftest.$ac_ext
   30663 cat >>conftest.$ac_ext <<_ACEOF
   30664 /* end confdefs.h.  */
   30665 $ac_includes_default
   30666 #include <commctrl.h>
   30667 _ACEOF
   30668 rm -f conftest.$ac_objext
   30669 if { (ac_try="$ac_compile"
   30670 case "(($ac_try" in
   30671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30672   *) ac_try_echo=$ac_try;;
   30673 esac
   30674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30675   (eval "$ac_compile") 2>conftest.er1
   30676   ac_status=$?
   30677   grep -v '^ *+' conftest.er1 >conftest.err
   30678   rm -f conftest.er1
   30679   cat conftest.err >&5
   30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30681   (exit $ac_status); } && {
   30682 	 test -z "$ac_c_werror_flag" ||
   30683 	 test ! -s conftest.err
   30684        } && test -s conftest.$ac_objext; then
   30685   ac_header_compiler=yes
   30686 else
   30687   echo "$as_me: failed program was:" >&5
   30688 sed 's/^/| /' conftest.$ac_ext >&5
   30689 
   30690 	ac_header_compiler=no
   30691 fi
   30692 
   30693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30695 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30696 
   30697 # Is the header present?
   30698 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
   30699 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
   30700 cat >conftest.$ac_ext <<_ACEOF
   30701 /* confdefs.h.  */
   30702 _ACEOF
   30703 cat confdefs.h >>conftest.$ac_ext
   30704 cat >>conftest.$ac_ext <<_ACEOF
   30705 /* end confdefs.h.  */
   30706 #include <commctrl.h>
   30707 _ACEOF
   30708 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30709 case "(($ac_try" in
   30710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30711   *) ac_try_echo=$ac_try;;
   30712 esac
   30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30715   ac_status=$?
   30716   grep -v '^ *+' conftest.er1 >conftest.err
   30717   rm -f conftest.er1
   30718   cat conftest.err >&5
   30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30720   (exit $ac_status); } >/dev/null && {
   30721 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30722 	 test ! -s conftest.err
   30723        }; then
   30724   ac_header_preproc=yes
   30725 else
   30726   echo "$as_me: failed program was:" >&5
   30727 sed 's/^/| /' conftest.$ac_ext >&5
   30728 
   30729   ac_header_preproc=no
   30730 fi
   30731 
   30732 rm -f conftest.err conftest.$ac_ext
   30733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30734 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30735 
   30736 # So?  What about this header?
   30737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30738   yes:no: )
   30739     { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30740 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30741     { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
   30742 echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
   30743     ac_header_preproc=yes
   30744     ;;
   30745   no:yes:* )
   30746     { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
   30747 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
   30748     { echo "$as_me:$LINENO: WARNING: commctrl.h:     check for missing prerequisite headers?" >&5
   30749 echo "$as_me: WARNING: commctrl.h:     check for missing prerequisite headers?" >&2;}
   30750     { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
   30751 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
   30752     { echo "$as_me:$LINENO: WARNING: commctrl.h:     section \"Present But Cannot Be Compiled\"" >&5
   30753 echo "$as_me: WARNING: commctrl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30754     { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
   30755 echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
   30756     { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
   30757 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
   30758 
   30759     ;;
   30760 esac
   30761 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
   30762 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
   30763 if test "${ac_cv_header_commctrl_h+set}" = set; then
   30764   echo $ECHO_N "(cached) $ECHO_C" >&6
   30765 else
   30766   ac_cv_header_commctrl_h=$ac_header_preproc
   30767 fi
   30768 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
   30769 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
   30770 
   30771 fi
   30772 if test $ac_cv_header_commctrl_h = yes; then
   30773   :
   30774 else
   30775    can_compile_win32=0
   30776 fi
   30777 
   30778 
   30779     if test $can_compile_win32 = 1; then
   30780       with_win32=yes
   30781     fi
   30782   fi
   30783 
   30784   if test "$with_sdl" != yes; then
   30785     can_compile_sdl=1
   30786     if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
   30787   { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
   30788 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
   30789 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
   30790   echo $ECHO_N "(cached) $ECHO_C" >&6
   30791 fi
   30792 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
   30793 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
   30794 else
   30795   # Is the header compilable?
   30796 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
   30797 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
   30798 cat >conftest.$ac_ext <<_ACEOF
   30799 /* confdefs.h.  */
   30800 _ACEOF
   30801 cat confdefs.h >>conftest.$ac_ext
   30802 cat >>conftest.$ac_ext <<_ACEOF
   30803 /* end confdefs.h.  */
   30804 $ac_includes_default
   30805 #include <SDL/SDL.h>
   30806 _ACEOF
   30807 rm -f conftest.$ac_objext
   30808 if { (ac_try="$ac_compile"
   30809 case "(($ac_try" in
   30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30811   *) ac_try_echo=$ac_try;;
   30812 esac
   30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30814   (eval "$ac_compile") 2>conftest.er1
   30815   ac_status=$?
   30816   grep -v '^ *+' conftest.er1 >conftest.err
   30817   rm -f conftest.er1
   30818   cat conftest.err >&5
   30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30820   (exit $ac_status); } && {
   30821 	 test -z "$ac_c_werror_flag" ||
   30822 	 test ! -s conftest.err
   30823        } && test -s conftest.$ac_objext; then
   30824   ac_header_compiler=yes
   30825 else
   30826   echo "$as_me: failed program was:" >&5
   30827 sed 's/^/| /' conftest.$ac_ext >&5
   30828 
   30829 	ac_header_compiler=no
   30830 fi
   30831 
   30832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30834 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30835 
   30836 # Is the header present?
   30837 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
   30838 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
   30839 cat >conftest.$ac_ext <<_ACEOF
   30840 /* confdefs.h.  */
   30841 _ACEOF
   30842 cat confdefs.h >>conftest.$ac_ext
   30843 cat >>conftest.$ac_ext <<_ACEOF
   30844 /* end confdefs.h.  */
   30845 #include <SDL/SDL.h>
   30846 _ACEOF
   30847 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30848 case "(($ac_try" in
   30849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30850   *) ac_try_echo=$ac_try;;
   30851 esac
   30852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30854   ac_status=$?
   30855   grep -v '^ *+' conftest.er1 >conftest.err
   30856   rm -f conftest.er1
   30857   cat conftest.err >&5
   30858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30859   (exit $ac_status); } >/dev/null && {
   30860 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30861 	 test ! -s conftest.err
   30862        }; then
   30863   ac_header_preproc=yes
   30864 else
   30865   echo "$as_me: failed program was:" >&5
   30866 sed 's/^/| /' conftest.$ac_ext >&5
   30867 
   30868   ac_header_preproc=no
   30869 fi
   30870 
   30871 rm -f conftest.err conftest.$ac_ext
   30872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   30873 echo "${ECHO_T}$ac_header_preproc" >&6; }
   30874 
   30875 # So?  What about this header?
   30876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   30877   yes:no: )
   30878     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
   30879 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   30880     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
   30881 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
   30882     ac_header_preproc=yes
   30883     ;;
   30884   no:yes:* )
   30885     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
   30886 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
   30887     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h:     check for missing prerequisite headers?" >&5
   30888 echo "$as_me: WARNING: SDL/SDL.h:     check for missing prerequisite headers?" >&2;}
   30889     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
   30890 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
   30891     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h:     section \"Present But Cannot Be Compiled\"" >&5
   30892 echo "$as_me: WARNING: SDL/SDL.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   30893     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
   30894 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
   30895     { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
   30896 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
   30897 
   30898     ;;
   30899 esac
   30900 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
   30901 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
   30902 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
   30903   echo $ECHO_N "(cached) $ECHO_C" >&6
   30904 else
   30905   ac_cv_header_SDL_SDL_h=$ac_header_preproc
   30906 fi
   30907 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
   30908 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
   30909 
   30910 fi
   30911 if test $ac_cv_header_SDL_SDL_h = yes; then
   30912   :
   30913 else
   30914    can_compile_sdl=0
   30915 fi
   30916 
   30917 
   30918     if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
   30919   { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
   30920 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
   30921 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
   30922   echo $ECHO_N "(cached) $ECHO_C" >&6
   30923 fi
   30924 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
   30925 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
   30926 else
   30927   # Is the header compilable?
   30928 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
   30929 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
   30930 cat >conftest.$ac_ext <<_ACEOF
   30931 /* confdefs.h.  */
   30932 _ACEOF
   30933 cat confdefs.h >>conftest.$ac_ext
   30934 cat >>conftest.$ac_ext <<_ACEOF
   30935 /* end confdefs.h.  */
   30936 $ac_includes_default
   30937 #include <SDL/SDL_main.h>
   30938 _ACEOF
   30939 rm -f conftest.$ac_objext
   30940 if { (ac_try="$ac_compile"
   30941 case "(($ac_try" in
   30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30943   *) ac_try_echo=$ac_try;;
   30944 esac
   30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30946   (eval "$ac_compile") 2>conftest.er1
   30947   ac_status=$?
   30948   grep -v '^ *+' conftest.er1 >conftest.err
   30949   rm -f conftest.er1
   30950   cat conftest.err >&5
   30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30952   (exit $ac_status); } && {
   30953 	 test -z "$ac_c_werror_flag" ||
   30954 	 test ! -s conftest.err
   30955        } && test -s conftest.$ac_objext; then
   30956   ac_header_compiler=yes
   30957 else
   30958   echo "$as_me: failed program was:" >&5
   30959 sed 's/^/| /' conftest.$ac_ext >&5
   30960 
   30961 	ac_header_compiler=no
   30962 fi
   30963 
   30964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   30966 echo "${ECHO_T}$ac_header_compiler" >&6; }
   30967 
   30968 # Is the header present?
   30969 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
   30970 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
   30971 cat >conftest.$ac_ext <<_ACEOF
   30972 /* confdefs.h.  */
   30973 _ACEOF
   30974 cat confdefs.h >>conftest.$ac_ext
   30975 cat >>conftest.$ac_ext <<_ACEOF
   30976 /* end confdefs.h.  */
   30977 #include <SDL/SDL_main.h>
   30978 _ACEOF
   30979 if { (ac_try="$ac_cpp conftest.$ac_ext"
   30980 case "(($ac_try" in
   30981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30982   *) ac_try_echo=$ac_try;;
   30983 esac
   30984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   30986   ac_status=$?
   30987   grep -v '^ *+' conftest.er1 >conftest.err
   30988   rm -f conftest.er1
   30989   cat conftest.err >&5
   30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30991   (exit $ac_status); } >/dev/null && {
   30992 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   30993 	 test ! -s conftest.err
   30994        }; then
   30995   ac_header_preproc=yes
   30996 else
   30997   echo "$as_me: failed program was:" >&5
   30998 sed 's/^/| /' conftest.$ac_ext >&5
   30999 
   31000   ac_header_preproc=no
   31001 fi
   31002 
   31003 rm -f conftest.err conftest.$ac_ext
   31004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31005 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31006 
   31007 # So?  What about this header?
   31008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31009   yes:no: )
   31010     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31011 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31012     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
   31013 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
   31014     ac_header_preproc=yes
   31015     ;;
   31016   no:yes:* )
   31017     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
   31018 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
   31019     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h:     check for missing prerequisite headers?" >&5
   31020 echo "$as_me: WARNING: SDL/SDL_main.h:     check for missing prerequisite headers?" >&2;}
   31021     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
   31022 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
   31023     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h:     section \"Present But Cannot Be Compiled\"" >&5
   31024 echo "$as_me: WARNING: SDL/SDL_main.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31025     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
   31026 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
   31027     { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
   31028 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
   31029 
   31030     ;;
   31031 esac
   31032 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
   31033 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
   31034 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
   31035   echo $ECHO_N "(cached) $ECHO_C" >&6
   31036 else
   31037   ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
   31038 fi
   31039 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
   31040 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
   31041 
   31042 fi
   31043 if test $ac_cv_header_SDL_SDL_main_h = yes; then
   31044   :
   31045 else
   31046    can_compile_sdl=0
   31047 fi
   31048 
   31049 
   31050     if test $can_compile_sdl = 1; then
   31051       with_sdl=yes
   31052     fi
   31053   fi
   31054 
   31055   if test "$with_svga" != yes; then
   31056     can_compile_svga=1
   31057     if test "${ac_cv_header_vga_h+set}" = set; then
   31058   { echo "$as_me:$LINENO: checking for vga.h" >&5
   31059 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
   31060 if test "${ac_cv_header_vga_h+set}" = set; then
   31061   echo $ECHO_N "(cached) $ECHO_C" >&6
   31062 fi
   31063 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
   31064 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
   31065 else
   31066   # Is the header compilable?
   31067 { echo "$as_me:$LINENO: checking vga.h usability" >&5
   31068 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
   31069 cat >conftest.$ac_ext <<_ACEOF
   31070 /* confdefs.h.  */
   31071 _ACEOF
   31072 cat confdefs.h >>conftest.$ac_ext
   31073 cat >>conftest.$ac_ext <<_ACEOF
   31074 /* end confdefs.h.  */
   31075 $ac_includes_default
   31076 #include <vga.h>
   31077 _ACEOF
   31078 rm -f conftest.$ac_objext
   31079 if { (ac_try="$ac_compile"
   31080 case "(($ac_try" in
   31081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31082   *) ac_try_echo=$ac_try;;
   31083 esac
   31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31085   (eval "$ac_compile") 2>conftest.er1
   31086   ac_status=$?
   31087   grep -v '^ *+' conftest.er1 >conftest.err
   31088   rm -f conftest.er1
   31089   cat conftest.err >&5
   31090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31091   (exit $ac_status); } && {
   31092 	 test -z "$ac_c_werror_flag" ||
   31093 	 test ! -s conftest.err
   31094        } && test -s conftest.$ac_objext; then
   31095   ac_header_compiler=yes
   31096 else
   31097   echo "$as_me: failed program was:" >&5
   31098 sed 's/^/| /' conftest.$ac_ext >&5
   31099 
   31100 	ac_header_compiler=no
   31101 fi
   31102 
   31103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31105 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31106 
   31107 # Is the header present?
   31108 { echo "$as_me:$LINENO: checking vga.h presence" >&5
   31109 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
   31110 cat >conftest.$ac_ext <<_ACEOF
   31111 /* confdefs.h.  */
   31112 _ACEOF
   31113 cat confdefs.h >>conftest.$ac_ext
   31114 cat >>conftest.$ac_ext <<_ACEOF
   31115 /* end confdefs.h.  */
   31116 #include <vga.h>
   31117 _ACEOF
   31118 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31119 case "(($ac_try" in
   31120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31121   *) ac_try_echo=$ac_try;;
   31122 esac
   31123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31125   ac_status=$?
   31126   grep -v '^ *+' conftest.er1 >conftest.err
   31127   rm -f conftest.er1
   31128   cat conftest.err >&5
   31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31130   (exit $ac_status); } >/dev/null && {
   31131 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31132 	 test ! -s conftest.err
   31133        }; then
   31134   ac_header_preproc=yes
   31135 else
   31136   echo "$as_me: failed program was:" >&5
   31137 sed 's/^/| /' conftest.$ac_ext >&5
   31138 
   31139   ac_header_preproc=no
   31140 fi
   31141 
   31142 rm -f conftest.err conftest.$ac_ext
   31143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31144 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31145 
   31146 # So?  What about this header?
   31147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31148   yes:no: )
   31149     { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31150 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31151     { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
   31152 echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
   31153     ac_header_preproc=yes
   31154     ;;
   31155   no:yes:* )
   31156     { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
   31157 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
   31158     { echo "$as_me:$LINENO: WARNING: vga.h:     check for missing prerequisite headers?" >&5
   31159 echo "$as_me: WARNING: vga.h:     check for missing prerequisite headers?" >&2;}
   31160     { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
   31161 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
   31162     { echo "$as_me:$LINENO: WARNING: vga.h:     section \"Present But Cannot Be Compiled\"" >&5
   31163 echo "$as_me: WARNING: vga.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31164     { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
   31165 echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
   31166     { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
   31167 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
   31168 
   31169     ;;
   31170 esac
   31171 { echo "$as_me:$LINENO: checking for vga.h" >&5
   31172 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
   31173 if test "${ac_cv_header_vga_h+set}" = set; then
   31174   echo $ECHO_N "(cached) $ECHO_C" >&6
   31175 else
   31176   ac_cv_header_vga_h=$ac_header_preproc
   31177 fi
   31178 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
   31179 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
   31180 
   31181 fi
   31182 if test $ac_cv_header_vga_h = yes; then
   31183   :
   31184 else
   31185    can_compile_svga=0
   31186 fi
   31187 
   31188 
   31189     if test "${ac_cv_header_vgagl_h+set}" = set; then
   31190   { echo "$as_me:$LINENO: checking for vgagl.h" >&5
   31191 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
   31192 if test "${ac_cv_header_vgagl_h+set}" = set; then
   31193   echo $ECHO_N "(cached) $ECHO_C" >&6
   31194 fi
   31195 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
   31196 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
   31197 else
   31198   # Is the header compilable?
   31199 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
   31200 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
   31201 cat >conftest.$ac_ext <<_ACEOF
   31202 /* confdefs.h.  */
   31203 _ACEOF
   31204 cat confdefs.h >>conftest.$ac_ext
   31205 cat >>conftest.$ac_ext <<_ACEOF
   31206 /* end confdefs.h.  */
   31207 $ac_includes_default
   31208 #include <vgagl.h>
   31209 _ACEOF
   31210 rm -f conftest.$ac_objext
   31211 if { (ac_try="$ac_compile"
   31212 case "(($ac_try" in
   31213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31214   *) ac_try_echo=$ac_try;;
   31215 esac
   31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31217   (eval "$ac_compile") 2>conftest.er1
   31218   ac_status=$?
   31219   grep -v '^ *+' conftest.er1 >conftest.err
   31220   rm -f conftest.er1
   31221   cat conftest.err >&5
   31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31223   (exit $ac_status); } && {
   31224 	 test -z "$ac_c_werror_flag" ||
   31225 	 test ! -s conftest.err
   31226        } && test -s conftest.$ac_objext; then
   31227   ac_header_compiler=yes
   31228 else
   31229   echo "$as_me: failed program was:" >&5
   31230 sed 's/^/| /' conftest.$ac_ext >&5
   31231 
   31232 	ac_header_compiler=no
   31233 fi
   31234 
   31235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31237 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31238 
   31239 # Is the header present?
   31240 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
   31241 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
   31242 cat >conftest.$ac_ext <<_ACEOF
   31243 /* confdefs.h.  */
   31244 _ACEOF
   31245 cat confdefs.h >>conftest.$ac_ext
   31246 cat >>conftest.$ac_ext <<_ACEOF
   31247 /* end confdefs.h.  */
   31248 #include <vgagl.h>
   31249 _ACEOF
   31250 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31251 case "(($ac_try" in
   31252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31253   *) ac_try_echo=$ac_try;;
   31254 esac
   31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31257   ac_status=$?
   31258   grep -v '^ *+' conftest.er1 >conftest.err
   31259   rm -f conftest.er1
   31260   cat conftest.err >&5
   31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31262   (exit $ac_status); } >/dev/null && {
   31263 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31264 	 test ! -s conftest.err
   31265        }; then
   31266   ac_header_preproc=yes
   31267 else
   31268   echo "$as_me: failed program was:" >&5
   31269 sed 's/^/| /' conftest.$ac_ext >&5
   31270 
   31271   ac_header_preproc=no
   31272 fi
   31273 
   31274 rm -f conftest.err conftest.$ac_ext
   31275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31276 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31277 
   31278 # So?  What about this header?
   31279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31280   yes:no: )
   31281     { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31282 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31283     { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
   31284 echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
   31285     ac_header_preproc=yes
   31286     ;;
   31287   no:yes:* )
   31288     { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
   31289 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
   31290     { echo "$as_me:$LINENO: WARNING: vgagl.h:     check for missing prerequisite headers?" >&5
   31291 echo "$as_me: WARNING: vgagl.h:     check for missing prerequisite headers?" >&2;}
   31292     { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
   31293 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
   31294     { echo "$as_me:$LINENO: WARNING: vgagl.h:     section \"Present But Cannot Be Compiled\"" >&5
   31295 echo "$as_me: WARNING: vgagl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31296     { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
   31297 echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
   31298     { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
   31299 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
   31300 
   31301     ;;
   31302 esac
   31303 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
   31304 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
   31305 if test "${ac_cv_header_vgagl_h+set}" = set; then
   31306   echo $ECHO_N "(cached) $ECHO_C" >&6
   31307 else
   31308   ac_cv_header_vgagl_h=$ac_header_preproc
   31309 fi
   31310 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
   31311 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
   31312 
   31313 fi
   31314 if test $ac_cv_header_vgagl_h = yes; then
   31315   :
   31316 else
   31317    can_compile_svga=0
   31318 fi
   31319 
   31320 
   31321     if test $can_compile_svga = 1; then
   31322       with_svga=yes
   31323     fi
   31324   fi
   31325 
   31326   if test "$with_x11" != yes; then
   31327     can_compile_x11=1
   31328     if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
   31329   { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
   31330 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
   31331 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
   31332   echo $ECHO_N "(cached) $ECHO_C" >&6
   31333 fi
   31334 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
   31335 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
   31336 else
   31337   # Is the header compilable?
   31338 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
   31339 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
   31340 cat >conftest.$ac_ext <<_ACEOF
   31341 /* confdefs.h.  */
   31342 _ACEOF
   31343 cat confdefs.h >>conftest.$ac_ext
   31344 cat >>conftest.$ac_ext <<_ACEOF
   31345 /* end confdefs.h.  */
   31346 $ac_includes_default
   31347 #include <X11/Xlib.h>
   31348 _ACEOF
   31349 rm -f conftest.$ac_objext
   31350 if { (ac_try="$ac_compile"
   31351 case "(($ac_try" in
   31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31353   *) ac_try_echo=$ac_try;;
   31354 esac
   31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31356   (eval "$ac_compile") 2>conftest.er1
   31357   ac_status=$?
   31358   grep -v '^ *+' conftest.er1 >conftest.err
   31359   rm -f conftest.er1
   31360   cat conftest.err >&5
   31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31362   (exit $ac_status); } && {
   31363 	 test -z "$ac_c_werror_flag" ||
   31364 	 test ! -s conftest.err
   31365        } && test -s conftest.$ac_objext; then
   31366   ac_header_compiler=yes
   31367 else
   31368   echo "$as_me: failed program was:" >&5
   31369 sed 's/^/| /' conftest.$ac_ext >&5
   31370 
   31371 	ac_header_compiler=no
   31372 fi
   31373 
   31374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31376 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31377 
   31378 # Is the header present?
   31379 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
   31380 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
   31381 cat >conftest.$ac_ext <<_ACEOF
   31382 /* confdefs.h.  */
   31383 _ACEOF
   31384 cat confdefs.h >>conftest.$ac_ext
   31385 cat >>conftest.$ac_ext <<_ACEOF
   31386 /* end confdefs.h.  */
   31387 #include <X11/Xlib.h>
   31388 _ACEOF
   31389 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31390 case "(($ac_try" in
   31391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31392   *) ac_try_echo=$ac_try;;
   31393 esac
   31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31396   ac_status=$?
   31397   grep -v '^ *+' conftest.er1 >conftest.err
   31398   rm -f conftest.er1
   31399   cat conftest.err >&5
   31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31401   (exit $ac_status); } >/dev/null && {
   31402 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31403 	 test ! -s conftest.err
   31404        }; then
   31405   ac_header_preproc=yes
   31406 else
   31407   echo "$as_me: failed program was:" >&5
   31408 sed 's/^/| /' conftest.$ac_ext >&5
   31409 
   31410   ac_header_preproc=no
   31411 fi
   31412 
   31413 rm -f conftest.err conftest.$ac_ext
   31414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31415 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31416 
   31417 # So?  What about this header?
   31418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31419   yes:no: )
   31420     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31421 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31422     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
   31423 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
   31424     ac_header_preproc=yes
   31425     ;;
   31426   no:yes:* )
   31427     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
   31428 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
   31429     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h:     check for missing prerequisite headers?" >&5
   31430 echo "$as_me: WARNING: X11/Xlib.h:     check for missing prerequisite headers?" >&2;}
   31431     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
   31432 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
   31433     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h:     section \"Present But Cannot Be Compiled\"" >&5
   31434 echo "$as_me: WARNING: X11/Xlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31435     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
   31436 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
   31437     { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
   31438 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
   31439 
   31440     ;;
   31441 esac
   31442 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
   31443 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
   31444 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
   31445   echo $ECHO_N "(cached) $ECHO_C" >&6
   31446 else
   31447   ac_cv_header_X11_Xlib_h=$ac_header_preproc
   31448 fi
   31449 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
   31450 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
   31451 
   31452 fi
   31453 if test $ac_cv_header_X11_Xlib_h = yes; then
   31454   :
   31455 else
   31456    can_compile_x11=0
   31457 fi
   31458 
   31459 
   31460     if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
   31461   { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
   31462 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
   31463 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
   31464   echo $ECHO_N "(cached) $ECHO_C" >&6
   31465 fi
   31466 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
   31467 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
   31468 else
   31469   # Is the header compilable?
   31470 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
   31471 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
   31472 cat >conftest.$ac_ext <<_ACEOF
   31473 /* confdefs.h.  */
   31474 _ACEOF
   31475 cat confdefs.h >>conftest.$ac_ext
   31476 cat >>conftest.$ac_ext <<_ACEOF
   31477 /* end confdefs.h.  */
   31478 $ac_includes_default
   31479 #include <X11/Xutil.h>
   31480 _ACEOF
   31481 rm -f conftest.$ac_objext
   31482 if { (ac_try="$ac_compile"
   31483 case "(($ac_try" in
   31484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31485   *) ac_try_echo=$ac_try;;
   31486 esac
   31487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31488   (eval "$ac_compile") 2>conftest.er1
   31489   ac_status=$?
   31490   grep -v '^ *+' conftest.er1 >conftest.err
   31491   rm -f conftest.er1
   31492   cat conftest.err >&5
   31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31494   (exit $ac_status); } && {
   31495 	 test -z "$ac_c_werror_flag" ||
   31496 	 test ! -s conftest.err
   31497        } && test -s conftest.$ac_objext; then
   31498   ac_header_compiler=yes
   31499 else
   31500   echo "$as_me: failed program was:" >&5
   31501 sed 's/^/| /' conftest.$ac_ext >&5
   31502 
   31503 	ac_header_compiler=no
   31504 fi
   31505 
   31506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31508 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31509 
   31510 # Is the header present?
   31511 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
   31512 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
   31513 cat >conftest.$ac_ext <<_ACEOF
   31514 /* confdefs.h.  */
   31515 _ACEOF
   31516 cat confdefs.h >>conftest.$ac_ext
   31517 cat >>conftest.$ac_ext <<_ACEOF
   31518 /* end confdefs.h.  */
   31519 #include <X11/Xutil.h>
   31520 _ACEOF
   31521 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31522 case "(($ac_try" in
   31523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31524   *) ac_try_echo=$ac_try;;
   31525 esac
   31526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31528   ac_status=$?
   31529   grep -v '^ *+' conftest.er1 >conftest.err
   31530   rm -f conftest.er1
   31531   cat conftest.err >&5
   31532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31533   (exit $ac_status); } >/dev/null && {
   31534 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31535 	 test ! -s conftest.err
   31536        }; then
   31537   ac_header_preproc=yes
   31538 else
   31539   echo "$as_me: failed program was:" >&5
   31540 sed 's/^/| /' conftest.$ac_ext >&5
   31541 
   31542   ac_header_preproc=no
   31543 fi
   31544 
   31545 rm -f conftest.err conftest.$ac_ext
   31546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31547 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31548 
   31549 # So?  What about this header?
   31550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31551   yes:no: )
   31552     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31553 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31554     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
   31555 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
   31556     ac_header_preproc=yes
   31557     ;;
   31558   no:yes:* )
   31559     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
   31560 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
   31561     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h:     check for missing prerequisite headers?" >&5
   31562 echo "$as_me: WARNING: X11/Xutil.h:     check for missing prerequisite headers?" >&2;}
   31563     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
   31564 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
   31565     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h:     section \"Present But Cannot Be Compiled\"" >&5
   31566 echo "$as_me: WARNING: X11/Xutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31567     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
   31568 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
   31569     { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
   31570 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
   31571 
   31572     ;;
   31573 esac
   31574 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
   31575 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
   31576 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
   31577   echo $ECHO_N "(cached) $ECHO_C" >&6
   31578 else
   31579   ac_cv_header_X11_Xutil_h=$ac_header_preproc
   31580 fi
   31581 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
   31582 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
   31583 
   31584 fi
   31585 if test $ac_cv_header_X11_Xutil_h = yes; then
   31586   :
   31587 else
   31588    can_compile_x11=0
   31589 fi
   31590 
   31591 
   31592     if test $can_compile_x11 = 1; then
   31593       with_x11=yes
   31594     fi
   31595   fi
   31596 
   31597   if test "$with_rfb" != yes; then
   31598     can_compile_rfb=1
   31599     case $target in
   31600       *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
   31601 	if test "${ac_cv_header_winsock_h+set}" = set; then
   31602   { echo "$as_me:$LINENO: checking for winsock.h" >&5
   31603 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
   31604 if test "${ac_cv_header_winsock_h+set}" = set; then
   31605   echo $ECHO_N "(cached) $ECHO_C" >&6
   31606 fi
   31607 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
   31608 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
   31609 else
   31610   # Is the header compilable?
   31611 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
   31612 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
   31613 cat >conftest.$ac_ext <<_ACEOF
   31614 /* confdefs.h.  */
   31615 _ACEOF
   31616 cat confdefs.h >>conftest.$ac_ext
   31617 cat >>conftest.$ac_ext <<_ACEOF
   31618 /* end confdefs.h.  */
   31619 $ac_includes_default
   31620 #include <winsock.h>
   31621 _ACEOF
   31622 rm -f conftest.$ac_objext
   31623 if { (ac_try="$ac_compile"
   31624 case "(($ac_try" in
   31625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31626   *) ac_try_echo=$ac_try;;
   31627 esac
   31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31629   (eval "$ac_compile") 2>conftest.er1
   31630   ac_status=$?
   31631   grep -v '^ *+' conftest.er1 >conftest.err
   31632   rm -f conftest.er1
   31633   cat conftest.err >&5
   31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31635   (exit $ac_status); } && {
   31636 	 test -z "$ac_c_werror_flag" ||
   31637 	 test ! -s conftest.err
   31638        } && test -s conftest.$ac_objext; then
   31639   ac_header_compiler=yes
   31640 else
   31641   echo "$as_me: failed program was:" >&5
   31642 sed 's/^/| /' conftest.$ac_ext >&5
   31643 
   31644 	ac_header_compiler=no
   31645 fi
   31646 
   31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31649 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31650 
   31651 # Is the header present?
   31652 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
   31653 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
   31654 cat >conftest.$ac_ext <<_ACEOF
   31655 /* confdefs.h.  */
   31656 _ACEOF
   31657 cat confdefs.h >>conftest.$ac_ext
   31658 cat >>conftest.$ac_ext <<_ACEOF
   31659 /* end confdefs.h.  */
   31660 #include <winsock.h>
   31661 _ACEOF
   31662 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31663 case "(($ac_try" in
   31664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31665   *) ac_try_echo=$ac_try;;
   31666 esac
   31667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31669   ac_status=$?
   31670   grep -v '^ *+' conftest.er1 >conftest.err
   31671   rm -f conftest.er1
   31672   cat conftest.err >&5
   31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31674   (exit $ac_status); } >/dev/null && {
   31675 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31676 	 test ! -s conftest.err
   31677        }; then
   31678   ac_header_preproc=yes
   31679 else
   31680   echo "$as_me: failed program was:" >&5
   31681 sed 's/^/| /' conftest.$ac_ext >&5
   31682 
   31683   ac_header_preproc=no
   31684 fi
   31685 
   31686 rm -f conftest.err conftest.$ac_ext
   31687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31688 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31689 
   31690 # So?  What about this header?
   31691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31692   yes:no: )
   31693     { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31694 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31695     { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
   31696 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
   31697     ac_header_preproc=yes
   31698     ;;
   31699   no:yes:* )
   31700     { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
   31701 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
   31702     { echo "$as_me:$LINENO: WARNING: winsock.h:     check for missing prerequisite headers?" >&5
   31703 echo "$as_me: WARNING: winsock.h:     check for missing prerequisite headers?" >&2;}
   31704     { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
   31705 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
   31706     { echo "$as_me:$LINENO: WARNING: winsock.h:     section \"Present But Cannot Be Compiled\"" >&5
   31707 echo "$as_me: WARNING: winsock.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31708     { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
   31709 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
   31710     { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
   31711 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
   31712 
   31713     ;;
   31714 esac
   31715 { echo "$as_me:$LINENO: checking for winsock.h" >&5
   31716 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
   31717 if test "${ac_cv_header_winsock_h+set}" = set; then
   31718   echo $ECHO_N "(cached) $ECHO_C" >&6
   31719 else
   31720   ac_cv_header_winsock_h=$ac_header_preproc
   31721 fi
   31722 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
   31723 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
   31724 
   31725 fi
   31726 if test $ac_cv_header_winsock_h = yes; then
   31727   :
   31728 else
   31729    can_compile_rfb=0
   31730 fi
   31731 
   31732 
   31733 	if test "${ac_cv_header_process_h+set}" = set; then
   31734   { echo "$as_me:$LINENO: checking for process.h" >&5
   31735 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
   31736 if test "${ac_cv_header_process_h+set}" = set; then
   31737   echo $ECHO_N "(cached) $ECHO_C" >&6
   31738 fi
   31739 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
   31740 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
   31741 else
   31742   # Is the header compilable?
   31743 { echo "$as_me:$LINENO: checking process.h usability" >&5
   31744 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
   31745 cat >conftest.$ac_ext <<_ACEOF
   31746 /* confdefs.h.  */
   31747 _ACEOF
   31748 cat confdefs.h >>conftest.$ac_ext
   31749 cat >>conftest.$ac_ext <<_ACEOF
   31750 /* end confdefs.h.  */
   31751 $ac_includes_default
   31752 #include <process.h>
   31753 _ACEOF
   31754 rm -f conftest.$ac_objext
   31755 if { (ac_try="$ac_compile"
   31756 case "(($ac_try" in
   31757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31758   *) ac_try_echo=$ac_try;;
   31759 esac
   31760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31761   (eval "$ac_compile") 2>conftest.er1
   31762   ac_status=$?
   31763   grep -v '^ *+' conftest.er1 >conftest.err
   31764   rm -f conftest.er1
   31765   cat conftest.err >&5
   31766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31767   (exit $ac_status); } && {
   31768 	 test -z "$ac_c_werror_flag" ||
   31769 	 test ! -s conftest.err
   31770        } && test -s conftest.$ac_objext; then
   31771   ac_header_compiler=yes
   31772 else
   31773   echo "$as_me: failed program was:" >&5
   31774 sed 's/^/| /' conftest.$ac_ext >&5
   31775 
   31776 	ac_header_compiler=no
   31777 fi
   31778 
   31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31781 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31782 
   31783 # Is the header present?
   31784 { echo "$as_me:$LINENO: checking process.h presence" >&5
   31785 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
   31786 cat >conftest.$ac_ext <<_ACEOF
   31787 /* confdefs.h.  */
   31788 _ACEOF
   31789 cat confdefs.h >>conftest.$ac_ext
   31790 cat >>conftest.$ac_ext <<_ACEOF
   31791 /* end confdefs.h.  */
   31792 #include <process.h>
   31793 _ACEOF
   31794 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31795 case "(($ac_try" in
   31796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31797   *) ac_try_echo=$ac_try;;
   31798 esac
   31799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31801   ac_status=$?
   31802   grep -v '^ *+' conftest.er1 >conftest.err
   31803   rm -f conftest.er1
   31804   cat conftest.err >&5
   31805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31806   (exit $ac_status); } >/dev/null && {
   31807 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31808 	 test ! -s conftest.err
   31809        }; then
   31810   ac_header_preproc=yes
   31811 else
   31812   echo "$as_me: failed program was:" >&5
   31813 sed 's/^/| /' conftest.$ac_ext >&5
   31814 
   31815   ac_header_preproc=no
   31816 fi
   31817 
   31818 rm -f conftest.err conftest.$ac_ext
   31819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31820 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31821 
   31822 # So?  What about this header?
   31823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31824   yes:no: )
   31825     { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31826 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31827     { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
   31828 echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
   31829     ac_header_preproc=yes
   31830     ;;
   31831   no:yes:* )
   31832     { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
   31833 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
   31834     { echo "$as_me:$LINENO: WARNING: process.h:     check for missing prerequisite headers?" >&5
   31835 echo "$as_me: WARNING: process.h:     check for missing prerequisite headers?" >&2;}
   31836     { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
   31837 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
   31838     { echo "$as_me:$LINENO: WARNING: process.h:     section \"Present But Cannot Be Compiled\"" >&5
   31839 echo "$as_me: WARNING: process.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31840     { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
   31841 echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
   31842     { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
   31843 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
   31844 
   31845     ;;
   31846 esac
   31847 { echo "$as_me:$LINENO: checking for process.h" >&5
   31848 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
   31849 if test "${ac_cv_header_process_h+set}" = set; then
   31850   echo $ECHO_N "(cached) $ECHO_C" >&6
   31851 else
   31852   ac_cv_header_process_h=$ac_header_preproc
   31853 fi
   31854 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
   31855 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
   31856 
   31857 fi
   31858 if test $ac_cv_header_process_h = yes; then
   31859   :
   31860 else
   31861    can_compile_rfb=0
   31862 fi
   31863 
   31864 
   31865         ;;
   31866       *)
   31867 	if test "${ac_cv_header_sys_socket_h+set}" = set; then
   31868   { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
   31869 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
   31870 if test "${ac_cv_header_sys_socket_h+set}" = set; then
   31871   echo $ECHO_N "(cached) $ECHO_C" >&6
   31872 fi
   31873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
   31874 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
   31875 else
   31876   # Is the header compilable?
   31877 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
   31878 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
   31879 cat >conftest.$ac_ext <<_ACEOF
   31880 /* confdefs.h.  */
   31881 _ACEOF
   31882 cat confdefs.h >>conftest.$ac_ext
   31883 cat >>conftest.$ac_ext <<_ACEOF
   31884 /* end confdefs.h.  */
   31885 $ac_includes_default
   31886 #include <sys/socket.h>
   31887 _ACEOF
   31888 rm -f conftest.$ac_objext
   31889 if { (ac_try="$ac_compile"
   31890 case "(($ac_try" in
   31891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31892   *) ac_try_echo=$ac_try;;
   31893 esac
   31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31895   (eval "$ac_compile") 2>conftest.er1
   31896   ac_status=$?
   31897   grep -v '^ *+' conftest.er1 >conftest.err
   31898   rm -f conftest.er1
   31899   cat conftest.err >&5
   31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31901   (exit $ac_status); } && {
   31902 	 test -z "$ac_c_werror_flag" ||
   31903 	 test ! -s conftest.err
   31904        } && test -s conftest.$ac_objext; then
   31905   ac_header_compiler=yes
   31906 else
   31907   echo "$as_me: failed program was:" >&5
   31908 sed 's/^/| /' conftest.$ac_ext >&5
   31909 
   31910 	ac_header_compiler=no
   31911 fi
   31912 
   31913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31915 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31916 
   31917 # Is the header present?
   31918 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
   31919 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
   31920 cat >conftest.$ac_ext <<_ACEOF
   31921 /* confdefs.h.  */
   31922 _ACEOF
   31923 cat confdefs.h >>conftest.$ac_ext
   31924 cat >>conftest.$ac_ext <<_ACEOF
   31925 /* end confdefs.h.  */
   31926 #include <sys/socket.h>
   31927 _ACEOF
   31928 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31929 case "(($ac_try" in
   31930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31931   *) ac_try_echo=$ac_try;;
   31932 esac
   31933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31935   ac_status=$?
   31936   grep -v '^ *+' conftest.er1 >conftest.err
   31937   rm -f conftest.er1
   31938   cat conftest.err >&5
   31939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31940   (exit $ac_status); } >/dev/null && {
   31941 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31942 	 test ! -s conftest.err
   31943        }; then
   31944   ac_header_preproc=yes
   31945 else
   31946   echo "$as_me: failed program was:" >&5
   31947 sed 's/^/| /' conftest.$ac_ext >&5
   31948 
   31949   ac_header_preproc=no
   31950 fi
   31951 
   31952 rm -f conftest.err conftest.$ac_ext
   31953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31954 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31955 
   31956 # So?  What about this header?
   31957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31958   yes:no: )
   31959     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31960 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31961     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
   31962 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
   31963     ac_header_preproc=yes
   31964     ;;
   31965   no:yes:* )
   31966     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
   31967 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
   31968     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
   31969 echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
   31970     { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
   31971 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
   31972     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
   31973 echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31974     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
   31975 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
   31976     { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
   31977 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
   31978 
   31979     ;;
   31980 esac
   31981 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
   31982 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
   31983 if test "${ac_cv_header_sys_socket_h+set}" = set; then
   31984   echo $ECHO_N "(cached) $ECHO_C" >&6
   31985 else
   31986   ac_cv_header_sys_socket_h=$ac_header_preproc
   31987 fi
   31988 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
   31989 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
   31990 
   31991 fi
   31992 if test $ac_cv_header_sys_socket_h = yes; then
   31993   :
   31994 else
   31995    can_compile_rfb=0
   31996 fi
   31997 
   31998 
   31999 	if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
   32000   { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
   32001 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
   32002 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
   32003   echo $ECHO_N "(cached) $ECHO_C" >&6
   32004 fi
   32005 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
   32006 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
   32007 else
   32008   # Is the header compilable?
   32009 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
   32010 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
   32011 cat >conftest.$ac_ext <<_ACEOF
   32012 /* confdefs.h.  */
   32013 _ACEOF
   32014 cat confdefs.h >>conftest.$ac_ext
   32015 cat >>conftest.$ac_ext <<_ACEOF
   32016 /* end confdefs.h.  */
   32017 $ac_includes_default
   32018 #include <netinet/tcp.h>
   32019 _ACEOF
   32020 rm -f conftest.$ac_objext
   32021 if { (ac_try="$ac_compile"
   32022 case "(($ac_try" in
   32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32024   *) ac_try_echo=$ac_try;;
   32025 esac
   32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32027   (eval "$ac_compile") 2>conftest.er1
   32028   ac_status=$?
   32029   grep -v '^ *+' conftest.er1 >conftest.err
   32030   rm -f conftest.er1
   32031   cat conftest.err >&5
   32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32033   (exit $ac_status); } && {
   32034 	 test -z "$ac_c_werror_flag" ||
   32035 	 test ! -s conftest.err
   32036        } && test -s conftest.$ac_objext; then
   32037   ac_header_compiler=yes
   32038 else
   32039   echo "$as_me: failed program was:" >&5
   32040 sed 's/^/| /' conftest.$ac_ext >&5
   32041 
   32042 	ac_header_compiler=no
   32043 fi
   32044 
   32045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32047 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32048 
   32049 # Is the header present?
   32050 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
   32051 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
   32052 cat >conftest.$ac_ext <<_ACEOF
   32053 /* confdefs.h.  */
   32054 _ACEOF
   32055 cat confdefs.h >>conftest.$ac_ext
   32056 cat >>conftest.$ac_ext <<_ACEOF
   32057 /* end confdefs.h.  */
   32058 #include <netinet/tcp.h>
   32059 _ACEOF
   32060 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32061 case "(($ac_try" in
   32062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32063   *) ac_try_echo=$ac_try;;
   32064 esac
   32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32067   ac_status=$?
   32068   grep -v '^ *+' conftest.er1 >conftest.err
   32069   rm -f conftest.er1
   32070   cat conftest.err >&5
   32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32072   (exit $ac_status); } >/dev/null && {
   32073 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32074 	 test ! -s conftest.err
   32075        }; then
   32076   ac_header_preproc=yes
   32077 else
   32078   echo "$as_me: failed program was:" >&5
   32079 sed 's/^/| /' conftest.$ac_ext >&5
   32080 
   32081   ac_header_preproc=no
   32082 fi
   32083 
   32084 rm -f conftest.err conftest.$ac_ext
   32085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32086 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32087 
   32088 # So?  What about this header?
   32089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32090   yes:no: )
   32091     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32092 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32093     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
   32094 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
   32095     ac_header_preproc=yes
   32096     ;;
   32097   no:yes:* )
   32098     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
   32099 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
   32100     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h:     check for missing prerequisite headers?" >&5
   32101 echo "$as_me: WARNING: netinet/tcp.h:     check for missing prerequisite headers?" >&2;}
   32102     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
   32103 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
   32104     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h:     section \"Present But Cannot Be Compiled\"" >&5
   32105 echo "$as_me: WARNING: netinet/tcp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32106     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
   32107 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
   32108     { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
   32109 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
   32110 
   32111     ;;
   32112 esac
   32113 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
   32114 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
   32115 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
   32116   echo $ECHO_N "(cached) $ECHO_C" >&6
   32117 else
   32118   ac_cv_header_netinet_tcp_h=$ac_header_preproc
   32119 fi
   32120 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
   32121 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
   32122 
   32123 fi
   32124 if test $ac_cv_header_netinet_tcp_h = yes; then
   32125   :
   32126 else
   32127    can_compile_rfb=0
   32128 fi
   32129 
   32130 
   32131 	if test "${ac_cv_header_pthread_h+set}" = set; then
   32132   { echo "$as_me:$LINENO: checking for pthread.h" >&5
   32133 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
   32134 if test "${ac_cv_header_pthread_h+set}" = set; then
   32135   echo $ECHO_N "(cached) $ECHO_C" >&6
   32136 fi
   32137 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
   32138 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
   32139 else
   32140   # Is the header compilable?
   32141 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
   32142 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
   32143 cat >conftest.$ac_ext <<_ACEOF
   32144 /* confdefs.h.  */
   32145 _ACEOF
   32146 cat confdefs.h >>conftest.$ac_ext
   32147 cat >>conftest.$ac_ext <<_ACEOF
   32148 /* end confdefs.h.  */
   32149 $ac_includes_default
   32150 #include <pthread.h>
   32151 _ACEOF
   32152 rm -f conftest.$ac_objext
   32153 if { (ac_try="$ac_compile"
   32154 case "(($ac_try" in
   32155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32156   *) ac_try_echo=$ac_try;;
   32157 esac
   32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32159   (eval "$ac_compile") 2>conftest.er1
   32160   ac_status=$?
   32161   grep -v '^ *+' conftest.er1 >conftest.err
   32162   rm -f conftest.er1
   32163   cat conftest.err >&5
   32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32165   (exit $ac_status); } && {
   32166 	 test -z "$ac_c_werror_flag" ||
   32167 	 test ! -s conftest.err
   32168        } && test -s conftest.$ac_objext; then
   32169   ac_header_compiler=yes
   32170 else
   32171   echo "$as_me: failed program was:" >&5
   32172 sed 's/^/| /' conftest.$ac_ext >&5
   32173 
   32174 	ac_header_compiler=no
   32175 fi
   32176 
   32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32179 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32180 
   32181 # Is the header present?
   32182 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
   32183 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
   32184 cat >conftest.$ac_ext <<_ACEOF
   32185 /* confdefs.h.  */
   32186 _ACEOF
   32187 cat confdefs.h >>conftest.$ac_ext
   32188 cat >>conftest.$ac_ext <<_ACEOF
   32189 /* end confdefs.h.  */
   32190 #include <pthread.h>
   32191 _ACEOF
   32192 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32193 case "(($ac_try" in
   32194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32195   *) ac_try_echo=$ac_try;;
   32196 esac
   32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32199   ac_status=$?
   32200   grep -v '^ *+' conftest.er1 >conftest.err
   32201   rm -f conftest.er1
   32202   cat conftest.err >&5
   32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32204   (exit $ac_status); } >/dev/null && {
   32205 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32206 	 test ! -s conftest.err
   32207        }; then
   32208   ac_header_preproc=yes
   32209 else
   32210   echo "$as_me: failed program was:" >&5
   32211 sed 's/^/| /' conftest.$ac_ext >&5
   32212 
   32213   ac_header_preproc=no
   32214 fi
   32215 
   32216 rm -f conftest.err conftest.$ac_ext
   32217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32218 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32219 
   32220 # So?  What about this header?
   32221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32222   yes:no: )
   32223     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32224 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32225     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
   32226 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
   32227     ac_header_preproc=yes
   32228     ;;
   32229   no:yes:* )
   32230     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
   32231 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
   32232     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
   32233 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
   32234     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
   32235 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
   32236     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
   32237 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32238     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
   32239 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
   32240     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
   32241 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
   32242 
   32243     ;;
   32244 esac
   32245 { echo "$as_me:$LINENO: checking for pthread.h" >&5
   32246 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
   32247 if test "${ac_cv_header_pthread_h+set}" = set; then
   32248   echo $ECHO_N "(cached) $ECHO_C" >&6
   32249 else
   32250   ac_cv_header_pthread_h=$ac_header_preproc
   32251 fi
   32252 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
   32253 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
   32254 
   32255 fi
   32256 if test $ac_cv_header_pthread_h = yes; then
   32257   :
   32258 else
   32259    can_compile_rfb=0
   32260 fi
   32261 
   32262 
   32263 	;;
   32264     esac
   32265     if test $can_compile_rfb = 1; then
   32266       with_rfb=yes
   32267     fi
   32268   fi
   32269 
   32270   if test "$with_term" != yes; then
   32271     can_compile_term=1
   32272     if test "${ac_cv_header_curses_h+set}" = set; then
   32273   { echo "$as_me:$LINENO: checking for curses.h" >&5
   32274 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
   32275 if test "${ac_cv_header_curses_h+set}" = set; then
   32276   echo $ECHO_N "(cached) $ECHO_C" >&6
   32277 fi
   32278 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
   32279 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
   32280 else
   32281   # Is the header compilable?
   32282 { echo "$as_me:$LINENO: checking curses.h usability" >&5
   32283 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
   32284 cat >conftest.$ac_ext <<_ACEOF
   32285 /* confdefs.h.  */
   32286 _ACEOF
   32287 cat confdefs.h >>conftest.$ac_ext
   32288 cat >>conftest.$ac_ext <<_ACEOF
   32289 /* end confdefs.h.  */
   32290 $ac_includes_default
   32291 #include <curses.h>
   32292 _ACEOF
   32293 rm -f conftest.$ac_objext
   32294 if { (ac_try="$ac_compile"
   32295 case "(($ac_try" in
   32296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32297   *) ac_try_echo=$ac_try;;
   32298 esac
   32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32300   (eval "$ac_compile") 2>conftest.er1
   32301   ac_status=$?
   32302   grep -v '^ *+' conftest.er1 >conftest.err
   32303   rm -f conftest.er1
   32304   cat conftest.err >&5
   32305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32306   (exit $ac_status); } && {
   32307 	 test -z "$ac_c_werror_flag" ||
   32308 	 test ! -s conftest.err
   32309        } && test -s conftest.$ac_objext; then
   32310   ac_header_compiler=yes
   32311 else
   32312   echo "$as_me: failed program was:" >&5
   32313 sed 's/^/| /' conftest.$ac_ext >&5
   32314 
   32315 	ac_header_compiler=no
   32316 fi
   32317 
   32318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32320 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32321 
   32322 # Is the header present?
   32323 { echo "$as_me:$LINENO: checking curses.h presence" >&5
   32324 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
   32325 cat >conftest.$ac_ext <<_ACEOF
   32326 /* confdefs.h.  */
   32327 _ACEOF
   32328 cat confdefs.h >>conftest.$ac_ext
   32329 cat >>conftest.$ac_ext <<_ACEOF
   32330 /* end confdefs.h.  */
   32331 #include <curses.h>
   32332 _ACEOF
   32333 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32334 case "(($ac_try" in
   32335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32336   *) ac_try_echo=$ac_try;;
   32337 esac
   32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32340   ac_status=$?
   32341   grep -v '^ *+' conftest.er1 >conftest.err
   32342   rm -f conftest.er1
   32343   cat conftest.err >&5
   32344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32345   (exit $ac_status); } >/dev/null && {
   32346 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32347 	 test ! -s conftest.err
   32348        }; then
   32349   ac_header_preproc=yes
   32350 else
   32351   echo "$as_me: failed program was:" >&5
   32352 sed 's/^/| /' conftest.$ac_ext >&5
   32353 
   32354   ac_header_preproc=no
   32355 fi
   32356 
   32357 rm -f conftest.err conftest.$ac_ext
   32358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32359 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32360 
   32361 # So?  What about this header?
   32362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32363   yes:no: )
   32364     { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32365 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32366     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
   32367 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
   32368     ac_header_preproc=yes
   32369     ;;
   32370   no:yes:* )
   32371     { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
   32372 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
   32373     { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
   32374 echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
   32375     { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
   32376 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
   32377     { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
   32378 echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32379     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
   32380 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
   32381     { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
   32382 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
   32383 
   32384     ;;
   32385 esac
   32386 { echo "$as_me:$LINENO: checking for curses.h" >&5
   32387 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
   32388 if test "${ac_cv_header_curses_h+set}" = set; then
   32389   echo $ECHO_N "(cached) $ECHO_C" >&6
   32390 else
   32391   ac_cv_header_curses_h=$ac_header_preproc
   32392 fi
   32393 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
   32394 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
   32395 
   32396 fi
   32397 if test $ac_cv_header_curses_h = yes; then
   32398   :
   32399 else
   32400    can_compile_term=0
   32401 fi
   32402 
   32403 
   32404     if test "${ac_cv_header_signal_h+set}" = set; then
   32405   { echo "$as_me:$LINENO: checking for signal.h" >&5
   32406 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
   32407 if test "${ac_cv_header_signal_h+set}" = set; then
   32408   echo $ECHO_N "(cached) $ECHO_C" >&6
   32409 fi
   32410 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
   32411 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
   32412 else
   32413   # Is the header compilable?
   32414 { echo "$as_me:$LINENO: checking signal.h usability" >&5
   32415 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
   32416 cat >conftest.$ac_ext <<_ACEOF
   32417 /* confdefs.h.  */
   32418 _ACEOF
   32419 cat confdefs.h >>conftest.$ac_ext
   32420 cat >>conftest.$ac_ext <<_ACEOF
   32421 /* end confdefs.h.  */
   32422 $ac_includes_default
   32423 #include <signal.h>
   32424 _ACEOF
   32425 rm -f conftest.$ac_objext
   32426 if { (ac_try="$ac_compile"
   32427 case "(($ac_try" in
   32428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32429   *) ac_try_echo=$ac_try;;
   32430 esac
   32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32432   (eval "$ac_compile") 2>conftest.er1
   32433   ac_status=$?
   32434   grep -v '^ *+' conftest.er1 >conftest.err
   32435   rm -f conftest.er1
   32436   cat conftest.err >&5
   32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32438   (exit $ac_status); } && {
   32439 	 test -z "$ac_c_werror_flag" ||
   32440 	 test ! -s conftest.err
   32441        } && test -s conftest.$ac_objext; then
   32442   ac_header_compiler=yes
   32443 else
   32444   echo "$as_me: failed program was:" >&5
   32445 sed 's/^/| /' conftest.$ac_ext >&5
   32446 
   32447 	ac_header_compiler=no
   32448 fi
   32449 
   32450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32452 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32453 
   32454 # Is the header present?
   32455 { echo "$as_me:$LINENO: checking signal.h presence" >&5
   32456 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
   32457 cat >conftest.$ac_ext <<_ACEOF
   32458 /* confdefs.h.  */
   32459 _ACEOF
   32460 cat confdefs.h >>conftest.$ac_ext
   32461 cat >>conftest.$ac_ext <<_ACEOF
   32462 /* end confdefs.h.  */
   32463 #include <signal.h>
   32464 _ACEOF
   32465 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32466 case "(($ac_try" in
   32467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32468   *) ac_try_echo=$ac_try;;
   32469 esac
   32470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32472   ac_status=$?
   32473   grep -v '^ *+' conftest.er1 >conftest.err
   32474   rm -f conftest.er1
   32475   cat conftest.err >&5
   32476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32477   (exit $ac_status); } >/dev/null && {
   32478 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32479 	 test ! -s conftest.err
   32480        }; then
   32481   ac_header_preproc=yes
   32482 else
   32483   echo "$as_me: failed program was:" >&5
   32484 sed 's/^/| /' conftest.$ac_ext >&5
   32485 
   32486   ac_header_preproc=no
   32487 fi
   32488 
   32489 rm -f conftest.err conftest.$ac_ext
   32490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32491 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32492 
   32493 # So?  What about this header?
   32494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32495   yes:no: )
   32496     { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32497 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32498     { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
   32499 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
   32500     ac_header_preproc=yes
   32501     ;;
   32502   no:yes:* )
   32503     { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
   32504 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
   32505     { echo "$as_me:$LINENO: WARNING: signal.h:     check for missing prerequisite headers?" >&5
   32506 echo "$as_me: WARNING: signal.h:     check for missing prerequisite headers?" >&2;}
   32507     { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
   32508 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
   32509     { echo "$as_me:$LINENO: WARNING: signal.h:     section \"Present But Cannot Be Compiled\"" >&5
   32510 echo "$as_me: WARNING: signal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32511     { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
   32512 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
   32513     { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
   32514 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
   32515 
   32516     ;;
   32517 esac
   32518 { echo "$as_me:$LINENO: checking for signal.h" >&5
   32519 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
   32520 if test "${ac_cv_header_signal_h+set}" = set; then
   32521   echo $ECHO_N "(cached) $ECHO_C" >&6
   32522 else
   32523   ac_cv_header_signal_h=$ac_header_preproc
   32524 fi
   32525 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
   32526 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
   32527 
   32528 fi
   32529 if test $ac_cv_header_signal_h = yes; then
   32530   :
   32531 else
   32532    can_compile_term=0
   32533 fi
   32534 
   32535 
   32536     if test $can_compile_term = 1; then
   32537       with_term=yes
   32538     fi
   32539   fi
   32540 
   32541   if test "$with_nogui" != yes; then
   32542     with_nogui=yes
   32543   fi
   32544 fi    # end of if $with_all_libs = yes
   32545 
   32546 { echo "$as_me:$LINENO: checking for idle hack" >&5
   32547 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
   32548 # Check whether --enable-idle-hack was given.
   32549 if test "${enable_idle_hack+set}" = set; then
   32550   enableval=$enable_idle_hack; if test "$enableval" = yes; then
   32551     { echo "$as_me:$LINENO: result: yes" >&5
   32552 echo "${ECHO_T}yes" >&6; }
   32553     cat >>confdefs.h <<\_ACEOF
   32554 #define BX_USE_IDLE_HACK 1
   32555 _ACEOF
   32556 
   32557    else
   32558     { echo "$as_me:$LINENO: result: no" >&5
   32559 echo "${ECHO_T}no" >&6; }
   32560     cat >>confdefs.h <<\_ACEOF
   32561 #define BX_USE_IDLE_HACK 0
   32562 _ACEOF
   32563 
   32564    fi
   32565 else
   32566 
   32567     { echo "$as_me:$LINENO: result: no" >&5
   32568 echo "${ECHO_T}no" >&6; }
   32569     cat >>confdefs.h <<\_ACEOF
   32570 #define BX_USE_IDLE_HACK 0
   32571 _ACEOF
   32572 
   32573 
   32574 
   32575 fi
   32576 
   32577 
   32578 
   32579 if test "${ac_cv_header_dlfcn_h+set}" = set; then
   32580   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
   32581 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
   32582 if test "${ac_cv_header_dlfcn_h+set}" = set; then
   32583   echo $ECHO_N "(cached) $ECHO_C" >&6
   32584 fi
   32585 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
   32586 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
   32587 else
   32588   # Is the header compilable?
   32589 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
   32590 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
   32591 cat >conftest.$ac_ext <<_ACEOF
   32592 /* confdefs.h.  */
   32593 _ACEOF
   32594 cat confdefs.h >>conftest.$ac_ext
   32595 cat >>conftest.$ac_ext <<_ACEOF
   32596 /* end confdefs.h.  */
   32597 $ac_includes_default
   32598 #include <dlfcn.h>
   32599 _ACEOF
   32600 rm -f conftest.$ac_objext
   32601 if { (ac_try="$ac_compile"
   32602 case "(($ac_try" in
   32603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32604   *) ac_try_echo=$ac_try;;
   32605 esac
   32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32607   (eval "$ac_compile") 2>conftest.er1
   32608   ac_status=$?
   32609   grep -v '^ *+' conftest.er1 >conftest.err
   32610   rm -f conftest.er1
   32611   cat conftest.err >&5
   32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32613   (exit $ac_status); } && {
   32614 	 test -z "$ac_c_werror_flag" ||
   32615 	 test ! -s conftest.err
   32616        } && test -s conftest.$ac_objext; then
   32617   ac_header_compiler=yes
   32618 else
   32619   echo "$as_me: failed program was:" >&5
   32620 sed 's/^/| /' conftest.$ac_ext >&5
   32621 
   32622 	ac_header_compiler=no
   32623 fi
   32624 
   32625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32627 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32628 
   32629 # Is the header present?
   32630 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
   32631 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
   32632 cat >conftest.$ac_ext <<_ACEOF
   32633 /* confdefs.h.  */
   32634 _ACEOF
   32635 cat confdefs.h >>conftest.$ac_ext
   32636 cat >>conftest.$ac_ext <<_ACEOF
   32637 /* end confdefs.h.  */
   32638 #include <dlfcn.h>
   32639 _ACEOF
   32640 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32641 case "(($ac_try" in
   32642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32643   *) ac_try_echo=$ac_try;;
   32644 esac
   32645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32647   ac_status=$?
   32648   grep -v '^ *+' conftest.er1 >conftest.err
   32649   rm -f conftest.er1
   32650   cat conftest.err >&5
   32651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32652   (exit $ac_status); } >/dev/null && {
   32653 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32654 	 test ! -s conftest.err
   32655        }; then
   32656   ac_header_preproc=yes
   32657 else
   32658   echo "$as_me: failed program was:" >&5
   32659 sed 's/^/| /' conftest.$ac_ext >&5
   32660 
   32661   ac_header_preproc=no
   32662 fi
   32663 
   32664 rm -f conftest.err conftest.$ac_ext
   32665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32666 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32667 
   32668 # So?  What about this header?
   32669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32670   yes:no: )
   32671     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32672 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32673     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
   32674 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
   32675     ac_header_preproc=yes
   32676     ;;
   32677   no:yes:* )
   32678     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
   32679 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
   32680     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
   32681 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
   32682     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
   32683 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
   32684     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
   32685 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32686     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
   32687 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
   32688     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
   32689 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
   32690 
   32691     ;;
   32692 esac
   32693 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
   32694 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
   32695 if test "${ac_cv_header_dlfcn_h+set}" = set; then
   32696   echo $ECHO_N "(cached) $ECHO_C" >&6
   32697 else
   32698   ac_cv_header_dlfcn_h=$ac_header_preproc
   32699 fi
   32700 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
   32701 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
   32702 
   32703 fi
   32704 if test $ac_cv_header_dlfcn_h = yes; then
   32705   cat >>confdefs.h <<\_ACEOF
   32706 #define BX_HAVE_DLFCN_H 1
   32707 _ACEOF
   32708 
   32709 fi
   32710 
   32711 
   32712 if test "${ac_cv_header_assert_h+set}" = set; then
   32713   { echo "$as_me:$LINENO: checking for assert.h" >&5
   32714 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
   32715 if test "${ac_cv_header_assert_h+set}" = set; then
   32716   echo $ECHO_N "(cached) $ECHO_C" >&6
   32717 fi
   32718 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
   32719 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
   32720 else
   32721   # Is the header compilable?
   32722 { echo "$as_me:$LINENO: checking assert.h usability" >&5
   32723 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
   32724 cat >conftest.$ac_ext <<_ACEOF
   32725 /* confdefs.h.  */
   32726 _ACEOF
   32727 cat confdefs.h >>conftest.$ac_ext
   32728 cat >>conftest.$ac_ext <<_ACEOF
   32729 /* end confdefs.h.  */
   32730 $ac_includes_default
   32731 #include <assert.h>
   32732 _ACEOF
   32733 rm -f conftest.$ac_objext
   32734 if { (ac_try="$ac_compile"
   32735 case "(($ac_try" in
   32736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32737   *) ac_try_echo=$ac_try;;
   32738 esac
   32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32740   (eval "$ac_compile") 2>conftest.er1
   32741   ac_status=$?
   32742   grep -v '^ *+' conftest.er1 >conftest.err
   32743   rm -f conftest.er1
   32744   cat conftest.err >&5
   32745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32746   (exit $ac_status); } && {
   32747 	 test -z "$ac_c_werror_flag" ||
   32748 	 test ! -s conftest.err
   32749        } && test -s conftest.$ac_objext; then
   32750   ac_header_compiler=yes
   32751 else
   32752   echo "$as_me: failed program was:" >&5
   32753 sed 's/^/| /' conftest.$ac_ext >&5
   32754 
   32755 	ac_header_compiler=no
   32756 fi
   32757 
   32758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32760 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32761 
   32762 # Is the header present?
   32763 { echo "$as_me:$LINENO: checking assert.h presence" >&5
   32764 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
   32765 cat >conftest.$ac_ext <<_ACEOF
   32766 /* confdefs.h.  */
   32767 _ACEOF
   32768 cat confdefs.h >>conftest.$ac_ext
   32769 cat >>conftest.$ac_ext <<_ACEOF
   32770 /* end confdefs.h.  */
   32771 #include <assert.h>
   32772 _ACEOF
   32773 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32774 case "(($ac_try" in
   32775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32776   *) ac_try_echo=$ac_try;;
   32777 esac
   32778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32780   ac_status=$?
   32781   grep -v '^ *+' conftest.er1 >conftest.err
   32782   rm -f conftest.er1
   32783   cat conftest.err >&5
   32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32785   (exit $ac_status); } >/dev/null && {
   32786 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32787 	 test ! -s conftest.err
   32788        }; then
   32789   ac_header_preproc=yes
   32790 else
   32791   echo "$as_me: failed program was:" >&5
   32792 sed 's/^/| /' conftest.$ac_ext >&5
   32793 
   32794   ac_header_preproc=no
   32795 fi
   32796 
   32797 rm -f conftest.err conftest.$ac_ext
   32798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32799 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32800 
   32801 # So?  What about this header?
   32802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32803   yes:no: )
   32804     { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32805 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32806     { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
   32807 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
   32808     ac_header_preproc=yes
   32809     ;;
   32810   no:yes:* )
   32811     { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
   32812 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
   32813     { echo "$as_me:$LINENO: WARNING: assert.h:     check for missing prerequisite headers?" >&5
   32814 echo "$as_me: WARNING: assert.h:     check for missing prerequisite headers?" >&2;}
   32815     { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
   32816 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
   32817     { echo "$as_me:$LINENO: WARNING: assert.h:     section \"Present But Cannot Be Compiled\"" >&5
   32818 echo "$as_me: WARNING: assert.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32819     { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
   32820 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
   32821     { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
   32822 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
   32823 
   32824     ;;
   32825 esac
   32826 { echo "$as_me:$LINENO: checking for assert.h" >&5
   32827 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
   32828 if test "${ac_cv_header_assert_h+set}" = set; then
   32829   echo $ECHO_N "(cached) $ECHO_C" >&6
   32830 else
   32831   ac_cv_header_assert_h=$ac_header_preproc
   32832 fi
   32833 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
   32834 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
   32835 
   32836 fi
   32837 if test $ac_cv_header_assert_h = yes; then
   32838   cat >>confdefs.h <<\_ACEOF
   32839 #define HAVE_ASSERT_H 1
   32840 _ACEOF
   32841 
   32842 fi
   32843 
   32844 
   32845 
   32846 { echo "$as_me:$LINENO: checking for plugins support" >&5
   32847 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
   32848 # Check whether --enable-plugins was given.
   32849 if test "${enable_plugins+set}" = set; then
   32850   enableval=$enable_plugins; if test "$enableval" = yes; then
   32851      bx_plugins=1
   32852    else
   32853      bx_plugins=0
   32854    fi
   32855 else
   32856 
   32857     bx_plugins=0
   32858 
   32859 
   32860 fi
   32861 
   32862 
   32863 if test "$bx_plugins" = 1; then
   32864   { echo "$as_me:$LINENO: result: yes" >&5
   32865 echo "${ECHO_T}yes" >&6; }
   32866   cat >>confdefs.h <<\_ACEOF
   32867 #define BX_PLUGINS 1
   32868 _ACEOF
   32869 
   32870   GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
   32871   GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
   32872   DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
   32873   # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
   32874   # by special link rules for the plugins that they support.
   32875   LIBS="$LIBS $LIBADD_DL"
   32876   PLUGIN_VAR='ltdl.o'
   32877   PLUGIN_TARGET=bochs_plugins
   32878   INSTALL_PLUGINS_VAR=install_libtool_plugins
   32879   NONPLUGIN_GUI_LINK_OPTS=''
   32880 else
   32881   { echo "$as_me:$LINENO: result: no" >&5
   32882 echo "${ECHO_T}no" >&6; }
   32883   bx_plugins=0
   32884   cat >>confdefs.h <<\_ACEOF
   32885 #define BX_PLUGINS 0
   32886 _ACEOF
   32887 
   32888   GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
   32889   GUI_PLUGIN_OBJS=''
   32890   NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
   32891 fi
   32892 
   32893 
   32894 
   32895 # copy gui variables into iodev variables.  Later, we will add to the gui
   32896 # objs list, according to which display libraries are enabled.
   32897 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
   32898 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
   32899 
   32900 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
   32901 # It is provided by a library called dlcompat.
   32902 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
   32903   have_dlopen=0
   32904   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   32905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   32906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   32907   echo $ECHO_N "(cached) $ECHO_C" >&6
   32908 else
   32909   ac_check_lib_save_LIBS=$LIBS
   32910 LIBS="-ldl  $LIBS"
   32911 cat >conftest.$ac_ext <<_ACEOF
   32912 /* confdefs.h.  */
   32913 _ACEOF
   32914 cat confdefs.h >>conftest.$ac_ext
   32915 cat >>conftest.$ac_ext <<_ACEOF
   32916 /* end confdefs.h.  */
   32917 
   32918 /* Override any GCC internal prototype to avoid an error.
   32919    Use char because int might match the return type of a GCC
   32920    builtin and then its argument prototype would still apply.  */
   32921 #ifdef __cplusplus
   32922 extern "C"
   32923 #endif
   32924 char dlopen ();
   32925 int
   32926 main ()
   32927 {
   32928 return dlopen ();
   32929   ;
   32930   return 0;
   32931 }
   32932 _ACEOF
   32933 rm -f conftest.$ac_objext conftest$ac_exeext
   32934 if { (ac_try="$ac_link"
   32935 case "(($ac_try" in
   32936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32937   *) ac_try_echo=$ac_try;;
   32938 esac
   32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32940   (eval "$ac_link") 2>conftest.er1
   32941   ac_status=$?
   32942   grep -v '^ *+' conftest.er1 >conftest.err
   32943   rm -f conftest.er1
   32944   cat conftest.err >&5
   32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32946   (exit $ac_status); } && {
   32947 	 test -z "$ac_c_werror_flag" ||
   32948 	 test ! -s conftest.err
   32949        } && test -s conftest$ac_exeext &&
   32950        $as_test_x conftest$ac_exeext; then
   32951   ac_cv_lib_dl_dlopen=yes
   32952 else
   32953   echo "$as_me: failed program was:" >&5
   32954 sed 's/^/| /' conftest.$ac_ext >&5
   32955 
   32956 	ac_cv_lib_dl_dlopen=no
   32957 fi
   32958 
   32959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32960       conftest$ac_exeext conftest.$ac_ext
   32961 LIBS=$ac_check_lib_save_LIBS
   32962 fi
   32963 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   32964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   32965 if test $ac_cv_lib_dl_dlopen = yes; then
   32966   have_dlopen=1
   32967 fi
   32968 
   32969   { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
   32970 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
   32971   if test "$have_dlopen" = 0; then
   32972     { echo "$as_me:$LINENO: result: no" >&5
   32973 echo "${ECHO_T}no" >&6; }
   32974     { { echo "$as_me:$LINENO: error: To use plugins on MacOSX you must use a library called dlcompat.  The configure script was not able to find dlcompat.  If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx.  If you cannot resolve this, you should turn off plugins." >&5
   32975 echo "$as_me: error: To use plugins on MacOSX you must use a library called dlcompat.  The configure script was not able to find dlcompat.  If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx.  If you cannot resolve this, you should turn off plugins." >&2;}
   32976    { (exit 1); exit 1; }; }
   32977   else
   32978     { echo "$as_me:$LINENO: result: yes" >&5
   32979 echo "${ECHO_T}yes" >&6; }
   32980   fi
   32981 fi
   32982 
   32983 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
   32984 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
   32985 cat >conftest.$ac_ext <<_ACEOF
   32986 /* confdefs.h.  */
   32987 _ACEOF
   32988 cat confdefs.h >>conftest.$ac_ext
   32989 cat >>conftest.$ac_ext <<_ACEOF
   32990 /* end confdefs.h.  */
   32991 
   32992 int
   32993 main ()
   32994 {
   32995  { label1: }
   32996   ;
   32997   return 0;
   32998 }
   32999 _ACEOF
   33000 rm -f conftest.$ac_objext
   33001 if { (ac_try="$ac_compile"
   33002 case "(($ac_try" in
   33003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33004   *) ac_try_echo=$ac_try;;
   33005 esac
   33006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33007   (eval "$ac_compile") 2>conftest.er1
   33008   ac_status=$?
   33009   grep -v '^ *+' conftest.er1 >conftest.err
   33010   rm -f conftest.er1
   33011   cat conftest.err >&5
   33012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33013   (exit $ac_status); } && {
   33014 	 test -z "$ac_c_werror_flag" ||
   33015 	 test ! -s conftest.err
   33016        } && test -s conftest.$ac_objext; then
   33017   { echo "$as_me:$LINENO: result: yes" >&5
   33018 echo "${ECHO_T}yes" >&6; }
   33019 else
   33020   echo "$as_me: failed program was:" >&5
   33021 sed 's/^/| /' conftest.$ac_ext >&5
   33022 
   33023 
   33024       { echo "$as_me:$LINENO: result: no" >&5
   33025 echo "${ECHO_T}no" >&6; }
   33026       cat >>confdefs.h <<\_ACEOF
   33027 #define BX_NO_BLANK_LABELS 1
   33028 _ACEOF
   33029 
   33030 
   33031 fi
   33032 
   33033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33034 
   33035 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
   33036 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
   33037 cat >conftest.$ac_ext <<_ACEOF
   33038 /* confdefs.h.  */
   33039 _ACEOF
   33040 cat confdefs.h >>conftest.$ac_ext
   33041 cat >>conftest.$ac_ext <<_ACEOF
   33042 /* end confdefs.h.  */
   33043 
   33044 int
   33045 main ()
   33046 {
   33047  { 42LL; }
   33048   ;
   33049   return 0;
   33050 }
   33051 _ACEOF
   33052 rm -f conftest.$ac_objext
   33053 if { (ac_try="$ac_compile"
   33054 case "(($ac_try" in
   33055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33056   *) ac_try_echo=$ac_try;;
   33057 esac
   33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33059   (eval "$ac_compile") 2>conftest.er1
   33060   ac_status=$?
   33061   grep -v '^ *+' conftest.er1 >conftest.err
   33062   rm -f conftest.er1
   33063   cat conftest.err >&5
   33064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33065   (exit $ac_status); } && {
   33066 	 test -z "$ac_c_werror_flag" ||
   33067 	 test ! -s conftest.err
   33068        } && test -s conftest.$ac_objext; then
   33069   { echo "$as_me:$LINENO: result: yes" >&5
   33070 echo "${ECHO_T}yes" >&6; }
   33071 else
   33072   echo "$as_me: failed program was:" >&5
   33073 sed 's/^/| /' conftest.$ac_ext >&5
   33074 
   33075 
   33076       { echo "$as_me:$LINENO: result: no" >&5
   33077 echo "${ECHO_T}no" >&6; }
   33078       cat >>confdefs.h <<\_ACEOF
   33079 #define BX_64BIT_CONSTANTS_USE_LL 0
   33080 _ACEOF
   33081 
   33082 
   33083 fi
   33084 
   33085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33086 
   33087 use_x86_64=0
   33088 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
   33089 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
   33090 # Check whether --enable-x86-64 was given.
   33091 if test "${enable_x86_64+set}" = set; then
   33092   enableval=$enable_x86_64; if test "$enableval" = yes; then
   33093     { echo "$as_me:$LINENO: result: yes" >&5
   33094 echo "${ECHO_T}yes" >&6; }
   33095     OBJS64='$(OBJS64)'
   33096     cat >>confdefs.h <<\_ACEOF
   33097 #define BX_SUPPORT_X86_64 1
   33098 _ACEOF
   33099 
   33100     use_x86_64=1
   33101    else
   33102     { echo "$as_me:$LINENO: result: no" >&5
   33103 echo "${ECHO_T}no" >&6; }
   33104     OBJS64=''
   33105     cat >>confdefs.h <<\_ACEOF
   33106 #define BX_SUPPORT_X86_64 0
   33107 _ACEOF
   33108 
   33109    fi
   33110 
   33111 else
   33112 
   33113     { echo "$as_me:$LINENO: result: no" >&5
   33114 echo "${ECHO_T}no" >&6; }
   33115     OBJS64=''
   33116     cat >>confdefs.h <<\_ACEOF
   33117 #define BX_SUPPORT_X86_64 0
   33118 _ACEOF
   33119 
   33120 
   33121 
   33122 fi
   33123 
   33124 
   33125 
   33126 use_smp=0
   33127 { echo "$as_me:$LINENO: checking for SMP support" >&5
   33128 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
   33129 # Check whether --enable-smp was given.
   33130 if test "${enable_smp+set}" = set; then
   33131   enableval=$enable_smp; if test "$enableval" = yes; then
   33132     { echo "$as_me:$LINENO: result: yes" >&5
   33133 echo "${ECHO_T}yes" >&6; }
   33134     cat >>confdefs.h <<\_ACEOF
   33135 #define BX_SUPPORT_SMP 1
   33136 _ACEOF
   33137 
   33138     cat >>confdefs.h <<\_ACEOF
   33139 #define BX_USE_CPU_SMF 0
   33140 _ACEOF
   33141 
   33142     use_smp=1
   33143    else
   33144     { echo "$as_me:$LINENO: result: no" >&5
   33145 echo "${ECHO_T}no" >&6; }
   33146     cat >>confdefs.h <<\_ACEOF
   33147 #define BX_SUPPORT_SMP 0
   33148 _ACEOF
   33149 
   33150    fi
   33151 
   33152 else
   33153 
   33154     { echo "$as_me:$LINENO: result: no" >&5
   33155 echo "${ECHO_T}no" >&6; }
   33156     cat >>confdefs.h <<\_ACEOF
   33157 #define BX_SUPPORT_SMP 0
   33158 _ACEOF
   33159 
   33160 
   33161 
   33162 fi
   33163 
   33164 
   33165 { echo "$as_me:$LINENO: checking for cpu level" >&5
   33166 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
   33167 # Check whether --enable-cpu-level was given.
   33168 if test "${enable_cpu_level+set}" = set; then
   33169   enableval=$enable_cpu_level; case "$enableval" in
   33170      3)
   33171        { echo "$as_me:$LINENO: result: 3" >&5
   33172 echo "${ECHO_T}3" >&6; }
   33173        cat >>confdefs.h <<\_ACEOF
   33174 #define BX_CPU_LEVEL 3
   33175 _ACEOF
   33176 
   33177        cat >>confdefs.h <<\_ACEOF
   33178 #define BX_CPU_LEVEL_HACKED 3
   33179 _ACEOF
   33180 
   33181        ;;
   33182      4)
   33183        { echo "$as_me:$LINENO: result: 4" >&5
   33184 echo "${ECHO_T}4" >&6; }
   33185        cat >>confdefs.h <<\_ACEOF
   33186 #define BX_CPU_LEVEL 4
   33187 _ACEOF
   33188 
   33189        cat >>confdefs.h <<\_ACEOF
   33190 #define BX_CPU_LEVEL_HACKED 4
   33191 _ACEOF
   33192 
   33193        ;;
   33194      5)
   33195        { echo "$as_me:$LINENO: result: 5" >&5
   33196 echo "${ECHO_T}5" >&6; }
   33197        cat >>confdefs.h <<\_ACEOF
   33198 #define BX_CPU_LEVEL 5
   33199 _ACEOF
   33200 
   33201        cat >>confdefs.h <<\_ACEOF
   33202 #define BX_CPU_LEVEL_HACKED 5
   33203 _ACEOF
   33204 
   33205        ;;
   33206      6)
   33207        { echo "$as_me:$LINENO: result: 6" >&5
   33208 echo "${ECHO_T}6" >&6; }
   33209        cat >>confdefs.h <<\_ACEOF
   33210 #define BX_CPU_LEVEL 6
   33211 _ACEOF
   33212 
   33213        cat >>confdefs.h <<\_ACEOF
   33214 #define BX_CPU_LEVEL_HACKED 6
   33215 _ACEOF
   33216 
   33217        ;;
   33218      *)
   33219        echo " "
   33220        echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
   33221        exit 1
   33222        ;;
   33223    esac
   33224    bx_cpu_level=$enableval
   33225    if test "$use_smp" = 1 -a "$enableval" -lt 6; then
   33226      echo "ERROR: with >1 processor, use --enable-cpu-level=6"
   33227      exit 1
   33228    fi
   33229 
   33230 else
   33231 
   33232     # for multiprocessors or x86-64, cpu level must be 6
   33233     if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
   33234       { echo "$as_me:$LINENO: result: 6" >&5
   33235 echo "${ECHO_T}6" >&6; }
   33236       cat >>confdefs.h <<\_ACEOF
   33237 #define BX_CPU_LEVEL 6
   33238 _ACEOF
   33239 
   33240       cat >>confdefs.h <<\_ACEOF
   33241 #define BX_CPU_LEVEL_HACKED 6
   33242 _ACEOF
   33243 
   33244       bx_cpu_level=6
   33245     else
   33246       { echo "$as_me:$LINENO: result: 5" >&5
   33247 echo "${ECHO_T}5" >&6; }
   33248       cat >>confdefs.h <<\_ACEOF
   33249 #define BX_CPU_LEVEL 5
   33250 _ACEOF
   33251 
   33252       cat >>confdefs.h <<\_ACEOF
   33253 #define BX_CPU_LEVEL_HACKED 5
   33254 _ACEOF
   33255 
   33256       bx_cpu_level=5
   33257     fi
   33258 
   33259 
   33260 fi
   33261 
   33262 
   33263 
   33264 { echo "$as_me:$LINENO: checking for APIC support" >&5
   33265 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
   33266 # Check whether --enable-apic was given.
   33267 if test "${enable_apic+set}" = set; then
   33268   enableval=$enable_apic; if test "$enableval" = yes; then
   33269     { echo "$as_me:$LINENO: result: yes" >&5
   33270 echo "${ECHO_T}yes" >&6; }
   33271     cat >>confdefs.h <<\_ACEOF
   33272 #define BX_SUPPORT_APIC 1
   33273 _ACEOF
   33274 
   33275     IOAPIC_OBJS='ioapic.o'
   33276    else
   33277     { echo "$as_me:$LINENO: result: no" >&5
   33278 echo "${ECHO_T}no" >&6; }
   33279     if test "$use_smp" = 1; then
   33280       echo "ERROR: With SMP configuration you must use --enable-apic"
   33281       exit 1
   33282     fi
   33283     cat >>confdefs.h <<\_ACEOF
   33284 #define BX_SUPPORT_APIC 0
   33285 _ACEOF
   33286 
   33287     IOAPIC_OBJS=''
   33288    fi
   33289 
   33290 else
   33291 
   33292     if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
   33293       # enable APIC by default, if SMP configuration or if cpulevel>5
   33294       { echo "$as_me:$LINENO: result: yes" >&5
   33295 echo "${ECHO_T}yes" >&6; }
   33296       cat >>confdefs.h <<\_ACEOF
   33297 #define BX_SUPPORT_APIC 1
   33298 _ACEOF
   33299 
   33300       IOAPIC_OBJS='ioapic.o'
   33301     else
   33302       { echo "$as_me:$LINENO: result: no" >&5
   33303 echo "${ECHO_T}no" >&6; }
   33304       cat >>confdefs.h <<\_ACEOF
   33305 #define BX_SUPPORT_APIC 0
   33306 _ACEOF
   33307 
   33308       IOAPIC_OBJS=''
   33309      fi
   33310 
   33311 
   33312 fi
   33313 
   33314 
   33315 
   33316 if test "${ac_cv_header_zlib_h+set}" = set; then
   33317   { echo "$as_me:$LINENO: checking for zlib.h" >&5
   33318 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
   33319 if test "${ac_cv_header_zlib_h+set}" = set; then
   33320   echo $ECHO_N "(cached) $ECHO_C" >&6
   33321 fi
   33322 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
   33323 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
   33324 else
   33325   # Is the header compilable?
   33326 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
   33327 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
   33328 cat >conftest.$ac_ext <<_ACEOF
   33329 /* confdefs.h.  */
   33330 _ACEOF
   33331 cat confdefs.h >>conftest.$ac_ext
   33332 cat >>conftest.$ac_ext <<_ACEOF
   33333 /* end confdefs.h.  */
   33334 $ac_includes_default
   33335 #include <zlib.h>
   33336 _ACEOF
   33337 rm -f conftest.$ac_objext
   33338 if { (ac_try="$ac_compile"
   33339 case "(($ac_try" in
   33340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33341   *) ac_try_echo=$ac_try;;
   33342 esac
   33343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33344   (eval "$ac_compile") 2>conftest.er1
   33345   ac_status=$?
   33346   grep -v '^ *+' conftest.er1 >conftest.err
   33347   rm -f conftest.er1
   33348   cat conftest.err >&5
   33349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33350   (exit $ac_status); } && {
   33351 	 test -z "$ac_c_werror_flag" ||
   33352 	 test ! -s conftest.err
   33353        } && test -s conftest.$ac_objext; then
   33354   ac_header_compiler=yes
   33355 else
   33356   echo "$as_me: failed program was:" >&5
   33357 sed 's/^/| /' conftest.$ac_ext >&5
   33358 
   33359 	ac_header_compiler=no
   33360 fi
   33361 
   33362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   33364 echo "${ECHO_T}$ac_header_compiler" >&6; }
   33365 
   33366 # Is the header present?
   33367 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
   33368 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
   33369 cat >conftest.$ac_ext <<_ACEOF
   33370 /* confdefs.h.  */
   33371 _ACEOF
   33372 cat confdefs.h >>conftest.$ac_ext
   33373 cat >>conftest.$ac_ext <<_ACEOF
   33374 /* end confdefs.h.  */
   33375 #include <zlib.h>
   33376 _ACEOF
   33377 if { (ac_try="$ac_cpp conftest.$ac_ext"
   33378 case "(($ac_try" in
   33379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33380   *) ac_try_echo=$ac_try;;
   33381 esac
   33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   33384   ac_status=$?
   33385   grep -v '^ *+' conftest.er1 >conftest.err
   33386   rm -f conftest.er1
   33387   cat conftest.err >&5
   33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33389   (exit $ac_status); } >/dev/null && {
   33390 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   33391 	 test ! -s conftest.err
   33392        }; then
   33393   ac_header_preproc=yes
   33394 else
   33395   echo "$as_me: failed program was:" >&5
   33396 sed 's/^/| /' conftest.$ac_ext >&5
   33397 
   33398   ac_header_preproc=no
   33399 fi
   33400 
   33401 rm -f conftest.err conftest.$ac_ext
   33402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   33403 echo "${ECHO_T}$ac_header_preproc" >&6; }
   33404 
   33405 # So?  What about this header?
   33406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   33407   yes:no: )
   33408     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
   33409 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   33410     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
   33411 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
   33412     ac_header_preproc=yes
   33413     ;;
   33414   no:yes:* )
   33415     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
   33416 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
   33417     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
   33418 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
   33419     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
   33420 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
   33421     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
   33422 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   33423     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
   33424 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
   33425     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
   33426 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
   33427 
   33428     ;;
   33429 esac
   33430 { echo "$as_me:$LINENO: checking for zlib.h" >&5
   33431 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
   33432 if test "${ac_cv_header_zlib_h+set}" = set; then
   33433   echo $ECHO_N "(cached) $ECHO_C" >&6
   33434 else
   33435   ac_cv_header_zlib_h=$ac_header_preproc
   33436 fi
   33437 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
   33438 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
   33439 
   33440 fi
   33441 if test $ac_cv_header_zlib_h = yes; then
   33442   { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
   33443 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
   33444 if test "${ac_cv_lib_z_gzopen+set}" = set; then
   33445   echo $ECHO_N "(cached) $ECHO_C" >&6
   33446 else
   33447   ac_check_lib_save_LIBS=$LIBS
   33448 LIBS="-lz  $LIBS"
   33449 cat >conftest.$ac_ext <<_ACEOF
   33450 /* confdefs.h.  */
   33451 _ACEOF
   33452 cat confdefs.h >>conftest.$ac_ext
   33453 cat >>conftest.$ac_ext <<_ACEOF
   33454 /* end confdefs.h.  */
   33455 
   33456 /* Override any GCC internal prototype to avoid an error.
   33457    Use char because int might match the return type of a GCC
   33458    builtin and then its argument prototype would still apply.  */
   33459 #ifdef __cplusplus
   33460 extern "C"
   33461 #endif
   33462 char gzopen ();
   33463 int
   33464 main ()
   33465 {
   33466 return gzopen ();
   33467   ;
   33468   return 0;
   33469 }
   33470 _ACEOF
   33471 rm -f conftest.$ac_objext conftest$ac_exeext
   33472 if { (ac_try="$ac_link"
   33473 case "(($ac_try" in
   33474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33475   *) ac_try_echo=$ac_try;;
   33476 esac
   33477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33478   (eval "$ac_link") 2>conftest.er1
   33479   ac_status=$?
   33480   grep -v '^ *+' conftest.er1 >conftest.err
   33481   rm -f conftest.er1
   33482   cat conftest.err >&5
   33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33484   (exit $ac_status); } && {
   33485 	 test -z "$ac_c_werror_flag" ||
   33486 	 test ! -s conftest.err
   33487        } && test -s conftest$ac_exeext &&
   33488        $as_test_x conftest$ac_exeext; then
   33489   ac_cv_lib_z_gzopen=yes
   33490 else
   33491   echo "$as_me: failed program was:" >&5
   33492 sed 's/^/| /' conftest.$ac_ext >&5
   33493 
   33494 	ac_cv_lib_z_gzopen=no
   33495 fi
   33496 
   33497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   33498       conftest$ac_exeext conftest.$ac_ext
   33499 LIBS=$ac_check_lib_save_LIBS
   33500 fi
   33501 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
   33502 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
   33503 if test $ac_cv_lib_z_gzopen = yes; then
   33504   cat >>confdefs.h <<\_ACEOF
   33505 #define BX_HAVE_ZLIB 1
   33506 _ACEOF
   33507 
   33508 fi
   33509 
   33510 fi
   33511 
   33512 
   33513 
   33514 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
   33515 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
   33516 # Check whether --enable-compressed-hd was given.
   33517 if test "${enable_compressed_hd+set}" = set; then
   33518   enableval=$enable_compressed_hd; if test "$enableval" = yes; then
   33519     { echo "$as_me:$LINENO: result: yes" >&5
   33520 echo "${ECHO_T}yes" >&6; }
   33521     cat >>confdefs.h <<\_ACEOF
   33522 #define BX_COMPRESSED_HD_SUPPORT 1
   33523 _ACEOF
   33524 
   33525     LIBS="$LIBS -lz"
   33526    else
   33527     { echo "$as_me:$LINENO: result: no" >&5
   33528 echo "${ECHO_T}no" >&6; }
   33529     cat >>confdefs.h <<\_ACEOF
   33530 #define BX_COMPRESSED_HD_SUPPORT 0
   33531 _ACEOF
   33532 
   33533    fi
   33534 else
   33535 
   33536     { echo "$as_me:$LINENO: result: no" >&5
   33537 echo "${ECHO_T}no" >&6; }
   33538     cat >>confdefs.h <<\_ACEOF
   33539 #define BX_COMPRESSED_HD_SUPPORT 0
   33540 _ACEOF
   33541 
   33542 
   33543 
   33544 fi
   33545 
   33546 
   33547 
   33548 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
   33549 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
   33550 # Check whether --enable-ne2000 was given.
   33551 if test "${enable_ne2000+set}" = set; then
   33552   enableval=$enable_ne2000; if test "$enableval" = yes; then
   33553     { echo "$as_me:$LINENO: result: yes" >&5
   33554 echo "${ECHO_T}yes" >&6; }
   33555     cat >>confdefs.h <<\_ACEOF
   33556 #define BX_SUPPORT_NE2K 1
   33557 _ACEOF
   33558 
   33559     NE2K_OBJS='ne2k.o'
   33560     networking=yes
   33561    else
   33562     { echo "$as_me:$LINENO: result: no" >&5
   33563 echo "${ECHO_T}no" >&6; }
   33564     cat >>confdefs.h <<\_ACEOF
   33565 #define BX_SUPPORT_NE2K 0
   33566 _ACEOF
   33567 
   33568     NE2K_OBJS=''
   33569     networking=no
   33570    fi
   33571 else
   33572 
   33573     { echo "$as_me:$LINENO: result: no" >&5
   33574 echo "${ECHO_T}no" >&6; }
   33575     cat >>confdefs.h <<\_ACEOF
   33576 #define BX_SUPPORT_NE2K 0
   33577 _ACEOF
   33578 
   33579     NE2K_OBJS=''
   33580     networking=no
   33581 
   33582 
   33583 fi
   33584 
   33585 
   33586 
   33587 { echo "$as_me:$LINENO: checking for ACPI support" >&5
   33588 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
   33589 # Check whether --enable-acpi was given.
   33590 if test "${enable_acpi+set}" = set; then
   33591   enableval=$enable_acpi; if test "$enableval" = yes; then
   33592     { echo "$as_me:$LINENO: result: yes" >&5
   33593 echo "${ECHO_T}yes" >&6; }
   33594     cat >>confdefs.h <<\_ACEOF
   33595 #define BX_SUPPORT_ACPI 1
   33596 _ACEOF
   33597 
   33598    else
   33599     { echo "$as_me:$LINENO: result: no" >&5
   33600 echo "${ECHO_T}no" >&6; }
   33601     cat >>confdefs.h <<\_ACEOF
   33602 #define BX_SUPPORT_ACPI 0
   33603 _ACEOF
   33604 
   33605    fi
   33606 else
   33607 
   33608     { echo "$as_me:$LINENO: result: no" >&5
   33609 echo "${ECHO_T}no" >&6; }
   33610     cat >>confdefs.h <<\_ACEOF
   33611 #define BX_SUPPORT_ACPI 0
   33612 _ACEOF
   33613 
   33614 
   33615 
   33616 fi
   33617 
   33618 
   33619 
   33620 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
   33621 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
   33622 # Check whether --enable-pci was given.
   33623 if test "${enable_pci+set}" = set; then
   33624   enableval=$enable_pci; if test "$enableval" = yes; then
   33625     { echo "$as_me:$LINENO: result: yes" >&5
   33626 echo "${ECHO_T}yes" >&6; }
   33627     cat >>confdefs.h <<\_ACEOF
   33628 #define BX_SUPPORT_PCI 1
   33629 _ACEOF
   33630 
   33631     pci=1
   33632     PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
   33633    else
   33634     { echo "$as_me:$LINENO: result: no" >&5
   33635 echo "${ECHO_T}no" >&6; }
   33636     cat >>confdefs.h <<\_ACEOF
   33637 #define BX_SUPPORT_PCI 0
   33638 _ACEOF
   33639 
   33640     pci=0
   33641     PCI_OBJ=''
   33642    fi
   33643 else
   33644 
   33645     { echo "$as_me:$LINENO: result: no" >&5
   33646 echo "${ECHO_T}no" >&6; }
   33647     cat >>confdefs.h <<\_ACEOF
   33648 #define BX_SUPPORT_PCI 0
   33649 _ACEOF
   33650 
   33651     pci=0
   33652     PCI_OBJ=''
   33653 
   33654 
   33655 fi
   33656 
   33657 
   33658 
   33659 #
   33660 # PCI host device support
   33661 #
   33662 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
   33663 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
   33664 # Check whether --enable-pcidev was given.
   33665 if test "${enable_pcidev+set}" = set; then
   33666   enableval=$enable_pcidev;
   33667     if test "$enableval" = "yes"; then
   33668       { echo "$as_me:$LINENO: result: yes" >&5
   33669 echo "${ECHO_T}yes" >&6; }
   33670       if test "$pci" != "1"; then
   33671         { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
   33672 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
   33673    { (exit 1); exit 1; }; }
   33674       fi
   33675       case "$target" in
   33676         *-linux*)
   33677           { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
   33678 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
   33679           linux_version=`uname -r`
   33680 	  case "$linux_version" in
   33681 		2.4*)
   33682 	  		PCIDEV_MODULE_MAKE_ALL="all-kernel24"
   33683 			KERNEL_MODULE_SUFFIX="o"
   33684           	;;
   33685 		2.6*)
   33686 	  		PCIDEV_MODULE_MAKE_ALL="all-kernel26"
   33687 			KERNEL_MODULE_SUFFIX="ko"
   33688 		;;
   33689 		*)
   33690 			{ { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
   33691 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
   33692    { (exit 1); exit 1; }; }
   33693 		;;
   33694 	  esac
   33695 	  KERNELDIR="/lib/modules/$linux_version/build"
   33696 	  LSMOD="lsmod"
   33697 	  INSMOD="insmod"
   33698 	  RMMOD="rmmod"
   33699 	  DEPMOD="depmod"
   33700 
   33701 
   33702 
   33703 
   33704 
   33705 
   33706 
   33707         ;;
   33708         *)
   33709           { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
   33710 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
   33711    { (exit 1); exit 1; }; }
   33712         ;;
   33713       esac
   33714       cat >>confdefs.h <<\_ACEOF
   33715 #define BX_SUPPORT_PCIDEV 1
   33716 _ACEOF
   33717 
   33718       PCI_OBJ="$PCI_OBJ pcidev.o"
   33719     else
   33720       { echo "$as_me:$LINENO: result: no" >&5
   33721 echo "${ECHO_T}no" >&6; }
   33722       cat >>confdefs.h <<\_ACEOF
   33723 #define BX_SUPPORT_PCIDEV 0
   33724 _ACEOF
   33725 
   33726     fi
   33727 
   33728 else
   33729 
   33730     { echo "$as_me:$LINENO: result: no" >&5
   33731 echo "${ECHO_T}no" >&6; }
   33732     cat >>confdefs.h <<\_ACEOF
   33733 #define BX_SUPPORT_PCIDEV 0
   33734 _ACEOF
   33735 
   33736 
   33737 
   33738 fi
   33739 
   33740 
   33741 use_usb=0
   33742 { echo "$as_me:$LINENO: checking for limited USB UHCI support" >&5
   33743 echo $ECHO_N "checking for limited USB UHCI support... $ECHO_C" >&6; }
   33744 # Check whether --enable-usb was given.
   33745 if test "${enable_usb+set}" = set; then
   33746   enableval=$enable_usb; if test "$enableval" = yes; then
   33747     { echo "$as_me:$LINENO: result: yes" >&5
   33748 echo "${ECHO_T}yes" >&6; }
   33749     cat >>confdefs.h <<\_ACEOF
   33750 #define BX_SUPPORT_USB_UHCI 1
   33751 _ACEOF
   33752 
   33753     PCI_OBJ="$PCI_OBJ usb_uhci.o"
   33754     use_usb=1
   33755    else
   33756     { echo "$as_me:$LINENO: result: no" >&5
   33757 echo "${ECHO_T}no" >&6; }
   33758     cat >>confdefs.h <<\_ACEOF
   33759 #define BX_SUPPORT_USB_UHCI 0
   33760 _ACEOF
   33761 
   33762    fi
   33763 else
   33764 
   33765     { echo "$as_me:$LINENO: result: no" >&5
   33766 echo "${ECHO_T}no" >&6; }
   33767     cat >>confdefs.h <<\_ACEOF
   33768 #define BX_SUPPORT_USB_UHCI 0
   33769 _ACEOF
   33770 
   33771 
   33772 
   33773 fi
   33774 
   33775 
   33776 { echo "$as_me:$LINENO: checking for limited USB OHCI support" >&5
   33777 echo $ECHO_N "checking for limited USB OHCI support... $ECHO_C" >&6; }
   33778 # Check whether --enable-usb-ohci was given.
   33779 if test "${enable_usb_ohci+set}" = set; then
   33780   enableval=$enable_usb_ohci; if test "$enableval" = yes; then
   33781     { echo "$as_me:$LINENO: result: yes" >&5
   33782 echo "${ECHO_T}yes" >&6; }
   33783     cat >>confdefs.h <<\_ACEOF
   33784 #define BX_SUPPORT_USB_OHCI 1
   33785 _ACEOF
   33786 
   33787     PCI_OBJ="$PCI_OBJ usb_ohci.o"
   33788     use_usb=1
   33789    else
   33790     { echo "$as_me:$LINENO: result: no" >&5
   33791 echo "${ECHO_T}no" >&6; }
   33792     cat >>confdefs.h <<\_ACEOF
   33793 #define BX_SUPPORT_USB_OHCI 0
   33794 _ACEOF
   33795 
   33796    fi
   33797 else
   33798 
   33799     { echo "$as_me:$LINENO: result: no" >&5
   33800 echo "${ECHO_T}no" >&6; }
   33801     cat >>confdefs.h <<\_ACEOF
   33802 #define BX_SUPPORT_USB_OHCI 0
   33803 _ACEOF
   33804 
   33805 
   33806 
   33807 fi
   33808 
   33809 
   33810 if test "$use_usb" = 1; then
   33811   USBDEV_OBJS="usb_common.o usb_hid.o usb_msd.o"
   33812   SCSI_OBJS="scsi_device.o"
   33813 
   33814 
   33815 fi
   33816 
   33817 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
   33818 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
   33819 # Check whether --enable-pnic was given.
   33820 if test "${enable_pnic+set}" = set; then
   33821   enableval=$enable_pnic; if test "$enableval" = yes; then
   33822     { echo "$as_me:$LINENO: result: yes" >&5
   33823 echo "${ECHO_T}yes" >&6; }
   33824     cat >>confdefs.h <<\_ACEOF
   33825 #define BX_SUPPORT_PCIPNIC 1
   33826 _ACEOF
   33827 
   33828     PCI_OBJ="$PCI_OBJ pcipnic.o"
   33829     networking=yes
   33830    else
   33831     { echo "$as_me:$LINENO: result: no" >&5
   33832 echo "${ECHO_T}no" >&6; }
   33833     cat >>confdefs.h <<\_ACEOF
   33834 #define BX_SUPPORT_PCIPNIC 0
   33835 _ACEOF
   33836 
   33837    fi
   33838 else
   33839 
   33840     { echo "$as_me:$LINENO: result: no" >&5
   33841 echo "${ECHO_T}no" >&6; }
   33842     cat >>confdefs.h <<\_ACEOF
   33843 #define BX_SUPPORT_PCIPNIC 0
   33844 _ACEOF
   33845 
   33846 
   33847 
   33848 fi
   33849 
   33850 
   33851 NETLOW_OBJS=''
   33852 if test "$networking" = yes; then
   33853   NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
   33854   if test "${ac_cv_header_net_bpf_h+set}" = set; then
   33855   { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
   33856 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
   33857 if test "${ac_cv_header_net_bpf_h+set}" = set; then
   33858   echo $ECHO_N "(cached) $ECHO_C" >&6
   33859 fi
   33860 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
   33861 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
   33862 else
   33863   # Is the header compilable?
   33864 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
   33865 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
   33866 cat >conftest.$ac_ext <<_ACEOF
   33867 /* confdefs.h.  */
   33868 _ACEOF
   33869 cat confdefs.h >>conftest.$ac_ext
   33870 cat >>conftest.$ac_ext <<_ACEOF
   33871 /* end confdefs.h.  */
   33872 $ac_includes_default
   33873 #include <net/bpf.h>
   33874 _ACEOF
   33875 rm -f conftest.$ac_objext
   33876 if { (ac_try="$ac_compile"
   33877 case "(($ac_try" in
   33878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33879   *) ac_try_echo=$ac_try;;
   33880 esac
   33881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33882   (eval "$ac_compile") 2>conftest.er1
   33883   ac_status=$?
   33884   grep -v '^ *+' conftest.er1 >conftest.err
   33885   rm -f conftest.er1
   33886   cat conftest.err >&5
   33887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33888   (exit $ac_status); } && {
   33889 	 test -z "$ac_c_werror_flag" ||
   33890 	 test ! -s conftest.err
   33891        } && test -s conftest.$ac_objext; then
   33892   ac_header_compiler=yes
   33893 else
   33894   echo "$as_me: failed program was:" >&5
   33895 sed 's/^/| /' conftest.$ac_ext >&5
   33896 
   33897 	ac_header_compiler=no
   33898 fi
   33899 
   33900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   33902 echo "${ECHO_T}$ac_header_compiler" >&6; }
   33903 
   33904 # Is the header present?
   33905 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
   33906 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
   33907 cat >conftest.$ac_ext <<_ACEOF
   33908 /* confdefs.h.  */
   33909 _ACEOF
   33910 cat confdefs.h >>conftest.$ac_ext
   33911 cat >>conftest.$ac_ext <<_ACEOF
   33912 /* end confdefs.h.  */
   33913 #include <net/bpf.h>
   33914 _ACEOF
   33915 if { (ac_try="$ac_cpp conftest.$ac_ext"
   33916 case "(($ac_try" in
   33917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33918   *) ac_try_echo=$ac_try;;
   33919 esac
   33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   33922   ac_status=$?
   33923   grep -v '^ *+' conftest.er1 >conftest.err
   33924   rm -f conftest.er1
   33925   cat conftest.err >&5
   33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33927   (exit $ac_status); } >/dev/null && {
   33928 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   33929 	 test ! -s conftest.err
   33930        }; then
   33931   ac_header_preproc=yes
   33932 else
   33933   echo "$as_me: failed program was:" >&5
   33934 sed 's/^/| /' conftest.$ac_ext >&5
   33935 
   33936   ac_header_preproc=no
   33937 fi
   33938 
   33939 rm -f conftest.err conftest.$ac_ext
   33940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   33941 echo "${ECHO_T}$ac_header_preproc" >&6; }
   33942 
   33943 # So?  What about this header?
   33944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   33945   yes:no: )
   33946     { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
   33947 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   33948     { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
   33949 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
   33950     ac_header_preproc=yes
   33951     ;;
   33952   no:yes:* )
   33953     { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
   33954 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
   33955     { echo "$as_me:$LINENO: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&5
   33956 echo "$as_me: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&2;}
   33957     { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
   33958 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
   33959     { echo "$as_me:$LINENO: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&5
   33960 echo "$as_me: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   33961     { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
   33962 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
   33963     { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
   33964 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
   33965 
   33966     ;;
   33967 esac
   33968 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
   33969 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
   33970 if test "${ac_cv_header_net_bpf_h+set}" = set; then
   33971   echo $ECHO_N "(cached) $ECHO_C" >&6
   33972 else
   33973   ac_cv_header_net_bpf_h=$ac_header_preproc
   33974 fi
   33975 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
   33976 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
   33977 
   33978 fi
   33979 if test $ac_cv_header_net_bpf_h = yes; then
   33980   NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
   33981 fi
   33982 
   33983 
   33984   if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
   33985   { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
   33986 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
   33987 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
   33988   echo $ECHO_N "(cached) $ECHO_C" >&6
   33989 fi
   33990 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
   33991 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
   33992 else
   33993   # Is the header compilable?
   33994 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
   33995 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
   33996 cat >conftest.$ac_ext <<_ACEOF
   33997 /* confdefs.h.  */
   33998 _ACEOF
   33999 cat confdefs.h >>conftest.$ac_ext
   34000 cat >>conftest.$ac_ext <<_ACEOF
   34001 /* end confdefs.h.  */
   34002 $ac_includes_default
   34003 #include <netpacket/packet.h>
   34004 _ACEOF
   34005 rm -f conftest.$ac_objext
   34006 if { (ac_try="$ac_compile"
   34007 case "(($ac_try" in
   34008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34009   *) ac_try_echo=$ac_try;;
   34010 esac
   34011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34012   (eval "$ac_compile") 2>conftest.er1
   34013   ac_status=$?
   34014   grep -v '^ *+' conftest.er1 >conftest.err
   34015   rm -f conftest.er1
   34016   cat conftest.err >&5
   34017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34018   (exit $ac_status); } && {
   34019 	 test -z "$ac_c_werror_flag" ||
   34020 	 test ! -s conftest.err
   34021        } && test -s conftest.$ac_objext; then
   34022   ac_header_compiler=yes
   34023 else
   34024   echo "$as_me: failed program was:" >&5
   34025 sed 's/^/| /' conftest.$ac_ext >&5
   34026 
   34027 	ac_header_compiler=no
   34028 fi
   34029 
   34030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   34032 echo "${ECHO_T}$ac_header_compiler" >&6; }
   34033 
   34034 # Is the header present?
   34035 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
   34036 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
   34037 cat >conftest.$ac_ext <<_ACEOF
   34038 /* confdefs.h.  */
   34039 _ACEOF
   34040 cat confdefs.h >>conftest.$ac_ext
   34041 cat >>conftest.$ac_ext <<_ACEOF
   34042 /* end confdefs.h.  */
   34043 #include <netpacket/packet.h>
   34044 _ACEOF
   34045 if { (ac_try="$ac_cpp conftest.$ac_ext"
   34046 case "(($ac_try" in
   34047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34048   *) ac_try_echo=$ac_try;;
   34049 esac
   34050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   34052   ac_status=$?
   34053   grep -v '^ *+' conftest.er1 >conftest.err
   34054   rm -f conftest.er1
   34055   cat conftest.err >&5
   34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34057   (exit $ac_status); } >/dev/null && {
   34058 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   34059 	 test ! -s conftest.err
   34060        }; then
   34061   ac_header_preproc=yes
   34062 else
   34063   echo "$as_me: failed program was:" >&5
   34064 sed 's/^/| /' conftest.$ac_ext >&5
   34065 
   34066   ac_header_preproc=no
   34067 fi
   34068 
   34069 rm -f conftest.err conftest.$ac_ext
   34070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   34071 echo "${ECHO_T}$ac_header_preproc" >&6; }
   34072 
   34073 # So?  What about this header?
   34074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   34075   yes:no: )
   34076     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
   34077 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   34078     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
   34079 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
   34080     ac_header_preproc=yes
   34081     ;;
   34082   no:yes:* )
   34083     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
   34084 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
   34085     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h:     check for missing prerequisite headers?" >&5
   34086 echo "$as_me: WARNING: netpacket/packet.h:     check for missing prerequisite headers?" >&2;}
   34087     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
   34088 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
   34089     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h:     section \"Present But Cannot Be Compiled\"" >&5
   34090 echo "$as_me: WARNING: netpacket/packet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   34091     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
   34092 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
   34093     { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
   34094 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
   34095 
   34096     ;;
   34097 esac
   34098 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
   34099 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
   34100 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
   34101   echo $ECHO_N "(cached) $ECHO_C" >&6
   34102 else
   34103   ac_cv_header_netpacket_packet_h=$ac_header_preproc
   34104 fi
   34105 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
   34106 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
   34107 
   34108 fi
   34109 if test $ac_cv_header_netpacket_packet_h = yes; then
   34110   NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
   34111 fi
   34112 
   34113 
   34114   case "$target" in
   34115     *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
   34116     NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
   34117     ;;
   34118     *-macosx* | *-darwin*)
   34119     NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
   34120     cat >>confdefs.h <<\_ACEOF
   34121 #define HAVE_TUNTAP 1
   34122 _ACEOF
   34123 
   34124     ;;
   34125     *)
   34126     { echo "$as_me:$LINENO: checking for net/if.h" >&5
   34127 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
   34128 if test "${ac_cv_header_net_if_h+set}" = set; then
   34129   echo $ECHO_N "(cached) $ECHO_C" >&6
   34130 else
   34131   cat >conftest.$ac_ext <<_ACEOF
   34132 /* confdefs.h.  */
   34133 _ACEOF
   34134 cat confdefs.h >>conftest.$ac_ext
   34135 cat >>conftest.$ac_ext <<_ACEOF
   34136 /* end confdefs.h.  */
   34137 
   34138       #include <sys/types.h>
   34139       #include <sys/socket.h>
   34140 
   34141 
   34142 #include <net/if.h>
   34143 _ACEOF
   34144 rm -f conftest.$ac_objext
   34145 if { (ac_try="$ac_compile"
   34146 case "(($ac_try" in
   34147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34148   *) ac_try_echo=$ac_try;;
   34149 esac
   34150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34151   (eval "$ac_compile") 2>conftest.er1
   34152   ac_status=$?
   34153   grep -v '^ *+' conftest.er1 >conftest.err
   34154   rm -f conftest.er1
   34155   cat conftest.err >&5
   34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34157   (exit $ac_status); } && {
   34158 	 test -z "$ac_c_werror_flag" ||
   34159 	 test ! -s conftest.err
   34160        } && test -s conftest.$ac_objext; then
   34161   ac_cv_header_net_if_h=yes
   34162 else
   34163   echo "$as_me: failed program was:" >&5
   34164 sed 's/^/| /' conftest.$ac_ext >&5
   34165 
   34166 	ac_cv_header_net_if_h=no
   34167 fi
   34168 
   34169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34170 fi
   34171 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
   34172 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
   34173 if test $ac_cv_header_net_if_h = yes; then
   34174 
   34175         use_ethertap=yes
   34176         cat >>confdefs.h <<\_ACEOF
   34177 #define BX_HAVE_NET_IF_H 1
   34178 _ACEOF
   34179 
   34180 
   34181 fi
   34182 
   34183 
   34184     { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
   34185 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
   34186 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
   34187   echo $ECHO_N "(cached) $ECHO_C" >&6
   34188 else
   34189   cat >conftest.$ac_ext <<_ACEOF
   34190 /* confdefs.h.  */
   34191 _ACEOF
   34192 cat confdefs.h >>conftest.$ac_ext
   34193 cat >>conftest.$ac_ext <<_ACEOF
   34194 /* end confdefs.h.  */
   34195 
   34196       #include <asm/types.h>
   34197       #include <sys/socket.h>
   34198 
   34199 
   34200 #include <linux/netlink.h>
   34201 _ACEOF
   34202 rm -f conftest.$ac_objext
   34203 if { (ac_try="$ac_compile"
   34204 case "(($ac_try" in
   34205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34206   *) ac_try_echo=$ac_try;;
   34207 esac
   34208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34209   (eval "$ac_compile") 2>conftest.er1
   34210   ac_status=$?
   34211   grep -v '^ *+' conftest.er1 >conftest.err
   34212   rm -f conftest.er1
   34213   cat conftest.err >&5
   34214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34215   (exit $ac_status); } && {
   34216 	 test -z "$ac_c_werror_flag" ||
   34217 	 test ! -s conftest.err
   34218        } && test -s conftest.$ac_objext; then
   34219   ac_cv_header_linux_netlink_h=yes
   34220 else
   34221   echo "$as_me: failed program was:" >&5
   34222 sed 's/^/| /' conftest.$ac_ext >&5
   34223 
   34224 	ac_cv_header_linux_netlink_h=no
   34225 fi
   34226 
   34227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34228 fi
   34229 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
   34230 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
   34231 if test $ac_cv_header_linux_netlink_h = yes; then
   34232 
   34233         use_ethertap=yes
   34234 
   34235 fi
   34236 
   34237 
   34238 
   34239     if test "$use_ethertap" = yes; then
   34240       NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
   34241       cat >>confdefs.h <<\_ACEOF
   34242 #define HAVE_ETHERTAP 1
   34243 _ACEOF
   34244 
   34245       cat >>confdefs.h <<\_ACEOF
   34246 #define HAVE_VDE 1
   34247 _ACEOF
   34248 
   34249     fi
   34250 
   34251     { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
   34252 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
   34253 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
   34254   echo $ECHO_N "(cached) $ECHO_C" >&6
   34255 else
   34256   cat >conftest.$ac_ext <<_ACEOF
   34257 /* confdefs.h.  */
   34258 _ACEOF
   34259 cat confdefs.h >>conftest.$ac_ext
   34260 cat >>conftest.$ac_ext <<_ACEOF
   34261 /* end confdefs.h.  */
   34262 
   34263       #include <sys/types.h>
   34264       #include <sys/socket.h>
   34265       #include <net/if.h>
   34266 
   34267 
   34268 #include <net/if_tun.h>
   34269 _ACEOF
   34270 rm -f conftest.$ac_objext
   34271 if { (ac_try="$ac_compile"
   34272 case "(($ac_try" in
   34273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34274   *) ac_try_echo=$ac_try;;
   34275 esac
   34276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34277   (eval "$ac_compile") 2>conftest.er1
   34278   ac_status=$?
   34279   grep -v '^ *+' conftest.er1 >conftest.err
   34280   rm -f conftest.er1
   34281   cat conftest.err >&5
   34282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34283   (exit $ac_status); } && {
   34284 	 test -z "$ac_c_werror_flag" ||
   34285 	 test ! -s conftest.err
   34286        } && test -s conftest.$ac_objext; then
   34287   ac_cv_header_net_if_tun_h=yes
   34288 else
   34289   echo "$as_me: failed program was:" >&5
   34290 sed 's/^/| /' conftest.$ac_ext >&5
   34291 
   34292 	ac_cv_header_net_if_tun_h=no
   34293 fi
   34294 
   34295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34296 fi
   34297 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
   34298 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
   34299 if test $ac_cv_header_net_if_tun_h = yes; then
   34300 
   34301         use_tuntap=yes
   34302 
   34303 fi
   34304 
   34305 
   34306     { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
   34307 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
   34308 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
   34309   echo $ECHO_N "(cached) $ECHO_C" >&6
   34310 else
   34311   cat >conftest.$ac_ext <<_ACEOF
   34312 /* confdefs.h.  */
   34313 _ACEOF
   34314 cat confdefs.h >>conftest.$ac_ext
   34315 cat >>conftest.$ac_ext <<_ACEOF
   34316 /* end confdefs.h.  */
   34317 
   34318       #include <asm/types.h>
   34319       #include <sys/socket.h>
   34320 
   34321 
   34322 #include <linux/if_tun.h>
   34323 _ACEOF
   34324 rm -f conftest.$ac_objext
   34325 if { (ac_try="$ac_compile"
   34326 case "(($ac_try" in
   34327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34328   *) ac_try_echo=$ac_try;;
   34329 esac
   34330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34331   (eval "$ac_compile") 2>conftest.er1
   34332   ac_status=$?
   34333   grep -v '^ *+' conftest.er1 >conftest.err
   34334   rm -f conftest.er1
   34335   cat conftest.err >&5
   34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34337   (exit $ac_status); } && {
   34338 	 test -z "$ac_c_werror_flag" ||
   34339 	 test ! -s conftest.err
   34340        } && test -s conftest.$ac_objext; then
   34341   ac_cv_header_linux_if_tun_h=yes
   34342 else
   34343   echo "$as_me: failed program was:" >&5
   34344 sed 's/^/| /' conftest.$ac_ext >&5
   34345 
   34346 	ac_cv_header_linux_if_tun_h=no
   34347 fi
   34348 
   34349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34350 fi
   34351 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
   34352 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
   34353 if test $ac_cv_header_linux_if_tun_h = yes; then
   34354 
   34355         use_tuntap=yes
   34356 
   34357 fi
   34358 
   34359 
   34360     if test "$use_tuntap" = yes; then
   34361       NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
   34362       cat >>confdefs.h <<\_ACEOF
   34363 #define HAVE_TUNTAP 1
   34364 _ACEOF
   34365 
   34366     fi
   34367 
   34368     ;;
   34369   esac
   34370   cat >>confdefs.h <<\_ACEOF
   34371 #define BX_NETWORKING 1
   34372 _ACEOF
   34373 
   34374 else
   34375   cat >>confdefs.h <<\_ACEOF
   34376 #define BX_NETWORKING 0
   34377 _ACEOF
   34378 
   34379 fi
   34380 
   34381 
   34382 
   34383 
   34384 { echo "$as_me:$LINENO: checking for large pages support" >&5
   34385 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
   34386 # Check whether --enable-large-pages was given.
   34387 if test "${enable_large_pages+set}" = set; then
   34388   enableval=$enable_large_pages; if test "$enableval" = yes; then
   34389     { echo "$as_me:$LINENO: result: yes" >&5
   34390 echo "${ECHO_T}yes" >&6; }
   34391     cat >>confdefs.h <<\_ACEOF
   34392 #define BX_SUPPORT_LARGE_PAGES 1
   34393 _ACEOF
   34394 
   34395     support_large_pages=1
   34396    else
   34397     { echo "$as_me:$LINENO: result: no" >&5
   34398 echo "${ECHO_T}no" >&6; }
   34399     cat >>confdefs.h <<\_ACEOF
   34400 #define BX_SUPPORT_LARGE_PAGES 0
   34401 _ACEOF
   34402 
   34403     support_large_pages=0
   34404    fi
   34405 else
   34406 
   34407     if test "$bx_cpu_level" -gt 4; then
   34408       { echo "$as_me:$LINENO: result: yes" >&5
   34409 echo "${ECHO_T}yes" >&6; }
   34410       cat >>confdefs.h <<\_ACEOF
   34411 #define BX_SUPPORT_LARGE_PAGES 1
   34412 _ACEOF
   34413 
   34414       support_large_pages=1
   34415     else
   34416       { echo "$as_me:$LINENO: result: no" >&5
   34417 echo "${ECHO_T}no" >&6; }
   34418       cat >>confdefs.h <<\_ACEOF
   34419 #define BX_SUPPORT_LARGE_PAGES 0
   34420 _ACEOF
   34421 
   34422       support_large_pages=0
   34423     fi
   34424 
   34425 
   34426 fi
   34427 
   34428 
   34429 
   34430 { echo "$as_me:$LINENO: checking for PAE support" >&5
   34431 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
   34432 # Check whether --enable-pae was given.
   34433 if test "${enable_pae+set}" = set; then
   34434   enableval=$enable_pae; if test "$enableval" = yes; then
   34435     { echo "$as_me:$LINENO: result: yes" >&5
   34436 echo "${ECHO_T}yes" >&6; }
   34437     cat >>confdefs.h <<\_ACEOF
   34438 #define BX_SUPPORT_PAE 1
   34439 _ACEOF
   34440 
   34441     support_pae=1
   34442    else
   34443     { echo "$as_me:$LINENO: result: no" >&5
   34444 echo "${ECHO_T}no" >&6; }
   34445     cat >>confdefs.h <<\_ACEOF
   34446 #define BX_SUPPORT_PAE 0
   34447 _ACEOF
   34448 
   34449     support_pae=0
   34450    fi
   34451 else
   34452 
   34453     if test "$bx_cpu_level" -gt 5; then
   34454       { echo "$as_me:$LINENO: result: yes" >&5
   34455 echo "${ECHO_T}yes" >&6; }
   34456       cat >>confdefs.h <<\_ACEOF
   34457 #define BX_SUPPORT_PAE 1
   34458 _ACEOF
   34459 
   34460       support_pae=1
   34461     else
   34462       { echo "$as_me:$LINENO: result: no" >&5
   34463 echo "${ECHO_T}no" >&6; }
   34464       cat >>confdefs.h <<\_ACEOF
   34465 #define BX_SUPPORT_PAE 0
   34466 _ACEOF
   34467 
   34468       support_pae=0
   34469     fi
   34470 
   34471 
   34472 fi
   34473 
   34474 
   34475 { echo "$as_me:$LINENO: checking for global pages support" >&5
   34476 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
   34477 # Check whether --enable-global-pages was given.
   34478 if test "${enable_global_pages+set}" = set; then
   34479   enableval=$enable_global_pages; if test "$enableval" = yes; then
   34480     { echo "$as_me:$LINENO: result: yes" >&5
   34481 echo "${ECHO_T}yes" >&6; }
   34482     cat >>confdefs.h <<\_ACEOF
   34483 #define BX_SUPPORT_GLOBAL_PAGES 1
   34484 _ACEOF
   34485 
   34486     support_global_pages=1
   34487    else
   34488     { echo "$as_me:$LINENO: result: no" >&5
   34489 echo "${ECHO_T}no" >&6; }
   34490     cat >>confdefs.h <<\_ACEOF
   34491 #define BX_SUPPORT_GLOBAL_PAGES 0
   34492 _ACEOF
   34493 
   34494     support_global_pages=0
   34495    fi
   34496 else
   34497 
   34498     if test "$bx_cpu_level" -gt 5; then
   34499       # enable by default
   34500       { echo "$as_me:$LINENO: result: yes" >&5
   34501 echo "${ECHO_T}yes" >&6; }
   34502       cat >>confdefs.h <<\_ACEOF
   34503 #define BX_SUPPORT_GLOBAL_PAGES 1
   34504 _ACEOF
   34505 
   34506       support_global_pages=1
   34507     else
   34508       { echo "$as_me:$LINENO: result: no" >&5
   34509 echo "${ECHO_T}no" >&6; }
   34510       cat >>confdefs.h <<\_ACEOF
   34511 #define BX_SUPPORT_GLOBAL_PAGES 0
   34512 _ACEOF
   34513 
   34514       support_global_pages=0
   34515     fi
   34516 
   34517 
   34518 fi
   34519 
   34520 
   34521 { echo "$as_me:$LINENO: checking for long mode 1G pages support" >&5
   34522 echo $ECHO_N "checking for long mode 1G pages support... $ECHO_C" >&6; }
   34523 # Check whether --enable-1g-pages was given.
   34524 if test "${enable_1g_pages+set}" = set; then
   34525   enableval=$enable_1g_pages; if test "$enableval" = yes; then
   34526     { echo "$as_me:$LINENO: result: yes" >&5
   34527 echo "${ECHO_T}yes" >&6; }
   34528     cat >>confdefs.h <<\_ACEOF
   34529 #define BX_SUPPORT_1G_PAGES 1
   34530 _ACEOF
   34531 
   34532     support_1g_pages=1
   34533    else
   34534     { echo "$as_me:$LINENO: result: no" >&5
   34535 echo "${ECHO_T}no" >&6; }
   34536     cat >>confdefs.h <<\_ACEOF
   34537 #define BX_SUPPORT_1G_PAGES 0
   34538 _ACEOF
   34539 
   34540     support_1g_pages=0
   34541    fi
   34542 else
   34543 
   34544     { echo "$as_me:$LINENO: result: no" >&5
   34545 echo "${ECHO_T}no" >&6; }
   34546     cat >>confdefs.h <<\_ACEOF
   34547 #define BX_SUPPORT_1G_PAGES 0
   34548 _ACEOF
   34549 
   34550     support_1g_pages=0
   34551 
   34552 
   34553 fi
   34554 
   34555 
   34556 if test "$support_1g_pages" = 1 -a "$use_x86_64" = 0; then
   34557   { { echo "$as_me:$LINENO: error: x86-64 mode is required for 1G pages support" >&5
   34558 echo "$as_me: error: x86-64 mode is required for 1G pages support" >&2;}
   34559    { (exit 1); exit 1; }; }
   34560 fi
   34561 
   34562 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
   34563   { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
   34564 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
   34565    { (exit 1); exit 1; }; }
   34566 fi
   34567 
   34568 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
   34569   { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
   34570 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
   34571    { (exit 1); exit 1; }; }
   34572 fi
   34573 
   34574 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
   34575   { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
   34576 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
   34577    { (exit 1); exit 1; }; }
   34578 fi
   34579 
   34580 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
   34581 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
   34582 # Check whether --enable-mtrr was given.
   34583 if test "${enable_mtrr+set}" = set; then
   34584   enableval=$enable_mtrr; if test "$enableval" = yes; then
   34585     { echo "$as_me:$LINENO: result: yes" >&5
   34586 echo "${ECHO_T}yes" >&6; }
   34587     cat >>confdefs.h <<\_ACEOF
   34588 #define BX_SUPPORT_MTRR 1
   34589 _ACEOF
   34590 
   34591    else
   34592     { echo "$as_me:$LINENO: result: no" >&5
   34593 echo "${ECHO_T}no" >&6; }
   34594     cat >>confdefs.h <<\_ACEOF
   34595 #define BX_SUPPORT_MTRR 0
   34596 _ACEOF
   34597 
   34598    fi
   34599 else
   34600 
   34601     if test "$bx_cpu_level" -gt 5; then
   34602       # enable by default
   34603       { echo "$as_me:$LINENO: result: yes" >&5
   34604 echo "${ECHO_T}yes" >&6; }
   34605       cat >>confdefs.h <<\_ACEOF
   34606 #define BX_SUPPORT_MTRR 1
   34607 _ACEOF
   34608 
   34609     else
   34610       { echo "$as_me:$LINENO: result: no" >&5
   34611 echo "${ECHO_T}no" >&6; }
   34612       cat >>confdefs.h <<\_ACEOF
   34613 #define BX_SUPPORT_MTRR 0
   34614 _ACEOF
   34615 
   34616     fi
   34617 
   34618 
   34619 fi
   34620 
   34621 
   34622 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
   34623 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
   34624 # Check whether --enable-repeat-speedups was given.
   34625 if test "${enable_repeat_speedups+set}" = set; then
   34626   enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
   34627     { echo "$as_me:$LINENO: result: yes" >&5
   34628 echo "${ECHO_T}yes" >&6; }
   34629     speedup_repeat=1
   34630    else
   34631     { echo "$as_me:$LINENO: result: no" >&5
   34632 echo "${ECHO_T}no" >&6; }
   34633     speedup_repeat=0
   34634    fi
   34635 else
   34636 
   34637     { echo "$as_me:$LINENO: result: no" >&5
   34638 echo "${ECHO_T}no" >&6; }
   34639     speedup_repeat=0
   34640 
   34641 
   34642 fi
   34643 
   34644 
   34645 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
   34646 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
   34647 # Check whether --enable-trace-cache was given.
   34648 if test "${enable_trace_cache+set}" = set; then
   34649   enableval=$enable_trace_cache; if test "$enableval" = yes; then
   34650     { echo "$as_me:$LINENO: result: yes" >&5
   34651 echo "${ECHO_T}yes" >&6; }
   34652     speedup_TraceCache=1
   34653    else
   34654     { echo "$as_me:$LINENO: result: no" >&5
   34655 echo "${ECHO_T}no" >&6; }
   34656     speedup_TraceCache=0
   34657    fi
   34658 else
   34659 
   34660     if test "$speedup_TraceCache " = 1; then
   34661       { echo "$as_me:$LINENO: result: yes" >&5
   34662 echo "${ECHO_T}yes" >&6; }
   34663       speedup_TraceCache=1
   34664     else
   34665       { echo "$as_me:$LINENO: result: no" >&5
   34666 echo "${ECHO_T}no" >&6; }
   34667       speedup_TraceCache=0
   34668     fi
   34669 
   34670 
   34671 fi
   34672 
   34673 
   34674 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
   34675 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
   34676 # Check whether --enable-icache was given.
   34677 if test "${enable_icache+set}" = set; then
   34678   enableval=$enable_icache; if test "$enableval" = yes; then
   34679     { echo "$as_me:$LINENO: result: yes" >&5
   34680 echo "${ECHO_T}yes" >&6; }
   34681     speedup_iCache=1
   34682    else
   34683     { echo "$as_me:$LINENO: result: no" >&5
   34684 echo "${ECHO_T}no" >&6; }
   34685     speedup_iCache=0
   34686    fi
   34687 else
   34688 
   34689     { echo "$as_me:$LINENO: result: no" >&5
   34690 echo "${ECHO_T}no" >&6; }
   34691     speedup_iCache=0
   34692 
   34693 
   34694 fi
   34695 
   34696 
   34697 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
   34698 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
   34699 # Check whether --enable-fast-function-calls was given.
   34700 if test "${enable_fast_function_calls+set}" = set; then
   34701   enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
   34702     { echo "$as_me:$LINENO: result: yes" >&5
   34703 echo "${ECHO_T}yes" >&6; }
   34704     speedup_fastcall=1
   34705    else
   34706     { echo "$as_me:$LINENO: result: no" >&5
   34707 echo "${ECHO_T}no" >&6; }
   34708     speedup_fastcall=0
   34709    fi
   34710 else
   34711 
   34712     { echo "$as_me:$LINENO: result: no" >&5
   34713 echo "${ECHO_T}no" >&6; }
   34714     speedup_fastcall=0
   34715 
   34716 
   34717 fi
   34718 
   34719 
   34720 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
   34721 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
   34722 # Check whether --enable-host-specific-asms was given.
   34723 if test "${enable_host_specific_asms+set}" = set; then
   34724   enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
   34725     { echo "$as_me:$LINENO: result: yes" >&5
   34726 echo "${ECHO_T}yes" >&6; }
   34727     speedup_host_specific_asms=1
   34728    else
   34729     { echo "$as_me:$LINENO: result: no" >&5
   34730 echo "${ECHO_T}no" >&6; }
   34731     speedup_host_specific_asms=0
   34732    fi
   34733 else
   34734 
   34735     { echo "$as_me:$LINENO: result: no" >&5
   34736 echo "${ECHO_T}no" >&6; }
   34737     speedup_host_specific_asms=0
   34738 
   34739 
   34740 fi
   34741 
   34742 
   34743 { echo "$as_me:$LINENO: checking support for configurable MSR registers" >&5
   34744 echo $ECHO_N "checking support for configurable MSR registers... $ECHO_C" >&6; }
   34745 # Check whether --enable-configurable-msrs was given.
   34746 if test "${enable_configurable_msrs+set}" = set; then
   34747   enableval=$enable_configurable_msrs; if test "$enableval" = yes; then
   34748     { echo "$as_me:$LINENO: result: yes" >&5
   34749 echo "${ECHO_T}yes" >&6; }
   34750     cat >>confdefs.h <<\_ACEOF
   34751 #define BX_CONFIGURE_MSRS 1
   34752 _ACEOF
   34753 
   34754    else
   34755     { echo "$as_me:$LINENO: result: no" >&5
   34756 echo "${ECHO_T}no" >&6; }
   34757     cat >>confdefs.h <<\_ACEOF
   34758 #define BX_CONFIGURE_MSRS 0
   34759 _ACEOF
   34760 
   34761    fi
   34762 else
   34763 
   34764     if test "$bx_cpu_level" -ge 5; then
   34765       { echo "$as_me:$LINENO: result: yes" >&5
   34766 echo "${ECHO_T}yes" >&6; }
   34767       cat >>confdefs.h <<\_ACEOF
   34768 #define BX_CONFIGURE_MSRS 1
   34769 _ACEOF
   34770 
   34771     else
   34772       { echo "$as_me:$LINENO: result: no" >&5
   34773 echo "${ECHO_T}no" >&6; }
   34774       cat >>confdefs.h <<\_ACEOF
   34775 #define BX_CONFIGURE_MSRS 0
   34776 _ACEOF
   34777 
   34778     fi
   34779 
   34780 
   34781 fi
   34782 
   34783 
   34784 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
   34785 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
   34786 # Check whether --enable-ignore-bad-msr was given.
   34787 if test "${enable_ignore_bad_msr+set}" = set; then
   34788   enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
   34789     { echo "$as_me:$LINENO: result: yes" >&5
   34790 echo "${ECHO_T}yes" >&6; }
   34791     cat >>confdefs.h <<\_ACEOF
   34792 #define BX_IGNORE_BAD_MSR 1
   34793 _ACEOF
   34794 
   34795    else
   34796     { echo "$as_me:$LINENO: result: no" >&5
   34797 echo "${ECHO_T}no" >&6; }
   34798     cat >>confdefs.h <<\_ACEOF
   34799 #define BX_IGNORE_BAD_MSR 0
   34800 _ACEOF
   34801 
   34802    fi
   34803 else
   34804 
   34805     { echo "$as_me:$LINENO: result: yes" >&5
   34806 echo "${ECHO_T}yes" >&6; }
   34807     cat >>confdefs.h <<\_ACEOF
   34808 #define BX_IGNORE_BAD_MSR 1
   34809 _ACEOF
   34810 
   34811 
   34812 
   34813 fi
   34814 
   34815 
   34816 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
   34817 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
   34818 # Check whether --enable-port-e9-hack was given.
   34819 if test "${enable_port_e9_hack+set}" = set; then
   34820   enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
   34821     { echo "$as_me:$LINENO: result: yes" >&5
   34822 echo "${ECHO_T}yes" >&6; }
   34823     cat >>confdefs.h <<\_ACEOF
   34824 #define BX_PORT_E9_HACK 1
   34825 _ACEOF
   34826 
   34827    else
   34828     { echo "$as_me:$LINENO: result: no" >&5
   34829 echo "${ECHO_T}no" >&6; }
   34830     cat >>confdefs.h <<\_ACEOF
   34831 #define BX_PORT_E9_HACK 0
   34832 _ACEOF
   34833 
   34834    fi
   34835 else
   34836 
   34837     { echo "$as_me:$LINENO: result: yes" >&5
   34838 echo "${ECHO_T}yes" >&6; }
   34839     cat >>confdefs.h <<\_ACEOF
   34840 #define BX_PORT_E9_HACK 1
   34841 _ACEOF
   34842 
   34843 
   34844 
   34845 fi
   34846 
   34847 
   34848 { echo "$as_me:$LINENO: checking show IPS" >&5
   34849 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
   34850 # Check whether --enable-show-ips was given.
   34851 if test "${enable_show_ips+set}" = set; then
   34852   enableval=$enable_show_ips; if test "$enableval" = yes; then
   34853     { echo "$as_me:$LINENO: result: yes" >&5
   34854 echo "${ECHO_T}yes" >&6; }
   34855     cat >>confdefs.h <<\_ACEOF
   34856 #define BX_SHOW_IPS 1
   34857 _ACEOF
   34858 
   34859    else
   34860     { echo "$as_me:$LINENO: result: no" >&5
   34861 echo "${ECHO_T}no" >&6; }
   34862     cat >>confdefs.h <<\_ACEOF
   34863 #define BX_SHOW_IPS 0
   34864 _ACEOF
   34865 
   34866    fi
   34867 else
   34868 
   34869     { echo "$as_me:$LINENO: result: no" >&5
   34870 echo "${ECHO_T}no" >&6; }
   34871     cat >>confdefs.h <<\_ACEOF
   34872 #define BX_SHOW_IPS 0
   34873 _ACEOF
   34874 
   34875 
   34876 
   34877 fi
   34878 
   34879 
   34880 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
   34881 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
   34882 # Check whether --enable-cpp was given.
   34883 if test "${enable_cpp+set}" = set; then
   34884   enableval=$enable_cpp; if test "$enableval" = yes; then
   34885     { echo "$as_me:$LINENO: result: yes" >&5
   34886 echo "${ECHO_T}yes" >&6; }
   34887     SUFFIX_LINE='.SUFFIXES: .cpp'
   34888     CPP_SUFFIX='cpp'
   34889    else
   34890     { echo "$as_me:$LINENO: result: no" >&5
   34891 echo "${ECHO_T}no" >&6; }
   34892     SUFFIX_LINE='.SUFFIXES: .cc'
   34893     CPP_SUFFIX='cc'
   34894    fi
   34895 else
   34896 
   34897     { echo "$as_me:$LINENO: result: no" >&5
   34898 echo "${ECHO_T}no" >&6; }
   34899     SUFFIX_LINE='.SUFFIXES: .cc'
   34900     CPP_SUFFIX='cc'
   34901 
   34902 
   34903 fi
   34904 
   34905 
   34906 
   34907 
   34908 if test "$enable_cpp" = yes; then
   34909   echo "moving .cc source files to .cpp"
   34910   sourcefiles=`find . -name "*.cc" -print`
   34911   if test "$sourcefiles" != ""; then
   34912     for ccname in $sourcefiles
   34913     do
   34914       cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
   34915       echo "mv $ccname $cppname"
   34916       mv   $ccname $cppname
   34917     done
   34918   else
   34919     echo "no more .cc source files to rename"
   34920   fi
   34921 fi
   34922 
   34923 
   34924 
   34925 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
   34926 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
   34927 # Check whether --enable-debugger was given.
   34928 if test "${enable_debugger+set}" = set; then
   34929   enableval=$enable_debugger; if test "$enableval" = yes; then
   34930     { echo "$as_me:$LINENO: result: yes" >&5
   34931 echo "${ECHO_T}yes" >&6; }
   34932     cat >>confdefs.h <<\_ACEOF
   34933 #define BX_DEBUGGER 1
   34934 _ACEOF
   34935 
   34936     DEBUGGER_VAR='$(DEBUGGER_LIB)'
   34937     bx_debugger=1
   34938    else
   34939     { echo "$as_me:$LINENO: result: no" >&5
   34940 echo "${ECHO_T}no" >&6; }
   34941     cat >>confdefs.h <<\_ACEOF
   34942 #define BX_DEBUGGER 0
   34943 _ACEOF
   34944 
   34945     DEBUGGER_VAR=''
   34946     bx_debugger=0
   34947    fi
   34948 
   34949 else
   34950 
   34951     { echo "$as_me:$LINENO: result: no" >&5
   34952 echo "${ECHO_T}no" >&6; }
   34953     cat >>confdefs.h <<\_ACEOF
   34954 #define BX_DEBUGGER 0
   34955 _ACEOF
   34956 
   34957     DEBUGGER_VAR=''
   34958     bx_debugger=0
   34959 
   34960 
   34961 fi
   34962 
   34963 
   34964 
   34965 { echo "$as_me:$LINENO: checking for disassembler support" >&5
   34966 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
   34967 # Check whether --enable-disasm was given.
   34968 if test "${enable_disasm+set}" = set; then
   34969   enableval=$enable_disasm; if test "$enableval" = yes; then
   34970     { echo "$as_me:$LINENO: result: yes" >&5
   34971 echo "${ECHO_T}yes" >&6; }
   34972     cat >>confdefs.h <<\_ACEOF
   34973 #define BX_DISASM 1
   34974 _ACEOF
   34975 
   34976     DISASM_VAR='$(DISASM_LIB)'
   34977    else
   34978     { echo "$as_me:$LINENO: result: no" >&5
   34979 echo "${ECHO_T}no" >&6; }
   34980     if test "$bx_debugger" = 1; then
   34981       echo "ERROR: debugger is enabled, so --enable-disasm is required"
   34982       exit 1
   34983     fi
   34984     cat >>confdefs.h <<\_ACEOF
   34985 #define BX_DISASM 0
   34986 _ACEOF
   34987 
   34988     DISASM_VAR=''
   34989    fi
   34990 else
   34991 
   34992     { echo "$as_me:$LINENO: result: yes" >&5
   34993 echo "${ECHO_T}yes" >&6; }
   34994     cat >>confdefs.h <<\_ACEOF
   34995 #define BX_DISASM 1
   34996 _ACEOF
   34997 
   34998     DISASM_VAR='$(DISASM_LIB)'
   34999 
   35000 fi
   35001 
   35002 
   35003 
   35004 { echo "$as_me:$LINENO: checking enable Bochs internal debugger GUI" >&5
   35005 echo $ECHO_N "checking enable Bochs internal debugger GUI... $ECHO_C" >&6; }
   35006 # Check whether --enable-debugger-gui was given.
   35007 if test "${enable_debugger_gui+set}" = set; then
   35008   enableval=$enable_debugger_gui; if test "$enableval" = yes; then
   35009     { echo "$as_me:$LINENO: result: yes" >&5
   35010 echo "${ECHO_T}yes" >&6; }
   35011     cat >>confdefs.h <<\_ACEOF
   35012 #define BX_DEBUGGER_GUI 1
   35013 _ACEOF
   35014 
   35015     gui_debugger=1
   35016    else
   35017     { echo "$as_me:$LINENO: result: no" >&5
   35018 echo "${ECHO_T}no" >&6; }
   35019     cat >>confdefs.h <<\_ACEOF
   35020 #define BX_DEBUGGER_GUI 0
   35021 _ACEOF
   35022 
   35023     gui_debugger=0
   35024    fi
   35025 else
   35026 
   35027     if test "$bx_debugger" = 1; then
   35028       { echo "$as_me:$LINENO: result: yes" >&5
   35029 echo "${ECHO_T}yes" >&6; }
   35030       cat >>confdefs.h <<\_ACEOF
   35031 #define BX_DEBUGGER_GUI 1
   35032 _ACEOF
   35033 
   35034       gui_debugger=1
   35035     else
   35036       { echo "$as_me:$LINENO: result: no" >&5
   35037 echo "${ECHO_T}no" >&6; }
   35038       cat >>confdefs.h <<\_ACEOF
   35039 #define BX_DEBUGGER_GUI 0
   35040 _ACEOF
   35041 
   35042       gui_debugger=0
   35043     fi
   35044 
   35045 
   35046 fi
   35047 
   35048 
   35049 
   35050 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
   35051 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
   35052 # Check whether --enable-all-optimizations was given.
   35053 if test "${enable_all_optimizations+set}" = set; then
   35054   enableval=$enable_all_optimizations; if test "$enableval" = yes; then
   35055     { echo "$as_me:$LINENO: result: yes" >&5
   35056 echo "${ECHO_T}yes" >&6; }
   35057     speedups_all=1
   35058    else
   35059     { echo "$as_me:$LINENO: result: no" >&5
   35060 echo "${ECHO_T}no" >&6; }
   35061     speedups_all=0
   35062    fi
   35063 
   35064 else
   35065 
   35066     { echo "$as_me:$LINENO: result: no" >&5
   35067 echo "${ECHO_T}no" >&6; }
   35068     speedups_all=0
   35069 
   35070 
   35071 fi
   35072 
   35073 
   35074 #
   35075 # Optimizations section.  Decide what the status of various optimizations
   35076 # should be based on configure choices and other factors.
   35077 #
   35078 
   35079 if test "$speedups_all" = 1; then
   35080   # Configure requested to force all options enabled.
   35081   speedup_repeat=1
   35082   speedup_iCache=1
   35083   speedup_TraceCache=1
   35084   speedup_fastcall=1
   35085 fi
   35086 
   35087 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
   35088   { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
   35089 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
   35090    { (exit 1); exit 1; }; }
   35091 fi
   35092 
   35093 if test "$speedup_repeat" = 1; then
   35094   cat >>confdefs.h <<\_ACEOF
   35095 #define BX_SupportRepeatSpeedups 1
   35096 _ACEOF
   35097 
   35098 else
   35099   cat >>confdefs.h <<\_ACEOF
   35100 #define BX_SupportRepeatSpeedups 0
   35101 _ACEOF
   35102 
   35103 fi
   35104 
   35105 if test "$speedup_iCache" = 1; then
   35106   cat >>confdefs.h <<\_ACEOF
   35107 #define BX_SUPPORT_ICACHE 1
   35108 _ACEOF
   35109 
   35110 else
   35111   cat >>confdefs.h <<\_ACEOF
   35112 #define BX_SUPPORT_ICACHE 0
   35113 _ACEOF
   35114 
   35115 fi
   35116 
   35117 if test "$speedup_host_specific_asms" = 1; then
   35118   cat >>confdefs.h <<\_ACEOF
   35119 #define BX_SupportHostAsms 1
   35120 _ACEOF
   35121 
   35122 else
   35123   cat >>confdefs.h <<\_ACEOF
   35124 #define BX_SupportHostAsms 0
   35125 _ACEOF
   35126 
   35127 fi
   35128 
   35129 if test "$speedup_fastcall" = 1; then
   35130   cat >>confdefs.h <<\_ACEOF
   35131 #define BX_FAST_FUNC_CALL 1
   35132 _ACEOF
   35133 
   35134 else
   35135   cat >>confdefs.h <<\_ACEOF
   35136 #define BX_FAST_FUNC_CALL 0
   35137 _ACEOF
   35138 
   35139 fi
   35140 
   35141 if test "$speedup_TraceCache" = 1; then
   35142   cat >>confdefs.h <<\_ACEOF
   35143 #define BX_SUPPORT_TRACE_CACHE 1
   35144 _ACEOF
   35145 
   35146 else
   35147   cat >>confdefs.h <<\_ACEOF
   35148 #define BX_SUPPORT_TRACE_CACHE 0
   35149 _ACEOF
   35150 
   35151 fi
   35152 
   35153 
   35154 READLINE_LIB=""
   35155 rl_without_curses_ok=no
   35156 rl_with_curses_ok=no
   35157 
   35158 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
   35159 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
   35160 # Check whether --enable-readline was given.
   35161 if test "${enable_readline+set}" = set; then
   35162   enableval=$enable_readline; if test "$enableval" = yes; then
   35163     { echo "$as_me:$LINENO: result: yes" >&5
   35164 echo "${ECHO_T}yes" >&6; }
   35165      want_readline=yes
   35166    else
   35167      { echo "$as_me:$LINENO: result: no" >&5
   35168 echo "${ECHO_T}no" >&6; }
   35169      want_readline=no
   35170    fi
   35171 else
   35172 
   35173     { echo "$as_me:$LINENO: result: yes" >&5
   35174 echo "${ECHO_T}yes" >&6; }
   35175     want_readline=yes
   35176 
   35177 
   35178 fi
   35179 
   35180 
   35181 use_readline=0
   35182 { echo "$as_me:$LINENO: checking whether to use readline" >&5
   35183 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
   35184 if test "$want_readline" = yes; then
   35185   if test "$bx_debugger" = 1; then
   35186 
   35187     { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
   35188 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
   35189     OLD_LIBS=$LIBS
   35190     LIBS="$LIBS -lreadline"
   35191     if test "$cross_compiling" = yes; then
   35192   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   35193 See \`config.log' for more details." >&5
   35194 echo "$as_me: error: cannot run test program while cross compiling
   35195 See \`config.log' for more details." >&2;}
   35196    { (exit 1); exit 1; }; }
   35197 else
   35198   cat >conftest.$ac_ext <<_ACEOF
   35199 /* confdefs.h.  */
   35200 _ACEOF
   35201 cat confdefs.h >>conftest.$ac_ext
   35202 cat >>conftest.$ac_ext <<_ACEOF
   35203 /* end confdefs.h.  */
   35204 
   35205       #include <stdio.h>
   35206       #include <readline/readline.h>
   35207       int main() { rl_initialize(); exit(0); }
   35208 
   35209 _ACEOF
   35210 rm -f conftest$ac_exeext
   35211 if { (ac_try="$ac_link"
   35212 case "(($ac_try" in
   35213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35214   *) ac_try_echo=$ac_try;;
   35215 esac
   35216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35217   (eval "$ac_link") 2>&5
   35218   ac_status=$?
   35219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   35221   { (case "(($ac_try" in
   35222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35223   *) ac_try_echo=$ac_try;;
   35224 esac
   35225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35226   (eval "$ac_try") 2>&5
   35227   ac_status=$?
   35228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35229   (exit $ac_status); }; }; then
   35230    { echo "$as_me:$LINENO: result: yes" >&5
   35231 echo "${ECHO_T}yes" >&6; }
   35232         rl_without_curses_ok=yes
   35233 else
   35234   echo "$as_me: program exited with status $ac_status" >&5
   35235 echo "$as_me: failed program was:" >&5
   35236 sed 's/^/| /' conftest.$ac_ext >&5
   35237 
   35238 ( exit $ac_status )
   35239  { echo "$as_me:$LINENO: result: no" >&5
   35240 echo "${ECHO_T}no" >&6; }
   35241 
   35242 fi
   35243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   35244 fi
   35245 
   35246 
   35247     { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
   35248 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
   35249     LIBS="$LIBS -lcurses"
   35250     if test "$cross_compiling" = yes; then
   35251   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   35252 See \`config.log' for more details." >&5
   35253 echo "$as_me: error: cannot run test program while cross compiling
   35254 See \`config.log' for more details." >&2;}
   35255    { (exit 1); exit 1; }; }
   35256 else
   35257   cat >conftest.$ac_ext <<_ACEOF
   35258 /* confdefs.h.  */
   35259 _ACEOF
   35260 cat confdefs.h >>conftest.$ac_ext
   35261 cat >>conftest.$ac_ext <<_ACEOF
   35262 /* end confdefs.h.  */
   35263 
   35264       #include <stdio.h>
   35265       #include <readline/readline.h>
   35266       int main() { rl_initialize(); exit(0); }
   35267 
   35268 _ACEOF
   35269 rm -f conftest$ac_exeext
   35270 if { (ac_try="$ac_link"
   35271 case "(($ac_try" in
   35272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35273   *) ac_try_echo=$ac_try;;
   35274 esac
   35275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35276   (eval "$ac_link") 2>&5
   35277   ac_status=$?
   35278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   35280   { (case "(($ac_try" in
   35281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35282   *) ac_try_echo=$ac_try;;
   35283 esac
   35284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35285   (eval "$ac_try") 2>&5
   35286   ac_status=$?
   35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35288   (exit $ac_status); }; }; then
   35289   { echo "$as_me:$LINENO: result: yes" >&5
   35290 echo "${ECHO_T}yes" >&6; }
   35291        rl_with_curses_ok=yes
   35292 else
   35293   echo "$as_me: program exited with status $ac_status" >&5
   35294 echo "$as_me: failed program was:" >&5
   35295 sed 's/^/| /' conftest.$ac_ext >&5
   35296 
   35297 ( exit $ac_status )
   35298  { echo "$as_me:$LINENO: result: no" >&5
   35299 echo "${ECHO_T}no" >&6; }
   35300 
   35301 fi
   35302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   35303 fi
   35304 
   35305 
   35306     LIBS=$OLD_LIBS
   35307 
   35308     if test "$rl_without_curses_ok" = yes; then
   35309       { echo "$as_me:$LINENO: result: yes" >&5
   35310 echo "${ECHO_T}yes" >&6; }
   35311       cat >>confdefs.h <<\_ACEOF
   35312 #define HAVE_LIBREADLINE 1
   35313 _ACEOF
   35314 
   35315       READLINE_LIB="-lreadline"
   35316       use_readline=1
   35317     elif test "$rl_with_curses_ok" = yes; then
   35318       { echo "$as_me:$LINENO: result: yes" >&5
   35319 echo "${ECHO_T}yes" >&6; }
   35320       cat >>confdefs.h <<\_ACEOF
   35321 #define HAVE_LIBREADLINE 1
   35322 _ACEOF
   35323 
   35324       READLINE_LIB="-lreadline -lcurses"
   35325       use_readline=1
   35326     else
   35327       { echo "$as_me:$LINENO: result: no" >&5
   35328 echo "${ECHO_T}no" >&6; }
   35329       echo WARNING: The readline library was disabled because it was not found.
   35330     fi
   35331   else
   35332     { echo "$as_me:$LINENO: result: no" >&5
   35333 echo "${ECHO_T}no" >&6; }
   35334   fi
   35335 else
   35336   { echo "$as_me:$LINENO: result: no" >&5
   35337 echo "${ECHO_T}no" >&6; }
   35338 fi
   35339 
   35340 
   35341 if test "${ac_cv_header_readline_history_h+set}" = set; then
   35342   { echo "$as_me:$LINENO: checking for readline/history.h" >&5
   35343 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
   35344 if test "${ac_cv_header_readline_history_h+set}" = set; then
   35345   echo $ECHO_N "(cached) $ECHO_C" >&6
   35346 fi
   35347 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
   35348 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
   35349 else
   35350   # Is the header compilable?
   35351 { echo "$as_me:$LINENO: checking readline/history.h usability" >&5
   35352 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
   35353 cat >conftest.$ac_ext <<_ACEOF
   35354 /* confdefs.h.  */
   35355 _ACEOF
   35356 cat confdefs.h >>conftest.$ac_ext
   35357 cat >>conftest.$ac_ext <<_ACEOF
   35358 /* end confdefs.h.  */
   35359 $ac_includes_default
   35360 #include <readline/history.h>
   35361 _ACEOF
   35362 rm -f conftest.$ac_objext
   35363 if { (ac_try="$ac_compile"
   35364 case "(($ac_try" in
   35365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35366   *) ac_try_echo=$ac_try;;
   35367 esac
   35368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35369   (eval "$ac_compile") 2>conftest.er1
   35370   ac_status=$?
   35371   grep -v '^ *+' conftest.er1 >conftest.err
   35372   rm -f conftest.er1
   35373   cat conftest.err >&5
   35374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35375   (exit $ac_status); } && {
   35376 	 test -z "$ac_c_werror_flag" ||
   35377 	 test ! -s conftest.err
   35378        } && test -s conftest.$ac_objext; then
   35379   ac_header_compiler=yes
   35380 else
   35381   echo "$as_me: failed program was:" >&5
   35382 sed 's/^/| /' conftest.$ac_ext >&5
   35383 
   35384 	ac_header_compiler=no
   35385 fi
   35386 
   35387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   35389 echo "${ECHO_T}$ac_header_compiler" >&6; }
   35390 
   35391 # Is the header present?
   35392 { echo "$as_me:$LINENO: checking readline/history.h presence" >&5
   35393 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
   35394 cat >conftest.$ac_ext <<_ACEOF
   35395 /* confdefs.h.  */
   35396 _ACEOF
   35397 cat confdefs.h >>conftest.$ac_ext
   35398 cat >>conftest.$ac_ext <<_ACEOF
   35399 /* end confdefs.h.  */
   35400 #include <readline/history.h>
   35401 _ACEOF
   35402 if { (ac_try="$ac_cpp conftest.$ac_ext"
   35403 case "(($ac_try" in
   35404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35405   *) ac_try_echo=$ac_try;;
   35406 esac
   35407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   35409   ac_status=$?
   35410   grep -v '^ *+' conftest.er1 >conftest.err
   35411   rm -f conftest.er1
   35412   cat conftest.err >&5
   35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35414   (exit $ac_status); } >/dev/null && {
   35415 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   35416 	 test ! -s conftest.err
   35417        }; then
   35418   ac_header_preproc=yes
   35419 else
   35420   echo "$as_me: failed program was:" >&5
   35421 sed 's/^/| /' conftest.$ac_ext >&5
   35422 
   35423   ac_header_preproc=no
   35424 fi
   35425 
   35426 rm -f conftest.err conftest.$ac_ext
   35427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   35428 echo "${ECHO_T}$ac_header_preproc" >&6; }
   35429 
   35430 # So?  What about this header?
   35431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   35432   yes:no: )
   35433     { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
   35434 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   35435     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
   35436 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
   35437     ac_header_preproc=yes
   35438     ;;
   35439   no:yes:* )
   35440     { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
   35441 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
   35442     { echo "$as_me:$LINENO: WARNING: readline/history.h:     check for missing prerequisite headers?" >&5
   35443 echo "$as_me: WARNING: readline/history.h:     check for missing prerequisite headers?" >&2;}
   35444     { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
   35445 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
   35446     { echo "$as_me:$LINENO: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&5
   35447 echo "$as_me: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   35448     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
   35449 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
   35450     { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
   35451 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
   35452 
   35453     ;;
   35454 esac
   35455 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
   35456 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
   35457 if test "${ac_cv_header_readline_history_h+set}" = set; then
   35458   echo $ECHO_N "(cached) $ECHO_C" >&6
   35459 else
   35460   ac_cv_header_readline_history_h=$ac_header_preproc
   35461 fi
   35462 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
   35463 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
   35464 
   35465 fi
   35466 if test $ac_cv_header_readline_history_h = yes; then
   35467   cat >>confdefs.h <<\_ACEOF
   35468 #define HAVE_READLINE_HISTORY_H 1
   35469 _ACEOF
   35470 
   35471 
   35472 fi
   35473 
   35474 
   35475 
   35476 INSTRUMENT_DIR='instrument/stubs'
   35477 
   35478 { echo "$as_me:$LINENO: checking for instrumentation support" >&5
   35479 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
   35480 # Check whether --enable-instrumentation was given.
   35481 if test "${enable_instrumentation+set}" = set; then
   35482   enableval=$enable_instrumentation; if test "$enableval" = yes; then
   35483     { echo "$as_me:$LINENO: result: yes" >&5
   35484 echo "${ECHO_T}yes" >&6; }
   35485     cat >>confdefs.h <<\_ACEOF
   35486 #define BX_INSTRUMENTATION 1
   35487 _ACEOF
   35488 
   35489     INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
   35490    elif test "$enableval" = no; then
   35491     { echo "$as_me:$LINENO: result: no" >&5
   35492 echo "${ECHO_T}no" >&6; }
   35493     cat >>confdefs.h <<\_ACEOF
   35494 #define BX_INSTRUMENTATION 0
   35495 _ACEOF
   35496 
   35497     INSTRUMENT_VAR=''
   35498    else
   35499     { echo "$as_me:$LINENO: result: yes" >&5
   35500 echo "${ECHO_T}yes" >&6; }
   35501     cat >>confdefs.h <<\_ACEOF
   35502 #define BX_INSTRUMENTATION 1
   35503 _ACEOF
   35504 
   35505     INSTRUMENT_DIR=$enableval
   35506     INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
   35507    fi
   35508 else
   35509 
   35510     { echo "$as_me:$LINENO: result: no" >&5
   35511 echo "${ECHO_T}no" >&6; }
   35512     cat >>confdefs.h <<\_ACEOF
   35513 #define BX_INSTRUMENTATION 0
   35514 _ACEOF
   35515 
   35516     INSTRUMENT_VAR=''
   35517 
   35518 
   35519 fi
   35520 
   35521 
   35522 
   35523 
   35524 if test "$bx_plugins" = 0; then
   35525   case $target in
   35526     *-pc-windows*)
   35527       DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
   35528       ;;
   35529     *-cygwin* | *-mingw32*)
   35530       DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
   35531       ;;
   35532   esac
   35533 fi
   35534 
   35535 { echo "$as_me:$LINENO: checking enable logging" >&5
   35536 echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
   35537 # Check whether --enable-logging was given.
   35538 if test "${enable_logging+set}" = set; then
   35539   enableval=$enable_logging; if test "$enableval" = yes; then
   35540     { echo "$as_me:$LINENO: result: yes" >&5
   35541 echo "${ECHO_T}yes" >&6; }
   35542     cat >>confdefs.h <<\_ACEOF
   35543 #define BX_NO_LOGGING 0
   35544 _ACEOF
   35545 
   35546    else
   35547     { echo "$as_me:$LINENO: result: no" >&5
   35548 echo "${ECHO_T}no" >&6; }
   35549     cat >>confdefs.h <<\_ACEOF
   35550 #define BX_NO_LOGGING 1
   35551 _ACEOF
   35552 
   35553    fi
   35554 else
   35555 
   35556     { echo "$as_me:$LINENO: result: yes" >&5
   35557 echo "${ECHO_T}yes" >&6; }
   35558     cat >>confdefs.h <<\_ACEOF
   35559 #define BX_NO_LOGGING 0
   35560 _ACEOF
   35561 
   35562 
   35563 
   35564 fi
   35565 
   35566 
   35567 { echo "$as_me:$LINENO: checking enable assert checks" >&5
   35568 echo $ECHO_N "checking enable assert checks... $ECHO_C" >&6; }
   35569 # Check whether --enable-assert-checks was given.
   35570 if test "${enable_assert_checks+set}" = set; then
   35571   enableval=$enable_assert_checks; if test "$enableval" = yes; then
   35572     { echo "$as_me:$LINENO: result: yes" >&5
   35573 echo "${ECHO_T}yes" >&6; }
   35574     cat >>confdefs.h <<\_ACEOF
   35575 #define BX_ASSERT_ENABLE 1
   35576 _ACEOF
   35577 
   35578    else
   35579     { echo "$as_me:$LINENO: result: no" >&5
   35580 echo "${ECHO_T}no" >&6; }
   35581     cat >>confdefs.h <<\_ACEOF
   35582 #define BX_ASSERT_ENABLE 0
   35583 _ACEOF
   35584 
   35585    fi
   35586 else
   35587 
   35588     if test "$bx_debugger" = 1; then
   35589       { echo "$as_me:$LINENO: result: yes" >&5
   35590 echo "${ECHO_T}yes" >&6; }
   35591       cat >>confdefs.h <<\_ACEOF
   35592 #define BX_ASSERT_ENABLE 1
   35593 _ACEOF
   35594 
   35595     else
   35596       { echo "$as_me:$LINENO: result: no" >&5
   35597 echo "${ECHO_T}no" >&6; }
   35598       cat >>confdefs.h <<\_ACEOF
   35599 #define BX_ASSERT_ENABLE 0
   35600 _ACEOF
   35601 
   35602     fi
   35603 
   35604 
   35605 fi
   35606 
   35607 
   35608 { echo "$as_me:$LINENO: checking for raw serial support" >&5
   35609 echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
   35610 # Check whether --enable-raw-serial was given.
   35611 if test "${enable_raw_serial+set}" = set; then
   35612   enableval=$enable_raw_serial; if test "$enableval" = yes; then
   35613     { echo "$as_me:$LINENO: result: yes" >&5
   35614 echo "${ECHO_T}yes" >&6; }
   35615     cat >>confdefs.h <<\_ACEOF
   35616 #define USE_RAW_SERIAL 1
   35617 _ACEOF
   35618 
   35619    else
   35620     { echo "$as_me:$LINENO: result: no" >&5
   35621 echo "${ECHO_T}no" >&6; }
   35622     cat >>confdefs.h <<\_ACEOF
   35623 #define USE_RAW_SERIAL 0
   35624 _ACEOF
   35625 
   35626    fi
   35627 else
   35628 
   35629     { echo "$as_me:$LINENO: result: no" >&5
   35630 echo "${ECHO_T}no" >&6; }
   35631     cat >>confdefs.h <<\_ACEOF
   35632 #define USE_RAW_SERIAL 0
   35633 _ACEOF
   35634 
   35635 
   35636 
   35637 fi
   35638 
   35639 
   35640 { echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
   35641 echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
   35642 # Check whether --enable-vbe was given.
   35643 if test "${enable_vbe+set}" = set; then
   35644   enableval=$enable_vbe; if test "$enableval" = yes; then
   35645     { echo "$as_me:$LINENO: result: yes" >&5
   35646 echo "${ECHO_T}yes" >&6; }
   35647     cat >>confdefs.h <<\_ACEOF
   35648 #define BX_SUPPORT_VBE 1
   35649 _ACEOF
   35650 
   35651     if test "$pci" = 1; then
   35652       cat >>confdefs.h <<\_ACEOF
   35653 #define BX_SUPPORT_PCIVGA 1
   35654 _ACEOF
   35655 
   35656     fi
   35657    else
   35658     { echo "$as_me:$LINENO: result: no" >&5
   35659 echo "${ECHO_T}no" >&6; }
   35660     cat >>confdefs.h <<\_ACEOF
   35661 #define BX_SUPPORT_VBE 0
   35662 _ACEOF
   35663 
   35664    fi
   35665 else
   35666 
   35667     { echo "$as_me:$LINENO: result: yes" >&5
   35668 echo "${ECHO_T}yes" >&6; }
   35669     cat >>confdefs.h <<\_ACEOF
   35670 #define BX_SUPPORT_VBE 1
   35671 _ACEOF
   35672 
   35673     if test "$pci" = 1; then
   35674       cat >>confdefs.h <<\_ACEOF
   35675 #define BX_SUPPORT_PCIVGA 1
   35676 _ACEOF
   35677 
   35678     fi
   35679 
   35680 
   35681 fi
   35682 
   35683 
   35684 { echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
   35685 echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
   35686 # Check whether --enable-clgd54xx was given.
   35687 if test "${enable_clgd54xx+set}" = set; then
   35688   enableval=$enable_clgd54xx; if test "$enableval" = yes; then
   35689     { echo "$as_me:$LINENO: result: yes" >&5
   35690 echo "${ECHO_T}yes" >&6; }
   35691     cat >>confdefs.h <<\_ACEOF
   35692 #define BX_SUPPORT_CLGD54XX 1
   35693 _ACEOF
   35694 
   35695    else
   35696     { echo "$as_me:$LINENO: result: no" >&5
   35697 echo "${ECHO_T}no" >&6; }
   35698     cat >>confdefs.h <<\_ACEOF
   35699 #define BX_SUPPORT_CLGD54XX 0
   35700 _ACEOF
   35701 
   35702    fi
   35703 else
   35704 
   35705     { echo "$as_me:$LINENO: result: no" >&5
   35706 echo "${ECHO_T}no" >&6; }
   35707     cat >>confdefs.h <<\_ACEOF
   35708 #define BX_SUPPORT_CLGD54XX 0
   35709 _ACEOF
   35710 
   35711 
   35712 
   35713 fi
   35714 
   35715 
   35716 support_fpu=1
   35717 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
   35718 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
   35719 FPU_VAR=''
   35720 # Check whether --enable-fpu was given.
   35721 if test "${enable_fpu+set}" = set; then
   35722   enableval=$enable_fpu; if test "$enableval" = yes; then
   35723     { echo "$as_me:$LINENO: result: yes" >&5
   35724 echo "${ECHO_T}yes" >&6; }
   35725     cat >>confdefs.h <<\_ACEOF
   35726 #define BX_SUPPORT_FPU 1
   35727 _ACEOF
   35728 
   35729     FPU_VAR='$(FPU_LIB)'
   35730    elif test "$enableval" = no; then
   35731     { echo "$as_me:$LINENO: result: no" >&5
   35732 echo "${ECHO_T}no" >&6; }
   35733     cat >>confdefs.h <<\_ACEOF
   35734 #define BX_SUPPORT_FPU 0
   35735 _ACEOF
   35736 
   35737     support_fpu=0
   35738    else
   35739     echo " "
   35740     echo "ERROR: --enable-fpu does not accept a path"
   35741     exit 1
   35742    fi
   35743 
   35744 else
   35745 
   35746     { echo "$as_me:$LINENO: result: yes" >&5
   35747 echo "${ECHO_T}yes" >&6; }
   35748     cat >>confdefs.h <<\_ACEOF
   35749 #define BX_SUPPORT_FPU 1
   35750 _ACEOF
   35751 
   35752     FPU_VAR='$(FPU_LIB)'
   35753 
   35754 
   35755 fi
   35756 
   35757 
   35758 
   35759 { echo "$as_me:$LINENO: checking for VME support" >&5
   35760 echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
   35761 # Check whether --enable-vme was given.
   35762 if test "${enable_vme+set}" = set; then
   35763   enableval=$enable_vme; if test "$enableval" = yes; then
   35764     { echo "$as_me:$LINENO: result: yes" >&5
   35765 echo "${ECHO_T}yes" >&6; }
   35766     cat >>confdefs.h <<\_ACEOF
   35767 #define BX_SUPPORT_VME 1
   35768 _ACEOF
   35769 
   35770    elif test "$enableval" = no; then
   35771     { echo "$as_me:$LINENO: result: no" >&5
   35772 echo "${ECHO_T}no" >&6; }
   35773     cat >>confdefs.h <<\_ACEOF
   35774 #define BX_SUPPORT_VME 0
   35775 _ACEOF
   35776 
   35777    fi
   35778 
   35779 else
   35780 
   35781     if test "$bx_cpu_level" -ge 5; then
   35782       { echo "$as_me:$LINENO: result: yes" >&5
   35783 echo "${ECHO_T}yes" >&6; }
   35784       cat >>confdefs.h <<\_ACEOF
   35785 #define BX_SUPPORT_VME 1
   35786 _ACEOF
   35787 
   35788     else
   35789       { echo "$as_me:$LINENO: result: no" >&5
   35790 echo "${ECHO_T}no" >&6; }
   35791       cat >>confdefs.h <<\_ACEOF
   35792 #define BX_SUPPORT_VME 0
   35793 _ACEOF
   35794 
   35795     fi
   35796 
   35797 
   35798 fi
   35799 
   35800 
   35801 { echo "$as_me:$LINENO: checking for VMX support" >&5
   35802 echo $ECHO_N "checking for VMX support... $ECHO_C" >&6; }
   35803 # Check whether --enable-vmx was given.
   35804 if test "${enable_vmx+set}" = set; then
   35805   enableval=$enable_vmx; if test "$enableval" = yes; then
   35806     { echo "$as_me:$LINENO: result: yes" >&5
   35807 echo "${ECHO_T}yes" >&6; }
   35808     cat >>confdefs.h <<\_ACEOF
   35809 #define BX_SUPPORT_VMX 1
   35810 _ACEOF
   35811 
   35812    elif test "$enableval" = no; then
   35813     { echo "$as_me:$LINENO: result: no" >&5
   35814 echo "${ECHO_T}no" >&6; }
   35815     cat >>confdefs.h <<\_ACEOF
   35816 #define BX_SUPPORT_VMX 0
   35817 _ACEOF
   35818 
   35819    fi
   35820 
   35821 else
   35822 
   35823     { echo "$as_me:$LINENO: result: no" >&5
   35824 echo "${ECHO_T}no" >&6; }
   35825     cat >>confdefs.h <<\_ACEOF
   35826 #define BX_SUPPORT_VMX 0
   35827 _ACEOF
   35828 
   35829 
   35830 
   35831 fi
   35832 
   35833 
   35834 support_mmx=1
   35835 { echo "$as_me:$LINENO: checking for MMX support" >&5
   35836 echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
   35837 # Check whether --enable-mmx was given.
   35838 if test "${enable_mmx+set}" = set; then
   35839   enableval=$enable_mmx; if test "$enableval" = yes; then
   35840     { echo "$as_me:$LINENO: result: yes" >&5
   35841 echo "${ECHO_T}yes" >&6; }
   35842     cat >>confdefs.h <<\_ACEOF
   35843 #define BX_SUPPORT_MMX 1
   35844 _ACEOF
   35845 
   35846    elif test "$enableval" = no; then
   35847     { echo "$as_me:$LINENO: result: no" >&5
   35848 echo "${ECHO_T}no" >&6; }
   35849     cat >>confdefs.h <<\_ACEOF
   35850 #define BX_SUPPORT_MMX 0
   35851 _ACEOF
   35852 
   35853     support_mmx=0
   35854    fi
   35855 
   35856 else
   35857 
   35858     if test "$bx_cpu_level" -ge 5; then
   35859       { echo "$as_me:$LINENO: result: yes" >&5
   35860 echo "${ECHO_T}yes" >&6; }
   35861       cat >>confdefs.h <<\_ACEOF
   35862 #define BX_SUPPORT_MMX 1
   35863 _ACEOF
   35864 
   35865     else
   35866       { echo "$as_me:$LINENO: result: no" >&5
   35867 echo "${ECHO_T}no" >&6; }
   35868       cat >>confdefs.h <<\_ACEOF
   35869 #define BX_SUPPORT_MMX 0
   35870 _ACEOF
   35871 
   35872     fi
   35873 
   35874 
   35875 fi
   35876 
   35877 
   35878 { echo "$as_me:$LINENO: checking for 3DNow! support" >&5
   35879 echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
   35880 # Check whether --enable-3dnow was given.
   35881 if test "${enable_3dnow+set}" = set; then
   35882   enableval=$enable_3dnow; if test "$enableval" = yes; then
   35883     { echo "$as_me:$LINENO: result: yes" >&5
   35884 echo "${ECHO_T}yes" >&6; }
   35885     cat >>confdefs.h <<\_ACEOF
   35886 #define BX_SUPPORT_3DNOW 1
   35887 _ACEOF
   35888 
   35889    elif test "$enableval" = no; then
   35890     { echo "$as_me:$LINENO: result: no" >&5
   35891 echo "${ECHO_T}no" >&6; }
   35892     cat >>confdefs.h <<\_ACEOF
   35893 #define BX_SUPPORT_3DNOW 0
   35894 _ACEOF
   35895 
   35896    fi
   35897 
   35898 else
   35899 
   35900     { echo "$as_me:$LINENO: result: no" >&5
   35901 echo "${ECHO_T}no" >&6; }
   35902     cat >>confdefs.h <<\_ACEOF
   35903 #define BX_SUPPORT_3DNOW 0
   35904 _ACEOF
   35905 
   35906 
   35907 
   35908 fi
   35909 
   35910 
   35911 support_sse=0
   35912 { echo "$as_me:$LINENO: checking for SSE support" >&5
   35913 echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
   35914 # Check whether --enable-sse was given.
   35915 if test "${enable_sse+set}" = set; then
   35916   enableval=$enable_sse; case "$enableval" in
   35917     no | 0)
   35918       support_sse=0
   35919       { echo "$as_me:$LINENO: result: no" >&5
   35920 echo "${ECHO_T}no" >&6; }
   35921       ;;
   35922     yes | 1)
   35923       support_sse=1
   35924       { echo "$as_me:$LINENO: result: SSE1" >&5
   35925 echo "${ECHO_T}SSE1" >&6; }
   35926       ;;
   35927     2)
   35928       support_sse=2
   35929       { echo "$as_me:$LINENO: result: SSE2" >&5
   35930 echo "${ECHO_T}SSE2" >&6; }
   35931       ;;
   35932     3)
   35933       support_sse=3
   35934       { echo "$as_me:$LINENO: result: SSE3" >&5
   35935 echo "${ECHO_T}SSE3" >&6; }
   35936       ;;
   35937     4)
   35938       support_sse=4
   35939       { echo "$as_me:$LINENO: result: SSE4" >&5
   35940 echo "${ECHO_T}SSE4" >&6; }
   35941       ;;
   35942     *)
   35943       echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
   35944       exit 1
   35945       ;;
   35946    esac
   35947 
   35948 else
   35949 
   35950     if test "$use_x86_64" = 1; then
   35951       support_sse=2
   35952       { echo "$as_me:$LINENO: result: SSE2" >&5
   35953 echo "${ECHO_T}SSE2" >&6; }
   35954     else
   35955       { echo "$as_me:$LINENO: result: no" >&5
   35956 echo "${ECHO_T}no" >&6; }
   35957     fi
   35958 
   35959 
   35960 fi
   35961 
   35962 
   35963 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
   35964   { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
   35965 echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
   35966    { (exit 1); exit 1; }; }
   35967 fi
   35968 
   35969 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
   35970   { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
   35971 echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
   35972    { (exit 1); exit 1; }; }
   35973 fi
   35974 
   35975 if test "$support_sse" = 4; then
   35976   cat >>confdefs.h <<\_ACEOF
   35977 #define BX_SUPPORT_SSE 4
   35978 _ACEOF
   35979 
   35980 elif test "$support_sse" = 3; then
   35981   cat >>confdefs.h <<\_ACEOF
   35982 #define BX_SUPPORT_SSE 3
   35983 _ACEOF
   35984 
   35985 elif test "$support_sse" = 2; then
   35986   cat >>confdefs.h <<\_ACEOF
   35987 #define BX_SUPPORT_SSE 2
   35988 _ACEOF
   35989 
   35990 elif test "$support_sse" = 1; then
   35991   cat >>confdefs.h <<\_ACEOF
   35992 #define BX_SUPPORT_SSE 1
   35993 _ACEOF
   35994 
   35995 else
   35996   cat >>confdefs.h <<\_ACEOF
   35997 #define BX_SUPPORT_SSE 0
   35998 _ACEOF
   35999 
   36000 fi
   36001 
   36002 support_sse_extensions=0
   36003 { echo "$as_me:$LINENO: checking for SSE extensions support" >&5
   36004 echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
   36005 # Check whether --enable-sse-extension was given.
   36006 if test "${enable_sse_extension+set}" = set; then
   36007   enableval=$enable_sse_extension; if test "$enableval" = yes; then
   36008     { echo "$as_me:$LINENO: result: yes" >&5
   36009 echo "${ECHO_T}yes" >&6; }
   36010     cat >>confdefs.h <<\_ACEOF
   36011 #define BX_SUPPORT_SSE_EXTENSION 1
   36012 _ACEOF
   36013 
   36014     support_sse_extensions=1
   36015    elif test "$enableval" = no; then
   36016     { echo "$as_me:$LINENO: result: no" >&5
   36017 echo "${ECHO_T}no" >&6; }
   36018     cat >>confdefs.h <<\_ACEOF
   36019 #define BX_SUPPORT_SSE_EXTENSION 0
   36020 _ACEOF
   36021 
   36022    fi
   36023 
   36024 else
   36025 
   36026     { echo "$as_me:$LINENO: result: no" >&5
   36027 echo "${ECHO_T}no" >&6; }
   36028     cat >>confdefs.h <<\_ACEOF
   36029 #define BX_SUPPORT_SSE_EXTENSION 0
   36030 _ACEOF
   36031 
   36032 
   36033 
   36034 fi
   36035 
   36036 
   36037 { echo "$as_me:$LINENO: checking for DAZ support" >&5
   36038 echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
   36039 # Check whether --enable-daz was given.
   36040 if test "${enable_daz+set}" = set; then
   36041   enableval=$enable_daz; if test "$enableval" = yes; then
   36042     { echo "$as_me:$LINENO: result: yes" >&5
   36043 echo "${ECHO_T}yes" >&6; }
   36044     cat >>confdefs.h <<\_ACEOF
   36045 #define BX_SUPPORT_DAZ 1
   36046 _ACEOF
   36047 
   36048    elif test "$enableval" = no; then
   36049     { echo "$as_me:$LINENO: result: no" >&5
   36050 echo "${ECHO_T}no" >&6; }
   36051     cat >>confdefs.h <<\_ACEOF
   36052 #define BX_SUPPORT_DAZ 0
   36053 _ACEOF
   36054 
   36055    fi
   36056 
   36057 else
   36058 
   36059     if test "$support_sse" -ge 2; then
   36060       { echo "$as_me:$LINENO: result: yes" >&5
   36061 echo "${ECHO_T}yes" >&6; }
   36062       cat >>confdefs.h <<\_ACEOF
   36063 #define BX_SUPPORT_DAZ 1
   36064 _ACEOF
   36065 
   36066     else
   36067       { echo "$as_me:$LINENO: result: no" >&5
   36068 echo "${ECHO_T}no" >&6; }
   36069       cat >>confdefs.h <<\_ACEOF
   36070 #define BX_SUPPORT_DAZ 0
   36071 _ACEOF
   36072 
   36073     fi
   36074 
   36075 
   36076 fi
   36077 
   36078 
   36079 use_xsave=0
   36080 { echo "$as_me:$LINENO: checking for XSAVE/XRSTOR support" >&5
   36081 echo $ECHO_N "checking for XSAVE/XRSTOR support... $ECHO_C" >&6; }
   36082 # Check whether --enable-xsave was given.
   36083 if test "${enable_xsave+set}" = set; then
   36084   enableval=$enable_xsave; if test "$enableval" = yes; then
   36085     { echo "$as_me:$LINENO: result: yes" >&5
   36086 echo "${ECHO_T}yes" >&6; }
   36087     cat >>confdefs.h <<\_ACEOF
   36088 #define BX_SUPPORT_XSAVE 1
   36089 _ACEOF
   36090 
   36091     use_xsave=1
   36092    elif test "$enableval" = no; then
   36093     { echo "$as_me:$LINENO: result: no" >&5
   36094 echo "${ECHO_T}no" >&6; }
   36095     cat >>confdefs.h <<\_ACEOF
   36096 #define BX_SUPPORT_XSAVE 0
   36097 _ACEOF
   36098 
   36099    fi
   36100 
   36101 else
   36102 
   36103     { echo "$as_me:$LINENO: result: no" >&5
   36104 echo "${ECHO_T}no" >&6; }
   36105     cat >>confdefs.h <<\_ACEOF
   36106 #define BX_SUPPORT_XSAVE 0
   36107 _ACEOF
   36108 
   36109 
   36110 
   36111 fi
   36112 
   36113 
   36114 if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
   36115   { { echo "$as_me:$LINENO: error: XSAVE requires SSE support!" >&5
   36116 echo "$as_me: error: XSAVE requires SSE support!" >&2;}
   36117    { (exit 1); exit 1; }; }
   36118 fi
   36119 
   36120 use_aes=0
   36121 { echo "$as_me:$LINENO: checking for AES instructions support" >&5
   36122 echo $ECHO_N "checking for AES instructions support... $ECHO_C" >&6; }
   36123 # Check whether --enable-aes was given.
   36124 if test "${enable_aes+set}" = set; then
   36125   enableval=$enable_aes; if test "$enableval" = yes; then
   36126     { echo "$as_me:$LINENO: result: yes" >&5
   36127 echo "${ECHO_T}yes" >&6; }
   36128     cat >>confdefs.h <<\_ACEOF
   36129 #define BX_SUPPORT_AES 1
   36130 _ACEOF
   36131 
   36132     use_aes=1
   36133    elif test "$enableval" = no; then
   36134     { echo "$as_me:$LINENO: result: no" >&5
   36135 echo "${ECHO_T}no" >&6; }
   36136     cat >>confdefs.h <<\_ACEOF
   36137 #define BX_SUPPORT_AES 0
   36138 _ACEOF
   36139 
   36140    fi
   36141 
   36142 else
   36143 
   36144     { echo "$as_me:$LINENO: result: no" >&5
   36145 echo "${ECHO_T}no" >&6; }
   36146     cat >>confdefs.h <<\_ACEOF
   36147 #define BX_SUPPORT_AES 0
   36148 _ACEOF
   36149 
   36150 
   36151 
   36152 fi
   36153 
   36154 
   36155 if test "$support_sse" -lt 1 -a "$use_aes" = 1; then
   36156   { { echo "$as_me:$LINENO: error: AES requires SSE support!" >&5
   36157 echo "$as_me: error: AES requires SSE support!" >&2;}
   36158    { (exit 1); exit 1; }; }
   36159 fi
   36160 
   36161 { echo "$as_me:$LINENO: checking for alignment check support" >&5
   36162 echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
   36163 # Check whether --enable-alignment-check was given.
   36164 if test "${enable_alignment_check+set}" = set; then
   36165   enableval=$enable_alignment_check; if test "$enableval" = yes; then
   36166     { echo "$as_me:$LINENO: result: yes" >&5
   36167 echo "${ECHO_T}yes" >&6; }
   36168     cat >>confdefs.h <<\_ACEOF
   36169 #define BX_SUPPORT_ALIGNMENT_CHECK 1
   36170 _ACEOF
   36171 
   36172    elif test "$enableval" = no; then
   36173     { echo "$as_me:$LINENO: result: no" >&5
   36174 echo "${ECHO_T}no" >&6; }
   36175     cat >>confdefs.h <<\_ACEOF
   36176 #define BX_SUPPORT_ALIGNMENT_CHECK 0
   36177 _ACEOF
   36178 
   36179    fi
   36180 
   36181 else
   36182 
   36183     if test "$bx_cpu_level" -gt 3; then
   36184       { echo "$as_me:$LINENO: result: yes" >&5
   36185 echo "${ECHO_T}yes" >&6; }
   36186       cat >>confdefs.h <<\_ACEOF
   36187 #define BX_SUPPORT_ALIGNMENT_CHECK 1
   36188 _ACEOF
   36189 
   36190     else
   36191       { echo "$as_me:$LINENO: result: no" >&5
   36192 echo "${ECHO_T}no" >&6; }
   36193       cat >>confdefs.h <<\_ACEOF
   36194 #define BX_SUPPORT_ALIGNMENT_CHECK 0
   36195 _ACEOF
   36196 
   36197     fi
   36198 
   36199 
   36200 fi
   36201 
   36202 
   36203 { echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
   36204 echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
   36205 # Check whether --enable-misaligned-sse was given.
   36206 if test "${enable_misaligned_sse+set}" = set; then
   36207   enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
   36208     { echo "$as_me:$LINENO: result: yes" >&5
   36209 echo "${ECHO_T}yes" >&6; }
   36210     cat >>confdefs.h <<\_ACEOF
   36211 #define BX_SUPPORT_MISALIGNED_SSE 1
   36212 _ACEOF
   36213 
   36214    elif test "$enableval" = no; then
   36215     { echo "$as_me:$LINENO: result: no" >&5
   36216 echo "${ECHO_T}no" >&6; }
   36217     cat >>confdefs.h <<\_ACEOF
   36218 #define BX_SUPPORT_MISALIGNED_SSE 0
   36219 _ACEOF
   36220 
   36221    fi
   36222 
   36223 else
   36224 
   36225     { echo "$as_me:$LINENO: result: no" >&5
   36226 echo "${ECHO_T}no" >&6; }
   36227     cat >>confdefs.h <<\_ACEOF
   36228 #define BX_SUPPORT_MISALIGNED_SSE 0
   36229 _ACEOF
   36230 
   36231 
   36232 
   36233 fi
   36234 
   36235 
   36236 { echo "$as_me:$LINENO: checking for SEP support" >&5
   36237 echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
   36238 # Check whether --enable-sep was given.
   36239 if test "${enable_sep+set}" = set; then
   36240   enableval=$enable_sep; if test "$enableval" = yes; then
   36241     { echo "$as_me:$LINENO: result: yes" >&5
   36242 echo "${ECHO_T}yes" >&6; }
   36243     cat >>confdefs.h <<\_ACEOF
   36244 #define BX_SUPPORT_SEP 1
   36245 _ACEOF
   36246 
   36247    elif test "$enableval" = no; then
   36248     { echo "$as_me:$LINENO: result: no" >&5
   36249 echo "${ECHO_T}no" >&6; }
   36250     cat >>confdefs.h <<\_ACEOF
   36251 #define BX_SUPPORT_SEP 0
   36252 _ACEOF
   36253 
   36254    fi
   36255 
   36256 else
   36257 
   36258     if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
   36259       { echo "$as_me:$LINENO: result: yes" >&5
   36260 echo "${ECHO_T}yes" >&6; }
   36261       cat >>confdefs.h <<\_ACEOF
   36262 #define BX_SUPPORT_SEP 1
   36263 _ACEOF
   36264 
   36265     else
   36266       { echo "$as_me:$LINENO: result: no" >&5
   36267 echo "${ECHO_T}no" >&6; }
   36268       cat >>confdefs.h <<\_ACEOF
   36269 #define BX_SUPPORT_SEP 0
   36270 _ACEOF
   36271 
   36272     fi
   36273 
   36274 
   36275 fi
   36276 
   36277 
   36278 { echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
   36279 echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
   36280 # Check whether --enable-popcnt was given.
   36281 if test "${enable_popcnt+set}" = set; then
   36282   enableval=$enable_popcnt; if test "$enableval" = yes; then
   36283     { echo "$as_me:$LINENO: result: yes" >&5
   36284 echo "${ECHO_T}yes" >&6; }
   36285     cat >>confdefs.h <<\_ACEOF
   36286 #define BX_SUPPORT_POPCNT 1
   36287 _ACEOF
   36288 
   36289    elif test "$enableval" = no; then
   36290     { echo "$as_me:$LINENO: result: no" >&5
   36291 echo "${ECHO_T}no" >&6; }
   36292     cat >>confdefs.h <<\_ACEOF
   36293 #define BX_SUPPORT_POPCNT 0
   36294 _ACEOF
   36295 
   36296    fi
   36297 
   36298 else
   36299 
   36300     if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
   36301       { echo "$as_me:$LINENO: result: yes" >&5
   36302 echo "${ECHO_T}yes" >&6; }
   36303       cat >>confdefs.h <<\_ACEOF
   36304 #define BX_SUPPORT_POPCNT 1
   36305 _ACEOF
   36306 
   36307     else
   36308       { echo "$as_me:$LINENO: result: no" >&5
   36309 echo "${ECHO_T}no" >&6; }
   36310       cat >>confdefs.h <<\_ACEOF
   36311 #define BX_SUPPORT_POPCNT 0
   36312 _ACEOF
   36313 
   36314     fi
   36315 
   36316 
   36317 fi
   36318 
   36319 
   36320 { echo "$as_me:$LINENO: checking for MOVBE instruction support" >&5
   36321 echo $ECHO_N "checking for MOVBE instruction support... $ECHO_C" >&6; }
   36322 # Check whether --enable-movbe was given.
   36323 if test "${enable_movbe+set}" = set; then
   36324   enableval=$enable_movbe; if test "$enableval" = yes; then
   36325     { echo "$as_me:$LINENO: result: yes" >&5
   36326 echo "${ECHO_T}yes" >&6; }
   36327     cat >>confdefs.h <<\_ACEOF
   36328 #define BX_SUPPORT_MOVBE 1
   36329 _ACEOF
   36330 
   36331    elif test "$enableval" = no; then
   36332     { echo "$as_me:$LINENO: result: no" >&5
   36333 echo "${ECHO_T}no" >&6; }
   36334     cat >>confdefs.h <<\_ACEOF
   36335 #define BX_SUPPORT_MOVBE 0
   36336 _ACEOF
   36337 
   36338    fi
   36339 
   36340 else
   36341 
   36342     { echo "$as_me:$LINENO: result: no" >&5
   36343 echo "${ECHO_T}no" >&6; }
   36344     cat >>confdefs.h <<\_ACEOF
   36345 #define BX_SUPPORT_MOVBE 0
   36346 _ACEOF
   36347 
   36348 
   36349 
   36350 fi
   36351 
   36352 
   36353 { echo "$as_me:$LINENO: checking for MONITOR/MWAIT instructions support (experimental)" >&5
   36354 echo $ECHO_N "checking for MONITOR/MWAIT instructions support (experimental)... $ECHO_C" >&6; }
   36355 # Check whether --enable-monitor_mwait was given.
   36356 if test "${enable_monitor_mwait+set}" = set; then
   36357   enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
   36358     { echo "$as_me:$LINENO: result: yes" >&5
   36359 echo "${ECHO_T}yes" >&6; }
   36360     cat >>confdefs.h <<\_ACEOF
   36361 #define BX_SUPPORT_MONITOR_MWAIT 1
   36362 _ACEOF
   36363 
   36364    elif test "$enableval" = no; then
   36365     { echo "$as_me:$LINENO: result: no" >&5
   36366 echo "${ECHO_T}no" >&6; }
   36367     cat >>confdefs.h <<\_ACEOF
   36368 #define BX_SUPPORT_MONITOR_MWAIT 0
   36369 _ACEOF
   36370 
   36371    fi
   36372 
   36373 else
   36374 
   36375     { echo "$as_me:$LINENO: result: no" >&5
   36376 echo "${ECHO_T}no" >&6; }
   36377     cat >>confdefs.h <<\_ACEOF
   36378 #define BX_SUPPORT_MONITOR_MWAIT 0
   36379 _ACEOF
   36380 
   36381 
   36382 
   36383 fi
   36384 
   36385 
   36386 { echo "$as_me:$LINENO: checking for x86 debugger support" >&5
   36387 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6; }
   36388 # Check whether --enable-x86-debugger was given.
   36389 if test "${enable_x86_debugger+set}" = set; then
   36390   enableval=$enable_x86_debugger; if test "$enableval" = yes; then
   36391     { echo "$as_me:$LINENO: result: yes" >&5
   36392 echo "${ECHO_T}yes" >&6; }
   36393     cat >>confdefs.h <<\_ACEOF
   36394 #define BX_X86_DEBUGGER 1
   36395 _ACEOF
   36396 
   36397    elif test "$enableval" = no; then
   36398     { echo "$as_me:$LINENO: result: no" >&5
   36399 echo "${ECHO_T}no" >&6; }
   36400     cat >>confdefs.h <<\_ACEOF
   36401 #define BX_X86_DEBUGGER 0
   36402 _ACEOF
   36403 
   36404    fi
   36405 
   36406 else
   36407 
   36408     { echo "$as_me:$LINENO: result: no" >&5
   36409 echo "${ECHO_T}no" >&6; }
   36410     cat >>confdefs.h <<\_ACEOF
   36411 #define BX_X86_DEBUGGER 0
   36412 _ACEOF
   36413 
   36414 
   36415 
   36416 fi
   36417 
   36418 
   36419 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
   36420   { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
   36421 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
   36422 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
   36423   echo $ECHO_N "(cached) $ECHO_C" >&6
   36424 fi
   36425 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
   36426 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
   36427 else
   36428   # Is the header compilable?
   36429 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h usability" >&5
   36430 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h usability... $ECHO_C" >&6; }
   36431 cat >conftest.$ac_ext <<_ACEOF
   36432 /* confdefs.h.  */
   36433 _ACEOF
   36434 cat confdefs.h >>conftest.$ac_ext
   36435 cat >>conftest.$ac_ext <<_ACEOF
   36436 /* end confdefs.h.  */
   36437 $ac_includes_default
   36438 #include <IOKit/storage/IOCDMedia.h>
   36439 _ACEOF
   36440 rm -f conftest.$ac_objext
   36441 if { (ac_try="$ac_compile"
   36442 case "(($ac_try" in
   36443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   36444   *) ac_try_echo=$ac_try;;
   36445 esac
   36446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   36447   (eval "$ac_compile") 2>conftest.er1
   36448   ac_status=$?
   36449   grep -v '^ *+' conftest.er1 >conftest.err
   36450   rm -f conftest.er1
   36451   cat conftest.err >&5
   36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   36453   (exit $ac_status); } && {
   36454 	 test -z "$ac_c_werror_flag" ||
   36455 	 test ! -s conftest.err
   36456        } && test -s conftest.$ac_objext; then
   36457   ac_header_compiler=yes
   36458 else
   36459   echo "$as_me: failed program was:" >&5
   36460 sed 's/^/| /' conftest.$ac_ext >&5
   36461 
   36462 	ac_header_compiler=no
   36463 fi
   36464 
   36465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   36466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   36467 echo "${ECHO_T}$ac_header_compiler" >&6; }
   36468 
   36469 # Is the header present?
   36470 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h presence" >&5
   36471 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h presence... $ECHO_C" >&6; }
   36472 cat >conftest.$ac_ext <<_ACEOF
   36473 /* confdefs.h.  */
   36474 _ACEOF
   36475 cat confdefs.h >>conftest.$ac_ext
   36476 cat >>conftest.$ac_ext <<_ACEOF
   36477 /* end confdefs.h.  */
   36478 #include <IOKit/storage/IOCDMedia.h>
   36479 _ACEOF
   36480 if { (ac_try="$ac_cpp conftest.$ac_ext"
   36481 case "(($ac_try" in
   36482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   36483   *) ac_try_echo=$ac_try;;
   36484 esac
   36485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   36486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   36487   ac_status=$?
   36488   grep -v '^ *+' conftest.er1 >conftest.err
   36489   rm -f conftest.er1
   36490   cat conftest.err >&5
   36491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   36492   (exit $ac_status); } >/dev/null && {
   36493 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   36494 	 test ! -s conftest.err
   36495        }; then
   36496   ac_header_preproc=yes
   36497 else
   36498   echo "$as_me: failed program was:" >&5
   36499 sed 's/^/| /' conftest.$ac_ext >&5
   36500 
   36501   ac_header_preproc=no
   36502 fi
   36503 
   36504 rm -f conftest.err conftest.$ac_ext
   36505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   36506 echo "${ECHO_T}$ac_header_preproc" >&6; }
   36507 
   36508 # So?  What about this header?
   36509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   36510   yes:no: )
   36511     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&5
   36512 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   36513     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&5
   36514 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&2;}
   36515     ac_header_preproc=yes
   36516     ;;
   36517   no:yes:* )
   36518     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&5
   36519 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&2;}
   36520     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h:     check for missing prerequisite headers?" >&5
   36521 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h:     check for missing prerequisite headers?" >&2;}
   36522     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&5
   36523 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&2;}
   36524     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h:     section \"Present But Cannot Be Compiled\"" >&5
   36525 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   36526     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&5
   36527 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&2;}
   36528     { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&5
   36529 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&2;}
   36530 
   36531     ;;
   36532 esac
   36533 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
   36534 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
   36535 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
   36536   echo $ECHO_N "(cached) $ECHO_C" >&6
   36537 else
   36538   ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
   36539 fi
   36540 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
   36541 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
   36542 
   36543 fi
   36544 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
   36545   can_use_osx_cdrom=yes
   36546 
   36547 fi
   36548 
   36549 
   36550 
   36551 { echo "$as_me:$LINENO: checking for CDROM support" >&5
   36552 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6; }
   36553 # Check whether --enable-cdrom was given.
   36554 if test "${enable_cdrom+set}" = set; then
   36555   enableval=$enable_cdrom; if test "$enableval" = no; then
   36556      bx_cdrom=0
   36557    else
   36558      bx_cdrom=1
   36559    fi
   36560 else
   36561    bx_cdrom=1
   36562 
   36563 fi
   36564 
   36565 
   36566 if test "$bx_cdrom" = 1; then
   36567     { echo "$as_me:$LINENO: result: yes" >&5
   36568 echo "${ECHO_T}yes" >&6; }
   36569     CDROM_OBJS='cdrom.o'
   36570     if test "$with_amigaos" = yes; then
   36571       # use the amiga cdrom file instead.
   36572       CDROM_OBJS="cdrom_amigaos.o"
   36573     elif test "$can_use_osx_cdrom" = yes; then
   36574       # use cdrom_osx
   36575       { echo "$as_me:$LINENO: result: Using OSX IOKit CD Interface" >&5
   36576 echo "${ECHO_T}Using OSX IOKit CD Interface" >&6; }
   36577       CDROM_OBJS="cdrom.o"
   36578       EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit -framework CoreFoundation "'$(GUI_LINK_OPTS)'
   36579     fi
   36580     case $target in
   36581       *-beos*)
   36582 	# use the beos cdrom file instead
   36583 	CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
   36584     esac
   36585     cat >>confdefs.h <<\_ACEOF
   36586 #define BX_SUPPORT_CDROM 1
   36587 _ACEOF
   36588 
   36589 else
   36590     { echo "$as_me:$LINENO: result: no" >&5
   36591 echo "${ECHO_T}no" >&6; }
   36592     CDROM_OBJS=''
   36593     cat >>confdefs.h <<\_ACEOF
   36594 #define BX_SUPPORT_CDROM 0
   36595 _ACEOF
   36596 
   36597 fi
   36598 
   36599 
   36600 
   36601 
   36602 bx_have_alsa=0
   36603 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
   36604   { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
   36605 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
   36606 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
   36607   echo $ECHO_N "(cached) $ECHO_C" >&6
   36608 fi
   36609 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
   36610 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
   36611 else
   36612   # Is the header compilable?
   36613 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
   36614 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
   36615 cat >conftest.$ac_ext <<_ACEOF
   36616 /* confdefs.h.  */
   36617 _ACEOF
   36618 cat confdefs.h >>conftest.$ac_ext
   36619 cat >>conftest.$ac_ext <<_ACEOF
   36620 /* end confdefs.h.  */
   36621 $ac_includes_default
   36622 #include <alsa/asoundlib.h>
   36623 _ACEOF
   36624 rm -f conftest.$ac_objext
   36625 if { (ac_try="$ac_compile"
   36626 case "(($ac_try" in
   36627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   36628   *) ac_try_echo=$ac_try;;
   36629 esac
   36630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   36631   (eval "$ac_compile") 2>conftest.er1
   36632   ac_status=$?
   36633   grep -v '^ *+' conftest.er1 >conftest.err
   36634   rm -f conftest.er1
   36635   cat conftest.err >&5
   36636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   36637   (exit $ac_status); } && {
   36638 	 test -z "$ac_c_werror_flag" ||
   36639 	 test ! -s conftest.err
   36640        } && test -s conftest.$ac_objext; then
   36641   ac_header_compiler=yes
   36642 else
   36643   echo "$as_me: failed program was:" >&5
   36644 sed 's/^/| /' conftest.$ac_ext >&5
   36645 
   36646 	ac_header_compiler=no
   36647 fi
   36648 
   36649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   36650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   36651 echo "${ECHO_T}$ac_header_compiler" >&6; }
   36652 
   36653 # Is the header present?
   36654 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
   36655 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
   36656 cat >conftest.$ac_ext <<_ACEOF
   36657 /* confdefs.h.  */
   36658 _ACEOF
   36659 cat confdefs.h >>conftest.$ac_ext
   36660 cat >>conftest.$ac_ext <<_ACEOF
   36661 /* end confdefs.h.  */
   36662 #include <alsa/asoundlib.h>
   36663 _ACEOF
   36664 if { (ac_try="$ac_cpp conftest.$ac_ext"
   36665 case "(($ac_try" in
   36666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   36667   *) ac_try_echo=$ac_try;;
   36668 esac
   36669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   36670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   36671   ac_status=$?
   36672   grep -v '^ *+' conftest.er1 >conftest.err
   36673   rm -f conftest.er1
   36674   cat conftest.err >&5
   36675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   36676   (exit $ac_status); } >/dev/null && {
   36677 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   36678 	 test ! -s conftest.err
   36679        }; then
   36680   ac_header_preproc=yes
   36681 else
   36682   echo "$as_me: failed program was:" >&5
   36683 sed 's/^/| /' conftest.$ac_ext >&5
   36684 
   36685   ac_header_preproc=no
   36686 fi
   36687 
   36688 rm -f conftest.err conftest.$ac_ext
   36689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   36690 echo "${ECHO_T}$ac_header_preproc" >&6; }
   36691 
   36692 # So?  What about this header?
   36693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   36694   yes:no: )
   36695     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
   36696 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   36697     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
   36698 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
   36699     ac_header_preproc=yes
   36700     ;;
   36701   no:yes:* )
   36702     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
   36703 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
   36704     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&5
   36705 echo "$as_me: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&2;}
   36706     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
   36707 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
   36708     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&5
   36709 echo "$as_me: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   36710     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
   36711 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
   36712     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
   36713 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
   36714 
   36715     ;;
   36716 esac
   36717 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
   36718 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
   36719 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
   36720   echo $ECHO_N "(cached) $ECHO_C" >&6
   36721 else
   36722   ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
   36723 fi
   36724 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
   36725 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
   36726 
   36727 fi
   36728 if test $ac_cv_header_alsa_asoundlib_h = yes; then
   36729   bx_have_alsa=1
   36730 fi
   36731 
   36732 
   36733 
   36734 { echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
   36735 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
   36736 SB16_OBJS=''
   36737 SOUNDLOW_OBJS=''
   36738 GAME_OBJS=''
   36739 gameport_present=0
   36740 # Check whether --enable-sb16 was given.
   36741 if test "${enable_sb16+set}" = set; then
   36742   enableval=$enable_sb16; if test "$enableval" = no; then
   36743      { echo "$as_me:$LINENO: result: no" >&5
   36744 echo "${ECHO_T}no" >&6; }
   36745      cat >>confdefs.h <<\_ACEOF
   36746 #define BX_SUPPORT_SB16 0
   36747 _ACEOF
   36748 
   36749    else
   36750      case "$enableval" in
   36751        dummy)
   36752          SOUNDLOW_OBJS=''
   36753          cat >>confdefs.h <<\_ACEOF
   36754 #define BX_SOUND_OUTPUT_C bx_sound_output_c
   36755 _ACEOF
   36756 
   36757          { echo "$as_me:$LINENO: result: dummy" >&5
   36758 echo "${ECHO_T}dummy" >&6; }
   36759          ;;
   36760        freebsd|linux)
   36761          SOUNDLOW_OBJS='soundlnx.o'
   36762          cat >>confdefs.h <<\_ACEOF
   36763 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
   36764 _ACEOF
   36765 
   36766          if test "$bx_have_alsa" = 1; then
   36767            cat >>confdefs.h <<\_ACEOF
   36768 #define BX_HAVE_ALSASOUND 1
   36769 _ACEOF
   36770 
   36771            if test "$bx_plugins" = 1; then
   36772              SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
   36773            else
   36774              DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
   36775            fi
   36776          fi
   36777          { echo "$as_me:$LINENO: result: linux" >&5
   36778 echo "${ECHO_T}linux" >&6; }
   36779          ;;
   36780        win)
   36781          SOUNDLOW_OBJS='soundwin.o'
   36782          cat >>confdefs.h <<\_ACEOF
   36783 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
   36784 _ACEOF
   36785 
   36786          { echo "$as_me:$LINENO: result: win" >&5
   36787 echo "${ECHO_T}win" >&6; }
   36788          case $target in
   36789            *-pc-windows*)
   36790              DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
   36791              ;;
   36792            *)
   36793              DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
   36794              ;;
   36795          esac
   36796          ;;
   36797        osx)
   36798          SOUNDLOW_OBJS='soundosx.o'
   36799          cat >>confdefs.h <<\_ACEOF
   36800 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
   36801 _ACEOF
   36802 
   36803          { echo "$as_me:$LINENO: result: osx" >&5
   36804 echo "${ECHO_T}osx" >&6; }
   36805          DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
   36806          ;;
   36807        yes)
   36808          case "$target" in
   36809            *-linux* | *-freebsd*)
   36810              SOUNDLOW_OBJS='soundlnx.o'
   36811              cat >>confdefs.h <<\_ACEOF
   36812 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
   36813 _ACEOF
   36814 
   36815              if test "$bx_have_alsa" = 1; then
   36816                cat >>confdefs.h <<\_ACEOF
   36817 #define BX_HAVE_ALSASOUND 1
   36818 _ACEOF
   36819 
   36820                if test "$bx_plugins" = 1; then
   36821                  SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
   36822                else
   36823                  DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
   36824                fi
   36825              fi
   36826              { echo "$as_me:$LINENO: result: linux" >&5
   36827 echo "${ECHO_T}linux" >&6; }
   36828              ;;
   36829            *-pc-windows*)
   36830              SOUNDLOW_OBJS='soundwin.o'
   36831              cat >>confdefs.h <<\_ACEOF
   36832 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
   36833 _ACEOF
   36834 
   36835              { echo "$as_me:$LINENO: result: win" >&5
   36836 echo "${ECHO_T}win" >&6; }
   36837              DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
   36838              ;;
   36839            *-cygwin* | *-mingw32*)
   36840              SOUNDLOW_OBJS='soundwin.o'
   36841              cat >>confdefs.h <<\_ACEOF
   36842 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
   36843 _ACEOF
   36844 
   36845              { echo "$as_me:$LINENO: result: win" >&5
   36846 echo "${ECHO_T}win" >&6; }
   36847              DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
   36848              ;;
   36849            *-macosx* | *-macos*)
   36850              SOUNDLOW_OBJS='soundosx.o'
   36851              cat >>confdefs.h <<\_ACEOF
   36852 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
   36853 _ACEOF
   36854 
   36855              { echo "$as_me:$LINENO: result: osx" >&5
   36856 echo "${ECHO_T}osx" >&6; }
   36857              DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
   36858              ;;
   36859            *)
   36860              SOUNDLOW_OBJS=''
   36861              cat >>confdefs.h <<\_ACEOF
   36862 #define BX_SOUND_OUTPUT_C bx_sound_output_c
   36863 _ACEOF
   36864 
   36865              { echo "$as_me:$LINENO: result: dummy" >&5
   36866 echo "${ECHO_T}dummy" >&6; }
   36867              ;;
   36868          esac
   36869          ;;
   36870        *)
   36871          echo " "
   36872          echo \!\!\!Error\!\!\!
   36873          echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
   36874          exit 1 ;;
   36875      esac
   36876      SB16_OBJS='sb16.o'
   36877      cat >>confdefs.h <<\_ACEOF
   36878 #define BX_SUPPORT_SB16 1
   36879 _ACEOF
   36880 
   36881      GAME_OBJS='gameport.o'
   36882      gameport_present=1
   36883    fi
   36884 else
   36885 
   36886     { echo "$as_me:$LINENO: result: no" >&5
   36887 echo "${ECHO_T}no" >&6; }
   36888     cat >>confdefs.h <<\_ACEOF
   36889 #define BX_SUPPORT_SB16 0
   36890 _ACEOF
   36891 
   36892 
   36893 
   36894 fi
   36895 
   36896 
   36897 
   36898 
   36899 
   36900 
   36901 { echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
   36902 echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
   36903 # Check whether --enable-gameport was given.
   36904 if test "${enable_gameport+set}" = set; then
   36905   enableval=$enable_gameport; if test "$enableval" = yes; then
   36906     { echo "$as_me:$LINENO: result: yes" >&5
   36907 echo "${ECHO_T}yes" >&6; }
   36908     cat >>confdefs.h <<\_ACEOF
   36909 #define BX_SUPPORT_GAMEPORT 1
   36910 _ACEOF
   36911 
   36912     if test "$gameport_present" = 0; then
   36913       GAME_OBJS='gameport.o'
   36914       case $target in
   36915         *-cygwin* | *-mingw32*)
   36916            DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
   36917            ;;
   36918       esac
   36919     fi
   36920    else
   36921     { echo "$as_me:$LINENO: result: no" >&5
   36922 echo "${ECHO_T}no" >&6; }
   36923     GAME_OBJS=''
   36924     cat >>confdefs.h <<\_ACEOF
   36925 #define BX_SUPPORT_GAMEPORT 0
   36926 _ACEOF
   36927 
   36928    fi
   36929 else
   36930 
   36931     if test "$gameport_present" = 1; then
   36932       cat >>confdefs.h <<\_ACEOF
   36933 #define BX_SUPPORT_GAMEPORT 1
   36934 _ACEOF
   36935 
   36936       { echo "$as_me:$LINENO: result: yes" >&5
   36937 echo "${ECHO_T}yes" >&6; }
   36938     else
   36939       cat >>confdefs.h <<\_ACEOF
   36940 #define BX_SUPPORT_GAMEPORT 0
   36941 _ACEOF
   36942 
   36943       { echo "$as_me:$LINENO: result: no" >&5
   36944 echo "${ECHO_T}no" >&6; }
   36945     fi
   36946 
   36947 fi
   36948 
   36949 
   36950 
   36951 
   36952 { echo "$as_me:$LINENO: checking for gdb stub enable" >&5
   36953 echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
   36954 # Check whether --enable-gdb-stub was given.
   36955 if test "${enable_gdb_stub+set}" = set; then
   36956   enableval=$enable_gdb_stub; if test "$enableval" = yes; then
   36957     { echo "$as_me:$LINENO: result: yes" >&5
   36958 echo "${ECHO_T}yes" >&6; }
   36959     cat >>confdefs.h <<\_ACEOF
   36960 #define BX_GDBSTUB 1
   36961 _ACEOF
   36962 
   36963     GDBSTUB_VAR='$(GDBSTUB_OBJS)'
   36964     if test "$bx_debugger" = 1; then
   36965       { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
   36966 echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
   36967    { (exit 1); exit 1; }; }
   36968     fi
   36969    else
   36970     { echo "$as_me:$LINENO: result: no" >&5
   36971 echo "${ECHO_T}no" >&6; }
   36972     cat >>confdefs.h <<\_ACEOF
   36973 #define BX_GDBSTUB 0
   36974 _ACEOF
   36975 
   36976     GDBSTUB_VAR=''
   36977    fi
   36978 else
   36979 
   36980     { echo "$as_me:$LINENO: result: no" >&5
   36981 echo "${ECHO_T}no" >&6; }
   36982     cat >>confdefs.h <<\_ACEOF
   36983 #define BX_GDBSTUB 0
   36984 _ACEOF
   36985 
   36986     GDBSTUB_VAR=''
   36987 
   36988 
   36989 fi
   36990 
   36991 
   36992 
   36993 
   36994 { echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
   36995 echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
   36996 IODEBUG_OBJS=''
   36997 # Check whether --enable-iodebug was given.
   36998 if test "${enable_iodebug+set}" = set; then
   36999   enableval=$enable_iodebug; if test "$enableval" = yes; then
   37000     { echo "$as_me:$LINENO: result: yes" >&5
   37001 echo "${ECHO_T}yes" >&6; }
   37002     cat >>confdefs.h <<\_ACEOF
   37003 #define BX_SUPPORT_IODEBUG 1
   37004 _ACEOF
   37005 
   37006     IODEBUG_OBJS='iodebug.o'
   37007    else
   37008     { echo "$as_me:$LINENO: result: no" >&5
   37009 echo "${ECHO_T}no" >&6; }
   37010     cat >>confdefs.h <<\_ACEOF
   37011 #define BX_SUPPORT_IODEBUG 0
   37012 _ACEOF
   37013 
   37014    fi
   37015 
   37016 else
   37017 
   37018     if test "" = 1; then
   37019       # enable by default if debugger is on
   37020       { echo "$as_me:$LINENO: result: yes" >&5
   37021 echo "${ECHO_T}yes" >&6; }
   37022       cat >>confdefs.h <<\_ACEOF
   37023 #define BX_SUPPORT_IODEBUG 1
   37024 _ACEOF
   37025 
   37026       IODEBUG_OBJS='iodebug.o'
   37027     else
   37028       { echo "$as_me:$LINENO: result: no" >&5
   37029 echo "${ECHO_T}no" >&6; }
   37030     fi
   37031 
   37032 
   37033 fi
   37034 
   37035 
   37036 
   37037 
   37038 # Extract the first word of "docbook2html", so it can be a program name with args.
   37039 set dummy docbook2html; ac_word=$2
   37040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   37041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   37042 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
   37043   echo $ECHO_N "(cached) $ECHO_C" >&6
   37044 else
   37045   case $DOCBOOK2HTML in
   37046   [\\/]* | ?:[\\/]*)
   37047   ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
   37048   ;;
   37049   *)
   37050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37051 for as_dir in $PATH
   37052 do
   37053   IFS=$as_save_IFS
   37054   test -z "$as_dir" && as_dir=.
   37055   for ac_exec_ext in '' $ac_executable_extensions; do
   37056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   37057     ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
   37058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   37059     break 2
   37060   fi
   37061 done
   37062 done
   37063 IFS=$as_save_IFS
   37064 
   37065   test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
   37066   ;;
   37067 esac
   37068 fi
   37069 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
   37070 if test -n "$DOCBOOK2HTML"; then
   37071   { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
   37072 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
   37073 else
   37074   { echo "$as_me:$LINENO: result: no" >&5
   37075 echo "${ECHO_T}no" >&6; }
   37076 fi
   37077 
   37078 
   37079 { echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
   37080 echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
   37081 build_docbook=0
   37082 # Check whether --enable-docbook was given.
   37083 if test "${enable_docbook+set}" = set; then
   37084   enableval=$enable_docbook;
   37085     if test "$enableval" = yes; then build_docbook=1; fi
   37086 
   37087 else
   37088 
   37089         if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
   37090 
   37091 
   37092 fi
   37093 
   37094 
   37095 if test $build_docbook = 1; then
   37096   { echo "$as_me:$LINENO: result: yes" >&5
   37097 echo "${ECHO_T}yes" >&6; }
   37098   BUILD_DOCBOOK_VAR=build_docbook
   37099   INSTALL_DOCBOOK_VAR=install_docbook
   37100   if test "$DOCBOOK2HTML" = not_found; then
   37101     echo "ERROR: docbook2html must be installed to build the documentation"
   37102     exit 1
   37103   fi
   37104 else
   37105   { echo "$as_me:$LINENO: result: no" >&5
   37106 echo "${ECHO_T}no" >&6; }
   37107 fi
   37108 
   37109 
   37110 
   37111 
   37112 PRIMARY_TARGET='bochs'
   37113 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
   37114 
   37115 cat >>confdefs.h <<\_ACEOF
   37116 #define BX_PROVIDE_DEVICE_MODELS 1
   37117 _ACEOF
   37118 
   37119 IODEV_LIB_VAR='iodev/libiodev.a'
   37120 cat >>confdefs.h <<\_ACEOF
   37121 #define BX_PROVIDE_CPU_MEMORY 1
   37122 _ACEOF
   37123 
   37124 NONINLINE_VAR='$(NONINLINE_OBJS)'
   37125 
   37126 
   37127 
   37128 
   37129 
   37130 
   37131 
   37132 
   37133 
   37134 
   37135 # Check whether --with-x11 was given.
   37136 if test "${with_x11+set}" = set; then
   37137   withval=$with_x11;
   37138 fi
   37139 
   37140 
   37141 
   37142 # Check whether --with-beos was given.
   37143 if test "${with_beos+set}" = set; then
   37144   withval=$with_beos;
   37145 fi
   37146 
   37147 
   37148 
   37149 # Check whether --with-win32 was given.
   37150 if test "${with_win32+set}" = set; then
   37151   withval=$with_win32;
   37152 fi
   37153 
   37154 
   37155 
   37156 # Check whether --with-macos was given.
   37157 if test "${with_macos+set}" = set; then
   37158   withval=$with_macos;
   37159 fi
   37160 
   37161 
   37162 
   37163 # Check whether --with-carbon was given.
   37164 if test "${with_carbon+set}" = set; then
   37165   withval=$with_carbon;
   37166 fi
   37167 
   37168 
   37169 
   37170 # Check whether --with-nogui was given.
   37171 if test "${with_nogui+set}" = set; then
   37172   withval=$with_nogui;
   37173 fi
   37174 
   37175 
   37176 
   37177 # Check whether --with-term was given.
   37178 if test "${with_term+set}" = set; then
   37179   withval=$with_term;
   37180 fi
   37181 
   37182 
   37183 
   37184 # Check whether --with-rfb was given.
   37185 if test "${with_rfb+set}" = set; then
   37186   withval=$with_rfb;
   37187 fi
   37188 
   37189 
   37190 
   37191 # Check whether --with-amigaos was given.
   37192 if test "${with_amigaos+set}" = set; then
   37193   withval=$with_amigaos;
   37194 fi
   37195 
   37196 
   37197 
   37198 # Check whether --with-sdl was given.
   37199 if test "${with_sdl+set}" = set; then
   37200   withval=$with_sdl;
   37201 fi
   37202 
   37203 
   37204 
   37205 # Check whether --with-svga was given.
   37206 if test "${with_svga+set}" = set; then
   37207   withval=$with_svga;
   37208 fi
   37209 
   37210 
   37211 
   37212 # Check whether --with-wx was given.
   37213 if test "${with_wx+set}" = set; then
   37214   withval=$with_wx;
   37215 fi
   37216 
   37217 
   37218 
   37219 # Check whether --with-all-libs was given.
   37220 if test "${with_all_libs+set}" = set; then
   37221   withval=$with_all_libs;
   37222 fi
   37223 
   37224 
   37225 DASH="-"
   37226 SLASH="/"
   37227 CXXFP=""
   37228 CFP=""
   37229 OFP="-o "
   37230 MAKELIB="ar rv \$@"
   37231 RMCOMMAND="rm -f "
   37232 # first define link variables without libtool
   37233 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
   37234 LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
   37235 # unless NO_LT is set, add libtool to the front of the link command
   37236 if test "$NO_LT" != 1; then
   37237   LINK="\$(LIBTOOL) --mode=link $LINK"
   37238   LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
   37239 fi
   37240 EXE=""
   37241 COMMAND_SEPARATOR="&& \\"
   37242 CD_UP_ONE="echo done"
   37243 CD_UP_TWO="echo done"
   37244 CD_UP_THREE="echo done"
   37245 
   37246 INSTALL_TARGET=install_unix
   37247 INSTALL_LIST_FOR_PLATFORM=
   37248 
   37249 # check for existence of and usable version of wxWidgets.  This comes
   37250 # early so that it could affect which one gets chosen.
   37251 if test x$WX_CONFIG = x; then
   37252   # Extract the first word of " wx-config --version ", so it can be a program name with args.
   37253 set dummy  wx-config --version ; ac_word=$2
   37254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   37255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   37256 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
   37257   echo $ECHO_N "(cached) $ECHO_C" >&6
   37258 else
   37259   if test -n "$WX_CONFIG"; then
   37260   ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
   37261 else
   37262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37263 for as_dir in $PATH
   37264 do
   37265   IFS=$as_save_IFS
   37266   test -z "$as_dir" && as_dir=.
   37267   for ac_exec_ext in '' $ac_executable_extensions; do
   37268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   37269     ac_cv_prog_WX_CONFIG="wx-config"
   37270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   37271     break 2
   37272   fi
   37273 done
   37274 done
   37275 IFS=$as_save_IFS
   37276 
   37277   test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
   37278 fi
   37279 fi
   37280 WX_CONFIG=$ac_cv_prog_WX_CONFIG
   37281 if test -n "$WX_CONFIG"; then
   37282   { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
   37283 echo "${ECHO_T}$WX_CONFIG" >&6; }
   37284 else
   37285   { echo "$as_me:$LINENO: result: no" >&5
   37286 echo "${ECHO_T}no" >&6; }
   37287 fi
   37288 
   37289 
   37290 fi
   37291 { echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
   37292 echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
   37293 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
   37294 echo "${ECHO_T}$WX_CONFIG" >&6; }
   37295 
   37296 ok_wx_version=0
   37297 wx_multi_lib=0
   37298 needs_gtk2=0
   37299 wx_needs_gtk2=0
   37300 { echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
   37301 echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
   37302 if test x$WX_CONFIG != xnot_found; then
   37303   WX_VERSION=`$WX_CONFIG --version`
   37304   WX_BASENAME=`$WX_CONFIG --basename`
   37305 
   37306   # test that version >= 2.3.2.  Anybody have a better way to do this? Yuck.
   37307   case x$WX_VERSION in
   37308     x2.[012]*) ;; # less than version 2.3.x
   37309     x2.3.[01]) ;; # less than version 2.3.2
   37310     x2.3.[2-4]*) ok_wx_version=1 ;;  # 2.3.2 or greater
   37311     x2.[4-5]*) ok_wx_version=1 ;;  # version 2.4 / 2.5
   37312     x2.[6-9]*)  # version 2.6 or greater
   37313       ok_wx_version=1
   37314       wx_multi_lib=1
   37315       case x$WX_BASENAME in
   37316         xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
   37317         *) ;;
   37318       esac
   37319       ;;
   37320     x[3-9]*) ok_wx_version=1 ;;  # version 3 or greater
   37321     *) ;; # who knows?
   37322   esac
   37323 
   37324 fi
   37325 { echo "$as_me:$LINENO: result: $WX_VERSION" >&5
   37326 echo "${ECHO_T}$WX_VERSION" >&6; }
   37327 if test "$cross_configure" = 0; then
   37328   if test "$ok_wx_version" = 1; then
   37329     # detected a usable version
   37330     if test "$with_all_libs" = yes; then
   37331       with_wx=yes
   37332     fi
   37333     if test "$with_wx" = yes; then
   37334       needs_gtk2=$wx_needs_gtk2
   37335     fi
   37336   else
   37337     if test "$with_wx" = yes; then
   37338       { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
   37339 echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
   37340     fi
   37341     with_wx=no
   37342   fi
   37343 fi
   37344 
   37345 { echo "$as_me:$LINENO: checking for default gui on this platform" >&5
   37346 echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
   37347 { echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
   37348 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
   37349 
   37350 display_libs=""
   37351 
   37352 # the $with_* variable tells the gui library to use, but does NOT necessarily
   37353 # indicate the platform.  Settings that depend on the platform should be
   37354 # handled later.
   37355 
   37356 XPM_LIB=''
   37357 if test "$with_x11" = yes; then
   37358   display_libs="$display_libs X11"
   37359   if test "$no_x" = yes; then
   37360     echo ERROR: X windows gui was selected, but X windows libraries were not found.
   37361     exit 1
   37362   fi
   37363   cat >>confdefs.h <<\_ACEOF
   37364 #define BX_WITH_X11 1
   37365 _ACEOF
   37366 
   37367   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
   37368   GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
   37369   GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
   37370   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
   37371   # The enhanced X debugger depends on GTK2
   37372   if test "$gui_debugger" = 1; then
   37373     needs_gtk2=1
   37374   fi
   37375   check_xpm=0
   37376   { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
   37377 echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
   37378   # Check whether --enable-xpm was given.
   37379 if test "${enable_xpm+set}" = set; then
   37380   enableval=$enable_xpm; if test "$enableval" = yes; then
   37381       check_xpm=0
   37382       { echo "$as_me:$LINENO: result: yes" >&5
   37383 echo "${ECHO_T}yes" >&6; }
   37384       check_xpm=1
   37385      else
   37386       { echo "$as_me:$LINENO: result: no" >&5
   37387 echo "${ECHO_T}no" >&6; }
   37388       check_xpm=0
   37389      fi
   37390 else
   37391 
   37392       { echo "$as_me:$LINENO: result: yes" >&5
   37393 echo "${ECHO_T}yes" >&6; }
   37394       check_xpm=1
   37395 
   37396 
   37397 fi
   37398 
   37399   if test $check_xpm = 1; then
   37400     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
   37401   { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
   37402 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
   37403 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
   37404   echo $ECHO_N "(cached) $ECHO_C" >&6
   37405 fi
   37406 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
   37407 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
   37408 else
   37409   # Is the header compilable?
   37410 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
   37411 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
   37412 cat >conftest.$ac_ext <<_ACEOF
   37413 /* confdefs.h.  */
   37414 _ACEOF
   37415 cat confdefs.h >>conftest.$ac_ext
   37416 cat >>conftest.$ac_ext <<_ACEOF
   37417 /* end confdefs.h.  */
   37418 $ac_includes_default
   37419 #include <X11/xpm.h>
   37420 _ACEOF
   37421 rm -f conftest.$ac_objext
   37422 if { (ac_try="$ac_compile"
   37423 case "(($ac_try" in
   37424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   37425   *) ac_try_echo=$ac_try;;
   37426 esac
   37427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   37428   (eval "$ac_compile") 2>conftest.er1
   37429   ac_status=$?
   37430   grep -v '^ *+' conftest.er1 >conftest.err
   37431   rm -f conftest.er1
   37432   cat conftest.err >&5
   37433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   37434   (exit $ac_status); } && {
   37435 	 test -z "$ac_c_werror_flag" ||
   37436 	 test ! -s conftest.err
   37437        } && test -s conftest.$ac_objext; then
   37438   ac_header_compiler=yes
   37439 else
   37440   echo "$as_me: failed program was:" >&5
   37441 sed 's/^/| /' conftest.$ac_ext >&5
   37442 
   37443 	ac_header_compiler=no
   37444 fi
   37445 
   37446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   37447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   37448 echo "${ECHO_T}$ac_header_compiler" >&6; }
   37449 
   37450 # Is the header present?
   37451 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
   37452 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
   37453 cat >conftest.$ac_ext <<_ACEOF
   37454 /* confdefs.h.  */
   37455 _ACEOF
   37456 cat confdefs.h >>conftest.$ac_ext
   37457 cat >>conftest.$ac_ext <<_ACEOF
   37458 /* end confdefs.h.  */
   37459 #include <X11/xpm.h>
   37460 _ACEOF
   37461 if { (ac_try="$ac_cpp conftest.$ac_ext"
   37462 case "(($ac_try" in
   37463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   37464   *) ac_try_echo=$ac_try;;
   37465 esac
   37466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   37467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   37468   ac_status=$?
   37469   grep -v '^ *+' conftest.er1 >conftest.err
   37470   rm -f conftest.er1
   37471   cat conftest.err >&5
   37472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   37473   (exit $ac_status); } >/dev/null && {
   37474 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   37475 	 test ! -s conftest.err
   37476        }; then
   37477   ac_header_preproc=yes
   37478 else
   37479   echo "$as_me: failed program was:" >&5
   37480 sed 's/^/| /' conftest.$ac_ext >&5
   37481 
   37482   ac_header_preproc=no
   37483 fi
   37484 
   37485 rm -f conftest.err conftest.$ac_ext
   37486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   37487 echo "${ECHO_T}$ac_header_preproc" >&6; }
   37488 
   37489 # So?  What about this header?
   37490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   37491   yes:no: )
   37492     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
   37493 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   37494     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
   37495 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
   37496     ac_header_preproc=yes
   37497     ;;
   37498   no:yes:* )
   37499     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
   37500 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
   37501     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
   37502 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
   37503     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
   37504 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
   37505     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
   37506 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   37507     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
   37508 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
   37509     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
   37510 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
   37511 
   37512     ;;
   37513 esac
   37514 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
   37515 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
   37516 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
   37517   echo $ECHO_N "(cached) $ECHO_C" >&6
   37518 else
   37519   ac_cv_header_X11_xpm_h=$ac_header_preproc
   37520 fi
   37521 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
   37522 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
   37523 
   37524 fi
   37525 if test $ac_cv_header_X11_xpm_h = yes; then
   37526 
   37527         cat >>confdefs.h <<\_ACEOF
   37528 #define BX_HAVE_XPM_H 1
   37529 _ACEOF
   37530 
   37531         XPM_LIB='-lXpm'
   37532 
   37533 fi
   37534 
   37535 
   37536   fi
   37537 fi
   37538 
   37539 
   37540 if test "$with_beos" = yes; then
   37541   display_libs="$display_libs beos"
   37542   cat >>confdefs.h <<\_ACEOF
   37543 #define BX_WITH_BEOS 1
   37544 _ACEOF
   37545 
   37546   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
   37547   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
   37548 fi
   37549 
   37550 if test "$with_sdl" = yes; then
   37551   display_libs="$display_libs sdl"
   37552   cat >>confdefs.h <<\_ACEOF
   37553 #define BX_WITH_SDL 1
   37554 _ACEOF
   37555 
   37556   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
   37557   # GUI_*FLAGS are added to the compilation of every bochs file, not just
   37558   # the files in gui/*.cc.
   37559   SDL_CFLAGS=`sdl-config --cflags`
   37560   GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
   37561   GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
   37562   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
   37563   # The enhanced X debugger depends on GTK2
   37564   if test "$gui_debugger" = 1 -a "$DEFAULT_GUI" != win32; then
   37565     needs_gtk2=1
   37566   fi
   37567   if test "$with_win32" != yes -a "$with_wx" != yes; then
   37568     case $target in
   37569       *-pc-windows*)
   37570          RC_CMD="rc /fo"
   37571          EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
   37572          ;;
   37573       *-cygwin* | *-mingw32*)
   37574          RC_CMD="windres -o "
   37575          EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
   37576          ;;
   37577     esac
   37578   fi
   37579 fi
   37580 
   37581 if test "$with_svga" = yes; then
   37582   display_libs="$display_libs svga"
   37583   cat >>confdefs.h <<\_ACEOF
   37584 #define BX_WITH_SVGA 1
   37585 _ACEOF
   37586 
   37587   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
   37588   # GUI_*FLAGS are added to the compilation of every bochs file, not just
   37589   # the files in gui/*.cc.
   37590   GUI_CFLAGS="$GUI_CFLAGS"
   37591   GUI_CXXFLAGS="$GUI_CXXFLAGS"
   37592   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
   37593 fi
   37594 
   37595 if test "$with_rfb" = yes; then
   37596   display_libs="$display_libs rfb"
   37597   cat >>confdefs.h <<\_ACEOF
   37598 #define BX_WITH_RFB 1
   37599 _ACEOF
   37600 
   37601   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
   37602   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
   37603 fi
   37604 
   37605 if test "$with_amigaos" = yes; then
   37606   display_libs="$display_libs amigaos"
   37607   cat >>confdefs.h <<\_ACEOF
   37608 #define BX_WITH_AMIGAOS 1
   37609 _ACEOF
   37610 
   37611   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
   37612   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
   37613 fi
   37614 
   37615 if test "$with_win32" = yes; then
   37616   display_libs="$display_libs win32"
   37617   cat >>confdefs.h <<\_ACEOF
   37618 #define BX_WITH_WIN32 1
   37619 _ACEOF
   37620 
   37621   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
   37622   case $target in
   37623     *-pc-windows*)
   37624        if test "$with_wx" != yes; then
   37625          RC_CMD="rc /fo"
   37626          EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
   37627        fi
   37628        GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
   37629        ;;
   37630     *-cygwin* | *-mingw32*)
   37631        if test "$with_wx" != yes; then
   37632          RC_CMD="windres -o "
   37633          EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
   37634        fi
   37635        GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
   37636        ;;
   37637     *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
   37638        ;;
   37639   esac
   37640 fi
   37641 
   37642 if test "$with_macos" = yes; then
   37643   display_libs="$display_libs macos"
   37644   cat >>confdefs.h <<\_ACEOF
   37645 #define BX_WITH_MACOS 1
   37646 _ACEOF
   37647 
   37648   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
   37649   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
   37650 fi
   37651 
   37652 if test "$with_carbon" = yes; then
   37653   display_libs="$display_libs carbon"
   37654   cat >>confdefs.h <<\_ACEOF
   37655 #define BX_WITH_CARBON 1
   37656 _ACEOF
   37657 
   37658   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
   37659   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
   37660   if test "$bx_plugins" = 1; then
   37661     PRIMARY_TARGET=bochs.app/.build_plugins   # only for carbon application
   37662   else
   37663     PRIMARY_TARGET=bochs.app/.build   # only for carbon application
   37664   fi
   37665   INSTALL_TARGET='install_macosx'
   37666 fi
   37667 
   37668 if test "$with_term" = yes; then
   37669   display_libs="$display_libs term"
   37670   cat >>confdefs.h <<\_ACEOF
   37671 #define BX_WITH_TERM 1
   37672 _ACEOF
   37673 
   37674   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
   37675   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
   37676   use_curses=yes
   37677 fi
   37678 
   37679 if test "$with_wx" = yes; then
   37680   display_libs="$display_libs wxWidgets"
   37681   if test "$cross_configure" = 1; then
   37682     true  # do not insist, if configuring for another machine
   37683   else
   37684     if test x$ok_wx_version != x1; then
   37685       echo ERROR: A usable version of wxWidgets was not found.
   37686       echo Upgrade the library or choose another gui.
   37687       exit 1
   37688     fi
   37689   fi
   37690   cat >>confdefs.h <<\_ACEOF
   37691 #define BX_WITH_WX 1
   37692 _ACEOF
   37693 
   37694   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
   37695   SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
   37696   WX_CFLAGS="`$WX_CONFIG --cflags`"
   37697   WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
   37698   if test "$wx_multi_lib" = 1; then
   37699     GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
   37700   else
   37701     GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
   37702   fi
   37703   # GUI_C*FLAGS are added to the compilation of every bochs file, not just
   37704   # the files in gui/*.cc.  They are not used when building other things
   37705   # such as bximage.
   37706   GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
   37707   GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
   37708   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
   37709   # using debugger with readline is failing due to thread/signal handler
   37710   # problems.
   37711   case $target in
   37712     *-pc-windows* | *-cygwin* | *-mingw32*)
   37713        EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
   37714 	   GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
   37715        ;;
   37716   esac
   37717 fi
   37718 
   37719 if test "$with_nogui" = yes; then
   37720   display_libs="$display_libs nogui"
   37721   cat >>confdefs.h <<\_ACEOF
   37722 #define BX_WITH_NOGUI 1
   37723 _ACEOF
   37724 
   37725   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
   37726 fi
   37727 
   37728 { echo "$as_me:$LINENO: checking for display libraries" >&5
   37729 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
   37730 { echo "$as_me:$LINENO: result: $display_libs" >&5
   37731 echo "${ECHO_T}$display_libs" >&6; }
   37732 
   37733 if test "$display_libs" = ""; then
   37734   echo "No display libraries were selected. Use --with-* options to enable"
   37735   echo "individual display libraries, or --with-all-libs to detect the ones"
   37736   echo "that Bochs supports."
   37737   exit 1
   37738 fi
   37739 
   37740 # some display libraries and the enhanced debugger may depend on the GTK+ software package
   37741 if test "$needs_gtk2" = 1; then
   37742   # if pkg-config exists, then add it to the /gui cflags.
   37743   gtkconf=`pkg-config --cflags gtk+-2.0`
   37744   if test $? = 0; then
   37745     # pkg-config was found and returned 0, so it must return valid output
   37746     TOOLKIT_CXXFLAGS="$gtkconf"
   37747     LIBS="$LIBS `pkg-config --libs gtk+-2.0`"
   37748   else
   37749     echo "ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package."
   37750     echo "Install pkg-config and the gtk+ development package,"
   37751     echo "or disable the gui debugger, or the wxWidgets display library (whichever is being used)."
   37752     exit 1
   37753   fi
   37754 fi
   37755 
   37756 if test "$display_libs" = " wxWidgets"; then
   37757   { echo "$as_me:$LINENO: checking for default configuration interface" >&5
   37758 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
   37759   { echo "$as_me:$LINENO: result: wxWidgets" >&5
   37760 echo "${ECHO_T}wxWidgets" >&6; }
   37761   { echo "$as_me:$LINENO: checking for default display library" >&5
   37762 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
   37763   { echo "$as_me:$LINENO: result: wxWidgets" >&5
   37764 echo "${ECHO_T}wxWidgets" >&6; }
   37765   cat >>confdefs.h <<\_ACEOF
   37766 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
   37767 _ACEOF
   37768 
   37769   cat >>confdefs.h <<\_ACEOF
   37770 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
   37771 _ACEOF
   37772 
   37773   cat >>confdefs.h <<\_ACEOF
   37774 #define BX_USE_TEXTCONFIG 0
   37775 _ACEOF
   37776 
   37777 else
   37778   cat >>confdefs.h <<\_ACEOF
   37779 #define BX_USE_TEXTCONFIG 1
   37780 _ACEOF
   37781 
   37782 fi
   37783 
   37784 if test "$bx_plugins" = 1; then
   37785   # every item in this list will be compiled as a plugin. Do not include
   37786   # support objs; they will be mentioned in plugin-specific makefile rules.
   37787   GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
   37788 else
   37789   # include support objs
   37790   GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
   37791 fi
   37792 
   37793 
   37794 
   37795 
   37796 
   37797 
   37798 
   37799 
   37800 for ac_prog in wget curl fetch
   37801 do
   37802   # Extract the first word of "$ac_prog", so it can be a program name with args.
   37803 set dummy $ac_prog; ac_word=$2
   37804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   37805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   37806 if test "${ac_cv_prog_WGET+set}" = set; then
   37807   echo $ECHO_N "(cached) $ECHO_C" >&6
   37808 else
   37809   if test -n "$WGET"; then
   37810   ac_cv_prog_WGET="$WGET" # Let the user override the test.
   37811 else
   37812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   37813 for as_dir in $PATH
   37814 do
   37815   IFS=$as_save_IFS
   37816   test -z "$as_dir" && as_dir=.
   37817   for ac_exec_ext in '' $ac_executable_extensions; do
   37818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   37819     ac_cv_prog_WGET="$ac_prog"
   37820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   37821     break 2
   37822   fi
   37823 done
   37824 done
   37825 IFS=$as_save_IFS
   37826 
   37827 fi
   37828 fi
   37829 WGET=$ac_cv_prog_WGET
   37830 if test -n "$WGET"; then
   37831   { echo "$as_me:$LINENO: result: $WGET" >&5
   37832 echo "${ECHO_T}$WGET" >&6; }
   37833 else
   37834   { echo "$as_me:$LINENO: result: no" >&5
   37835 echo "${ECHO_T}no" >&6; }
   37836 fi
   37837 
   37838 
   37839   test -n "$WGET" && break
   37840 done
   37841 test -n "$WGET" || WGET="not_found"
   37842 
   37843 if test "$WGET" = not_found; then
   37844   { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
   37845 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
   37846 fi
   37847 # everybody has to re-invent the wheel. differently.
   37848 test "${WGET}" = "curl" && WGET="curl -O"
   37849 
   37850 # modify settings based on target platform
   37851 case "$target" in
   37852   *-macosx*)
   37853     cat >>confdefs.h <<\_ACEOF
   37854 #define BX_HAVE_STRDUP 0
   37855 _ACEOF
   37856 
   37857     ;;
   37858   *-macos*)
   37859     cat >>confdefs.h <<\_ACEOF
   37860 #define BX_HAVE_STRDUP 0
   37861 _ACEOF
   37862 
   37863     cat >>confdefs.h <<\_ACEOF
   37864 #define BX_PLUGINS 0
   37865 _ACEOF
   37866 
   37867     cat >>confdefs.h <<\_ACEOF
   37868 #define BX_HAVE_DLFCN_H 0
   37869 _ACEOF
   37870 
   37871     cat >>confdefs.h <<\_ACEOF
   37872 #define BX_HAVE_SOCKLEN_T 0
   37873 _ACEOF
   37874 
   37875     cat >>confdefs.h <<\_ACEOF
   37876 #define BX_HAVE_SELECT 0
   37877 _ACEOF
   37878 
   37879     cat >>confdefs.h <<\_ACEOF
   37880 #define BX_HAVE_GETTIMEOFDAY 0
   37881 _ACEOF
   37882 
   37883     cat >>confdefs.h <<\_ACEOF
   37884 #define BX_NO_ATTRIBUTES 1
   37885 _ACEOF
   37886 
   37887     cat >>confdefs.h <<\_ACEOF
   37888 #define HAVE_TUNTAP 0
   37889 _ACEOF
   37890 
   37891     cat >>confdefs.h <<\_ACEOF
   37892 #define HAVE_ETHERTAP 0
   37893 _ACEOF
   37894 
   37895     cat >>confdefs.h <<\_ACEOF
   37896 #define BX_HAVE_HASH_MAP 0
   37897 _ACEOF
   37898 
   37899     ;;
   37900   *-pc-windows*)
   37901     INSTALL_TARGET='install_win32'
   37902     CC="cl"
   37903     CXX="$CC"
   37904     #C_OPT="/Zi"   # for debugging
   37905     C_OPT="/Ox"   # optimize for speed
   37906     CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
   37907     CXXFLAGS="$CFLAGS"
   37908     DASH="/"
   37909     SLASH="\\"
   37910     CXXFP="/Tp"
   37911     CFP="/Tc"
   37912     OFP="/Fo"
   37913     MAKE=nmake
   37914     MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
   37915     RMCOMMAND="-del"
   37916     RANLIB="echo"
   37917     #L_OPT="/debug"    # for debugging
   37918     L_OPT=""           # no debug info
   37919     LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
   37920     LINK_CONSOLE=$LINK
   37921     EXE=".exe"
   37922     PRIMARY_TARGET="bochs.exe"
   37923     BXIMAGE_LINK_OPTS="user32.lib"
   37924     # also compile niclist if networking is on
   37925     if test "$networking" = yes; then
   37926       PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
   37927     fi
   37928     COMMAND_SEPARATOR=""
   37929     CD_UP_ONE="cd .."
   37930     CD_UP_TWO="cd ..\.."
   37931     CD_UP_THREE="cd ..\..\.."
   37932     have_gettimeofday=0  # even though it may exist in build environment
   37933     cat >>confdefs.h <<\_ACEOF
   37934 #define BX_64BIT_CONSTANTS_USE_LL 0
   37935 _ACEOF
   37936 
   37937     cat >>confdefs.h <<\_ACEOF
   37938 #define inline __inline
   37939 _ACEOF
   37940 
   37941     cat >>confdefs.h <<\_ACEOF
   37942 #define BX_NO_EMPTY_STRUCTS 1
   37943 _ACEOF
   37944 
   37945     cat >>confdefs.h <<\_ACEOF
   37946 #define BX_NO_ATTRIBUTES 1
   37947 _ACEOF
   37948 
   37949     cat >>confdefs.h <<\_ACEOF
   37950 #define BX_HAVE_HASH_MAP 0
   37951 _ACEOF
   37952 
   37953     cat >>confdefs.h <<\_ACEOF
   37954 #define BX_HAVE_HASH_MAP_H 0
   37955 _ACEOF
   37956 
   37957     cat >>confdefs.h <<\_ACEOF
   37958 #define BX_HAVE_STRTOULL 0
   37959 _ACEOF
   37960 
   37961     cat >>confdefs.h <<\_ACEOF
   37962 #define BX_HAVE_STRTOUQ 0
   37963 _ACEOF
   37964 
   37965     cat >>confdefs.h <<\_ACEOF
   37966 #define HAVE_LIBREADLINE 0
   37967 _ACEOF
   37968 
   37969     cat >>confdefs.h <<\_ACEOF
   37970 #define BX_HAVE_GETTIMEOFDAY 0
   37971 _ACEOF
   37972 
   37973     cat >>confdefs.h <<\_ACEOF
   37974 #define BX_HAVE_DLFCN_H 0
   37975 _ACEOF
   37976 
   37977     cat >>confdefs.h <<\_ACEOF
   37978 #define BX_HAVE_MKSTEMP 0
   37979 _ACEOF
   37980 
   37981     cat >>confdefs.h <<\_ACEOF
   37982 #define BX_HAVE_SYS_MMAN_H 0
   37983 _ACEOF
   37984 
   37985     cat >>confdefs.h <<\_ACEOF
   37986 #define BX_HAVE_USLEEP 0
   37987 _ACEOF
   37988 
   37989     cat >>confdefs.h <<\_ACEOF
   37990 #define HAVE_ETHERTAP 0
   37991 _ACEOF
   37992 
   37993     cat >>confdefs.h <<\_ACEOF
   37994 #define BX_HAVE_SELECT 1
   37995 _ACEOF
   37996 
   37997     cat >>confdefs.h <<\_ACEOF
   37998 #define BX_HAVE_SOCKLEN_T 0
   37999 _ACEOF
   38000 
   38001     ;;
   38002   *-pc-cygwin*)
   38003     EXE=".exe"
   38004     PRIMARY_TARGET="bochs.exe"
   38005     BXIMAGE_LINK_OPTS="-luser32"
   38006     if test "$networking" = yes; then
   38007       PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
   38008     fi
   38009     cat >>confdefs.h <<\_ACEOF
   38010 #define BX_HAVE_SELECT 1
   38011 _ACEOF
   38012 
   38013     ;;
   38014   *-pc-mingw*)
   38015     BXIMAGE_LINK_OPTS="-luser32"
   38016     if test "$networking" = yes; then
   38017       PRIMARY_TARGET="$PRIMARY_TARGET niclist"
   38018     fi
   38019     cat >>confdefs.h <<\_ACEOF
   38020 #define BX_HAVE_SELECT 1
   38021 _ACEOF
   38022 
   38023     ;;
   38024   *-beos*)
   38025     PRIMARY_TARGET=.bochs_beos_target
   38026     ;;
   38027 esac
   38028 
   38029 ENH_DBG_OBJS=""
   38030 if test "$gui_debugger" = 1; then
   38031   if test "$needs_gtk2" = 1; then
   38032      ENH_DBG_OBJS="gtk_enh_dbg_osdep.o"
   38033   elif test "$with_win32" = yes; then
   38034      ENH_DBG_OBJS="win32_enh_dbg_osdep.o"
   38035   fi
   38036 fi
   38037 
   38038 
   38039 DIALOG_OBJS=""
   38040 EXPORT_DYNAMIC="-export-dynamic"
   38041 case $target in
   38042   *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
   38043     if test "$bx_plugins" = 1; then
   38044       { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
   38045 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
   38046 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
   38047   echo $ECHO_N "(cached) $ECHO_C" >&6
   38048 else
   38049   ac_check_lib_save_LIBS=$LIBS
   38050 LIBS="-lmingwex  $LIBS"
   38051 cat >conftest.$ac_ext <<_ACEOF
   38052 /* confdefs.h.  */
   38053 _ACEOF
   38054 cat confdefs.h >>conftest.$ac_ext
   38055 cat >>conftest.$ac_ext <<_ACEOF
   38056 /* end confdefs.h.  */
   38057 
   38058 /* Override any GCC internal prototype to avoid an error.
   38059    Use char because int might match the return type of a GCC
   38060    builtin and then its argument prototype would still apply.  */
   38061 #ifdef __cplusplus
   38062 extern "C"
   38063 #endif
   38064 char opendir ();
   38065 int
   38066 main ()
   38067 {
   38068 return opendir ();
   38069   ;
   38070   return 0;
   38071 }
   38072 _ACEOF
   38073 rm -f conftest.$ac_objext conftest$ac_exeext
   38074 if { (ac_try="$ac_link"
   38075 case "(($ac_try" in
   38076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38077   *) ac_try_echo=$ac_try;;
   38078 esac
   38079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38080   (eval "$ac_link") 2>conftest.er1
   38081   ac_status=$?
   38082   grep -v '^ *+' conftest.er1 >conftest.err
   38083   rm -f conftest.er1
   38084   cat conftest.err >&5
   38085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38086   (exit $ac_status); } && {
   38087 	 test -z "$ac_c_werror_flag" ||
   38088 	 test ! -s conftest.err
   38089        } && test -s conftest$ac_exeext &&
   38090        $as_test_x conftest$ac_exeext; then
   38091   ac_cv_lib_mingwex_opendir=yes
   38092 else
   38093   echo "$as_me: failed program was:" >&5
   38094 sed 's/^/| /' conftest.$ac_ext >&5
   38095 
   38096 	ac_cv_lib_mingwex_opendir=no
   38097 fi
   38098 
   38099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38100       conftest$ac_exeext conftest.$ac_ext
   38101 LIBS=$ac_check_lib_save_LIBS
   38102 fi
   38103 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
   38104 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
   38105 if test $ac_cv_lib_mingwex_opendir = yes; then
   38106   LIBS="$LIBS -lmingwex"
   38107 fi
   38108 
   38109       # set variables for building DLL plugins
   38110       PRIMARY_TARGET=".win32_dll_plugin_target"
   38111       PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
   38112       INSTALL_PLUGINS_VAR=install_dll_plugins
   38113     else
   38114       if test "$with_win32" != yes; then
   38115         LIBS="$LIBS -lcomctl32"
   38116       fi
   38117     fi
   38118     DIALOG_OBJS="win32dialog.o"
   38119     EXPORT_DYNAMIC=""
   38120     ;;
   38121 esac
   38122 
   38123 
   38124 
   38125 if test "$use_curses" = yes -a "$cross_configure" = 0; then
   38126   { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
   38127 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
   38128 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
   38129   echo $ECHO_N "(cached) $ECHO_C" >&6
   38130 else
   38131   ac_check_lib_save_LIBS=$LIBS
   38132 LIBS="-lcurses  $LIBS"
   38133 cat >conftest.$ac_ext <<_ACEOF
   38134 /* confdefs.h.  */
   38135 _ACEOF
   38136 cat confdefs.h >>conftest.$ac_ext
   38137 cat >>conftest.$ac_ext <<_ACEOF
   38138 /* end confdefs.h.  */
   38139 
   38140 /* Override any GCC internal prototype to avoid an error.
   38141    Use char because int might match the return type of a GCC
   38142    builtin and then its argument prototype would still apply.  */
   38143 #ifdef __cplusplus
   38144 extern "C"
   38145 #endif
   38146 char mvaddch ();
   38147 int
   38148 main ()
   38149 {
   38150 return mvaddch ();
   38151   ;
   38152   return 0;
   38153 }
   38154 _ACEOF
   38155 rm -f conftest.$ac_objext conftest$ac_exeext
   38156 if { (ac_try="$ac_link"
   38157 case "(($ac_try" in
   38158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38159   *) ac_try_echo=$ac_try;;
   38160 esac
   38161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38162   (eval "$ac_link") 2>conftest.er1
   38163   ac_status=$?
   38164   grep -v '^ *+' conftest.er1 >conftest.err
   38165   rm -f conftest.er1
   38166   cat conftest.err >&5
   38167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38168   (exit $ac_status); } && {
   38169 	 test -z "$ac_c_werror_flag" ||
   38170 	 test ! -s conftest.err
   38171        } && test -s conftest$ac_exeext &&
   38172        $as_test_x conftest$ac_exeext; then
   38173   ac_cv_lib_curses_mvaddch=yes
   38174 else
   38175   echo "$as_me: failed program was:" >&5
   38176 sed 's/^/| /' conftest.$ac_ext >&5
   38177 
   38178 	ac_cv_lib_curses_mvaddch=no
   38179 fi
   38180 
   38181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38182       conftest$ac_exeext conftest.$ac_ext
   38183 LIBS=$ac_check_lib_save_LIBS
   38184 fi
   38185 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
   38186 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
   38187 if test $ac_cv_lib_curses_mvaddch = yes; then
   38188   GUI_LINK_OPTS_TERM='-lcurses'
   38189 fi
   38190 
   38191   { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
   38192 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
   38193 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
   38194   echo $ECHO_N "(cached) $ECHO_C" >&6
   38195 else
   38196   ac_check_lib_save_LIBS=$LIBS
   38197 LIBS="-lncurses  $LIBS"
   38198 cat >conftest.$ac_ext <<_ACEOF
   38199 /* confdefs.h.  */
   38200 _ACEOF
   38201 cat confdefs.h >>conftest.$ac_ext
   38202 cat >>conftest.$ac_ext <<_ACEOF
   38203 /* end confdefs.h.  */
   38204 
   38205 /* Override any GCC internal prototype to avoid an error.
   38206    Use char because int might match the return type of a GCC
   38207    builtin and then its argument prototype would still apply.  */
   38208 #ifdef __cplusplus
   38209 extern "C"
   38210 #endif
   38211 char mvaddch ();
   38212 int
   38213 main ()
   38214 {
   38215 return mvaddch ();
   38216   ;
   38217   return 0;
   38218 }
   38219 _ACEOF
   38220 rm -f conftest.$ac_objext conftest$ac_exeext
   38221 if { (ac_try="$ac_link"
   38222 case "(($ac_try" in
   38223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38224   *) ac_try_echo=$ac_try;;
   38225 esac
   38226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38227   (eval "$ac_link") 2>conftest.er1
   38228   ac_status=$?
   38229   grep -v '^ *+' conftest.er1 >conftest.err
   38230   rm -f conftest.er1
   38231   cat conftest.err >&5
   38232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38233   (exit $ac_status); } && {
   38234 	 test -z "$ac_c_werror_flag" ||
   38235 	 test ! -s conftest.err
   38236        } && test -s conftest$ac_exeext &&
   38237        $as_test_x conftest$ac_exeext; then
   38238   ac_cv_lib_ncurses_mvaddch=yes
   38239 else
   38240   echo "$as_me: failed program was:" >&5
   38241 sed 's/^/| /' conftest.$ac_ext >&5
   38242 
   38243 	ac_cv_lib_ncurses_mvaddch=no
   38244 fi
   38245 
   38246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38247       conftest$ac_exeext conftest.$ac_ext
   38248 LIBS=$ac_check_lib_save_LIBS
   38249 fi
   38250 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
   38251 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
   38252 if test $ac_cv_lib_ncurses_mvaddch = yes; then
   38253   GUI_LINK_OPTS_TERM='-lncurses'
   38254 fi
   38255 
   38256   { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
   38257 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
   38258 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
   38259   echo $ECHO_N "(cached) $ECHO_C" >&6
   38260 else
   38261   ac_check_lib_save_LIBS=$LIBS
   38262 LIBS="-ltermlib  $LIBS"
   38263 cat >conftest.$ac_ext <<_ACEOF
   38264 /* confdefs.h.  */
   38265 _ACEOF
   38266 cat confdefs.h >>conftest.$ac_ext
   38267 cat >>conftest.$ac_ext <<_ACEOF
   38268 /* end confdefs.h.  */
   38269 
   38270 /* Override any GCC internal prototype to avoid an error.
   38271    Use char because int might match the return type of a GCC
   38272    builtin and then its argument prototype would still apply.  */
   38273 #ifdef __cplusplus
   38274 extern "C"
   38275 #endif
   38276 char mvaddch ();
   38277 int
   38278 main ()
   38279 {
   38280 return mvaddch ();
   38281   ;
   38282   return 0;
   38283 }
   38284 _ACEOF
   38285 rm -f conftest.$ac_objext conftest$ac_exeext
   38286 if { (ac_try="$ac_link"
   38287 case "(($ac_try" in
   38288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38289   *) ac_try_echo=$ac_try;;
   38290 esac
   38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38292   (eval "$ac_link") 2>conftest.er1
   38293   ac_status=$?
   38294   grep -v '^ *+' conftest.er1 >conftest.err
   38295   rm -f conftest.er1
   38296   cat conftest.err >&5
   38297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38298   (exit $ac_status); } && {
   38299 	 test -z "$ac_c_werror_flag" ||
   38300 	 test ! -s conftest.err
   38301        } && test -s conftest$ac_exeext &&
   38302        $as_test_x conftest$ac_exeext; then
   38303   ac_cv_lib_termlib_mvaddch=yes
   38304 else
   38305   echo "$as_me: failed program was:" >&5
   38306 sed 's/^/| /' conftest.$ac_ext >&5
   38307 
   38308 	ac_cv_lib_termlib_mvaddch=no
   38309 fi
   38310 
   38311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38312       conftest$ac_exeext conftest.$ac_ext
   38313 LIBS=$ac_check_lib_save_LIBS
   38314 fi
   38315 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
   38316 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
   38317 if test $ac_cv_lib_termlib_mvaddch = yes; then
   38318   GUI_LINK_OPTS_TERM='-ltermlib'
   38319 fi
   38320 
   38321   { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
   38322 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
   38323 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
   38324   echo $ECHO_N "(cached) $ECHO_C" >&6
   38325 else
   38326   ac_check_lib_save_LIBS=$LIBS
   38327 LIBS="-lpdcurses  $LIBS"
   38328 cat >conftest.$ac_ext <<_ACEOF
   38329 /* confdefs.h.  */
   38330 _ACEOF
   38331 cat confdefs.h >>conftest.$ac_ext
   38332 cat >>conftest.$ac_ext <<_ACEOF
   38333 /* end confdefs.h.  */
   38334 
   38335 /* Override any GCC internal prototype to avoid an error.
   38336    Use char because int might match the return type of a GCC
   38337    builtin and then its argument prototype would still apply.  */
   38338 #ifdef __cplusplus
   38339 extern "C"
   38340 #endif
   38341 char mvaddch ();
   38342 int
   38343 main ()
   38344 {
   38345 return mvaddch ();
   38346   ;
   38347   return 0;
   38348 }
   38349 _ACEOF
   38350 rm -f conftest.$ac_objext conftest$ac_exeext
   38351 if { (ac_try="$ac_link"
   38352 case "(($ac_try" in
   38353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38354   *) ac_try_echo=$ac_try;;
   38355 esac
   38356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38357   (eval "$ac_link") 2>conftest.er1
   38358   ac_status=$?
   38359   grep -v '^ *+' conftest.er1 >conftest.err
   38360   rm -f conftest.er1
   38361   cat conftest.err >&5
   38362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38363   (exit $ac_status); } && {
   38364 	 test -z "$ac_c_werror_flag" ||
   38365 	 test ! -s conftest.err
   38366        } && test -s conftest$ac_exeext &&
   38367        $as_test_x conftest$ac_exeext; then
   38368   ac_cv_lib_pdcurses_mvaddch=yes
   38369 else
   38370   echo "$as_me: failed program was:" >&5
   38371 sed 's/^/| /' conftest.$ac_ext >&5
   38372 
   38373 	ac_cv_lib_pdcurses_mvaddch=no
   38374 fi
   38375 
   38376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38377       conftest$ac_exeext conftest.$ac_ext
   38378 LIBS=$ac_check_lib_save_LIBS
   38379 fi
   38380 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
   38381 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
   38382 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
   38383   GUI_LINK_OPTS_TERM='-lpdcurses'
   38384 fi
   38385 
   38386   if test "$GUI_LINK_OPTS_TERM" = ""; then
   38387     echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
   38388     exit 1
   38389   fi
   38390 fi
   38391 
   38392 if test "$with_term" = yes; then
   38393   old_LIBS="$LIBS"
   38394   LIBS="$LIBS $GUI_LINK_OPTS_TERM"
   38395 
   38396 for ac_func in color_set
   38397 do
   38398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   38399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   38400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   38401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   38402   echo $ECHO_N "(cached) $ECHO_C" >&6
   38403 else
   38404   cat >conftest.$ac_ext <<_ACEOF
   38405 /* confdefs.h.  */
   38406 _ACEOF
   38407 cat confdefs.h >>conftest.$ac_ext
   38408 cat >>conftest.$ac_ext <<_ACEOF
   38409 /* end confdefs.h.  */
   38410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   38411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   38412 #define $ac_func innocuous_$ac_func
   38413 
   38414 /* System header to define __stub macros and hopefully few prototypes,
   38415     which can conflict with char $ac_func (); below.
   38416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   38417     <limits.h> exists even on freestanding compilers.  */
   38418 
   38419 #ifdef __STDC__
   38420 # include <limits.h>
   38421 #else
   38422 # include <assert.h>
   38423 #endif
   38424 
   38425 #undef $ac_func
   38426 
   38427 /* Override any GCC internal prototype to avoid an error.
   38428    Use char because int might match the return type of a GCC
   38429    builtin and then its argument prototype would still apply.  */
   38430 #ifdef __cplusplus
   38431 extern "C"
   38432 #endif
   38433 char $ac_func ();
   38434 /* The GNU C library defines this for functions which it implements
   38435     to always fail with ENOSYS.  Some functions are actually named
   38436     something starting with __ and the normal name is an alias.  */
   38437 #if defined __stub_$ac_func || defined __stub___$ac_func
   38438 choke me
   38439 #endif
   38440 
   38441 int
   38442 main ()
   38443 {
   38444 return $ac_func ();
   38445   ;
   38446   return 0;
   38447 }
   38448 _ACEOF
   38449 rm -f conftest.$ac_objext conftest$ac_exeext
   38450 if { (ac_try="$ac_link"
   38451 case "(($ac_try" in
   38452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38453   *) ac_try_echo=$ac_try;;
   38454 esac
   38455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38456   (eval "$ac_link") 2>conftest.er1
   38457   ac_status=$?
   38458   grep -v '^ *+' conftest.er1 >conftest.err
   38459   rm -f conftest.er1
   38460   cat conftest.err >&5
   38461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38462   (exit $ac_status); } && {
   38463 	 test -z "$ac_c_werror_flag" ||
   38464 	 test ! -s conftest.err
   38465        } && test -s conftest$ac_exeext &&
   38466        $as_test_x conftest$ac_exeext; then
   38467   eval "$as_ac_var=yes"
   38468 else
   38469   echo "$as_me: failed program was:" >&5
   38470 sed 's/^/| /' conftest.$ac_ext >&5
   38471 
   38472 	eval "$as_ac_var=no"
   38473 fi
   38474 
   38475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38476       conftest$ac_exeext conftest.$ac_ext
   38477 fi
   38478 ac_res=`eval echo '${'$as_ac_var'}'`
   38479 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   38480 echo "${ECHO_T}$ac_res" >&6; }
   38481 if test `eval echo '${'$as_ac_var'}'` = yes; then
   38482   cat >>confdefs.h <<_ACEOF
   38483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   38484 _ACEOF
   38485  cat >>confdefs.h <<\_ACEOF
   38486 #define BX_HAVE_COLOR_SET 1
   38487 _ACEOF
   38488 
   38489 fi
   38490 done
   38491 
   38492 
   38493 for ac_func in mvhline
   38494 do
   38495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   38496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   38497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   38498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   38499   echo $ECHO_N "(cached) $ECHO_C" >&6
   38500 else
   38501   cat >conftest.$ac_ext <<_ACEOF
   38502 /* confdefs.h.  */
   38503 _ACEOF
   38504 cat confdefs.h >>conftest.$ac_ext
   38505 cat >>conftest.$ac_ext <<_ACEOF
   38506 /* end confdefs.h.  */
   38507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   38508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   38509 #define $ac_func innocuous_$ac_func
   38510 
   38511 /* System header to define __stub macros and hopefully few prototypes,
   38512     which can conflict with char $ac_func (); below.
   38513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   38514     <limits.h> exists even on freestanding compilers.  */
   38515 
   38516 #ifdef __STDC__
   38517 # include <limits.h>
   38518 #else
   38519 # include <assert.h>
   38520 #endif
   38521 
   38522 #undef $ac_func
   38523 
   38524 /* Override any GCC internal prototype to avoid an error.
   38525    Use char because int might match the return type of a GCC
   38526    builtin and then its argument prototype would still apply.  */
   38527 #ifdef __cplusplus
   38528 extern "C"
   38529 #endif
   38530 char $ac_func ();
   38531 /* The GNU C library defines this for functions which it implements
   38532     to always fail with ENOSYS.  Some functions are actually named
   38533     something starting with __ and the normal name is an alias.  */
   38534 #if defined __stub_$ac_func || defined __stub___$ac_func
   38535 choke me
   38536 #endif
   38537 
   38538 int
   38539 main ()
   38540 {
   38541 return $ac_func ();
   38542   ;
   38543   return 0;
   38544 }
   38545 _ACEOF
   38546 rm -f conftest.$ac_objext conftest$ac_exeext
   38547 if { (ac_try="$ac_link"
   38548 case "(($ac_try" in
   38549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38550   *) ac_try_echo=$ac_try;;
   38551 esac
   38552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38553   (eval "$ac_link") 2>conftest.er1
   38554   ac_status=$?
   38555   grep -v '^ *+' conftest.er1 >conftest.err
   38556   rm -f conftest.er1
   38557   cat conftest.err >&5
   38558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38559   (exit $ac_status); } && {
   38560 	 test -z "$ac_c_werror_flag" ||
   38561 	 test ! -s conftest.err
   38562        } && test -s conftest$ac_exeext &&
   38563        $as_test_x conftest$ac_exeext; then
   38564   eval "$as_ac_var=yes"
   38565 else
   38566   echo "$as_me: failed program was:" >&5
   38567 sed 's/^/| /' conftest.$ac_ext >&5
   38568 
   38569 	eval "$as_ac_var=no"
   38570 fi
   38571 
   38572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38573       conftest$ac_exeext conftest.$ac_ext
   38574 fi
   38575 ac_res=`eval echo '${'$as_ac_var'}'`
   38576 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   38577 echo "${ECHO_T}$ac_res" >&6; }
   38578 if test `eval echo '${'$as_ac_var'}'` = yes; then
   38579   cat >>confdefs.h <<_ACEOF
   38580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   38581 _ACEOF
   38582  cat >>confdefs.h <<\_ACEOF
   38583 #define BX_HAVE_MVHLINE 1
   38584 _ACEOF
   38585 
   38586 fi
   38587 done
   38588 
   38589 
   38590 for ac_func in mvvline
   38591 do
   38592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   38593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   38594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   38595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   38596   echo $ECHO_N "(cached) $ECHO_C" >&6
   38597 else
   38598   cat >conftest.$ac_ext <<_ACEOF
   38599 /* confdefs.h.  */
   38600 _ACEOF
   38601 cat confdefs.h >>conftest.$ac_ext
   38602 cat >>conftest.$ac_ext <<_ACEOF
   38603 /* end confdefs.h.  */
   38604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   38605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   38606 #define $ac_func innocuous_$ac_func
   38607 
   38608 /* System header to define __stub macros and hopefully few prototypes,
   38609     which can conflict with char $ac_func (); below.
   38610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   38611     <limits.h> exists even on freestanding compilers.  */
   38612 
   38613 #ifdef __STDC__
   38614 # include <limits.h>
   38615 #else
   38616 # include <assert.h>
   38617 #endif
   38618 
   38619 #undef $ac_func
   38620 
   38621 /* Override any GCC internal prototype to avoid an error.
   38622    Use char because int might match the return type of a GCC
   38623    builtin and then its argument prototype would still apply.  */
   38624 #ifdef __cplusplus
   38625 extern "C"
   38626 #endif
   38627 char $ac_func ();
   38628 /* The GNU C library defines this for functions which it implements
   38629     to always fail with ENOSYS.  Some functions are actually named
   38630     something starting with __ and the normal name is an alias.  */
   38631 #if defined __stub_$ac_func || defined __stub___$ac_func
   38632 choke me
   38633 #endif
   38634 
   38635 int
   38636 main ()
   38637 {
   38638 return $ac_func ();
   38639   ;
   38640   return 0;
   38641 }
   38642 _ACEOF
   38643 rm -f conftest.$ac_objext conftest$ac_exeext
   38644 if { (ac_try="$ac_link"
   38645 case "(($ac_try" in
   38646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38647   *) ac_try_echo=$ac_try;;
   38648 esac
   38649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38650   (eval "$ac_link") 2>conftest.er1
   38651   ac_status=$?
   38652   grep -v '^ *+' conftest.er1 >conftest.err
   38653   rm -f conftest.er1
   38654   cat conftest.err >&5
   38655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38656   (exit $ac_status); } && {
   38657 	 test -z "$ac_c_werror_flag" ||
   38658 	 test ! -s conftest.err
   38659        } && test -s conftest$ac_exeext &&
   38660        $as_test_x conftest$ac_exeext; then
   38661   eval "$as_ac_var=yes"
   38662 else
   38663   echo "$as_me: failed program was:" >&5
   38664 sed 's/^/| /' conftest.$ac_ext >&5
   38665 
   38666 	eval "$as_ac_var=no"
   38667 fi
   38668 
   38669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38670       conftest$ac_exeext conftest.$ac_ext
   38671 fi
   38672 ac_res=`eval echo '${'$as_ac_var'}'`
   38673 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   38674 echo "${ECHO_T}$ac_res" >&6; }
   38675 if test `eval echo '${'$as_ac_var'}'` = yes; then
   38676   cat >>confdefs.h <<_ACEOF
   38677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   38678 _ACEOF
   38679  cat >>confdefs.h <<\_ACEOF
   38680 #define BX_HAVE_MVVLINE 1
   38681 _ACEOF
   38682 
   38683 fi
   38684 done
   38685 
   38686   LIBS="$old_LIBS"
   38687 fi
   38688 
   38689 if test "$with_rfb" = yes; then
   38690   # we need the socket function
   38691   case $target in
   38692     *-pc-windows*)
   38693       # is this okay without a check ?
   38694       RFB_LIBS="$RFB_LIBS wsock32.lib"
   38695       have_socket=yes
   38696       ;;
   38697     *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
   38698       # is this okay without a check ?
   38699       RFB_LIBS="$RFB_LIBS -lwsock32"
   38700       have_socket=yes
   38701       ;;
   38702     *)
   38703 
   38704 for ac_func in socket
   38705 do
   38706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   38707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   38708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   38709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   38710   echo $ECHO_N "(cached) $ECHO_C" >&6
   38711 else
   38712   cat >conftest.$ac_ext <<_ACEOF
   38713 /* confdefs.h.  */
   38714 _ACEOF
   38715 cat confdefs.h >>conftest.$ac_ext
   38716 cat >>conftest.$ac_ext <<_ACEOF
   38717 /* end confdefs.h.  */
   38718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   38719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   38720 #define $ac_func innocuous_$ac_func
   38721 
   38722 /* System header to define __stub macros and hopefully few prototypes,
   38723     which can conflict with char $ac_func (); below.
   38724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   38725     <limits.h> exists even on freestanding compilers.  */
   38726 
   38727 #ifdef __STDC__
   38728 # include <limits.h>
   38729 #else
   38730 # include <assert.h>
   38731 #endif
   38732 
   38733 #undef $ac_func
   38734 
   38735 /* Override any GCC internal prototype to avoid an error.
   38736    Use char because int might match the return type of a GCC
   38737    builtin and then its argument prototype would still apply.  */
   38738 #ifdef __cplusplus
   38739 extern "C"
   38740 #endif
   38741 char $ac_func ();
   38742 /* The GNU C library defines this for functions which it implements
   38743     to always fail with ENOSYS.  Some functions are actually named
   38744     something starting with __ and the normal name is an alias.  */
   38745 #if defined __stub_$ac_func || defined __stub___$ac_func
   38746 choke me
   38747 #endif
   38748 
   38749 int
   38750 main ()
   38751 {
   38752 return $ac_func ();
   38753   ;
   38754   return 0;
   38755 }
   38756 _ACEOF
   38757 rm -f conftest.$ac_objext conftest$ac_exeext
   38758 if { (ac_try="$ac_link"
   38759 case "(($ac_try" in
   38760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38761   *) ac_try_echo=$ac_try;;
   38762 esac
   38763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38764   (eval "$ac_link") 2>conftest.er1
   38765   ac_status=$?
   38766   grep -v '^ *+' conftest.er1 >conftest.err
   38767   rm -f conftest.er1
   38768   cat conftest.err >&5
   38769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38770   (exit $ac_status); } && {
   38771 	 test -z "$ac_c_werror_flag" ||
   38772 	 test ! -s conftest.err
   38773        } && test -s conftest$ac_exeext &&
   38774        $as_test_x conftest$ac_exeext; then
   38775   eval "$as_ac_var=yes"
   38776 else
   38777   echo "$as_me: failed program was:" >&5
   38778 sed 's/^/| /' conftest.$ac_ext >&5
   38779 
   38780 	eval "$as_ac_var=no"
   38781 fi
   38782 
   38783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38784       conftest$ac_exeext conftest.$ac_ext
   38785 fi
   38786 ac_res=`eval echo '${'$as_ac_var'}'`
   38787 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   38788 echo "${ECHO_T}$ac_res" >&6; }
   38789 if test `eval echo '${'$as_ac_var'}'` = yes; then
   38790   cat >>confdefs.h <<_ACEOF
   38791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   38792 _ACEOF
   38793  have_socket=yes
   38794 fi
   38795 done
   38796 
   38797       if test "$have_socket" != yes; then
   38798         { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
   38799 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
   38800 if test "${ac_cv_lib_socket_socket+set}" = set; then
   38801   echo $ECHO_N "(cached) $ECHO_C" >&6
   38802 else
   38803   ac_check_lib_save_LIBS=$LIBS
   38804 LIBS="-lsocket  $LIBS"
   38805 cat >conftest.$ac_ext <<_ACEOF
   38806 /* confdefs.h.  */
   38807 _ACEOF
   38808 cat confdefs.h >>conftest.$ac_ext
   38809 cat >>conftest.$ac_ext <<_ACEOF
   38810 /* end confdefs.h.  */
   38811 
   38812 /* Override any GCC internal prototype to avoid an error.
   38813    Use char because int might match the return type of a GCC
   38814    builtin and then its argument prototype would still apply.  */
   38815 #ifdef __cplusplus
   38816 extern "C"
   38817 #endif
   38818 char socket ();
   38819 int
   38820 main ()
   38821 {
   38822 return socket ();
   38823   ;
   38824   return 0;
   38825 }
   38826 _ACEOF
   38827 rm -f conftest.$ac_objext conftest$ac_exeext
   38828 if { (ac_try="$ac_link"
   38829 case "(($ac_try" in
   38830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38831   *) ac_try_echo=$ac_try;;
   38832 esac
   38833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38834   (eval "$ac_link") 2>conftest.er1
   38835   ac_status=$?
   38836   grep -v '^ *+' conftest.er1 >conftest.err
   38837   rm -f conftest.er1
   38838   cat conftest.err >&5
   38839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38840   (exit $ac_status); } && {
   38841 	 test -z "$ac_c_werror_flag" ||
   38842 	 test ! -s conftest.err
   38843        } && test -s conftest$ac_exeext &&
   38844        $as_test_x conftest$ac_exeext; then
   38845   ac_cv_lib_socket_socket=yes
   38846 else
   38847   echo "$as_me: failed program was:" >&5
   38848 sed 's/^/| /' conftest.$ac_ext >&5
   38849 
   38850 	ac_cv_lib_socket_socket=no
   38851 fi
   38852 
   38853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   38854       conftest$ac_exeext conftest.$ac_ext
   38855 LIBS=$ac_check_lib_save_LIBS
   38856 fi
   38857 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
   38858 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
   38859 if test $ac_cv_lib_socket_socket = yes; then
   38860 
   38861             RFB_LIBS="$RFB_LIBS -lsocket"
   38862             have_socket=yes
   38863 
   38864 fi
   38865 
   38866       fi
   38867       ;;
   38868   esac
   38869   if test "$have_socket" != yes; then
   38870     echo 'ERROR: socket function required for RFB compile'
   38871     exit 1
   38872   fi
   38873 fi
   38874 
   38875 # The ACX_PTHREAD function was written by
   38876 # Steven G. Johnson <stevenj (at] alum.mit.edu> and
   38877 # Alejandro Forero Cuervo <bachue (at] bachue.com>
   38878 # I found it in the ac-archive project on Source Forge.
   38879 
   38880 
   38881 pthread_ok=no
   38882 
   38883 
   38884 acx_pthread_ok=no
   38885 
   38886 # First, check if the POSIX threads header, pthread.h, is available.
   38887 # If it isn't, don't bother looking for the threads libraries.
   38888 if test "${ac_cv_header_pthread_h+set}" = set; then
   38889   { echo "$as_me:$LINENO: checking for pthread.h" >&5
   38890 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
   38891 if test "${ac_cv_header_pthread_h+set}" = set; then
   38892   echo $ECHO_N "(cached) $ECHO_C" >&6
   38893 fi
   38894 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
   38895 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
   38896 else
   38897   # Is the header compilable?
   38898 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
   38899 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
   38900 cat >conftest.$ac_ext <<_ACEOF
   38901 /* confdefs.h.  */
   38902 _ACEOF
   38903 cat confdefs.h >>conftest.$ac_ext
   38904 cat >>conftest.$ac_ext <<_ACEOF
   38905 /* end confdefs.h.  */
   38906 $ac_includes_default
   38907 #include <pthread.h>
   38908 _ACEOF
   38909 rm -f conftest.$ac_objext
   38910 if { (ac_try="$ac_compile"
   38911 case "(($ac_try" in
   38912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38913   *) ac_try_echo=$ac_try;;
   38914 esac
   38915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38916   (eval "$ac_compile") 2>conftest.er1
   38917   ac_status=$?
   38918   grep -v '^ *+' conftest.er1 >conftest.err
   38919   rm -f conftest.er1
   38920   cat conftest.err >&5
   38921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38922   (exit $ac_status); } && {
   38923 	 test -z "$ac_c_werror_flag" ||
   38924 	 test ! -s conftest.err
   38925        } && test -s conftest.$ac_objext; then
   38926   ac_header_compiler=yes
   38927 else
   38928   echo "$as_me: failed program was:" >&5
   38929 sed 's/^/| /' conftest.$ac_ext >&5
   38930 
   38931 	ac_header_compiler=no
   38932 fi
   38933 
   38934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   38935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   38936 echo "${ECHO_T}$ac_header_compiler" >&6; }
   38937 
   38938 # Is the header present?
   38939 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
   38940 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
   38941 cat >conftest.$ac_ext <<_ACEOF
   38942 /* confdefs.h.  */
   38943 _ACEOF
   38944 cat confdefs.h >>conftest.$ac_ext
   38945 cat >>conftest.$ac_ext <<_ACEOF
   38946 /* end confdefs.h.  */
   38947 #include <pthread.h>
   38948 _ACEOF
   38949 if { (ac_try="$ac_cpp conftest.$ac_ext"
   38950 case "(($ac_try" in
   38951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   38952   *) ac_try_echo=$ac_try;;
   38953 esac
   38954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   38955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   38956   ac_status=$?
   38957   grep -v '^ *+' conftest.er1 >conftest.err
   38958   rm -f conftest.er1
   38959   cat conftest.err >&5
   38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   38961   (exit $ac_status); } >/dev/null && {
   38962 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   38963 	 test ! -s conftest.err
   38964        }; then
   38965   ac_header_preproc=yes
   38966 else
   38967   echo "$as_me: failed program was:" >&5
   38968 sed 's/^/| /' conftest.$ac_ext >&5
   38969 
   38970   ac_header_preproc=no
   38971 fi
   38972 
   38973 rm -f conftest.err conftest.$ac_ext
   38974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   38975 echo "${ECHO_T}$ac_header_preproc" >&6; }
   38976 
   38977 # So?  What about this header?
   38978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   38979   yes:no: )
   38980     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
   38981 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   38982     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
   38983 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
   38984     ac_header_preproc=yes
   38985     ;;
   38986   no:yes:* )
   38987     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
   38988 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
   38989     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
   38990 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
   38991     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
   38992 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
   38993     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
   38994 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   38995     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
   38996 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
   38997     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
   38998 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
   38999 
   39000     ;;
   39001 esac
   39002 { echo "$as_me:$LINENO: checking for pthread.h" >&5
   39003 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
   39004 if test "${ac_cv_header_pthread_h+set}" = set; then
   39005   echo $ECHO_N "(cached) $ECHO_C" >&6
   39006 else
   39007   ac_cv_header_pthread_h=$ac_header_preproc
   39008 fi
   39009 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
   39010 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
   39011 
   39012 fi
   39013 if test $ac_cv_header_pthread_h = yes; then
   39014   :
   39015 else
   39016   acx_pthread_ok=noheader
   39017 fi
   39018 
   39019 
   39020 
   39021 # We must check for the threads library under a number of different
   39022 # names; the ordering is very important because some systems
   39023 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   39024 # libraries is broken (non-POSIX).
   39025 
   39026 # First of all, check if the user has set any of the PTHREAD_LIBS,
   39027 # etcetera environment variables, and if threads linking works using
   39028 # them:
   39029 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
   39030 	save_CFLAGS="$CFLAGS"
   39031 	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   39032 	CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
   39033 	save_LIBS="$LIBS"
   39034 	LIBS="$PTHREAD_LIBS $LIBS"
   39035 	{ echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
   39036 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
   39037 	cat >conftest.$ac_ext <<_ACEOF
   39038 /* confdefs.h.  */
   39039 _ACEOF
   39040 cat confdefs.h >>conftest.$ac_ext
   39041 cat >>conftest.$ac_ext <<_ACEOF
   39042 /* end confdefs.h.  */
   39043 
   39044 /* Override any GCC internal prototype to avoid an error.
   39045    Use char because int might match the return type of a GCC
   39046    builtin and then its argument prototype would still apply.  */
   39047 #ifdef __cplusplus
   39048 extern "C"
   39049 #endif
   39050 char pthread_join ();
   39051 int
   39052 main ()
   39053 {
   39054 return pthread_join ();
   39055   ;
   39056   return 0;
   39057 }
   39058 _ACEOF
   39059 rm -f conftest.$ac_objext conftest$ac_exeext
   39060 if { (ac_try="$ac_link"
   39061 case "(($ac_try" in
   39062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   39063   *) ac_try_echo=$ac_try;;
   39064 esac
   39065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   39066   (eval "$ac_link") 2>conftest.er1
   39067   ac_status=$?
   39068   grep -v '^ *+' conftest.er1 >conftest.err
   39069   rm -f conftest.er1
   39070   cat conftest.err >&5
   39071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   39072   (exit $ac_status); } && {
   39073 	 test -z "$ac_c_werror_flag" ||
   39074 	 test ! -s conftest.err
   39075        } && test -s conftest$ac_exeext &&
   39076        $as_test_x conftest$ac_exeext; then
   39077   acx_pthread_ok=yes
   39078 else
   39079   echo "$as_me: failed program was:" >&5
   39080 sed 's/^/| /' conftest.$ac_ext >&5
   39081 
   39082 
   39083 fi
   39084 
   39085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   39086       conftest$ac_exeext conftest.$ac_ext
   39087 	{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
   39088 echo "${ECHO_T}$acx_pthread_ok" >&6; }
   39089 	if test x"$acx_pthread_ok" = xno; then
   39090 		PTHREAD_LIBS=""
   39091 		PTHREAD_CFLAGS=""
   39092 	fi
   39093 	LIBS="$save_LIBS"
   39094 	CFLAGS="$save_CFLAGS"
   39095 fi
   39096 
   39097 # Create a list of thread flags to try.  Items starting with a "-" are
   39098 # C compiler flags, and other items are library names, except for "none"
   39099 # which indicates that we try without any flags at all.
   39100 
   39101 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
   39102 
   39103 # The ordering *is* (sometimes) important.  Some notes on the
   39104 # individual items follow:
   39105 
   39106 # pthreads: AIX (must check this before -lpthread)
   39107 # none: in case threads are in libc; should be tried before -Kthread and
   39108 #       other compiler flags to prevent continual compiler warnings
   39109 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   39110 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   39111 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   39112 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
   39113 # -pthreads: Solaris/gcc
   39114 # -mthreads: Mingw32/gcc, Lynx/gcc
   39115 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   39116 #      doesn't hurt to check since this sometimes defines pthreads too;
   39117 #      also defines -D_REENTRANT)
   39118 # pthread: Linux, etcetera
   39119 # --thread-safe: KAI C++
   39120 
   39121 case "${host_cpu}-${host_os}" in
   39122 	*solaris*)
   39123 
   39124 	# On Solaris (at least, for some versions), libc contains stubbed
   39125 	# (non-functional) versions of the pthreads routines, so link-based
   39126 	# tests will erroneously succeed.  (We need to link with -pthread or
   39127 	# -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
   39128 	# a function called by this macro, so we could check for that, but
   39129 	# who knows whether they'll stub that too in a future libc.)  So,
   39130 	# we'll just look for -pthreads and -lpthread first:
   39131 
   39132 	acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
   39133 	;;
   39134 esac
   39135 
   39136 if test x"$acx_pthread_ok" = xno; then
   39137 for flag in $acx_pthread_flags; do
   39138 
   39139 	case $flag in
   39140 		none)
   39141 		{ echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
   39142 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
   39143 		;;
   39144 
   39145 		-*)
   39146 		{ echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
   39147 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
   39148 		PTHREAD_CFLAGS="$flag"
   39149 		;;
   39150 
   39151 		*)
   39152 		{ echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
   39153 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
   39154 		PTHREAD_LIBS="-l$flag"
   39155 		;;
   39156 	esac
   39157 
   39158 	save_LIBS="$LIBS"
   39159 	save_CFLAGS="$CFLAGS"
   39160 	LIBS="$PTHREAD_LIBS $LIBS"
   39161 	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   39162 
   39163 	# Check for various functions.  We must include pthread.h,
   39164 	# since some functions may be macros.  (On the Sequent, we
   39165 	# need a special flag -Kthread to make this header compile.)
   39166 	# We check for pthread_join because it is in -lpthread on IRIX
   39167 	# while pthread_create is in libc.  We check for pthread_attr_init
   39168 	# due to DEC craziness with -lpthreads.  We check for
   39169 	# pthread_cleanup_push because it is one of the few pthread
   39170 	# functions on Solaris that doesn't have a non-functional libc stub.
   39171 	# We try pthread_create on general principles.
   39172 	cat >conftest.$ac_ext <<_ACEOF
   39173 /* confdefs.h.  */
   39174 _ACEOF
   39175 cat confdefs.h >>conftest.$ac_ext
   39176 cat >>conftest.$ac_ext <<_ACEOF
   39177 /* end confdefs.h.  */
   39178 #include <pthread.h>
   39179 int
   39180 main ()
   39181 {
   39182 pthread_t th; pthread_join(th, 0);
   39183 		     pthread_attr_init(0); pthread_cleanup_push(0, 0);
   39184 		     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
   39185   ;
   39186   return 0;
   39187 }
   39188 _ACEOF
   39189 rm -f conftest.$ac_objext conftest$ac_exeext
   39190 if { (ac_try="$ac_link"
   39191 case "(($ac_try" in
   39192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   39193   *) ac_try_echo=$ac_try;;
   39194 esac
   39195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   39196   (eval "$ac_link") 2>conftest.er1
   39197   ac_status=$?
   39198   grep -v '^ *+' conftest.er1 >conftest.err
   39199   rm -f conftest.er1
   39200   cat conftest.err >&5
   39201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   39202   (exit $ac_status); } && {
   39203 	 test -z "$ac_c_werror_flag" ||
   39204 	 test ! -s conftest.err
   39205        } && test -s conftest$ac_exeext &&
   39206        $as_test_x conftest$ac_exeext; then
   39207   acx_pthread_ok=yes
   39208 else
   39209   echo "$as_me: failed program was:" >&5
   39210 sed 's/^/| /' conftest.$ac_ext >&5
   39211 
   39212 
   39213 fi
   39214 
   39215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   39216       conftest$ac_exeext conftest.$ac_ext
   39217 
   39218 	LIBS="$save_LIBS"
   39219 	CFLAGS="$save_CFLAGS"
   39220 
   39221 	{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
   39222 echo "${ECHO_T}$acx_pthread_ok" >&6; }
   39223 	if test "x$acx_pthread_ok" = xyes; then
   39224 		break;
   39225 	fi
   39226 
   39227 	PTHREAD_LIBS=""
   39228 	PTHREAD_CFLAGS=""
   39229 done
   39230 fi
   39231 
   39232 # Various other checks:
   39233 if test "x$acx_pthread_ok" = xyes; then
   39234 	save_LIBS="$LIBS"
   39235 	LIBS="$PTHREAD_LIBS $LIBS"
   39236 	save_CFLAGS="$CFLAGS"
   39237 	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   39238 
   39239 	# Detect AIX lossage: threads are created detached by default
   39240 	# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
   39241 	{ echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
   39242 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
   39243 	cat >conftest.$ac_ext <<_ACEOF
   39244 /* confdefs.h.  */
   39245 _ACEOF
   39246 cat confdefs.h >>conftest.$ac_ext
   39247 cat >>conftest.$ac_ext <<_ACEOF
   39248 /* end confdefs.h.  */
   39249 #include <pthread.h>
   39250 int
   39251 main ()
   39252 {
   39253 int attr=PTHREAD_CREATE_JOINABLE;
   39254   ;
   39255   return 0;
   39256 }
   39257 _ACEOF
   39258 rm -f conftest.$ac_objext conftest$ac_exeext
   39259 if { (ac_try="$ac_link"
   39260 case "(($ac_try" in
   39261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   39262   *) ac_try_echo=$ac_try;;
   39263 esac
   39264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   39265   (eval "$ac_link") 2>conftest.er1
   39266   ac_status=$?
   39267   grep -v '^ *+' conftest.er1 >conftest.err
   39268   rm -f conftest.er1
   39269   cat conftest.err >&5
   39270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   39271   (exit $ac_status); } && {
   39272 	 test -z "$ac_c_werror_flag" ||
   39273 	 test ! -s conftest.err
   39274        } && test -s conftest$ac_exeext &&
   39275        $as_test_x conftest$ac_exeext; then
   39276   ok=PTHREAD_CREATE_JOINABLE
   39277 else
   39278   echo "$as_me: failed program was:" >&5
   39279 sed 's/^/| /' conftest.$ac_ext >&5
   39280 
   39281 	ok=unknown
   39282 fi
   39283 
   39284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   39285       conftest$ac_exeext conftest.$ac_ext
   39286 	if test x"$ok" = xunknown; then
   39287 		cat >conftest.$ac_ext <<_ACEOF
   39288 /* confdefs.h.  */
   39289 _ACEOF
   39290 cat confdefs.h >>conftest.$ac_ext
   39291 cat >>conftest.$ac_ext <<_ACEOF
   39292 /* end confdefs.h.  */
   39293 #include <pthread.h>
   39294 int
   39295 main ()
   39296 {
   39297 int attr=PTHREAD_CREATE_UNDETACHED;
   39298   ;
   39299   return 0;
   39300 }
   39301 _ACEOF
   39302 rm -f conftest.$ac_objext conftest$ac_exeext
   39303 if { (ac_try="$ac_link"
   39304 case "(($ac_try" in
   39305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   39306   *) ac_try_echo=$ac_try;;
   39307 esac
   39308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   39309   (eval "$ac_link") 2>conftest.er1
   39310   ac_status=$?
   39311   grep -v '^ *+' conftest.er1 >conftest.err
   39312   rm -f conftest.er1
   39313   cat conftest.err >&5
   39314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   39315   (exit $ac_status); } && {
   39316 	 test -z "$ac_c_werror_flag" ||
   39317 	 test ! -s conftest.err
   39318        } && test -s conftest$ac_exeext &&
   39319        $as_test_x conftest$ac_exeext; then
   39320   ok=PTHREAD_CREATE_UNDETACHED
   39321 else
   39322   echo "$as_me: failed program was:" >&5
   39323 sed 's/^/| /' conftest.$ac_ext >&5
   39324 
   39325 	ok=unknown
   39326 fi
   39327 
   39328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   39329       conftest$ac_exeext conftest.$ac_ext
   39330 	fi
   39331 	if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
   39332 
   39333 cat >>confdefs.h <<\_ACEOF
   39334 #define PTHREAD_CREATE_JOINABLE $ok
   39335 _ACEOF
   39336 
   39337 	fi
   39338 	{ echo "$as_me:$LINENO: result: ${ok}" >&5
   39339 echo "${ECHO_T}${ok}" >&6; }
   39340 	if test x"$ok" = xunknown; then
   39341 		{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
   39342 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
   39343 	fi
   39344 
   39345 	{ echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
   39346 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
   39347 	flag=no
   39348 	case "${host_cpu}-${host_os}" in
   39349 		*-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
   39350 		*solaris* | alpha*-osf*) flag="-D_REENTRANT";;
   39351 	esac
   39352 	{ echo "$as_me:$LINENO: result: ${flag}" >&5
   39353 echo "${ECHO_T}${flag}" >&6; }
   39354 	if test "x$flag" != xno; then
   39355 		PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
   39356 	fi
   39357 
   39358 	LIBS="$save_LIBS"
   39359 	CFLAGS="$save_CFLAGS"
   39360 
   39361 	# More AIX lossage: must compile with cc_r
   39362 	# Extract the first word of "cc_r", so it can be a program name with args.
   39363 set dummy cc_r; ac_word=$2
   39364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   39365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   39366 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
   39367   echo $ECHO_N "(cached) $ECHO_C" >&6
   39368 else
   39369   if test -n "$PTHREAD_CC"; then
   39370   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   39371 else
   39372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   39373 for as_dir in $PATH
   39374 do
   39375   IFS=$as_save_IFS
   39376   test -z "$as_dir" && as_dir=.
   39377   for ac_exec_ext in '' $ac_executable_extensions; do
   39378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   39379     ac_cv_prog_PTHREAD_CC="cc_r"
   39380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   39381     break 2
   39382   fi
   39383 done
   39384 done
   39385 IFS=$as_save_IFS
   39386 
   39387   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
   39388 fi
   39389 fi
   39390 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   39391 if test -n "$PTHREAD_CC"; then
   39392   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
   39393 echo "${ECHO_T}$PTHREAD_CC" >&6; }
   39394 else
   39395   { echo "$as_me:$LINENO: result: no" >&5
   39396 echo "${ECHO_T}no" >&6; }
   39397 fi
   39398 
   39399 
   39400 else
   39401 	PTHREAD_CC="$CC"
   39402 fi
   39403 
   39404 
   39405 
   39406 
   39407 
   39408 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   39409 if test x"$acx_pthread_ok" = xyes; then
   39410 
   39411   pthread_ok=yes
   39412   #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
   39413   #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
   39414   #echo Using PTHREAD_CC=$PTHREAD_CC
   39415 
   39416 	:
   39417 else
   39418 	acx_pthread_ok=no
   39419 
   39420 fi
   39421 
   39422 
   39423 
   39424 
   39425 # since RFB (usually) needs pthread library, check that it was found.
   39426 # But on win32 platforms, the pthread library is not needed.
   39427 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
   39428   if test "$pthread_ok" = yes; then
   39429     RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
   39430     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   39431     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
   39432     CC="$PTHREAD_CC"
   39433   else
   39434     case "$target" in
   39435 	  *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
   39436 	    # pthread not needed for win32 platform
   39437 		;;
   39438 	  *)
   39439     echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
   39440     esac
   39441   fi
   39442 fi
   39443 
   39444 
   39445 { echo "$as_me:$LINENO: checking for guest to host TLB support (deprecated)" >&5
   39446 echo $ECHO_N "checking for guest to host TLB support (deprecated)... $ECHO_C" >&6; }
   39447 # Check whether --enable-guest2host-tlb was given.
   39448 if test "${enable_guest2host_tlb+set}" = set; then
   39449   enableval=$enable_guest2host_tlb; { echo "$as_me:$LINENO: result: $enableval" >&5
   39450 echo "${ECHO_T}$enableval" >&6; }
   39451    { { echo "$as_me:$LINENO: error: DEPRECATED - ALWAYS ON" >&5
   39452 echo "$as_me: error: DEPRECATED - ALWAYS ON" >&2;}
   39453    { (exit 1); exit 1; }; }
   39454 
   39455 else
   39456 
   39457    { echo "$as_me:$LINENO: result: no" >&5
   39458 echo "${ECHO_T}no" >&6; }
   39459 
   39460 fi
   39461 
   39462 
   39463 { echo "$as_me:$LINENO: checking for external debugger interface (deprecated)" >&5
   39464 echo $ECHO_N "checking for external debugger interface (deprecated)... $ECHO_C" >&6; }
   39465 # Check whether --enable-external-debugger was given.
   39466 if test "${enable_external_debugger+set}" = set; then
   39467   enableval=$enable_external_debugger; { echo "$as_me:$LINENO: result: $enableval" >&5
   39468 echo "${ECHO_T}$enableval" >&6; }
   39469    { { echo "$as_me:$LINENO: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&5
   39470 echo "$as_me: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&2;}
   39471    { (exit 1); exit 1; }; }
   39472 
   39473 else
   39474 
   39475    { echo "$as_me:$LINENO: result: no" >&5
   39476 echo "${ECHO_T}no" >&6; }
   39477 
   39478 fi
   39479 
   39480 
   39481 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
   39482 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
   39483 # Check whether --enable-magic-breakpoints was given.
   39484 if test "${enable_magic_breakpoints+set}" = set; then
   39485   enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
   39486 echo "${ECHO_T}$enableval" >&6; }
   39487    { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
   39488 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
   39489    { (exit 1); exit 1; }; }
   39490 
   39491 else
   39492 
   39493    { echo "$as_me:$LINENO: result: no" >&5
   39494 echo "${ECHO_T}no" >&6; }
   39495 
   39496 fi
   39497 
   39498 
   39499 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
   39500 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
   39501 # Check whether --enable-save-restore was given.
   39502 if test "${enable_save_restore+set}" = set; then
   39503   enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
   39504 echo "${ECHO_T}$enableval" >&6; }
   39505    { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
   39506 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
   39507    { (exit 1); exit 1; }; }
   39508 
   39509 else
   39510 
   39511    { echo "$as_me:$LINENO: result: no" >&5
   39512 echo "${ECHO_T}no" >&6; }
   39513 
   39514 fi
   39515 
   39516 
   39517 # Create some subdirectories for when you run configure from some other
   39518 # directory.
   39519 if test ! -d instrument; then mkdir instrument; fi
   39520 if test ! -d build; then mkdir build; fi
   39521 if test ! -d build/linux; then mkdir build/linux; fi
   39522 if test ! -d build/win32; then mkdir build/win32; fi
   39523 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
   39524 
   39525 
   39526 
   39527 
   39528 
   39529 
   39530 
   39531 
   39532 
   39533 
   39534 
   39535 
   39536 
   39537 
   39538 
   39539 
   39540 
   39541 
   39542 
   39543 
   39544 
   39545 
   39546 
   39547 
   39548 
   39549 
   39550 
   39551 
   39552 
   39553 
   39554 
   39555 
   39556 
   39557 
   39558 
   39559 
   39560 
   39561 
   39562 
   39563 # Extract the first word of "gzip", so it can be a program name with args.
   39564 set dummy gzip; ac_word=$2
   39565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   39566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   39567 if test "${ac_cv_path_GZIP+set}" = set; then
   39568   echo $ECHO_N "(cached) $ECHO_C" >&6
   39569 else
   39570   case $GZIP in
   39571   [\\/]* | ?:[\\/]*)
   39572   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
   39573   ;;
   39574   *)
   39575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   39576 for as_dir in $PATH
   39577 do
   39578   IFS=$as_save_IFS
   39579   test -z "$as_dir" && as_dir=.
   39580   for ac_exec_ext in '' $ac_executable_extensions; do
   39581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   39582     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
   39583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   39584     break 2
   39585   fi
   39586 done
   39587 done
   39588 IFS=$as_save_IFS
   39589 
   39590   ;;
   39591 esac
   39592 fi
   39593 GZIP=$ac_cv_path_GZIP
   39594 if test -n "$GZIP"; then
   39595   { echo "$as_me:$LINENO: result: $GZIP" >&5
   39596 echo "${ECHO_T}$GZIP" >&6; }
   39597 else
   39598   { echo "$as_me:$LINENO: result: no" >&5
   39599 echo "${ECHO_T}no" >&6; }
   39600 fi
   39601 
   39602 
   39603 # Extract the first word of "tar", so it can be a program name with args.
   39604 set dummy tar; ac_word=$2
   39605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   39606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   39607 if test "${ac_cv_path_TAR+set}" = set; then
   39608   echo $ECHO_N "(cached) $ECHO_C" >&6
   39609 else
   39610   case $TAR in
   39611   [\\/]* | ?:[\\/]*)
   39612   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
   39613   ;;
   39614   *)
   39615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   39616 for as_dir in $PATH
   39617 do
   39618   IFS=$as_save_IFS
   39619   test -z "$as_dir" && as_dir=.
   39620   for ac_exec_ext in '' $ac_executable_extensions; do
   39621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   39622     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
   39623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   39624     break 2
   39625   fi
   39626 done
   39627 done
   39628 IFS=$as_save_IFS
   39629 
   39630   ;;
   39631 esac
   39632 fi
   39633 TAR=$ac_cv_path_TAR
   39634 if test -n "$TAR"; then
   39635   { echo "$as_me:$LINENO: result: $TAR" >&5
   39636 echo "${ECHO_T}$TAR" >&6; }
   39637 else
   39638   { echo "$as_me:$LINENO: result: no" >&5
   39639 echo "${ECHO_T}no" >&6; }
   39640 fi
   39641 
   39642 
   39643 
   39644 ac_config_files="$ac_config_files Makefile bios/Makefile"
   39645 
   39646 cat >confcache <<\_ACEOF
   39647 # This file is a shell script that caches the results of configure
   39648 # tests run on this system so they can be shared between configure
   39649 # scripts and configure runs, see configure's option --config-cache.
   39650 # It is not useful on other systems.  If it contains results you don't
   39651 # want to keep, you may remove or edit it.
   39652 #
   39653 # config.status only pays attention to the cache file if you give it
   39654 # the --recheck option to rerun configure.
   39655 #
   39656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   39657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   39658 # following values.
   39659 
   39660 _ACEOF
   39661 
   39662 # The following way of writing the cache mishandles newlines in values,
   39663 # but we know of no workaround that is simple, portable, and efficient.
   39664 # So, we kill variables containing newlines.
   39665 # Ultrix sh set writes to stderr and can't be redirected directly,
   39666 # and sets the high bit in the cache file unless we assign to the vars.
   39667 (
   39668   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   39669     eval ac_val=\$$ac_var
   39670     case $ac_val in #(
   39671     *${as_nl}*)
   39672       case $ac_var in #(
   39673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   39674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   39675       esac
   39676       case $ac_var in #(
   39677       _ | IFS | as_nl) ;; #(
   39678       *) $as_unset $ac_var ;;
   39679       esac ;;
   39680     esac
   39681   done
   39682 
   39683   (set) 2>&1 |
   39684     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   39685     *${as_nl}ac_space=\ *)
   39686       # `set' does not quote correctly, so add quotes (double-quote
   39687       # substitution turns \\\\ into \\, and sed turns \\ into \).
   39688       sed -n \
   39689 	"s/'/'\\\\''/g;
   39690 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   39691       ;; #(
   39692     *)
   39693       # `set' quotes correctly as required by POSIX, so do not add quotes.
   39694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   39695       ;;
   39696     esac |
   39697     sort
   39698 ) |
   39699   sed '
   39700      /^ac_cv_env_/b end
   39701      t clear
   39702      :clear
   39703      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   39704      t end
   39705      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   39706      :end' >>confcache
   39707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   39708   if test -w "$cache_file"; then
   39709     test "x$cache_file" != "x/dev/null" &&
   39710       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   39711 echo "$as_me: updating cache $cache_file" >&6;}
   39712     cat confcache >$cache_file
   39713   else
   39714     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   39715 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   39716   fi
   39717 fi
   39718 rm -f confcache
   39719 
   39720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   39721 # Let make expand exec_prefix.
   39722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   39723 
   39724 DEFS=-DHAVE_CONFIG_H
   39725 
   39726 ac_libobjs=
   39727 ac_ltlibobjs=
   39728 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   39729   # 1. Remove the extension, and $U if already installed.
   39730   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   39731   ac_i=`echo "$ac_i" | sed "$ac_script"`
   39732   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   39733   #    will be set to the directory where LIBOBJS objects are built.
   39734   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   39735   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   39736 done
   39737 LIBOBJS=$ac_libobjs
   39738 
   39739 LTLIBOBJS=$ac_ltlibobjs
   39740 
   39741 
   39742 
   39743 : ${CONFIG_STATUS=./config.status}
   39744 ac_clean_files_save=$ac_clean_files
   39745 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   39746 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   39747 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   39748 cat >$CONFIG_STATUS <<_ACEOF
   39749 #! $SHELL
   39750 # Generated by $as_me.
   39751 # Run this file to recreate the current configuration.
   39752 # Compiler output produced by configure, useful for debugging
   39753 # configure, is in config.log if it exists.
   39754 
   39755 debug=false
   39756 ac_cs_recheck=false
   39757 ac_cs_silent=false
   39758 SHELL=\${CONFIG_SHELL-$SHELL}
   39759 _ACEOF
   39760 
   39761 cat >>$CONFIG_STATUS <<\_ACEOF
   39762 ## --------------------- ##
   39763 ## M4sh Initialization.  ##
   39764 ## --------------------- ##
   39765 
   39766 # Be more Bourne compatible
   39767 DUALCASE=1; export DUALCASE # for MKS sh
   39768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   39769   emulate sh
   39770   NULLCMD=:
   39771   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   39772   # is contrary to our usage.  Disable this feature.
   39773   alias -g '${1+"$@"}'='"$@"'
   39774   setopt NO_GLOB_SUBST
   39775 else
   39776   case `(set -o) 2>/dev/null` in
   39777   *posix*) set -o posix ;;
   39778 esac
   39779 
   39780 fi
   39781 
   39782 
   39783 
   39784 
   39785 # PATH needs CR
   39786 # Avoid depending upon Character Ranges.
   39787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   39788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   39789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   39790 as_cr_digits='0123456789'
   39791 as_cr_alnum=$as_cr_Letters$as_cr_digits
   39792 
   39793 # The user is always right.
   39794 if test "${PATH_SEPARATOR+set}" != set; then
   39795   echo "#! /bin/sh" >conf$$.sh
   39796   echo  "exit 0"   >>conf$$.sh
   39797   chmod +x conf$$.sh
   39798   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   39799     PATH_SEPARATOR=';'
   39800   else
   39801     PATH_SEPARATOR=:
   39802   fi
   39803   rm -f conf$$.sh
   39804 fi
   39805 
   39806 # Support unset when possible.
   39807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   39808   as_unset=unset
   39809 else
   39810   as_unset=false
   39811 fi
   39812 
   39813 
   39814 # IFS
   39815 # We need space, tab and new line, in precisely that order.  Quoting is
   39816 # there to prevent editors from complaining about space-tab.
   39817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   39818 # splitting by setting IFS to empty value.)
   39819 as_nl='
   39820 '
   39821 IFS=" ""	$as_nl"
   39822 
   39823 # Find who we are.  Look in the path if we contain no directory separator.
   39824 case $0 in
   39825   *[\\/]* ) as_myself=$0 ;;
   39826   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   39827 for as_dir in $PATH
   39828 do
   39829   IFS=$as_save_IFS
   39830   test -z "$as_dir" && as_dir=.
   39831   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   39832 done
   39833 IFS=$as_save_IFS
   39834 
   39835      ;;
   39836 esac
   39837 # We did not find ourselves, most probably we were run as `sh COMMAND'
   39838 # in which case we are not to be found in the path.
   39839 if test "x$as_myself" = x; then
   39840   as_myself=$0
   39841 fi
   39842 if test ! -f "$as_myself"; then
   39843   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   39844   { (exit 1); exit 1; }
   39845 fi
   39846 
   39847 # Work around bugs in pre-3.0 UWIN ksh.
   39848 for as_var in ENV MAIL MAILPATH
   39849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   39850 done
   39851 PS1='$ '
   39852 PS2='> '
   39853 PS4='+ '
   39854 
   39855 # NLS nuisances.
   39856 for as_var in \
   39857   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   39858   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   39859   LC_TELEPHONE LC_TIME
   39860 do
   39861   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   39862     eval $as_var=C; export $as_var
   39863   else
   39864     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   39865   fi
   39866 done
   39867 
   39868 # Required to use basename.
   39869 if expr a : '\(a\)' >/dev/null 2>&1 &&
   39870    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   39871   as_expr=expr
   39872 else
   39873   as_expr=false
   39874 fi
   39875 
   39876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   39877   as_basename=basename
   39878 else
   39879   as_basename=false
   39880 fi
   39881 
   39882 
   39883 # Name of the executable.
   39884 as_me=`$as_basename -- "$0" ||
   39885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   39886 	 X"$0" : 'X\(//\)$' \| \
   39887 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   39888 echo X/"$0" |
   39889     sed '/^.*\/\([^/][^/]*\)\/*$/{
   39890 	    s//\1/
   39891 	    q
   39892 	  }
   39893 	  /^X\/\(\/\/\)$/{
   39894 	    s//\1/
   39895 	    q
   39896 	  }
   39897 	  /^X\/\(\/\).*/{
   39898 	    s//\1/
   39899 	    q
   39900 	  }
   39901 	  s/.*/./; q'`
   39902 
   39903 # CDPATH.
   39904 $as_unset CDPATH
   39905 
   39906 
   39907 
   39908   as_lineno_1=$LINENO
   39909   as_lineno_2=$LINENO
   39910   test "x$as_lineno_1" != "x$as_lineno_2" &&
   39911   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   39912 
   39913   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   39914   # uniformly replaced by the line number.  The first 'sed' inserts a
   39915   # line-number line after each line using $LINENO; the second 'sed'
   39916   # does the real work.  The second script uses 'N' to pair each
   39917   # line-number line with the line containing $LINENO, and appends
   39918   # trailing '-' during substitution so that $LINENO is not a special
   39919   # case at line end.
   39920   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   39921   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   39922   # E. McMahon (1931-1989) for sed's syntax.  :-)
   39923   sed -n '
   39924     p
   39925     /[$]LINENO/=
   39926   ' <$as_myself |
   39927     sed '
   39928       s/[$]LINENO.*/&-/
   39929       t lineno
   39930       b
   39931       :lineno
   39932       N
   39933       :loop
   39934       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   39935       t loop
   39936       s/-\n.*//
   39937     ' >$as_me.lineno &&
   39938   chmod +x "$as_me.lineno" ||
   39939     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   39940    { (exit 1); exit 1; }; }
   39941 
   39942   # Don't try to exec as it changes $[0], causing all sort of problems
   39943   # (the dirname of $[0] is not the place where we might find the
   39944   # original and so on.  Autoconf is especially sensitive to this).
   39945   . "./$as_me.lineno"
   39946   # Exit status is that of the last command.
   39947   exit
   39948 }
   39949 
   39950 
   39951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   39952   as_dirname=dirname
   39953 else
   39954   as_dirname=false
   39955 fi
   39956 
   39957 ECHO_C= ECHO_N= ECHO_T=
   39958 case `echo -n x` in
   39959 -n*)
   39960   case `echo 'x\c'` in
   39961   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   39962   *)   ECHO_C='\c';;
   39963   esac;;
   39964 *)
   39965   ECHO_N='-n';;
   39966 esac
   39967 
   39968 if expr a : '\(a\)' >/dev/null 2>&1 &&
   39969    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   39970   as_expr=expr
   39971 else
   39972   as_expr=false
   39973 fi
   39974 
   39975 rm -f conf$$ conf$$.exe conf$$.file
   39976 if test -d conf$$.dir; then
   39977   rm -f conf$$.dir/conf$$.file
   39978 else
   39979   rm -f conf$$.dir
   39980   mkdir conf$$.dir
   39981 fi
   39982 echo >conf$$.file
   39983 if ln -s conf$$.file conf$$ 2>/dev/null; then
   39984   as_ln_s='ln -s'
   39985   # ... but there are two gotchas:
   39986   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   39987   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   39988   # In both cases, we have to default to `cp -p'.
   39989   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   39990     as_ln_s='cp -p'
   39991 elif ln conf$$.file conf$$ 2>/dev/null; then
   39992   as_ln_s=ln
   39993 else
   39994   as_ln_s='cp -p'
   39995 fi
   39996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   39997 rmdir conf$$.dir 2>/dev/null
   39998 
   39999 if mkdir -p . 2>/dev/null; then
   40000   as_mkdir_p=:
   40001 else
   40002   test -d ./-p && rmdir ./-p
   40003   as_mkdir_p=false
   40004 fi
   40005 
   40006 if test -x / >/dev/null 2>&1; then
   40007   as_test_x='test -x'
   40008 else
   40009   if ls -dL / >/dev/null 2>&1; then
   40010     as_ls_L_option=L
   40011   else
   40012     as_ls_L_option=
   40013   fi
   40014   as_test_x='
   40015     eval sh -c '\''
   40016       if test -d "$1"; then
   40017         test -d "$1/.";
   40018       else
   40019 	case $1 in
   40020         -*)set "./$1";;
   40021 	esac;
   40022 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   40023 	???[sx]*):;;*)false;;esac;fi
   40024     '\'' sh
   40025   '
   40026 fi
   40027 as_executable_p=$as_test_x
   40028 
   40029 # Sed expression to map a string onto a valid CPP name.
   40030 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   40031 
   40032 # Sed expression to map a string onto a valid variable name.
   40033 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   40034 
   40035 
   40036 exec 6>&1
   40037 
   40038 # Save the log message, to keep $[0] and so on meaningful, and to
   40039 # report actual input values of CONFIG_FILES etc. instead of their
   40040 # values after options handling.
   40041 ac_log="
   40042 This file was extended by $as_me, which was
   40043 generated by GNU Autoconf 2.61.  Invocation command line was
   40044 
   40045   CONFIG_FILES    = $CONFIG_FILES
   40046   CONFIG_HEADERS  = $CONFIG_HEADERS
   40047   CONFIG_LINKS    = $CONFIG_LINKS
   40048   CONFIG_COMMANDS = $CONFIG_COMMANDS
   40049   $ $0 $@
   40050 
   40051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   40052 "
   40053 
   40054 _ACEOF
   40055 
   40056 cat >>$CONFIG_STATUS <<_ACEOF
   40057 # Files that config.status was made for.
   40058 config_files="$ac_config_files"
   40059 config_headers="$ac_config_headers"
   40060 
   40061 _ACEOF
   40062 
   40063 cat >>$CONFIG_STATUS <<\_ACEOF
   40064 ac_cs_usage="\
   40065 \`$as_me' instantiates files from templates according to the
   40066 current configuration.
   40067 
   40068 Usage: $0 [OPTIONS] [FILE]...
   40069 
   40070   -h, --help       print this help, then exit
   40071   -V, --version    print version number and configuration settings, then exit
   40072   -q, --quiet      do not print progress messages
   40073   -d, --debug      don't remove temporary files
   40074       --recheck    update $as_me by reconfiguring in the same conditions
   40075   --file=FILE[:TEMPLATE]
   40076 		   instantiate the configuration file FILE
   40077   --header=FILE[:TEMPLATE]
   40078 		   instantiate the configuration header FILE
   40079 
   40080 Configuration files:
   40081 $config_files
   40082 
   40083 Configuration headers:
   40084 $config_headers
   40085 
   40086 Report bugs to <bug-autoconf (at] gnu.org>."
   40087 
   40088 _ACEOF
   40089 cat >>$CONFIG_STATUS <<_ACEOF
   40090 ac_cs_version="\\
   40091 config.status
   40092 configured by $0, generated by GNU Autoconf 2.61,
   40093   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   40094 
   40095 Copyright (C) 2006 Free Software Foundation, Inc.
   40096 This config.status script is free software; the Free Software Foundation
   40097 gives unlimited permission to copy, distribute and modify it."
   40098 
   40099 ac_pwd='$ac_pwd'
   40100 srcdir='$srcdir'
   40101 _ACEOF
   40102 
   40103 cat >>$CONFIG_STATUS <<\_ACEOF
   40104 # If no file are specified by the user, then we need to provide default
   40105 # value.  By we need to know if files were specified by the user.
   40106 ac_need_defaults=:
   40107 while test $# != 0
   40108 do
   40109   case $1 in
   40110   --*=*)
   40111     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   40112     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   40113     ac_shift=:
   40114     ;;
   40115   *)
   40116     ac_option=$1
   40117     ac_optarg=$2
   40118     ac_shift=shift
   40119     ;;
   40120   esac
   40121 
   40122   case $ac_option in
   40123   # Handling of the options.
   40124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   40125     ac_cs_recheck=: ;;
   40126   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   40127     echo "$ac_cs_version"; exit ;;
   40128   --debug | --debu | --deb | --de | --d | -d )
   40129     debug=: ;;
   40130   --file | --fil | --fi | --f )
   40131     $ac_shift
   40132     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   40133     ac_need_defaults=false;;
   40134   --header | --heade | --head | --hea )
   40135     $ac_shift
   40136     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   40137     ac_need_defaults=false;;
   40138   --he | --h)
   40139     # Conflict between --help and --header
   40140     { echo "$as_me: error: ambiguous option: $1
   40141 Try \`$0 --help' for more information." >&2
   40142    { (exit 1); exit 1; }; };;
   40143   --help | --hel | -h )
   40144     echo "$ac_cs_usage"; exit ;;
   40145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   40146   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   40147     ac_cs_silent=: ;;
   40148 
   40149   # This is an error.
   40150   -*) { echo "$as_me: error: unrecognized option: $1
   40151 Try \`$0 --help' for more information." >&2
   40152    { (exit 1); exit 1; }; } ;;
   40153 
   40154   *) ac_config_targets="$ac_config_targets $1"
   40155      ac_need_defaults=false ;;
   40156 
   40157   esac
   40158   shift
   40159 done
   40160 
   40161 ac_configure_extra_args=
   40162 
   40163 if $ac_cs_silent; then
   40164   exec 6>/dev/null
   40165   ac_configure_extra_args="$ac_configure_extra_args --silent"
   40166 fi
   40167 
   40168 _ACEOF
   40169 cat >>$CONFIG_STATUS <<_ACEOF
   40170 if \$ac_cs_recheck; then
   40171   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   40172   CONFIG_SHELL=$SHELL
   40173   export CONFIG_SHELL
   40174   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   40175 fi
   40176 
   40177 _ACEOF
   40178 cat >>$CONFIG_STATUS <<\_ACEOF
   40179 exec 5>>config.log
   40180 {
   40181   echo
   40182   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   40183 ## Running $as_me. ##
   40184 _ASBOX
   40185   echo "$ac_log"
   40186 } >&5
   40187 
   40188 _ACEOF
   40189 cat >>$CONFIG_STATUS <<_ACEOF
   40190 _ACEOF
   40191 
   40192 cat >>$CONFIG_STATUS <<\_ACEOF
   40193 
   40194 # Handling of arguments.
   40195 for ac_config_target in $ac_config_targets
   40196 do
   40197   case $ac_config_target in
   40198     "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
   40199 
   40200   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   40201 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   40202    { (exit 1); exit 1; }; };;
   40203   esac
   40204 done
   40205 
   40206 
   40207 # If the user did not use the arguments to specify the items to instantiate,
   40208 # then the envvar interface is used.  Set only those that are not.
   40209 # We use the long form for the default assignment because of an extremely
   40210 # bizarre bug on SunOS 4.1.3.
   40211 if $ac_need_defaults; then
   40212   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   40213   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   40214 fi
   40215 
   40216 # Have a temporary directory for convenience.  Make it in the build tree
   40217 # simply because there is no reason against having it here, and in addition,
   40218 # creating and moving files from /tmp can sometimes cause problems.
   40219 # Hook for its removal unless debugging.
   40220 # Note that there is a small window in which the directory will not be cleaned:
   40221 # after its creation but before its name has been assigned to `$tmp'.
   40222 $debug ||
   40223 {
   40224   tmp=
   40225   trap 'exit_status=$?
   40226   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   40227 ' 0
   40228   trap '{ (exit 1); exit 1; }' 1 2 13 15
   40229 }
   40230 # Create a (secure) tmp directory for tmp files.
   40231 
   40232 {
   40233   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   40234   test -n "$tmp" && test -d "$tmp"
   40235 }  ||
   40236 {
   40237   tmp=./conf$$-$RANDOM
   40238   (umask 077 && mkdir "$tmp")
   40239 } ||
   40240 {
   40241    echo "$me: cannot create a temporary directory in ." >&2
   40242    { (exit 1); exit 1; }
   40243 }
   40244 
   40245 #
   40246 # Set up the sed scripts for CONFIG_FILES section.
   40247 #
   40248 
   40249 # No need to generate the scripts if there are no CONFIG_FILES.
   40250 # This happens for instance when ./config.status config.h
   40251 if test -n "$CONFIG_FILES"; then
   40252 
   40253 _ACEOF
   40254 
   40255 
   40256 
   40257 ac_delim='%!_!# '
   40258 for ac_last_try in false false false false false :; do
   40259   cat >conf$$subs.sed <<_ACEOF
   40260 SHELL!$SHELL$ac_delim
   40261 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   40262 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   40263 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   40264 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   40265 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   40266 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   40267 exec_prefix!$exec_prefix$ac_delim
   40268 prefix!$prefix$ac_delim
   40269 program_transform_name!$program_transform_name$ac_delim
   40270 bindir!$bindir$ac_delim
   40271 sbindir!$sbindir$ac_delim
   40272 libexecdir!$libexecdir$ac_delim
   40273 datarootdir!$datarootdir$ac_delim
   40274 datadir!$datadir$ac_delim
   40275 sysconfdir!$sysconfdir$ac_delim
   40276 sharedstatedir!$sharedstatedir$ac_delim
   40277 localstatedir!$localstatedir$ac_delim
   40278 includedir!$includedir$ac_delim
   40279 oldincludedir!$oldincludedir$ac_delim
   40280 docdir!$docdir$ac_delim
   40281 infodir!$infodir$ac_delim
   40282 htmldir!$htmldir$ac_delim
   40283 dvidir!$dvidir$ac_delim
   40284 pdfdir!$pdfdir$ac_delim
   40285 psdir!$psdir$ac_delim
   40286 libdir!$libdir$ac_delim
   40287 localedir!$localedir$ac_delim
   40288 mandir!$mandir$ac_delim
   40289 DEFS!$DEFS$ac_delim
   40290 ECHO_C!$ECHO_C$ac_delim
   40291 ECHO_N!$ECHO_N$ac_delim
   40292 ECHO_T!$ECHO_T$ac_delim
   40293 LIBS!$LIBS$ac_delim
   40294 build_alias!$build_alias$ac_delim
   40295 host_alias!$host_alias$ac_delim
   40296 target_alias!$target_alias$ac_delim
   40297 build!$build$ac_delim
   40298 build_cpu!$build_cpu$ac_delim
   40299 build_vendor!$build_vendor$ac_delim
   40300 build_os!$build_os$ac_delim
   40301 host!$host$ac_delim
   40302 host_cpu!$host_cpu$ac_delim
   40303 host_vendor!$host_vendor$ac_delim
   40304 host_os!$host_os$ac_delim
   40305 target!$target$ac_delim
   40306 target_cpu!$target_cpu$ac_delim
   40307 target_vendor!$target_vendor$ac_delim
   40308 target_os!$target_os$ac_delim
   40309 CC!$CC$ac_delim
   40310 CFLAGS!$CFLAGS$ac_delim
   40311 LDFLAGS!$LDFLAGS$ac_delim
   40312 CPPFLAGS!$CPPFLAGS$ac_delim
   40313 ac_ct_CC!$ac_ct_CC$ac_delim
   40314 EXEEXT!$EXEEXT$ac_delim
   40315 OBJEXT!$OBJEXT$ac_delim
   40316 CXX!$CXX$ac_delim
   40317 CXXFLAGS!$CXXFLAGS$ac_delim
   40318 ac_ct_CXX!$ac_ct_CXX$ac_delim
   40319 SET_MAKE!$SET_MAKE$ac_delim
   40320 GREP!$GREP$ac_delim
   40321 EGREP!$EGREP$ac_delim
   40322 LN_S!$LN_S$ac_delim
   40323 ECHO!$ECHO$ac_delim
   40324 AR!$AR$ac_delim
   40325 RANLIB!$RANLIB$ac_delim
   40326 STRIP!$STRIP$ac_delim
   40327 CPP!$CPP$ac_delim
   40328 CXXCPP!$CXXCPP$ac_delim
   40329 F77!$F77$ac_delim
   40330 FFLAGS!$FFLAGS$ac_delim
   40331 ac_ct_F77!$ac_ct_F77$ac_delim
   40332 LIBTOOL!$LIBTOOL$ac_delim
   40333 LIBADD_DL!$LIBADD_DL$ac_delim
   40334 XMKMF!$XMKMF$ac_delim
   40335 X_CFLAGS!$X_CFLAGS$ac_delim
   40336 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
   40337 X_LIBS!$X_LIBS$ac_delim
   40338 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
   40339 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
   40340 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
   40341 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
   40342 OBJS64!$OBJS64$ac_delim
   40343 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
   40344 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
   40345 NE2K_OBJS!$NE2K_OBJS$ac_delim
   40346 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
   40347 PCI_OBJ!$PCI_OBJ$ac_delim
   40348 KERNELDIR!$KERNELDIR$ac_delim
   40349 LSMOD!$LSMOD$ac_delim
   40350 INSMOD!$INSMOD$ac_delim
   40351 RMMOD!$RMMOD$ac_delim
   40352 DEPMOD!$DEPMOD$ac_delim
   40353 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
   40354 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
   40355 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
   40356 SCSI_OBJS!$SCSI_OBJS$ac_delim
   40357 _ACEOF
   40358 
   40359   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
   40360     break
   40361   elif $ac_last_try; then
   40362     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   40363 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   40364    { (exit 1); exit 1; }; }
   40365   else
   40366     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   40367   fi
   40368 done
   40369 
   40370 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   40371 if test -n "$ac_eof"; then
   40372   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   40373   ac_eof=`expr $ac_eof + 1`
   40374 fi
   40375 
   40376 cat >>$CONFIG_STATUS <<_ACEOF
   40377 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   40378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   40379 _ACEOF
   40380 sed '
   40381 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   40382 s/^/s,@/; s/!/@,|#_!!_#|/
   40383 :n
   40384 t n
   40385 s/'"$ac_delim"'$/,g/; t
   40386 s/$/\\/; p
   40387 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   40388 ' >>$CONFIG_STATUS <conf$$subs.sed
   40389 rm -f conf$$subs.sed
   40390 cat >>$CONFIG_STATUS <<_ACEOF
   40391 CEOF$ac_eof
   40392 _ACEOF
   40393 
   40394 
   40395 ac_delim='%!_!# '
   40396 for ac_last_try in false false false false false :; do
   40397   cat >conf$$subs.sed <<_ACEOF
   40398 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
   40399 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
   40400 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
   40401 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
   40402 DISASM_VAR!$DISASM_VAR$ac_delim
   40403 READLINE_LIB!$READLINE_LIB$ac_delim
   40404 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
   40405 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
   40406 FPU_VAR!$FPU_VAR$ac_delim
   40407 CDROM_OBJS!$CDROM_OBJS$ac_delim
   40408 SB16_OBJS!$SB16_OBJS$ac_delim
   40409 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
   40410 SOUND_LINK_OPTS!$SOUND_LINK_OPTS$ac_delim
   40411 GAME_OBJS!$GAME_OBJS$ac_delim
   40412 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
   40413 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
   40414 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
   40415 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
   40416 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
   40417 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
   40418 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
   40419 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
   40420 INLINE_VAR!$INLINE_VAR$ac_delim
   40421 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
   40422 RC_CMD!$RC_CMD$ac_delim
   40423 WX_CONFIG!$WX_CONFIG$ac_delim
   40424 XPM_LIB!$XPM_LIB$ac_delim
   40425 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
   40426 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
   40427 WX_CFLAGS!$WX_CFLAGS$ac_delim
   40428 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
   40429 TOOLKIT_CXXFLAGS!$TOOLKIT_CXXFLAGS$ac_delim
   40430 WGET!$WGET$ac_delim
   40431 ENH_DBG_OBJS!$ENH_DBG_OBJS$ac_delim
   40432 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
   40433 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
   40434 PTHREAD_CC!$PTHREAD_CC$ac_delim
   40435 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
   40436 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
   40437 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
   40438 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
   40439 RFB_LIBS!$RFB_LIBS$ac_delim
   40440 GUI_OBJS!$GUI_OBJS$ac_delim
   40441 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
   40442 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
   40443 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
   40444 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
   40445 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
   40446 DASH!$DASH$ac_delim
   40447 SLASH!$SLASH$ac_delim
   40448 CXXFP!$CXXFP$ac_delim
   40449 CFP!$CFP$ac_delim
   40450 OFP!$OFP$ac_delim
   40451 MAKELIB!$MAKELIB$ac_delim
   40452 RMCOMMAND!$RMCOMMAND$ac_delim
   40453 LINK!$LINK$ac_delim
   40454 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
   40455 EXE!$EXE$ac_delim
   40456 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
   40457 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
   40458 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
   40459 CD_UP_ONE!$CD_UP_ONE$ac_delim
   40460 CD_UP_TWO!$CD_UP_TWO$ac_delim
   40461 CD_UP_THREE!$CD_UP_THREE$ac_delim
   40462 VERSION!$VERSION$ac_delim
   40463 VER_STRING!$VER_STRING$ac_delim
   40464 WIN_VER_STRING!$WIN_VER_STRING$ac_delim
   40465 REL_STRING!$REL_STRING$ac_delim
   40466 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
   40467 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
   40468 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
   40469 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
   40470 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
   40471 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
   40472 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
   40473 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
   40474 GZIP!$GZIP$ac_delim
   40475 TAR!$TAR$ac_delim
   40476 LIBOBJS!$LIBOBJS$ac_delim
   40477 LTLIBOBJS!$LTLIBOBJS$ac_delim
   40478 _ACEOF
   40479 
   40480   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
   40481     break
   40482   elif $ac_last_try; then
   40483     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   40484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   40485    { (exit 1); exit 1; }; }
   40486   else
   40487     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   40488   fi
   40489 done
   40490 
   40491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   40492 if test -n "$ac_eof"; then
   40493   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   40494   ac_eof=`expr $ac_eof + 1`
   40495 fi
   40496 
   40497 cat >>$CONFIG_STATUS <<_ACEOF
   40498 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
   40499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   40500 _ACEOF
   40501 sed '
   40502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   40503 s/^/s,@/; s/!/@,|#_!!_#|/
   40504 :n
   40505 t n
   40506 s/'"$ac_delim"'$/,g/; t
   40507 s/$/\\/; p
   40508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   40509 ' >>$CONFIG_STATUS <conf$$subs.sed
   40510 rm -f conf$$subs.sed
   40511 cat >>$CONFIG_STATUS <<_ACEOF
   40512 :end
   40513 s/|#_!!_#|//g
   40514 CEOF$ac_eof
   40515 _ACEOF
   40516 
   40517 
   40518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   40519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   40520 # trailing colons and then remove the whole line if VPATH becomes empty
   40521 # (actually we leave an empty line to preserve line numbers).
   40522 if test "x$srcdir" = x.; then
   40523   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   40524 s/:*\$(srcdir):*/:/
   40525 s/:*\${srcdir}:*/:/
   40526 s/:*@srcdir@:*/:/
   40527 s/^\([^=]*=[	 ]*\):*/\1/
   40528 s/:*$//
   40529 s/^[^=]*=[	 ]*$//
   40530 }'
   40531 fi
   40532 
   40533 cat >>$CONFIG_STATUS <<\_ACEOF
   40534 fi # test -n "$CONFIG_FILES"
   40535 
   40536 
   40537 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
   40538 do
   40539   case $ac_tag in
   40540   :[FHLC]) ac_mode=$ac_tag; continue;;
   40541   esac
   40542   case $ac_mode$ac_tag in
   40543   :[FHL]*:*);;
   40544   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   40545 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   40546    { (exit 1); exit 1; }; };;
   40547   :[FH]-) ac_tag=-:-;;
   40548   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   40549   esac
   40550   ac_save_IFS=$IFS
   40551   IFS=:
   40552   set x $ac_tag
   40553   IFS=$ac_save_IFS
   40554   shift
   40555   ac_file=$1
   40556   shift
   40557 
   40558   case $ac_mode in
   40559   :L) ac_source=$1;;
   40560   :[FH])
   40561     ac_file_inputs=
   40562     for ac_f
   40563     do
   40564       case $ac_f in
   40565       -) ac_f="$tmp/stdin";;
   40566       *) # Look for the file first in the build tree, then in the source tree
   40567 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   40568 	 # because $ac_f cannot contain `:'.
   40569 	 test -f "$ac_f" ||
   40570 	   case $ac_f in
   40571 	   [\\/$]*) false;;
   40572 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   40573 	   esac ||
   40574 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   40575 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   40576    { (exit 1); exit 1; }; };;
   40577       esac
   40578       ac_file_inputs="$ac_file_inputs $ac_f"
   40579     done
   40580 
   40581     # Let's still pretend it is `configure' which instantiates (i.e., don't
   40582     # use $as_me), people would be surprised to read:
   40583     #    /* config.h.  Generated by config.status.  */
   40584     configure_input="Generated from "`IFS=:
   40585 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   40586     if test x"$ac_file" != x-; then
   40587       configure_input="$ac_file.  $configure_input"
   40588       { echo "$as_me:$LINENO: creating $ac_file" >&5
   40589 echo "$as_me: creating $ac_file" >&6;}
   40590     fi
   40591 
   40592     case $ac_tag in
   40593     *:-:* | *:-) cat >"$tmp/stdin";;
   40594     esac
   40595     ;;
   40596   esac
   40597 
   40598   ac_dir=`$as_dirname -- "$ac_file" ||
   40599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   40600 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   40601 	 X"$ac_file" : 'X\(//\)$' \| \
   40602 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   40603 echo X"$ac_file" |
   40604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   40605 	    s//\1/
   40606 	    q
   40607 	  }
   40608 	  /^X\(\/\/\)[^/].*/{
   40609 	    s//\1/
   40610 	    q
   40611 	  }
   40612 	  /^X\(\/\/\)$/{
   40613 	    s//\1/
   40614 	    q
   40615 	  }
   40616 	  /^X\(\/\).*/{
   40617 	    s//\1/
   40618 	    q
   40619 	  }
   40620 	  s/.*/./; q'`
   40621   { as_dir="$ac_dir"
   40622   case $as_dir in #(
   40623   -*) as_dir=./$as_dir;;
   40624   esac
   40625   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   40626     as_dirs=
   40627     while :; do
   40628       case $as_dir in #(
   40629       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   40630       *) as_qdir=$as_dir;;
   40631       esac
   40632       as_dirs="'$as_qdir' $as_dirs"
   40633       as_dir=`$as_dirname -- "$as_dir" ||
   40634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   40635 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   40636 	 X"$as_dir" : 'X\(//\)$' \| \
   40637 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   40638 echo X"$as_dir" |
   40639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   40640 	    s//\1/
   40641 	    q
   40642 	  }
   40643 	  /^X\(\/\/\)[^/].*/{
   40644 	    s//\1/
   40645 	    q
   40646 	  }
   40647 	  /^X\(\/\/\)$/{
   40648 	    s//\1/
   40649 	    q
   40650 	  }
   40651 	  /^X\(\/\).*/{
   40652 	    s//\1/
   40653 	    q
   40654 	  }
   40655 	  s/.*/./; q'`
   40656       test -d "$as_dir" && break
   40657     done
   40658     test -z "$as_dirs" || eval "mkdir $as_dirs"
   40659   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   40660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   40661    { (exit 1); exit 1; }; }; }
   40662   ac_builddir=.
   40663 
   40664 case "$ac_dir" in
   40665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   40666 *)
   40667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   40668   # A ".." for each directory in $ac_dir_suffix.
   40669   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   40670   case $ac_top_builddir_sub in
   40671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   40672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   40673   esac ;;
   40674 esac
   40675 ac_abs_top_builddir=$ac_pwd
   40676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   40677 # for backward compatibility:
   40678 ac_top_builddir=$ac_top_build_prefix
   40679 
   40680 case $srcdir in
   40681   .)  # We are building in place.
   40682     ac_srcdir=.
   40683     ac_top_srcdir=$ac_top_builddir_sub
   40684     ac_abs_top_srcdir=$ac_pwd ;;
   40685   [\\/]* | ?:[\\/]* )  # Absolute name.
   40686     ac_srcdir=$srcdir$ac_dir_suffix;
   40687     ac_top_srcdir=$srcdir
   40688     ac_abs_top_srcdir=$srcdir ;;
   40689   *) # Relative name.
   40690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   40691     ac_top_srcdir=$ac_top_build_prefix$srcdir
   40692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   40693 esac
   40694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   40695 
   40696 
   40697   case $ac_mode in
   40698   :F)
   40699   #
   40700   # CONFIG_FILE
   40701   #
   40702 
   40703 _ACEOF
   40704 
   40705 cat >>$CONFIG_STATUS <<\_ACEOF
   40706 # If the template does not know about datarootdir, expand it.
   40707 # FIXME: This hack should be removed a few years after 2.60.
   40708 ac_datarootdir_hack=; ac_datarootdir_seen=
   40709 
   40710 case `sed -n '/datarootdir/ {
   40711   p
   40712   q
   40713 }
   40714 /@datadir@/p
   40715 /@docdir@/p
   40716 /@infodir@/p
   40717 /@localedir@/p
   40718 /@mandir@/p
   40719 ' $ac_file_inputs` in
   40720 *datarootdir*) ac_datarootdir_seen=yes;;
   40721 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   40722   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   40723 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   40724 _ACEOF
   40725 cat >>$CONFIG_STATUS <<_ACEOF
   40726   ac_datarootdir_hack='
   40727   s&@datadir@&$datadir&g
   40728   s&@docdir@&$docdir&g
   40729   s&@infodir@&$infodir&g
   40730   s&@localedir@&$localedir&g
   40731   s&@mandir@&$mandir&g
   40732     s&\\\${datarootdir}&$datarootdir&g' ;;
   40733 esac
   40734 _ACEOF
   40735 
   40736 # Neutralize VPATH when `$srcdir' = `.'.
   40737 # Shell code in configure.ac might set extrasub.
   40738 # FIXME: do we really want to maintain this feature?
   40739 cat >>$CONFIG_STATUS <<_ACEOF
   40740   sed "$ac_vpsub
   40741 $extrasub
   40742 _ACEOF
   40743 cat >>$CONFIG_STATUS <<\_ACEOF
   40744 :t
   40745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   40746 s&@configure_input@&$configure_input&;t t
   40747 s&@top_builddir@&$ac_top_builddir_sub&;t t
   40748 s&@srcdir@&$ac_srcdir&;t t
   40749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   40750 s&@top_srcdir@&$ac_top_srcdir&;t t
   40751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   40752 s&@builddir@&$ac_builddir&;t t
   40753 s&@abs_builddir@&$ac_abs_builddir&;t t
   40754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   40755 $ac_datarootdir_hack
   40756 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
   40757 
   40758 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   40759   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   40760   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   40761   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   40762 which seems to be undefined.  Please make sure it is defined." >&5
   40763 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   40764 which seems to be undefined.  Please make sure it is defined." >&2;}
   40765 
   40766   rm -f "$tmp/stdin"
   40767   case $ac_file in
   40768   -) cat "$tmp/out"; rm -f "$tmp/out";;
   40769   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   40770   esac
   40771  ;;
   40772   :H)
   40773   #
   40774   # CONFIG_HEADER
   40775   #
   40776 _ACEOF
   40777 
   40778 # Transform confdefs.h into a sed script `conftest.defines', that
   40779 # substitutes the proper values into config.h.in to produce config.h.
   40780 rm -f conftest.defines conftest.tail
   40781 # First, append a space to every undef/define line, to ease matching.
   40782 echo 's/$/ /' >conftest.defines
   40783 # Then, protect against being on the right side of a sed subst, or in
   40784 # an unquoted here document, in config.status.  If some macros were
   40785 # called several times there might be several #defines for the same
   40786 # symbol, which is useless.  But do not sort them, since the last
   40787 # AC_DEFINE must be honored.
   40788 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   40789 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   40790 # NAME is the cpp macro being defined, VALUE is the value it is being given.
   40791 # PARAMS is the parameter list in the macro definition--in most cases, it's
   40792 # just an empty string.
   40793 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   40794 ac_dB='\\)[	 (].*,\\1define\\2'
   40795 ac_dC=' '
   40796 ac_dD=' ,'
   40797 
   40798 uniq confdefs.h |
   40799   sed -n '
   40800 	t rset
   40801 	:rset
   40802 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   40803 	t ok
   40804 	d
   40805 	:ok
   40806 	s/[\\&,]/\\&/g
   40807 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   40808 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   40809   ' >>conftest.defines
   40810 
   40811 # Remove the space that was appended to ease matching.
   40812 # Then replace #undef with comments.  This is necessary, for
   40813 # example, in the case of _POSIX_SOURCE, which is predefined and required
   40814 # on some systems where configure will not decide to define it.
   40815 # (The regexp can be short, since the line contains either #define or #undef.)
   40816 echo 's/ $//
   40817 s,^[	 #]*u.*,/* & */,' >>conftest.defines
   40818 
   40819 # Break up conftest.defines:
   40820 ac_max_sed_lines=50
   40821 
   40822 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
   40823 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
   40824 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
   40825 # et cetera.
   40826 ac_in='$ac_file_inputs'
   40827 ac_out='"$tmp/out1"'
   40828 ac_nxt='"$tmp/out2"'
   40829 
   40830 while :
   40831 do
   40832   # Write a here document:
   40833     cat >>$CONFIG_STATUS <<_ACEOF
   40834     # First, check the format of the line:
   40835     cat >"\$tmp/defines.sed" <<\\CEOF
   40836 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
   40837 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
   40838 b
   40839 :def
   40840 _ACEOF
   40841   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   40842   echo 'CEOF
   40843     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   40844   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   40845   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   40846   grep . conftest.tail >/dev/null || break
   40847   rm -f conftest.defines
   40848   mv conftest.tail conftest.defines
   40849 done
   40850 rm -f conftest.defines conftest.tail
   40851 
   40852 echo "ac_result=$ac_in" >>$CONFIG_STATUS
   40853 cat >>$CONFIG_STATUS <<\_ACEOF
   40854   if test x"$ac_file" != x-; then
   40855     echo "/* $configure_input  */" >"$tmp/config.h"
   40856     cat "$ac_result" >>"$tmp/config.h"
   40857     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   40858       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   40859 echo "$as_me: $ac_file is unchanged" >&6;}
   40860     else
   40861       rm -f $ac_file
   40862       mv "$tmp/config.h" $ac_file
   40863     fi
   40864   else
   40865     echo "/* $configure_input  */"
   40866     cat "$ac_result"
   40867   fi
   40868   rm -f "$tmp/out12"
   40869  ;;
   40870 
   40871 
   40872   esac
   40873 
   40874 done # for ac_tag
   40875 
   40876 
   40877 { (exit 0); exit 0; }
   40878 _ACEOF
   40879 chmod +x $CONFIG_STATUS
   40880 ac_clean_files=$ac_clean_files_save
   40881 
   40882 
   40883 # configure is writing to config.log, and then calls config.status.
   40884 # config.status does its own redirection, appending to config.log.
   40885 # Unfortunately, on DOS this fails, as config.log is still kept open
   40886 # by configure, so config.status won't be able to write to it; its
   40887 # output is simply discarded.  So we exec the FD to /dev/null,
   40888 # effectively closing config.log, so it can be properly (re)opened and
   40889 # appended to by config.status.  When coming back to configure, we
   40890 # need to make the FD available again.
   40891 if test "$no_create" != yes; then
   40892   ac_cs_success=:
   40893   ac_config_status_args=
   40894   test "$silent" = yes &&
   40895     ac_config_status_args="$ac_config_status_args --quiet"
   40896   exec 5>/dev/null
   40897   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   40898   exec 5>>config.log
   40899   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   40900   # would make configure fail if this is the last instruction.
   40901   $ac_cs_success || { (exit 1); exit 1; }
   40902 fi
   40903 
   40904