"Fossies" - the Fresh Open Source Software Archive

Member "SAOImageDS9/tkimg/dted/configure" (13 Nov 2019, 309095 Bytes) of package /linux/misc/ds9.8.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for tkimgdted 1.4.9.
    4 #
    5 #
    6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    7 #
    8 #
    9 # This configure script is free software; the Free Software Foundation
   10 # gives unlimited permission to copy, distribute and modify it.
   11 ## -------------------- ##
   12 ## M4sh Initialization. ##
   13 ## -------------------- ##
   14 
   15 # Be more Bourne compatible
   16 DUALCASE=1; export DUALCASE # for MKS sh
   17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   18   emulate sh
   19   NULLCMD=:
   20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21   # is contrary to our usage.  Disable this feature.
   22   alias -g '${1+"$@"}'='"$@"'
   23   setopt NO_GLOB_SUBST
   24 else
   25   case `(set -o) 2>/dev/null` in #(
   26   *posix*) :
   27     set -o posix ;; #(
   28   *) :
   29      ;;
   30 esac
   31 fi
   32 
   33 
   34 as_nl='
   35 '
   36 export as_nl
   37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   41 # Prefer a ksh shell builtin over an external printf program on Solaris,
   42 # but without wasting forks for bash or zsh.
   43 if test -z "$BASH_VERSION$ZSH_VERSION" \
   44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   45   as_echo='print -r --'
   46   as_echo_n='print -rn --'
   47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   48   as_echo='printf %s\n'
   49   as_echo_n='printf %s'
   50 else
   51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   53     as_echo_n='/usr/ucb/echo -n'
   54   else
   55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   56     as_echo_n_body='eval
   57       arg=$1;
   58       case $arg in #(
   59       *"$as_nl"*)
   60     expr "X$arg" : "X\\(.*\\)$as_nl";
   61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   62       esac;
   63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   64     '
   65     export as_echo_n_body
   66     as_echo_n='sh -c $as_echo_n_body as_echo'
   67   fi
   68   export as_echo_body
   69   as_echo='sh -c $as_echo_body as_echo'
   70 fi
   71 
   72 # The user is always right.
   73 if test "${PATH_SEPARATOR+set}" != set; then
   74   PATH_SEPARATOR=:
   75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   77       PATH_SEPARATOR=';'
   78   }
   79 fi
   80 
   81 
   82 # IFS
   83 # We need space, tab and new line, in precisely that order.  Quoting is
   84 # there to prevent editors from complaining about space-tab.
   85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   86 # splitting by setting IFS to empty value.)
   87 IFS=" ""    $as_nl"
   88 
   89 # Find who we are.  Look in the path if we contain no directory separator.
   90 as_myself=
   91 case $0 in #((
   92   *[\\/]* ) as_myself=$0 ;;
   93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   94 for as_dir in $PATH
   95 do
   96   IFS=$as_save_IFS
   97   test -z "$as_dir" && as_dir=.
   98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   99   done
  100 IFS=$as_save_IFS
  101 
  102      ;;
  103 esac
  104 # We did not find ourselves, most probably we were run as `sh COMMAND'
  105 # in which case we are not to be found in the path.
  106 if test "x$as_myself" = x; then
  107   as_myself=$0
  108 fi
  109 if test ! -f "$as_myself"; then
  110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111   exit 1
  112 fi
  113 
  114 # Unset variables that we do not need and which cause bugs (e.g. in
  115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  116 # suppresses any "Segmentation fault" message there.  '((' could
  117 # trigger a bug in pdksh 5.2.14.
  118 for as_var in BASH_ENV ENV MAIL MAILPATH
  119 do eval test x\${$as_var+set} = xset \
  120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121 done
  122 PS1='$ '
  123 PS2='> '
  124 PS4='+ '
  125 
  126 # NLS nuisances.
  127 LC_ALL=C
  128 export LC_ALL
  129 LANGUAGE=C
  130 export LANGUAGE
  131 
  132 # CDPATH.
  133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134 
  135 # Use a proper internal environment variable to ensure we don't fall
  136   # into an infinite loop, continuously re-executing ourselves.
  137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138     _as_can_reexec=no; export _as_can_reexec;
  139     # We cannot yet assume a decent shell, so we have to provide a
  140 # neutralization value for shells without unset; and this also
  141 # works around shells that cannot unset nonexistent variables.
  142 # Preserve -v and -x to the replacement shell.
  143 BASH_ENV=/dev/null
  144 ENV=/dev/null
  145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146 case $- in # ((((
  147   *v*x* | *x*v* ) as_opts=-vx ;;
  148   *v* ) as_opts=-v ;;
  149   *x* ) as_opts=-x ;;
  150   * ) as_opts= ;;
  151 esac
  152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153 # Admittedly, this is quite paranoid, since all the known shells bail
  154 # out after a failed `exec'.
  155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156 as_fn_exit 255
  157   fi
  158   # We don't want this to propagate to other subprocesses.
  159           { _as_can_reexec=; unset _as_can_reexec;}
  160 if test "x$CONFIG_SHELL" = x; then
  161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162   emulate sh
  163   NULLCMD=:
  164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165   # is contrary to our usage.  Disable this feature.
  166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167   setopt NO_GLOB_SUBST
  168 else
  169   case \`(set -o) 2>/dev/null\` in #(
  170   *posix*) :
  171     set -o posix ;; #(
  172   *) :
  173      ;;
  174 esac
  175 fi
  176 "
  177   as_required="as_fn_return () { (exit \$1); }
  178 as_fn_success () { as_fn_return 0; }
  179 as_fn_failure () { as_fn_return 1; }
  180 as_fn_ret_success () { return 0; }
  181 as_fn_ret_failure () { return 1; }
  182 
  183 exitcode=0
  184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189 
  190 else
  191   exitcode=1; echo positional parameters were not saved.
  192 fi
  193 test x\$exitcode = x0 || exit 1
  194 test -x / || exit 1"
  195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199 test \$(( 1 + 1 )) = 2 || exit 1"
  200   if (eval "$as_required") 2>/dev/null; then :
  201   as_have_required=yes
  202 else
  203   as_have_required=no
  204 fi
  205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206 
  207 else
  208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209 as_found=false
  210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211 do
  212   IFS=$as_save_IFS
  213   test -z "$as_dir" && as_dir=.
  214   as_found=:
  215   case $as_dir in #(
  216      /*)
  217        for as_base in sh bash ksh sh5; do
  218          # Try only shells that exist, to save several forks.
  219          as_shell=$as_dir/$as_base
  220          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222   CONFIG_SHELL=$as_shell as_have_required=yes
  223            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224   break 2
  225 fi
  226 fi
  227        done;;
  228        esac
  229   as_found=false
  230 done
  231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233   CONFIG_SHELL=$SHELL as_have_required=yes
  234 fi; }
  235 IFS=$as_save_IFS
  236 
  237 
  238       if test "x$CONFIG_SHELL" != x; then :
  239   export CONFIG_SHELL
  240              # We cannot yet assume a decent shell, so we have to provide a
  241 # neutralization value for shells without unset; and this also
  242 # works around shells that cannot unset nonexistent variables.
  243 # Preserve -v and -x to the replacement shell.
  244 BASH_ENV=/dev/null
  245 ENV=/dev/null
  246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247 case $- in # ((((
  248   *v*x* | *x*v* ) as_opts=-vx ;;
  249   *v* ) as_opts=-v ;;
  250   *x* ) as_opts=-x ;;
  251   * ) as_opts= ;;
  252 esac
  253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  254 # Admittedly, this is quite paranoid, since all the known shells bail
  255 # out after a failed `exec'.
  256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257 exit 255
  258 fi
  259 
  260     if test x$as_have_required = xno; then :
  261   $as_echo "$0: This script requires a shell more modern than all"
  262   $as_echo "$0: the shells that I found on your system."
  263   if test x${ZSH_VERSION+set} = xset ; then
  264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266   else
  267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  268 $0: including any error possibly output before this
  269 $0: message. Then install a modern shell, or manually run
  270 $0: the script under such a shell if you do have one."
  271   fi
  272   exit 1
  273 fi
  274 fi
  275 fi
  276 SHELL=${CONFIG_SHELL-/bin/sh}
  277 export SHELL
  278 # Unset more variables known to interfere with behavior of common tools.
  279 CLICOLOR_FORCE= GREP_OPTIONS=
  280 unset CLICOLOR_FORCE GREP_OPTIONS
  281 
  282 ## --------------------- ##
  283 ## M4sh Shell Functions. ##
  284 ## --------------------- ##
  285 # as_fn_unset VAR
  286 # ---------------
  287 # Portably unset VAR.
  288 as_fn_unset ()
  289 {
  290   { eval $1=; unset $1;}
  291 }
  292 as_unset=as_fn_unset
  293 
  294 # as_fn_set_status STATUS
  295 # -----------------------
  296 # Set $? to STATUS, without forking.
  297 as_fn_set_status ()
  298 {
  299   return $1
  300 } # as_fn_set_status
  301 
  302 # as_fn_exit STATUS
  303 # -----------------
  304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305 as_fn_exit ()
  306 {
  307   set +e
  308   as_fn_set_status $1
  309   exit $1
  310 } # as_fn_exit
  311 
  312 # as_fn_mkdir_p
  313 # -------------
  314 # Create "$as_dir" as a directory, including parents if necessary.
  315 as_fn_mkdir_p ()
  316 {
  317 
  318   case $as_dir in #(
  319   -*) as_dir=./$as_dir;;
  320   esac
  321   test -d "$as_dir" || eval $as_mkdir_p || {
  322     as_dirs=
  323     while :; do
  324       case $as_dir in #(
  325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326       *) as_qdir=$as_dir;;
  327       esac
  328       as_dirs="'$as_qdir' $as_dirs"
  329       as_dir=`$as_dirname -- "$as_dir" ||
  330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331      X"$as_dir" : 'X\(//\)[^/]' \| \
  332      X"$as_dir" : 'X\(//\)$' \| \
  333      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334 $as_echo X"$as_dir" |
  335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336         s//\1/
  337         q
  338       }
  339       /^X\(\/\/\)[^/].*/{
  340         s//\1/
  341         q
  342       }
  343       /^X\(\/\/\)$/{
  344         s//\1/
  345         q
  346       }
  347       /^X\(\/\).*/{
  348         s//\1/
  349         q
  350       }
  351       s/.*/./; q'`
  352       test -d "$as_dir" && break
  353     done
  354     test -z "$as_dirs" || eval "mkdir $as_dirs"
  355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356 
  357 
  358 } # as_fn_mkdir_p
  359 
  360 # as_fn_executable_p FILE
  361 # -----------------------
  362 # Test if FILE is an executable regular file.
  363 as_fn_executable_p ()
  364 {
  365   test -f "$1" && test -x "$1"
  366 } # as_fn_executable_p
  367 # as_fn_append VAR VALUE
  368 # ----------------------
  369 # Append the text in VALUE to the end of the definition contained in VAR. Take
  370 # advantage of any shell optimizations that allow amortized linear growth over
  371 # repeated appends, instead of the typical quadratic growth present in naive
  372 # implementations.
  373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374   eval 'as_fn_append ()
  375   {
  376     eval $1+=\$2
  377   }'
  378 else
  379   as_fn_append ()
  380   {
  381     eval $1=\$$1\$2
  382   }
  383 fi # as_fn_append
  384 
  385 # as_fn_arith ARG...
  386 # ------------------
  387 # Perform arithmetic evaluation on the ARGs, and store the result in the
  388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389 # must be portable across $(()) and expr.
  390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391   eval 'as_fn_arith ()
  392   {
  393     as_val=$(( $* ))
  394   }'
  395 else
  396   as_fn_arith ()
  397   {
  398     as_val=`expr "$@" || test $? -eq 1`
  399   }
  400 fi # as_fn_arith
  401 
  402 
  403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404 # ----------------------------------------
  405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407 # script with STATUS, using 1 if that was 0.
  408 as_fn_error ()
  409 {
  410   as_status=$1; test $as_status -eq 0 && as_status=1
  411   if test "$4"; then
  412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414   fi
  415   $as_echo "$as_me: error: $2" >&2
  416   as_fn_exit $as_status
  417 } # as_fn_error
  418 
  419 if expr a : '\(a\)' >/dev/null 2>&1 &&
  420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421   as_expr=expr
  422 else
  423   as_expr=false
  424 fi
  425 
  426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427   as_basename=basename
  428 else
  429   as_basename=false
  430 fi
  431 
  432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433   as_dirname=dirname
  434 else
  435   as_dirname=false
  436 fi
  437 
  438 as_me=`$as_basename -- "$0" ||
  439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440      X"$0" : 'X\(//\)$' \| \
  441      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442 $as_echo X/"$0" |
  443     sed '/^.*\/\([^/][^/]*\)\/*$/{
  444         s//\1/
  445         q
  446       }
  447       /^X\/\(\/\/\)$/{
  448         s//\1/
  449         q
  450       }
  451       /^X\/\(\/\).*/{
  452         s//\1/
  453         q
  454       }
  455       s/.*/./; q'`
  456 
  457 # Avoid depending upon Character Ranges.
  458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461 as_cr_digits='0123456789'
  462 as_cr_alnum=$as_cr_Letters$as_cr_digits
  463 
  464 
  465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  470   sed -n '
  471     p
  472     /[$]LINENO/=
  473   ' <$as_myself |
  474     sed '
  475       s/[$]LINENO.*/&-/
  476       t lineno
  477       b
  478       :lineno
  479       N
  480       :loop
  481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482       t loop
  483       s/-\n.*//
  484     ' >$as_me.lineno &&
  485   chmod +x "$as_me.lineno" ||
  486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487 
  488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489   # already done that, so ensure we don't try to do so again and fall
  490   # in an infinite loop.  This has already happened in practice.
  491   _as_can_reexec=no; export _as_can_reexec
  492   # Don't try to exec as it changes $[0], causing all sort of problems
  493   # (the dirname of $[0] is not the place where we might find the
  494   # original and so on.  Autoconf is especially sensitive to this).
  495   . "./$as_me.lineno"
  496   # Exit status is that of the last command.
  497   exit
  498 }
  499 
  500 ECHO_C= ECHO_N= ECHO_T=
  501 case `echo -n x` in #(((((
  502 -n*)
  503   case `echo 'xy\c'` in
  504   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  505   xy)  ECHO_C='\c';;
  506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507        ECHO_T=' ';;
  508   esac;;
  509 *)
  510   ECHO_N='-n';;
  511 esac
  512 
  513 rm -f conf$$ conf$$.exe conf$$.file
  514 if test -d conf$$.dir; then
  515   rm -f conf$$.dir/conf$$.file
  516 else
  517   rm -f conf$$.dir
  518   mkdir conf$$.dir 2>/dev/null
  519 fi
  520 if (echo >conf$$.file) 2>/dev/null; then
  521   if ln -s conf$$.file conf$$ 2>/dev/null; then
  522     as_ln_s='ln -s'
  523     # ... but there are two gotchas:
  524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526     # In both cases, we have to default to `cp -pR'.
  527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528       as_ln_s='cp -pR'
  529   elif ln conf$$.file conf$$ 2>/dev/null; then
  530     as_ln_s=ln
  531   else
  532     as_ln_s='cp -pR'
  533   fi
  534 else
  535   as_ln_s='cp -pR'
  536 fi
  537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538 rmdir conf$$.dir 2>/dev/null
  539 
  540 if mkdir -p . 2>/dev/null; then
  541   as_mkdir_p='mkdir -p "$as_dir"'
  542 else
  543   test -d ./-p && rmdir ./-p
  544   as_mkdir_p=false
  545 fi
  546 
  547 as_test_x='test -x'
  548 as_executable_p=as_fn_executable_p
  549 
  550 # Sed expression to map a string onto a valid CPP name.
  551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552 
  553 # Sed expression to map a string onto a valid variable name.
  554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555 
  556 
  557 test -n "$DJDIR" || exec 7<&0 </dev/null
  558 exec 6>&1
  559 
  560 # Name of the host.
  561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  562 # so uname gets run too.
  563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  564 
  565 #
  566 # Initializations.
  567 #
  568 ac_default_prefix=/usr/local
  569 ac_clean_files=
  570 ac_config_libobj_dir=.
  571 LIBOBJS=
  572 cross_compiling=no
  573 subdirs=
  574 MFLAGS=
  575 MAKEFLAGS=
  576 
  577 # Identity of this package.
  578 PACKAGE_NAME='tkimgdted'
  579 PACKAGE_TARNAME='tkimgdted'
  580 PACKAGE_VERSION='1.4.9'
  581 PACKAGE_STRING='tkimgdted 1.4.9'
  582 PACKAGE_BUGREPORT=''
  583 PACKAGE_URL=''
  584 
  585 # Factoring default headers for most tests.
  586 ac_includes_default="\
  587 #include <stdio.h>
  588 #ifdef HAVE_SYS_TYPES_H
  589 # include <sys/types.h>
  590 #endif
  591 #ifdef HAVE_SYS_STAT_H
  592 # include <sys/stat.h>
  593 #endif
  594 #ifdef STDC_HEADERS
  595 # include <stdlib.h>
  596 # include <stddef.h>
  597 #else
  598 # ifdef HAVE_STDLIB_H
  599 #  include <stdlib.h>
  600 # endif
  601 #endif
  602 #ifdef HAVE_STRING_H
  603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  604 #  include <memory.h>
  605 # endif
  606 # include <string.h>
  607 #endif
  608 #ifdef HAVE_STRINGS_H
  609 # include <strings.h>
  610 #endif
  611 #ifdef HAVE_INTTYPES_H
  612 # include <inttypes.h>
  613 #endif
  614 #ifdef HAVE_STDINT_H
  615 # include <stdint.h>
  616 #endif
  617 #ifdef HAVE_UNISTD_H
  618 # include <unistd.h>
  619 #endif"
  620 
  621 ac_subst_vars='LTLIBOBJS
  622 LIBOBJS
  623 WISH_PROG
  624 TCLSH_PROG
  625 VC_MANIFEST_EMBED_EXE
  626 VC_MANIFEST_EMBED_DLL
  627 RANLIB_STUB
  628 MAKE_STUB_LIB
  629 MAKE_STATIC_LIB
  630 MAKE_SHARED_LIB
  631 MAKE_LIB
  632 XMKMF
  633 TCL_DBGX
  634 LDFLAGS_DEFAULT
  635 CFLAGS_DEFAULT
  636 LD_LIBRARY_PATH_VAR
  637 SHLIB_CFLAGS
  638 SHLIB_LD_LIBS
  639 SHLIB_LD
  640 STLIB_LD
  641 CFLAGS_WARNING
  642 CFLAGS_OPTIMIZE
  643 CFLAGS_DEBUG
  644 RC
  645 CELIB_DIR
  646 AR
  647 SHARED_BUILD
  648 TCL_THREADS
  649 TK_INCLUDES
  650 TCL_INCLUDES
  651 PKG_OBJECTS
  652 PKG_SOURCES
  653 tkimg_BUILD_PATH
  654 tkimg_SRC_PATH
  655 tkimg_STUB_LIB_PATH
  656 tkimg_STUB_LIB_SPEC
  657 tkimg_STUB_LIB_FILE
  658 tkimg_LIB_SPEC
  659 tkimg_LIB_FILE
  660 tkimg_SRC_DIR
  661 tkimg_BIN_DIR
  662 tkimg_VERSION
  663 MATH_LIBS
  664 EGREP
  665 GREP
  666 RANLIB
  667 SET_MAKE
  668 INSTALL_LIBRARY
  669 INSTALL_SCRIPT
  670 INSTALL_PROGRAM
  671 INSTALL_DATA
  672 INSTALL_DATA_DIR
  673 INSTALL
  674 CPP
  675 TK_XINCLUDES
  676 TK_LIBS
  677 TK_STUB_LIB_SPEC
  678 TK_STUB_LIB_FLAG
  679 TK_STUB_LIB_FILE
  680 TK_LIB_SPEC
  681 TK_LIB_FLAG
  682 TK_LIB_FILE
  683 TK_SRC_DIR
  684 TK_BIN_DIR
  685 TK_VERSION
  686 TCL_SHLIB_LD_LIBS
  687 TCL_LD_FLAGS
  688 TCL_EXTRA_CFLAGS
  689 TCL_DEFS
  690 TCL_LIBS
  691 CLEANFILES
  692 OBJEXT
  693 ac_ct_CC
  694 CPPFLAGS
  695 LDFLAGS
  696 CFLAGS
  697 CC
  698 TCL_STUB_LIB_SPEC
  699 TCL_STUB_LIB_FLAG
  700 TCL_STUB_LIB_FILE
  701 TCL_LIB_SPEC
  702 TCL_LIB_FLAG
  703 TCL_LIB_FILE
  704 TCL_SRC_DIR
  705 TCL_BIN_DIR
  706 TCL_PATCH_LEVEL
  707 TCL_VERSION
  708 PACKAGE_TCLNAME
  709 PHIMGTYPE
  710 PKG_CFLAGS
  711 PKG_LIBS
  712 PKG_INCLUDES
  713 PKG_HEADERS
  714 PKG_TCL_SOURCES
  715 PKG_STUB_OBJECTS
  716 PKG_STUB_SOURCES
  717 PKG_STUB_LIB_FILE
  718 PKG_LIB_FILE
  719 EXEEXT
  720 CYGPATH
  721 target_alias
  722 host_alias
  723 build_alias
  724 LIBS
  725 ECHO_T
  726 ECHO_N
  727 ECHO_C
  728 DEFS
  729 mandir
  730 localedir
  731 libdir
  732 psdir
  733 pdfdir
  734 dvidir
  735 htmldir
  736 infodir
  737 docdir
  738 oldincludedir
  739 includedir
  740 localstatedir
  741 sharedstatedir
  742 sysconfdir
  743 datadir
  744 datarootdir
  745 libexecdir
  746 sbindir
  747 bindir
  748 program_transform_name
  749 prefix
  750 exec_prefix
  751 PACKAGE_URL
  752 PACKAGE_BUGREPORT
  753 PACKAGE_STRING
  754 PACKAGE_VERSION
  755 PACKAGE_TARNAME
  756 PACKAGE_NAME
  757 PATH_SEPARATOR
  758 SHELL'
  759 ac_subst_files=''
  760 ac_user_opts='
  761 enable_option_checking
  762 with_tcl
  763 with_tk
  764 with_tkimg
  765 with_tclinclude
  766 with_tkinclude
  767 enable_threads
  768 enable_shared
  769 enable_64bit
  770 enable_64bit_vis
  771 enable_rpath
  772 enable_wince
  773 with_celib
  774 enable_symbols
  775 with_x
  776 '
  777       ac_precious_vars='build_alias
  778 host_alias
  779 target_alias
  780 CC
  781 CFLAGS
  782 LDFLAGS
  783 LIBS
  784 CPPFLAGS
  785 CPP
  786 XMKMF'
  787 
  788 
  789 # Initialize some variables set by options.
  790 ac_init_help=
  791 ac_init_version=false
  792 ac_unrecognized_opts=
  793 ac_unrecognized_sep=
  794 # The variables have the same names as the options, with
  795 # dashes changed to underlines.
  796 cache_file=/dev/null
  797 exec_prefix=NONE
  798 no_create=
  799 no_recursion=
  800 prefix=NONE
  801 program_prefix=NONE
  802 program_suffix=NONE
  803 program_transform_name=s,x,x,
  804 silent=
  805 site=
  806 srcdir=
  807 verbose=
  808 x_includes=NONE
  809 x_libraries=NONE
  810 
  811 # Installation directory options.
  812 # These are left unexpanded so users can "make install exec_prefix=/foo"
  813 # and all the variables that are supposed to be based on exec_prefix
  814 # by default will actually change.
  815 # Use braces instead of parens because sh, perl, etc. also accept them.
  816 # (The list follows the same order as the GNU Coding Standards.)
  817 bindir='${exec_prefix}/bin'
  818 sbindir='${exec_prefix}/sbin'
  819 libexecdir='${exec_prefix}/libexec'
  820 datarootdir='${prefix}/share'
  821 datadir='${datarootdir}'
  822 sysconfdir='${prefix}/etc'
  823 sharedstatedir='${prefix}/com'
  824 localstatedir='${prefix}/var'
  825 includedir='${prefix}/include'
  826 oldincludedir='/usr/include'
  827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  828 infodir='${datarootdir}/info'
  829 htmldir='${docdir}'
  830 dvidir='${docdir}'
  831 pdfdir='${docdir}'
  832 psdir='${docdir}'
  833 libdir='${exec_prefix}/lib'
  834 localedir='${datarootdir}/locale'
  835 mandir='${datarootdir}/man'
  836 
  837 ac_prev=
  838 ac_dashdash=
  839 for ac_option
  840 do
  841   # If the previous option needs an argument, assign it.
  842   if test -n "$ac_prev"; then
  843     eval $ac_prev=\$ac_option
  844     ac_prev=
  845     continue
  846   fi
  847 
  848   case $ac_option in
  849   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  850   *=)   ac_optarg= ;;
  851   *)    ac_optarg=yes ;;
  852   esac
  853 
  854   # Accept the important Cygnus configure options, so we can diagnose typos.
  855 
  856   case $ac_dashdash$ac_option in
  857   --)
  858     ac_dashdash=yes ;;
  859 
  860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  861     ac_prev=bindir ;;
  862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  863     bindir=$ac_optarg ;;
  864 
  865   -build | --build | --buil | --bui | --bu)
  866     ac_prev=build_alias ;;
  867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  868     build_alias=$ac_optarg ;;
  869 
  870   -cache-file | --cache-file | --cache-fil | --cache-fi \
  871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  872     ac_prev=cache_file ;;
  873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  875     cache_file=$ac_optarg ;;
  876 
  877   --config-cache | -C)
  878     cache_file=config.cache ;;
  879 
  880   -datadir | --datadir | --datadi | --datad)
  881     ac_prev=datadir ;;
  882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  883     datadir=$ac_optarg ;;
  884 
  885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  886   | --dataroo | --dataro | --datar)
  887     ac_prev=datarootdir ;;
  888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  890     datarootdir=$ac_optarg ;;
  891 
  892   -disable-* | --disable-*)
  893     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  894     # Reject names that are not valid shell variable names.
  895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  896       as_fn_error $? "invalid feature name: $ac_useropt"
  897     ac_useropt_orig=$ac_useropt
  898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  899     case $ac_user_opts in
  900       *"
  901 "enable_$ac_useropt"
  902 "*) ;;
  903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  904      ac_unrecognized_sep=', ';;
  905     esac
  906     eval enable_$ac_useropt=no ;;
  907 
  908   -docdir | --docdir | --docdi | --doc | --do)
  909     ac_prev=docdir ;;
  910   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  911     docdir=$ac_optarg ;;
  912 
  913   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  914     ac_prev=dvidir ;;
  915   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  916     dvidir=$ac_optarg ;;
  917 
  918   -enable-* | --enable-*)
  919     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  920     # Reject names that are not valid shell variable names.
  921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  922       as_fn_error $? "invalid feature name: $ac_useropt"
  923     ac_useropt_orig=$ac_useropt
  924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  925     case $ac_user_opts in
  926       *"
  927 "enable_$ac_useropt"
  928 "*) ;;
  929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  930      ac_unrecognized_sep=', ';;
  931     esac
  932     eval enable_$ac_useropt=\$ac_optarg ;;
  933 
  934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  936   | --exec | --exe | --ex)
  937     ac_prev=exec_prefix ;;
  938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  940   | --exec=* | --exe=* | --ex=*)
  941     exec_prefix=$ac_optarg ;;
  942 
  943   -gas | --gas | --ga | --g)
  944     # Obsolete; use --with-gas.
  945     with_gas=yes ;;
  946 
  947   -help | --help | --hel | --he | -h)
  948     ac_init_help=long ;;
  949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  950     ac_init_help=recursive ;;
  951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  952     ac_init_help=short ;;
  953 
  954   -host | --host | --hos | --ho)
  955     ac_prev=host_alias ;;
  956   -host=* | --host=* | --hos=* | --ho=*)
  957     host_alias=$ac_optarg ;;
  958 
  959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  960     ac_prev=htmldir ;;
  961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  962   | --ht=*)
  963     htmldir=$ac_optarg ;;
  964 
  965   -includedir | --includedir | --includedi | --included | --include \
  966   | --includ | --inclu | --incl | --inc)
  967     ac_prev=includedir ;;
  968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969   | --includ=* | --inclu=* | --incl=* | --inc=*)
  970     includedir=$ac_optarg ;;
  971 
  972   -infodir | --infodir | --infodi | --infod | --info | --inf)
  973     ac_prev=infodir ;;
  974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  975     infodir=$ac_optarg ;;
  976 
  977   -libdir | --libdir | --libdi | --libd)
  978     ac_prev=libdir ;;
  979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980     libdir=$ac_optarg ;;
  981 
  982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  983   | --libexe | --libex | --libe)
  984     ac_prev=libexecdir ;;
  985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  986   | --libexe=* | --libex=* | --libe=*)
  987     libexecdir=$ac_optarg ;;
  988 
  989   -localedir | --localedir | --localedi | --localed | --locale)
  990     ac_prev=localedir ;;
  991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  992     localedir=$ac_optarg ;;
  993 
  994   -localstatedir | --localstatedir | --localstatedi | --localstated \
  995   | --localstate | --localstat | --localsta | --localst | --locals)
  996     ac_prev=localstatedir ;;
  997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  999     localstatedir=$ac_optarg ;;
 1000 
 1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1002     ac_prev=mandir ;;
 1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1004     mandir=$ac_optarg ;;
 1005 
 1006   -nfp | --nfp | --nf)
 1007     # Obsolete; use --without-fp.
 1008     with_fp=no ;;
 1009 
 1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1011   | --no-cr | --no-c | -n)
 1012     no_create=yes ;;
 1013 
 1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1016     no_recursion=yes ;;
 1017 
 1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1020   | --oldin | --oldi | --old | --ol | --o)
 1021     ac_prev=oldincludedir ;;
 1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1025     oldincludedir=$ac_optarg ;;
 1026 
 1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1028     ac_prev=prefix ;;
 1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1030     prefix=$ac_optarg ;;
 1031 
 1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1033   | --program-pre | --program-pr | --program-p)
 1034     ac_prev=program_prefix ;;
 1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1037     program_prefix=$ac_optarg ;;
 1038 
 1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1040   | --program-suf | --program-su | --program-s)
 1041     ac_prev=program_suffix ;;
 1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1044     program_suffix=$ac_optarg ;;
 1045 
 1046   -program-transform-name | --program-transform-name \
 1047   | --program-transform-nam | --program-transform-na \
 1048   | --program-transform-n | --program-transform- \
 1049   | --program-transform | --program-transfor \
 1050   | --program-transfo | --program-transf \
 1051   | --program-trans | --program-tran \
 1052   | --progr-tra | --program-tr | --program-t)
 1053     ac_prev=program_transform_name ;;
 1054   -program-transform-name=* | --program-transform-name=* \
 1055   | --program-transform-nam=* | --program-transform-na=* \
 1056   | --program-transform-n=* | --program-transform-=* \
 1057   | --program-transform=* | --program-transfor=* \
 1058   | --program-transfo=* | --program-transf=* \
 1059   | --program-trans=* | --program-tran=* \
 1060   | --progr-tra=* | --program-tr=* | --program-t=*)
 1061     program_transform_name=$ac_optarg ;;
 1062 
 1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1064     ac_prev=pdfdir ;;
 1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1066     pdfdir=$ac_optarg ;;
 1067 
 1068   -psdir | --psdir | --psdi | --psd | --ps)
 1069     ac_prev=psdir ;;
 1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1071     psdir=$ac_optarg ;;
 1072 
 1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1074   | -silent | --silent | --silen | --sile | --sil)
 1075     silent=yes ;;
 1076 
 1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1078     ac_prev=sbindir ;;
 1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1080   | --sbi=* | --sb=*)
 1081     sbindir=$ac_optarg ;;
 1082 
 1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1085   | --sharedst | --shareds | --shared | --share | --shar \
 1086   | --sha | --sh)
 1087     ac_prev=sharedstatedir ;;
 1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1091   | --sha=* | --sh=*)
 1092     sharedstatedir=$ac_optarg ;;
 1093 
 1094   -site | --site | --sit)
 1095     ac_prev=site ;;
 1096   -site=* | --site=* | --sit=*)
 1097     site=$ac_optarg ;;
 1098 
 1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1100     ac_prev=srcdir ;;
 1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1102     srcdir=$ac_optarg ;;
 1103 
 1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1105   | --syscon | --sysco | --sysc | --sys | --sy)
 1106     ac_prev=sysconfdir ;;
 1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1109     sysconfdir=$ac_optarg ;;
 1110 
 1111   -target | --target | --targe | --targ | --tar | --ta | --t)
 1112     ac_prev=target_alias ;;
 1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1114     target_alias=$ac_optarg ;;
 1115 
 1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1117     verbose=yes ;;
 1118 
 1119   -version | --version | --versio | --versi | --vers | -V)
 1120     ac_init_version=: ;;
 1121 
 1122   -with-* | --with-*)
 1123     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1124     # Reject names that are not valid shell variable names.
 1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1126       as_fn_error $? "invalid package name: $ac_useropt"
 1127     ac_useropt_orig=$ac_useropt
 1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1129     case $ac_user_opts in
 1130       *"
 1131 "with_$ac_useropt"
 1132 "*) ;;
 1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1134      ac_unrecognized_sep=', ';;
 1135     esac
 1136     eval with_$ac_useropt=\$ac_optarg ;;
 1137 
 1138   -without-* | --without-*)
 1139     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1140     # Reject names that are not valid shell variable names.
 1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1142       as_fn_error $? "invalid package name: $ac_useropt"
 1143     ac_useropt_orig=$ac_useropt
 1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1145     case $ac_user_opts in
 1146       *"
 1147 "with_$ac_useropt"
 1148 "*) ;;
 1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1150      ac_unrecognized_sep=', ';;
 1151     esac
 1152     eval with_$ac_useropt=no ;;
 1153 
 1154   --x)
 1155     # Obsolete; use --with-x.
 1156     with_x=yes ;;
 1157 
 1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1159   | --x-incl | --x-inc | --x-in | --x-i)
 1160     ac_prev=x_includes ;;
 1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1163     x_includes=$ac_optarg ;;
 1164 
 1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1167     ac_prev=x_libraries ;;
 1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1170     x_libraries=$ac_optarg ;;
 1171 
 1172   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1173 Try \`$0 --help' for more information"
 1174     ;;
 1175 
 1176   *=*)
 1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1178     # Reject names that are not valid shell variable names.
 1179     case $ac_envvar in #(
 1180       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1181       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1182     esac
 1183     eval $ac_envvar=\$ac_optarg
 1184     export $ac_envvar ;;
 1185 
 1186   *)
 1187     # FIXME: should be removed in autoconf 3.0.
 1188     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1190       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1192     ;;
 1193 
 1194   esac
 1195 done
 1196 
 1197 if test -n "$ac_prev"; then
 1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1199   as_fn_error $? "missing argument to $ac_option"
 1200 fi
 1201 
 1202 if test -n "$ac_unrecognized_opts"; then
 1203   case $enable_option_checking in
 1204     no) ;;
 1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1206     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1207   esac
 1208 fi
 1209 
 1210 # Check all directory arguments for consistency.
 1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1212         datadir sysconfdir sharedstatedir localstatedir includedir \
 1213         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1214         libdir localedir mandir
 1215 do
 1216   eval ac_val=\$$ac_var
 1217   # Remove trailing slashes.
 1218   case $ac_val in
 1219     */ )
 1220       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1221       eval $ac_var=\$ac_val;;
 1222   esac
 1223   # Be sure to have absolute directory names.
 1224   case $ac_val in
 1225     [\\/$]* | ?:[\\/]* )  continue;;
 1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1227   esac
 1228   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1229 done
 1230 
 1231 # There might be people who depend on the old broken behavior: `$host'
 1232 # used to hold the argument of --host etc.
 1233 # FIXME: To remove some day.
 1234 build=$build_alias
 1235 host=$host_alias
 1236 target=$target_alias
 1237 
 1238 # FIXME: To remove some day.
 1239 if test "x$host_alias" != x; then
 1240   if test "x$build_alias" = x; then
 1241     cross_compiling=maybe
 1242   elif test "x$build_alias" != "x$host_alias"; then
 1243     cross_compiling=yes
 1244   fi
 1245 fi
 1246 
 1247 ac_tool_prefix=
 1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1249 
 1250 test "$silent" = yes && exec 6>/dev/null
 1251 
 1252 
 1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1254 ac_ls_di=`ls -di .` &&
 1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1256   as_fn_error $? "working directory cannot be determined"
 1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1258   as_fn_error $? "pwd does not report name of working directory"
 1259 
 1260 
 1261 # Find the source files, if location was not specified.
 1262 if test -z "$srcdir"; then
 1263   ac_srcdir_defaulted=yes
 1264   # Try the directory containing this script, then the parent directory.
 1265   ac_confdir=`$as_dirname -- "$as_myself" ||
 1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1267      X"$as_myself" : 'X\(//\)[^/]' \| \
 1268      X"$as_myself" : 'X\(//\)$' \| \
 1269      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1270 $as_echo X"$as_myself" |
 1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1272         s//\1/
 1273         q
 1274       }
 1275       /^X\(\/\/\)[^/].*/{
 1276         s//\1/
 1277         q
 1278       }
 1279       /^X\(\/\/\)$/{
 1280         s//\1/
 1281         q
 1282       }
 1283       /^X\(\/\).*/{
 1284         s//\1/
 1285         q
 1286       }
 1287       s/.*/./; q'`
 1288   srcdir=$ac_confdir
 1289   if test ! -r "$srcdir/$ac_unique_file"; then
 1290     srcdir=..
 1291   fi
 1292 else
 1293   ac_srcdir_defaulted=no
 1294 fi
 1295 if test ! -r "$srcdir/$ac_unique_file"; then
 1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1298 fi
 1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1300 ac_abs_confdir=`(
 1301     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1302     pwd)`
 1303 # When building in place, set srcdir=.
 1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1305   srcdir=.
 1306 fi
 1307 # Remove unnecessary trailing slashes from srcdir.
 1308 # Double slashes in file names in object file debugging info
 1309 # mess up M-x gdb in Emacs.
 1310 case $srcdir in
 1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1312 esac
 1313 for ac_var in $ac_precious_vars; do
 1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1315   eval ac_env_${ac_var}_value=\$${ac_var}
 1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1318 done
 1319 
 1320 #
 1321 # Report the --help message.
 1322 #
 1323 if test "$ac_init_help" = "long"; then
 1324   # Omit some internal or obsolete options to make the list less imposing.
 1325   # This message is too long to be a string in the A/UX 3.1 sh.
 1326   cat <<_ACEOF
 1327 \`configure' configures tkimgdted 1.4.9 to adapt to many kinds of systems.
 1328 
 1329 Usage: $0 [OPTION]... [VAR=VALUE]...
 1330 
 1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1333 
 1334 Defaults for the options are specified in brackets.
 1335 
 1336 Configuration:
 1337   -h, --help              display this help and exit
 1338       --help=short        display options specific to this package
 1339       --help=recursive    display the short help of all the included packages
 1340   -V, --version           display version information and exit
 1341   -q, --quiet, --silent   do not print \`checking ...' messages
 1342       --cache-file=FILE   cache test results in FILE [disabled]
 1343   -C, --config-cache      alias for \`--cache-file=config.cache'
 1344   -n, --no-create         do not create output files
 1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1346 
 1347 Installation directories:
 1348   --prefix=PREFIX         install architecture-independent files in PREFIX
 1349                           [$ac_default_prefix]
 1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1351                           [PREFIX]
 1352 
 1353 By default, \`make install' will install all the files in
 1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1356 for instance \`--prefix=\$HOME'.
 1357 
 1358 For better control, use the options below.
 1359 
 1360 Fine tuning of the installation directories:
 1361   --bindir=DIR            user executables [EPREFIX/bin]
 1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1367   --libdir=DIR            object code libraries [EPREFIX/lib]
 1368   --includedir=DIR        C header files [PREFIX/include]
 1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/tkimgdted]
 1376   --htmldir=DIR           html documentation [DOCDIR]
 1377   --dvidir=DIR            dvi documentation [DOCDIR]
 1378   --pdfdir=DIR            pdf documentation [DOCDIR]
 1379   --psdir=DIR             ps documentation [DOCDIR]
 1380 _ACEOF
 1381 
 1382   cat <<\_ACEOF
 1383 
 1384 X features:
 1385   --x-includes=DIR    X include files are in DIR
 1386   --x-libraries=DIR   X library files are in DIR
 1387 _ACEOF
 1388 fi
 1389 
 1390 if test -n "$ac_init_help"; then
 1391   case $ac_init_help in
 1392      short | recursive ) echo "Configuration of tkimgdted 1.4.9:";;
 1393    esac
 1394   cat <<\_ACEOF
 1395 
 1396 Optional Features:
 1397   --disable-option-checking  ignore unrecognized --enable/--with options
 1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1400   --enable-threads        build with threads
 1401   --enable-shared         build and link with shared libraries (default: on)
 1402   --enable-64bit          enable 64bit support (default: off)
 1403   --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
 1404   --disable-rpath         disable rpath support (default: on)
 1405   --enable-wince          enable Win/CE support (where applicable)
 1406   --enable-symbols        build with debugging symbols (default: off)
 1407 
 1408 Optional Packages:
 1409   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1410   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1411   --with-tcl              directory containing tcl configuration
 1412                           (tclConfig.sh)
 1413   --with-tk               directory containing tk configuration (tkConfig.sh)
 1414   --with-tkimg              directory containing tkimg configuration (tkimgConfig.sh)
 1415   --with-tclinclude       directory containing the public Tcl header files
 1416   --with-tkinclude        directory containing the public Tk header files
 1417   --with-celib=DIR        use Windows/CE support library from DIR
 1418   --with-x                use the X Window System
 1419 
 1420 Some influential environment variables:
 1421   CC          C compiler command
 1422   CFLAGS      C compiler flags
 1423   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1424               nonstandard directory <lib dir>
 1425   LIBS        libraries to pass to the linker, e.g. -l<library>
 1426   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1427               you have headers in a nonstandard directory <include dir>
 1428   CPP         C preprocessor
 1429   XMKMF       Path to xmkmf, Makefile generator for X Window System
 1430 
 1431 Use these variables to override the choices made by `configure' or to help
 1432 it to find libraries and programs with nonstandard names/locations.
 1433 
 1434 Report bugs to the package provider.
 1435 _ACEOF
 1436 ac_status=$?
 1437 fi
 1438 
 1439 if test "$ac_init_help" = "recursive"; then
 1440   # If there are subdirs, report their specific --help.
 1441   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1442     test -d "$ac_dir" ||
 1443       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1444       continue
 1445     ac_builddir=.
 1446 
 1447 case "$ac_dir" in
 1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1449 *)
 1450   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1451   # A ".." for each directory in $ac_dir_suffix.
 1452   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1453   case $ac_top_builddir_sub in
 1454   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1455   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1456   esac ;;
 1457 esac
 1458 ac_abs_top_builddir=$ac_pwd
 1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1460 # for backward compatibility:
 1461 ac_top_builddir=$ac_top_build_prefix
 1462 
 1463 case $srcdir in
 1464   .)  # We are building in place.
 1465     ac_srcdir=.
 1466     ac_top_srcdir=$ac_top_builddir_sub
 1467     ac_abs_top_srcdir=$ac_pwd ;;
 1468   [\\/]* | ?:[\\/]* )  # Absolute name.
 1469     ac_srcdir=$srcdir$ac_dir_suffix;
 1470     ac_top_srcdir=$srcdir
 1471     ac_abs_top_srcdir=$srcdir ;;
 1472   *) # Relative name.
 1473     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1474     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1475     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1476 esac
 1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1478 
 1479     cd "$ac_dir" || { ac_status=$?; continue; }
 1480     # Check for guested configure.
 1481     if test -f "$ac_srcdir/configure.gnu"; then
 1482       echo &&
 1483       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1484     elif test -f "$ac_srcdir/configure"; then
 1485       echo &&
 1486       $SHELL "$ac_srcdir/configure" --help=recursive
 1487     else
 1488       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1489     fi || ac_status=$?
 1490     cd "$ac_pwd" || { ac_status=$?; break; }
 1491   done
 1492 fi
 1493 
 1494 test -n "$ac_init_help" && exit $ac_status
 1495 if $ac_init_version; then
 1496   cat <<\_ACEOF
 1497 tkimgdted configure 1.4.9
 1498 generated by GNU Autoconf 2.69
 1499 
 1500 Copyright (C) 2012 Free Software Foundation, Inc.
 1501 This configure script is free software; the Free Software Foundation
 1502 gives unlimited permission to copy, distribute and modify it.
 1503 _ACEOF
 1504   exit
 1505 fi
 1506 
 1507 ## ------------------------ ##
 1508 ## Autoconf initialization. ##
 1509 ## ------------------------ ##
 1510 
 1511 # ac_fn_c_try_compile LINENO
 1512 # --------------------------
 1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1514 ac_fn_c_try_compile ()
 1515 {
 1516   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1517   rm -f conftest.$ac_objext
 1518   if { { ac_try="$ac_compile"
 1519 case "(($ac_try" in
 1520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1521   *) ac_try_echo=$ac_try;;
 1522 esac
 1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1524 $as_echo "$ac_try_echo"; } >&5
 1525   (eval "$ac_compile") 2>conftest.err
 1526   ac_status=$?
 1527   if test -s conftest.err; then
 1528     grep -v '^ *+' conftest.err >conftest.er1
 1529     cat conftest.er1 >&5
 1530     mv -f conftest.er1 conftest.err
 1531   fi
 1532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1533   test $ac_status = 0; } && {
 1534      test -z "$ac_c_werror_flag" ||
 1535      test ! -s conftest.err
 1536        } && test -s conftest.$ac_objext; then :
 1537   ac_retval=0
 1538 else
 1539   $as_echo "$as_me: failed program was:" >&5
 1540 sed 's/^/| /' conftest.$ac_ext >&5
 1541 
 1542     ac_retval=1
 1543 fi
 1544   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1545   as_fn_set_status $ac_retval
 1546 
 1547 } # ac_fn_c_try_compile
 1548 
 1549 # ac_fn_c_try_cpp LINENO
 1550 # ----------------------
 1551 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1552 ac_fn_c_try_cpp ()
 1553 {
 1554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1555   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1556 case "(($ac_try" in
 1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1558   *) ac_try_echo=$ac_try;;
 1559 esac
 1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1561 $as_echo "$ac_try_echo"; } >&5
 1562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1563   ac_status=$?
 1564   if test -s conftest.err; then
 1565     grep -v '^ *+' conftest.err >conftest.er1
 1566     cat conftest.er1 >&5
 1567     mv -f conftest.er1 conftest.err
 1568   fi
 1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1570   test $ac_status = 0; } > conftest.i && {
 1571      test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1572      test ! -s conftest.err
 1573        }; then :
 1574   ac_retval=0
 1575 else
 1576   $as_echo "$as_me: failed program was:" >&5
 1577 sed 's/^/| /' conftest.$ac_ext >&5
 1578 
 1579     ac_retval=1
 1580 fi
 1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1582   as_fn_set_status $ac_retval
 1583 
 1584 } # ac_fn_c_try_cpp
 1585 
 1586 # ac_fn_c_try_run LINENO
 1587 # ----------------------
 1588 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1589 # that executables *can* be run.
 1590 ac_fn_c_try_run ()
 1591 {
 1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1593   if { { ac_try="$ac_link"
 1594 case "(($ac_try" in
 1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1596   *) ac_try_echo=$ac_try;;
 1597 esac
 1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1599 $as_echo "$ac_try_echo"; } >&5
 1600   (eval "$ac_link") 2>&5
 1601   ac_status=$?
 1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1603   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1604   { { case "(($ac_try" in
 1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1606   *) ac_try_echo=$ac_try;;
 1607 esac
 1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1609 $as_echo "$ac_try_echo"; } >&5
 1610   (eval "$ac_try") 2>&5
 1611   ac_status=$?
 1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1613   test $ac_status = 0; }; }; then :
 1614   ac_retval=0
 1615 else
 1616   $as_echo "$as_me: program exited with status $ac_status" >&5
 1617        $as_echo "$as_me: failed program was:" >&5
 1618 sed 's/^/| /' conftest.$ac_ext >&5
 1619 
 1620        ac_retval=$ac_status
 1621 fi
 1622   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1624   as_fn_set_status $ac_retval
 1625 
 1626 } # ac_fn_c_try_run
 1627 
 1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1629 # -------------------------------------------------------
 1630 # Tests whether HEADER exists and can be compiled using the include files in
 1631 # INCLUDES, setting the cache variable VAR accordingly.
 1632 ac_fn_c_check_header_compile ()
 1633 {
 1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1636 $as_echo_n "checking for $2... " >&6; }
 1637 if eval \${$3+:} false; then :
 1638   $as_echo_n "(cached) " >&6
 1639 else
 1640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1641 /* end confdefs.h.  */
 1642 $4
 1643 #include <$2>
 1644 _ACEOF
 1645 if ac_fn_c_try_compile "$LINENO"; then :
 1646   eval "$3=yes"
 1647 else
 1648   eval "$3=no"
 1649 fi
 1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1651 fi
 1652 eval ac_res=\$$3
 1653            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1654 $as_echo "$ac_res" >&6; }
 1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1656 
 1657 } # ac_fn_c_check_header_compile
 1658 
 1659 # ac_fn_c_try_link LINENO
 1660 # -----------------------
 1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
 1662 ac_fn_c_try_link ()
 1663 {
 1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1665   rm -f conftest.$ac_objext conftest$ac_exeext
 1666   if { { ac_try="$ac_link"
 1667 case "(($ac_try" in
 1668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1669   *) ac_try_echo=$ac_try;;
 1670 esac
 1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1672 $as_echo "$ac_try_echo"; } >&5
 1673   (eval "$ac_link") 2>conftest.err
 1674   ac_status=$?
 1675   if test -s conftest.err; then
 1676     grep -v '^ *+' conftest.err >conftest.er1
 1677     cat conftest.er1 >&5
 1678     mv -f conftest.er1 conftest.err
 1679   fi
 1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1681   test $ac_status = 0; } && {
 1682      test -z "$ac_c_werror_flag" ||
 1683      test ! -s conftest.err
 1684        } && test -s conftest$ac_exeext && {
 1685      test "$cross_compiling" = yes ||
 1686      test -x conftest$ac_exeext
 1687        }; then :
 1688   ac_retval=0
 1689 else
 1690   $as_echo "$as_me: failed program was:" >&5
 1691 sed 's/^/| /' conftest.$ac_ext >&5
 1692 
 1693     ac_retval=1
 1694 fi
 1695   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1696   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1697   # interfere with the next link command; also delete a directory that is
 1698   # left behind by Apple's compiler.  We do this before executing the actions.
 1699   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1701   as_fn_set_status $ac_retval
 1702 
 1703 } # ac_fn_c_try_link
 1704 
 1705 # ac_fn_c_check_func LINENO FUNC VAR
 1706 # ----------------------------------
 1707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1708 ac_fn_c_check_func ()
 1709 {
 1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1712 $as_echo_n "checking for $2... " >&6; }
 1713 if eval \${$3+:} false; then :
 1714   $as_echo_n "(cached) " >&6
 1715 else
 1716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1717 /* end confdefs.h.  */
 1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1720 #define $2 innocuous_$2
 1721 
 1722 /* System header to define __stub macros and hopefully few prototypes,
 1723     which can conflict with char $2 (); below.
 1724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1725     <limits.h> exists even on freestanding compilers.  */
 1726 
 1727 #ifdef __STDC__
 1728 # include <limits.h>
 1729 #else
 1730 # include <assert.h>
 1731 #endif
 1732 
 1733 #undef $2
 1734 
 1735 /* Override any GCC internal prototype to avoid an error.
 1736    Use char because int might match the return type of a GCC
 1737    builtin and then its argument prototype would still apply.  */
 1738 #ifdef __cplusplus
 1739 extern "C"
 1740 #endif
 1741 char $2 ();
 1742 /* The GNU C library defines this for functions which it implements
 1743     to always fail with ENOSYS.  Some functions are actually named
 1744     something starting with __ and the normal name is an alias.  */
 1745 #if defined __stub_$2 || defined __stub___$2
 1746 choke me
 1747 #endif
 1748 
 1749 int
 1750 main ()
 1751 {
 1752 return $2 ();
 1753   ;
 1754   return 0;
 1755 }
 1756 _ACEOF
 1757 if ac_fn_c_try_link "$LINENO"; then :
 1758   eval "$3=yes"
 1759 else
 1760   eval "$3=no"
 1761 fi
 1762 rm -f core conftest.err conftest.$ac_objext \
 1763     conftest$ac_exeext conftest.$ac_ext
 1764 fi
 1765 eval ac_res=\$$3
 1766            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1767 $as_echo "$ac_res" >&6; }
 1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1769 
 1770 } # ac_fn_c_check_func
 1771 
 1772 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1773 # -------------------------------------------------------
 1774 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1775 # the include files in INCLUDES and setting the cache variable VAR
 1776 # accordingly.
 1777 ac_fn_c_check_header_mongrel ()
 1778 {
 1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1780   if eval \${$3+:} false; then :
 1781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1782 $as_echo_n "checking for $2... " >&6; }
 1783 if eval \${$3+:} false; then :
 1784   $as_echo_n "(cached) " >&6
 1785 fi
 1786 eval ac_res=\$$3
 1787            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1788 $as_echo "$ac_res" >&6; }
 1789 else
 1790   # Is the header compilable?
 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1792 $as_echo_n "checking $2 usability... " >&6; }
 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1794 /* end confdefs.h.  */
 1795 $4
 1796 #include <$2>
 1797 _ACEOF
 1798 if ac_fn_c_try_compile "$LINENO"; then :
 1799   ac_header_compiler=yes
 1800 else
 1801   ac_header_compiler=no
 1802 fi
 1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1805 $as_echo "$ac_header_compiler" >&6; }
 1806 
 1807 # Is the header present?
 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1809 $as_echo_n "checking $2 presence... " >&6; }
 1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1811 /* end confdefs.h.  */
 1812 #include <$2>
 1813 _ACEOF
 1814 if ac_fn_c_try_cpp "$LINENO"; then :
 1815   ac_header_preproc=yes
 1816 else
 1817   ac_header_preproc=no
 1818 fi
 1819 rm -f conftest.err conftest.i conftest.$ac_ext
 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1821 $as_echo "$ac_header_preproc" >&6; }
 1822 
 1823 # So?  What about this header?
 1824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1825   yes:no: )
 1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1827 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1830     ;;
 1831   no:yes:* )
 1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1833 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1835 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1837 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1839 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1842     ;;
 1843 esac
 1844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1845 $as_echo_n "checking for $2... " >&6; }
 1846 if eval \${$3+:} false; then :
 1847   $as_echo_n "(cached) " >&6
 1848 else
 1849   eval "$3=\$ac_header_compiler"
 1850 fi
 1851 eval ac_res=\$$3
 1852            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1853 $as_echo "$ac_res" >&6; }
 1854 fi
 1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1856 
 1857 } # ac_fn_c_check_header_mongrel
 1858 cat >config.log <<_ACEOF
 1859 This file contains any messages produced by compilers while
 1860 running configure, to aid debugging if configure makes a mistake.
 1861 
 1862 It was created by tkimgdted $as_me 1.4.9, which was
 1863 generated by GNU Autoconf 2.69.  Invocation command line was
 1864 
 1865   $ $0 $@
 1866 
 1867 _ACEOF
 1868 exec 5>>config.log
 1869 {
 1870 cat <<_ASUNAME
 1871 ## --------- ##
 1872 ## Platform. ##
 1873 ## --------- ##
 1874 
 1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1880 
 1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1882 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1883 
 1884 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1885 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1887 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1888 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1889 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1890 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1891 
 1892 _ASUNAME
 1893 
 1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1895 for as_dir in $PATH
 1896 do
 1897   IFS=$as_save_IFS
 1898   test -z "$as_dir" && as_dir=.
 1899     $as_echo "PATH: $as_dir"
 1900   done
 1901 IFS=$as_save_IFS
 1902 
 1903 } >&5
 1904 
 1905 cat >&5 <<_ACEOF
 1906 
 1907 
 1908 ## ----------- ##
 1909 ## Core tests. ##
 1910 ## ----------- ##
 1911 
 1912 _ACEOF
 1913 
 1914 
 1915 # Keep a trace of the command line.
 1916 # Strip out --no-create and --no-recursion so they do not pile up.
 1917 # Strip out --silent because we don't want to record it for future runs.
 1918 # Also quote any args containing shell meta-characters.
 1919 # Make two passes to allow for proper duplicate-argument suppression.
 1920 ac_configure_args=
 1921 ac_configure_args0=
 1922 ac_configure_args1=
 1923 ac_must_keep_next=false
 1924 for ac_pass in 1 2
 1925 do
 1926   for ac_arg
 1927   do
 1928     case $ac_arg in
 1929     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 1930     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1931     | -silent | --silent | --silen | --sile | --sil)
 1932       continue ;;
 1933     *\'*)
 1934       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1935     esac
 1936     case $ac_pass in
 1937     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 1938     2)
 1939       as_fn_append ac_configure_args1 " '$ac_arg'"
 1940       if test $ac_must_keep_next = true; then
 1941     ac_must_keep_next=false # Got value, back to normal.
 1942       else
 1943     case $ac_arg in
 1944       *=* | --config-cache | -C | -disable-* | --disable-* \
 1945       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 1946       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 1947       | -with-* | --with-* | -without-* | --without-* | --x)
 1948         case "$ac_configure_args0 " in
 1949           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 1950         esac
 1951         ;;
 1952       -* ) ac_must_keep_next=true ;;
 1953     esac
 1954       fi
 1955       as_fn_append ac_configure_args " '$ac_arg'"
 1956       ;;
 1957     esac
 1958   done
 1959 done
 1960 { ac_configure_args0=; unset ac_configure_args0;}
 1961 { ac_configure_args1=; unset ac_configure_args1;}
 1962 
 1963 # When interrupted or exit'd, cleanup temporary files, and complete
 1964 # config.log.  We remove comments because anyway the quotes in there
 1965 # would cause problems or look ugly.
 1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
 1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 1968 trap 'exit_status=$?
 1969   # Save into config.log some information that might help in debugging.
 1970   {
 1971     echo
 1972 
 1973     $as_echo "## ---------------- ##
 1974 ## Cache variables. ##
 1975 ## ---------------- ##"
 1976     echo
 1977     # The following way of writing the cache mishandles newlines in values,
 1978 (
 1979   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 1980     eval ac_val=\$$ac_var
 1981     case $ac_val in #(
 1982     *${as_nl}*)
 1983       case $ac_var in #(
 1984       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 1986       esac
 1987       case $ac_var in #(
 1988       _ | IFS | as_nl) ;; #(
 1989       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 1990       *) { eval $ac_var=; unset $ac_var;} ;;
 1991       esac ;;
 1992     esac
 1993   done
 1994   (set) 2>&1 |
 1995     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 1996     *${as_nl}ac_space=\ *)
 1997       sed -n \
 1998     "s/'\''/'\''\\\\'\'''\''/g;
 1999       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2000       ;; #(
 2001     *)
 2002       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2003       ;;
 2004     esac |
 2005     sort
 2006 )
 2007     echo
 2008 
 2009     $as_echo "## ----------------- ##
 2010 ## Output variables. ##
 2011 ## ----------------- ##"
 2012     echo
 2013     for ac_var in $ac_subst_vars
 2014     do
 2015       eval ac_val=\$$ac_var
 2016       case $ac_val in
 2017       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2018       esac
 2019       $as_echo "$ac_var='\''$ac_val'\''"
 2020     done | sort
 2021     echo
 2022 
 2023     if test -n "$ac_subst_files"; then
 2024       $as_echo "## ------------------- ##
 2025 ## File substitutions. ##
 2026 ## ------------------- ##"
 2027       echo
 2028       for ac_var in $ac_subst_files
 2029       do
 2030     eval ac_val=\$$ac_var
 2031     case $ac_val in
 2032     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2033     esac
 2034     $as_echo "$ac_var='\''$ac_val'\''"
 2035       done | sort
 2036       echo
 2037     fi
 2038 
 2039     if test -s confdefs.h; then
 2040       $as_echo "## ----------- ##
 2041 ## confdefs.h. ##
 2042 ## ----------- ##"
 2043       echo
 2044       cat confdefs.h
 2045       echo
 2046     fi
 2047     test "$ac_signal" != 0 &&
 2048       $as_echo "$as_me: caught signal $ac_signal"
 2049     $as_echo "$as_me: exit $exit_status"
 2050   } >&5
 2051   rm -f core *.core core.conftest.* &&
 2052     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2053     exit $exit_status
 2054 ' 0
 2055 for ac_signal in 1 2 13 15; do
 2056   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2057 done
 2058 ac_signal=0
 2059 
 2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2061 rm -f -r conftest* confdefs.h
 2062 
 2063 $as_echo "/* confdefs.h */" > confdefs.h
 2064 
 2065 # Predefined preprocessor variables.
 2066 
 2067 cat >>confdefs.h <<_ACEOF
 2068 #define PACKAGE_NAME "$PACKAGE_NAME"
 2069 _ACEOF
 2070 
 2071 cat >>confdefs.h <<_ACEOF
 2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2073 _ACEOF
 2074 
 2075 cat >>confdefs.h <<_ACEOF
 2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2077 _ACEOF
 2078 
 2079 cat >>confdefs.h <<_ACEOF
 2080 #define PACKAGE_STRING "$PACKAGE_STRING"
 2081 _ACEOF
 2082 
 2083 cat >>confdefs.h <<_ACEOF
 2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2085 _ACEOF
 2086 
 2087 cat >>confdefs.h <<_ACEOF
 2088 #define PACKAGE_URL "$PACKAGE_URL"
 2089 _ACEOF
 2090 
 2091 
 2092 # Let the site file select an alternate cache file if it wants to.
 2093 # Prefer an explicitly selected file to automatically selected ones.
 2094 ac_site_file1=NONE
 2095 ac_site_file2=NONE
 2096 if test -n "$CONFIG_SITE"; then
 2097   # We do not want a PATH search for config.site.
 2098   case $CONFIG_SITE in #((
 2099     -*)  ac_site_file1=./$CONFIG_SITE;;
 2100     */*) ac_site_file1=$CONFIG_SITE;;
 2101     *)   ac_site_file1=./$CONFIG_SITE;;
 2102   esac
 2103 elif test "x$prefix" != xNONE; then
 2104   ac_site_file1=$prefix/share/config.site
 2105   ac_site_file2=$prefix/etc/config.site
 2106 else
 2107   ac_site_file1=$ac_default_prefix/share/config.site
 2108   ac_site_file2=$ac_default_prefix/etc/config.site
 2109 fi
 2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2111 do
 2112   test "x$ac_site_file" = xNONE && continue
 2113   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2114     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2116     sed 's/^/| /' "$ac_site_file" >&5
 2117     . "$ac_site_file" \
 2118       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2120 as_fn_error $? "failed to load site script $ac_site_file
 2121 See \`config.log' for more details" "$LINENO" 5 ; }
 2122   fi
 2123 done
 2124 
 2125 if test -r "$cache_file"; then
 2126   # Some versions of bash will fail to source /dev/null (special files
 2127   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2128   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2129     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
 2131     case $cache_file in
 2132       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2133       *)                      . "./$cache_file";;
 2134     esac
 2135   fi
 2136 else
 2137   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
 2139   >$cache_file
 2140 fi
 2141 
 2142 # Check that the precious variables saved in the cache have kept the same
 2143 # value.
 2144 ac_cache_corrupted=false
 2145 for ac_var in $ac_precious_vars; do
 2146   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2147   eval ac_new_set=\$ac_env_${ac_var}_set
 2148   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2149   eval ac_new_val=\$ac_env_${ac_var}_value
 2150   case $ac_old_set,$ac_new_set in
 2151     set,)
 2152       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2153 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2154       ac_cache_corrupted=: ;;
 2155     ,set)
 2156       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2157 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2158       ac_cache_corrupted=: ;;
 2159     ,);;
 2160     *)
 2161       if test "x$ac_old_val" != "x$ac_new_val"; then
 2162     # differences in whitespace do not lead to failure.
 2163     ac_old_val_w=`echo x $ac_old_val`
 2164     ac_new_val_w=`echo x $ac_new_val`
 2165     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2166       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2167 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2168       ac_cache_corrupted=:
 2169     else
 2170       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2171 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2172       eval $ac_var=\$ac_old_val
 2173     fi
 2174     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2175 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2176     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2177 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2178       fi;;
 2179   esac
 2180   # Pass precious variables to config.status.
 2181   if test "$ac_new_set" = set; then
 2182     case $ac_new_val in
 2183     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2184     *) ac_arg=$ac_var=$ac_new_val ;;
 2185     esac
 2186     case " $ac_configure_args " in
 2187       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2188       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2189     esac
 2190   fi
 2191 done
 2192 if $ac_cache_corrupted; then
 2193   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2195   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2196 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2197   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2198 fi
 2199 ## -------------------- ##
 2200 ## Main body of script. ##
 2201 ## -------------------- ##
 2202 
 2203 ac_ext=c
 2204 ac_cpp='$CPP $CPPFLAGS'
 2205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2208 
 2209 
 2210 
 2211 
 2212     # TEA extensions pass this us the version of TEA they think they
 2213     # are compatible with.
 2214     TEA_VERSION="3.9"
 2215 
 2216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
 2217 $as_echo_n "checking for correct TEA configuration... " >&6; }
 2218     if test x"${PACKAGE_NAME}" = x ; then
 2219     as_fn_error $? "
 2220 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
 2221     fi
 2222     if test x"3.9" = x ; then
 2223     as_fn_error $? "
 2224 TEA version not specified." "$LINENO" 5
 2225     elif test "3.9" != "${TEA_VERSION}" ; then
 2226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
 2227 $as_echo "warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
 2228     else
 2229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
 2230 $as_echo "ok (TEA ${TEA_VERSION})" >&6; }
 2231     fi
 2232 
 2233     # If the user did not set CFLAGS, set it now to keep macros
 2234     # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
 2235     if test "${CFLAGS+set}" != "set" ; then
 2236     CFLAGS=""
 2237     fi
 2238 
 2239     case "`uname -s`" in
 2240     *win32*|*WIN32*|*MINGW32_*)
 2241         # Extract the first word of "cygpath", so it can be a program name with args.
 2242 set dummy cygpath; ac_word=$2
 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2244 $as_echo_n "checking for $ac_word... " >&6; }
 2245 if ${ac_cv_prog_CYGPATH+:} false; then :
 2246   $as_echo_n "(cached) " >&6
 2247 else
 2248   if test -n "$CYGPATH"; then
 2249   ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
 2250 else
 2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2252 for as_dir in $PATH
 2253 do
 2254   IFS=$as_save_IFS
 2255   test -z "$as_dir" && as_dir=.
 2256     for ac_exec_ext in '' $ac_executable_extensions; do
 2257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2258     ac_cv_prog_CYGPATH="cygpath -m"
 2259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2260     break 2
 2261   fi
 2262 done
 2263   done
 2264 IFS=$as_save_IFS
 2265 
 2266   test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
 2267 fi
 2268 fi
 2269 CYGPATH=$ac_cv_prog_CYGPATH
 2270 if test -n "$CYGPATH"; then
 2271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
 2272 $as_echo "$CYGPATH" >&6; }
 2273 else
 2274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2275 $as_echo "no" >&6; }
 2276 fi
 2277 
 2278 
 2279         EXEEXT=".exe"
 2280         TEA_PLATFORM="windows"
 2281         ;;
 2282     *CYGWIN_*)
 2283         EXEEXT=".exe"
 2284         # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
 2285         ;;
 2286     *)
 2287         CYGPATH=echo
 2288         # Maybe we are cross-compiling....
 2289         case ${host_alias} in
 2290         *mingw32*)
 2291         EXEEXT=".exe"
 2292         TEA_PLATFORM="windows"
 2293         ;;
 2294         *)
 2295         EXEEXT=""
 2296         TEA_PLATFORM="unix"
 2297         ;;
 2298         esac
 2299         ;;
 2300     esac
 2301 
 2302     # Check if exec_prefix is set. If not use fall back to prefix.
 2303     # Note when adjusted, so that TEA_PREFIX can correct for this.
 2304     # This is needed for recursive configures, since autoconf propagates
 2305     # $prefix, but not $exec_prefix (doh!).
 2306     if test x$exec_prefix = xNONE ; then
 2307     exec_prefix_default=yes
 2308     exec_prefix=$prefix
 2309     fi
 2310 
 2311     { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
 2312 $as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
 2313 
 2314 
 2315 
 2316 
 2317     # This package name must be replaced statically for AC_SUBST to work
 2318 
 2319     # Substitute STUB_LIB_FILE in case package creates a stub library too.
 2320 
 2321 
 2322     # We AC_SUBST these here to ensure they are subst'ed,
 2323     # in case the user doesn't call TEA_ADD_...
 2324 
 2325 
 2326 
 2327 
 2328 
 2329 
 2330 
 2331 
 2332 
 2333 ac_aux_dir=
 2334 for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do
 2335   if test -f "$ac_dir/install-sh"; then
 2336     ac_aux_dir=$ac_dir
 2337     ac_install_sh="$ac_aux_dir/install-sh -c"
 2338     break
 2339   elif test -f "$ac_dir/install.sh"; then
 2340     ac_aux_dir=$ac_dir
 2341     ac_install_sh="$ac_aux_dir/install.sh -c"
 2342     break
 2343   elif test -f "$ac_dir/shtool"; then
 2344     ac_aux_dir=$ac_dir
 2345     ac_install_sh="$ac_aux_dir/shtool install -c"
 2346     break
 2347   fi
 2348 done
 2349 if test -z "$ac_aux_dir"; then
 2350   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../tclconfig \"$srcdir\"/../tclconfig" "$LINENO" 5
 2351 fi
 2352 
 2353 # These three variables are undocumented and unsupported,
 2354 # and are intended to be withdrawn in a future Autoconf release.
 2355 # They can cause serious problems if a builder's source tree is in a directory
 2356 # whose full name contains unusual characters.
 2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 2359 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 2360 
 2361 
 2362 
 2363 PHIMGTYPE="dted"
 2364 CPACKAGE="Tkimgdted"
 2365 PACKAGE_TCLNAME="img::dted"
 2366 
 2367 
 2368 
 2369 #--------------------------------------------------------------------
 2370 # Load the tclConfig.sh file
 2371 # Load the tkConfig.sh file
 2372 #--------------------------------------------------------------------
 2373 
 2374 
 2375 
 2376     #
 2377     # Ok, lets find the tcl configuration
 2378     # First, look for one uninstalled.
 2379     # the alternative search directory is invoked by --with-tcl
 2380     #
 2381 
 2382     if test x"${no_tcl}" = x ; then
 2383     # we reset no_tcl in case something fails here
 2384     no_tcl=true
 2385 
 2386 # Check whether --with-tcl was given.
 2387 if test "${with_tcl+set}" = set; then :
 2388   withval=$with_tcl; with_tclconfig="${withval}"
 2389 fi
 2390 
 2391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
 2392 $as_echo_n "checking for Tcl configuration... " >&6; }
 2393     if ${ac_cv_c_tclconfig+:} false; then :
 2394   $as_echo_n "(cached) " >&6
 2395 else
 2396 
 2397 
 2398         # First check to see if --with-tcl was specified.
 2399         if test x"${with_tclconfig}" != x ; then
 2400         case "${with_tclconfig}" in
 2401             */tclConfig.sh )
 2402             if test -f "${with_tclconfig}"; then
 2403                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
 2404 $as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
 2405                 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
 2406             fi ;;
 2407         esac
 2408         if test -f "${with_tclconfig}/tclConfig.sh" ; then
 2409             ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
 2410         else
 2411             as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
 2412         fi
 2413         fi
 2414 
 2415         # then check for a private Tcl installation
 2416         if test x"${ac_cv_c_tclconfig}" = x ; then
 2417         for i in \
 2418             ../tcl \
 2419             `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2420             `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
 2421             `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
 2422             ../../tcl \
 2423             `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2424             `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
 2425             `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
 2426             ../../../tcl \
 2427             `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2428             `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
 2429             `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
 2430             if test "${TEA_PLATFORM}" = "windows" \
 2431                 -a -f "$i/win/tclConfig.sh" ; then
 2432             ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
 2433             break
 2434             fi
 2435             if test -f "$i/unix/tclConfig.sh" ; then
 2436             ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
 2437             break
 2438             fi
 2439         done
 2440         fi
 2441 
 2442         # on Darwin, check in Framework installation locations
 2443         if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
 2444         for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
 2445             `ls -d /Library/Frameworks 2>/dev/null` \
 2446             `ls -d /Network/Library/Frameworks 2>/dev/null` \
 2447             `ls -d /System/Library/Frameworks 2>/dev/null` \
 2448             ; do
 2449             if test -f "$i/Tcl.framework/tclConfig.sh" ; then
 2450             ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
 2451             break
 2452             fi
 2453         done
 2454         fi
 2455 
 2456         # TEA specific: on Windows, check in common installation locations
 2457         if test "${TEA_PLATFORM}" = "windows" \
 2458         -a x"${ac_cv_c_tclconfig}" = x ; then
 2459         for i in `ls -d C:/Tcl/lib 2>/dev/null` \
 2460             `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
 2461             ; do
 2462             if test -f "$i/tclConfig.sh" ; then
 2463             ac_cv_c_tclconfig="`(cd $i; pwd)`"
 2464             break
 2465             fi
 2466         done
 2467         fi
 2468 
 2469         # check in a few common install locations
 2470         if test x"${ac_cv_c_tclconfig}" = x ; then
 2471         for i in `ls -d ${libdir} 2>/dev/null` \
 2472             `ls -d ${exec_prefix}/lib 2>/dev/null` \
 2473             `ls -d ${prefix}/lib 2>/dev/null` \
 2474             `ls -d /usr/local/lib 2>/dev/null` \
 2475             `ls -d /usr/contrib/lib 2>/dev/null` \
 2476             `ls -d /usr/lib 2>/dev/null` \
 2477             `ls -d /usr/lib64 2>/dev/null` \
 2478             `ls -d /usr/lib/tcl8.6 2>/dev/null` \
 2479             `ls -d /usr/lib/tcl8.5 2>/dev/null` \
 2480             ; do
 2481             if test -f "$i/tclConfig.sh" ; then
 2482             ac_cv_c_tclconfig="`(cd $i; pwd)`"
 2483             break
 2484             fi
 2485         done
 2486         fi
 2487 
 2488         # check in a few other private locations
 2489         if test x"${ac_cv_c_tclconfig}" = x ; then
 2490         for i in \
 2491             ${srcdir}/../tcl \
 2492             `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
 2493             `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
 2494             `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
 2495             if test "${TEA_PLATFORM}" = "windows" \
 2496                 -a -f "$i/win/tclConfig.sh" ; then
 2497             ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
 2498             break
 2499             fi
 2500             if test -f "$i/unix/tclConfig.sh" ; then
 2501             ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
 2502             break
 2503             fi
 2504         done
 2505         fi
 2506 
 2507 fi
 2508 
 2509 
 2510     if test x"${ac_cv_c_tclconfig}" = x ; then
 2511         TCL_BIN_DIR="# no Tcl configs found"
 2512         as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
 2513     else
 2514         no_tcl=
 2515         TCL_BIN_DIR="${ac_cv_c_tclconfig}"
 2516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
 2517 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
 2518     fi
 2519     fi
 2520 
 2521 ac_ext=c
 2522 ac_cpp='$CPP $CPPFLAGS'
 2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2526 if test -n "$ac_tool_prefix"; then
 2527   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2530 $as_echo_n "checking for $ac_word... " >&6; }
 2531 if ${ac_cv_prog_CC+:} false; then :
 2532   $as_echo_n "(cached) " >&6
 2533 else
 2534   if test -n "$CC"; then
 2535   ac_cv_prog_CC="$CC" # Let the user override the test.
 2536 else
 2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2538 for as_dir in $PATH
 2539 do
 2540   IFS=$as_save_IFS
 2541   test -z "$as_dir" && as_dir=.
 2542     for ac_exec_ext in '' $ac_executable_extensions; do
 2543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2544     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2546     break 2
 2547   fi
 2548 done
 2549   done
 2550 IFS=$as_save_IFS
 2551 
 2552 fi
 2553 fi
 2554 CC=$ac_cv_prog_CC
 2555 if test -n "$CC"; then
 2556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2557 $as_echo "$CC" >&6; }
 2558 else
 2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2560 $as_echo "no" >&6; }
 2561 fi
 2562 
 2563 
 2564 fi
 2565 if test -z "$ac_cv_prog_CC"; then
 2566   ac_ct_CC=$CC
 2567   # Extract the first word of "gcc", so it can be a program name with args.
 2568 set dummy gcc; ac_word=$2
 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2570 $as_echo_n "checking for $ac_word... " >&6; }
 2571 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2572   $as_echo_n "(cached) " >&6
 2573 else
 2574   if test -n "$ac_ct_CC"; then
 2575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2576 else
 2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2578 for as_dir in $PATH
 2579 do
 2580   IFS=$as_save_IFS
 2581   test -z "$as_dir" && as_dir=.
 2582     for ac_exec_ext in '' $ac_executable_extensions; do
 2583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2584     ac_cv_prog_ac_ct_CC="gcc"
 2585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2586     break 2
 2587   fi
 2588 done
 2589   done
 2590 IFS=$as_save_IFS
 2591 
 2592 fi
 2593 fi
 2594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2595 if test -n "$ac_ct_CC"; then
 2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2597 $as_echo "$ac_ct_CC" >&6; }
 2598 else
 2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2600 $as_echo "no" >&6; }
 2601 fi
 2602 
 2603   if test "x$ac_ct_CC" = x; then
 2604     CC=""
 2605   else
 2606     case $cross_compiling:$ac_tool_warned in
 2607 yes:)
 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2610 ac_tool_warned=yes ;;
 2611 esac
 2612     CC=$ac_ct_CC
 2613   fi
 2614 else
 2615   CC="$ac_cv_prog_CC"
 2616 fi
 2617 
 2618 if test -z "$CC"; then
 2619           if test -n "$ac_tool_prefix"; then
 2620     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2623 $as_echo_n "checking for $ac_word... " >&6; }
 2624 if ${ac_cv_prog_CC+:} false; then :
 2625   $as_echo_n "(cached) " >&6
 2626 else
 2627   if test -n "$CC"; then
 2628   ac_cv_prog_CC="$CC" # Let the user override the test.
 2629 else
 2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2631 for as_dir in $PATH
 2632 do
 2633   IFS=$as_save_IFS
 2634   test -z "$as_dir" && as_dir=.
 2635     for ac_exec_ext in '' $ac_executable_extensions; do
 2636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2637     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2639     break 2
 2640   fi
 2641 done
 2642   done
 2643 IFS=$as_save_IFS
 2644 
 2645 fi
 2646 fi
 2647 CC=$ac_cv_prog_CC
 2648 if test -n "$CC"; then
 2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2650 $as_echo "$CC" >&6; }
 2651 else
 2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2653 $as_echo "no" >&6; }
 2654 fi
 2655 
 2656 
 2657   fi
 2658 fi
 2659 if test -z "$CC"; then
 2660   # Extract the first word of "cc", so it can be a program name with args.
 2661 set dummy cc; ac_word=$2
 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2663 $as_echo_n "checking for $ac_word... " >&6; }
 2664 if ${ac_cv_prog_CC+:} false; then :
 2665   $as_echo_n "(cached) " >&6
 2666 else
 2667   if test -n "$CC"; then
 2668   ac_cv_prog_CC="$CC" # Let the user override the test.
 2669 else
 2670   ac_prog_rejected=no
 2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2672 for as_dir in $PATH
 2673 do
 2674   IFS=$as_save_IFS
 2675   test -z "$as_dir" && as_dir=.
 2676     for ac_exec_ext in '' $ac_executable_extensions; do
 2677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2678     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2679        ac_prog_rejected=yes
 2680        continue
 2681      fi
 2682     ac_cv_prog_CC="cc"
 2683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2684     break 2
 2685   fi
 2686 done
 2687   done
 2688 IFS=$as_save_IFS
 2689 
 2690 if test $ac_prog_rejected = yes; then
 2691   # We found a bogon in the path, so make sure we never use it.
 2692   set dummy $ac_cv_prog_CC
 2693   shift
 2694   if test $# != 0; then
 2695     # We chose a different compiler from the bogus one.
 2696     # However, it has the same basename, so the bogon will be chosen
 2697     # first if we set CC to just the basename; use the full file name.
 2698     shift
 2699     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2700   fi
 2701 fi
 2702 fi
 2703 fi
 2704 CC=$ac_cv_prog_CC
 2705 if test -n "$CC"; then
 2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2707 $as_echo "$CC" >&6; }
 2708 else
 2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2710 $as_echo "no" >&6; }
 2711 fi
 2712 
 2713 
 2714 fi
 2715 if test -z "$CC"; then
 2716   if test -n "$ac_tool_prefix"; then
 2717   for ac_prog in cl.exe
 2718   do
 2719     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2722 $as_echo_n "checking for $ac_word... " >&6; }
 2723 if ${ac_cv_prog_CC+:} false; then :
 2724   $as_echo_n "(cached) " >&6
 2725 else
 2726   if test -n "$CC"; then
 2727   ac_cv_prog_CC="$CC" # Let the user override the test.
 2728 else
 2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2730 for as_dir in $PATH
 2731 do
 2732   IFS=$as_save_IFS
 2733   test -z "$as_dir" && as_dir=.
 2734     for ac_exec_ext in '' $ac_executable_extensions; do
 2735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2736     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2738     break 2
 2739   fi
 2740 done
 2741   done
 2742 IFS=$as_save_IFS
 2743 
 2744 fi
 2745 fi
 2746 CC=$ac_cv_prog_CC
 2747 if test -n "$CC"; then
 2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2749 $as_echo "$CC" >&6; }
 2750 else
 2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2752 $as_echo "no" >&6; }
 2753 fi
 2754 
 2755 
 2756     test -n "$CC" && break
 2757   done
 2758 fi
 2759 if test -z "$CC"; then
 2760   ac_ct_CC=$CC
 2761   for ac_prog in cl.exe
 2762 do
 2763   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2764 set dummy $ac_prog; ac_word=$2
 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2766 $as_echo_n "checking for $ac_word... " >&6; }
 2767 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2768   $as_echo_n "(cached) " >&6
 2769 else
 2770   if test -n "$ac_ct_CC"; then
 2771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2772 else
 2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2774 for as_dir in $PATH
 2775 do
 2776   IFS=$as_save_IFS
 2777   test -z "$as_dir" && as_dir=.
 2778     for ac_exec_ext in '' $ac_executable_extensions; do
 2779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2780     ac_cv_prog_ac_ct_CC="$ac_prog"
 2781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2782     break 2
 2783   fi
 2784 done
 2785   done
 2786 IFS=$as_save_IFS
 2787 
 2788 fi
 2789 fi
 2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2791 if test -n "$ac_ct_CC"; then
 2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2793 $as_echo "$ac_ct_CC" >&6; }
 2794 else
 2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2796 $as_echo "no" >&6; }
 2797 fi
 2798 
 2799 
 2800   test -n "$ac_ct_CC" && break
 2801 done
 2802 
 2803   if test "x$ac_ct_CC" = x; then
 2804     CC=""
 2805   else
 2806     case $cross_compiling:$ac_tool_warned in
 2807 yes:)
 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2810 ac_tool_warned=yes ;;
 2811 esac
 2812     CC=$ac_ct_CC
 2813   fi
 2814 fi
 2815 
 2816 fi
 2817 
 2818 
 2819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2821 as_fn_error $? "no acceptable C compiler found in \$PATH
 2822 See \`config.log' for more details" "$LINENO" 5 ; }
 2823 
 2824 # Provide some information about the compiler.
 2825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2826 set X $ac_compile
 2827 ac_compiler=$2
 2828 for ac_option in --version -v -V -qversion; do
 2829   { { ac_try="$ac_compiler $ac_option >&5"
 2830 case "(($ac_try" in
 2831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2832   *) ac_try_echo=$ac_try;;
 2833 esac
 2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2835 $as_echo "$ac_try_echo"; } >&5
 2836   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2837   ac_status=$?
 2838   if test -s conftest.err; then
 2839     sed '10a\
 2840 ... rest of stderr output deleted ...
 2841          10q' conftest.err >conftest.er1
 2842     cat conftest.er1 >&5
 2843   fi
 2844   rm -f conftest.er1 conftest.err
 2845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2846   test $ac_status = 0; }
 2847 done
 2848 
 2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2850 /* end confdefs.h.  */
 2851 
 2852 int
 2853 main ()
 2854 {
 2855 
 2856   ;
 2857   return 0;
 2858 }
 2859 _ACEOF
 2860 ac_clean_files_save=$ac_clean_files
 2861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2862 # Try to create an executable without -o first, disregard a.out.
 2863 # It will help us diagnose broken compilers, and finding out an intuition
 2864 # of exeext.
 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2866 $as_echo_n "checking whether the C compiler works... " >&6; }
 2867 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2868 
 2869 # The possible output files:
 2870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2871 
 2872 ac_rmfiles=
 2873 for ac_file in $ac_files
 2874 do
 2875   case $ac_file in
 2876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2877     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2878   esac
 2879 done
 2880 rm -f $ac_rmfiles
 2881 
 2882 if { { ac_try="$ac_link_default"
 2883 case "(($ac_try" in
 2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2885   *) ac_try_echo=$ac_try;;
 2886 esac
 2887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2888 $as_echo "$ac_try_echo"; } >&5
 2889   (eval "$ac_link_default") 2>&5
 2890   ac_status=$?
 2891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2892   test $ac_status = 0; }; then :
 2893   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2895 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2896 # so that the user can short-circuit this test for compilers unknown to
 2897 # Autoconf.
 2898 for ac_file in $ac_files ''
 2899 do
 2900   test -f "$ac_file" || continue
 2901   case $ac_file in
 2902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2903     ;;
 2904     [ab].out )
 2905     # We found the default executable, but exeext='' is most
 2906     # certainly right.
 2907     break;;
 2908     *.* )
 2909     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 2910     then :; else
 2911        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2912     fi
 2913     # We set ac_cv_exeext here because the later test for it is not
 2914     # safe: cross compilers may not add the suffix if given an `-o'
 2915     # argument, so we may need to know it at that point already.
 2916     # Even if this section looks crufty: it has the advantage of
 2917     # actually working.
 2918     break;;
 2919     * )
 2920     break;;
 2921   esac
 2922 done
 2923 test "$ac_cv_exeext" = no && ac_cv_exeext=
 2924 
 2925 else
 2926   ac_file=''
 2927 fi
 2928 if test -z "$ac_file"; then :
 2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2930 $as_echo "no" >&6; }
 2931 $as_echo "$as_me: failed program was:" >&5
 2932 sed 's/^/| /' conftest.$ac_ext >&5
 2933 
 2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2936 as_fn_error 77 "C compiler cannot create executables
 2937 See \`config.log' for more details" "$LINENO" 5 ; }
 2938 else
 2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2940 $as_echo "yes" >&6; }
 2941 fi
 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 2943 $as_echo_n "checking for C compiler default output file name... " >&6; }
 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 2945 $as_echo "$ac_file" >&6; }
 2946 ac_exeext=$ac_cv_exeext
 2947 
 2948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 2949 ac_clean_files=$ac_clean_files_save
 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 2951 $as_echo_n "checking for suffix of executables... " >&6; }
 2952 if { { ac_try="$ac_link"
 2953 case "(($ac_try" in
 2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2955   *) ac_try_echo=$ac_try;;
 2956 esac
 2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2958 $as_echo "$ac_try_echo"; } >&5
 2959   (eval "$ac_link") 2>&5
 2960   ac_status=$?
 2961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2962   test $ac_status = 0; }; then :
 2963   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 2964 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 2965 # work properly (i.e., refer to `conftest.exe'), while it won't with
 2966 # `rm'.
 2967 for ac_file in conftest.exe conftest conftest.*; do
 2968   test -f "$ac_file" || continue
 2969   case $ac_file in
 2970     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2971     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2972       break;;
 2973     * ) break;;
 2974   esac
 2975 done
 2976 else
 2977   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2979 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 2980 See \`config.log' for more details" "$LINENO" 5 ; }
 2981 fi
 2982 rm -f conftest conftest$ac_cv_exeext
 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 2984 $as_echo "$ac_cv_exeext" >&6; }
 2985 
 2986 rm -f conftest.$ac_ext
 2987 EXEEXT=$ac_cv_exeext
 2988 ac_exeext=$EXEEXT
 2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2990 /* end confdefs.h.  */
 2991 #include <stdio.h>
 2992 int
 2993 main ()
 2994 {
 2995 FILE *f = fopen ("conftest.out", "w");
 2996  return ferror (f) || fclose (f) != 0;
 2997 
 2998   ;
 2999   return 0;
 3000 }
 3001 _ACEOF
 3002 ac_clean_files="$ac_clean_files conftest.out"
 3003 # Check that the compiler produces executables we can run.  If not, either
 3004 # the compiler is broken, or we cross compile.
 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3006 $as_echo_n "checking whether we are cross compiling... " >&6; }
 3007 if test "$cross_compiling" != yes; then
 3008   { { ac_try="$ac_link"
 3009 case "(($ac_try" in
 3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3011   *) ac_try_echo=$ac_try;;
 3012 esac
 3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3014 $as_echo "$ac_try_echo"; } >&5
 3015   (eval "$ac_link") 2>&5
 3016   ac_status=$?
 3017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3018   test $ac_status = 0; }
 3019   if { ac_try='./conftest$ac_cv_exeext'
 3020   { { case "(($ac_try" in
 3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3022   *) ac_try_echo=$ac_try;;
 3023 esac
 3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3025 $as_echo "$ac_try_echo"; } >&5
 3026   (eval "$ac_try") 2>&5
 3027   ac_status=$?
 3028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3029   test $ac_status = 0; }; }; then
 3030     cross_compiling=no
 3031   else
 3032     if test "$cross_compiling" = maybe; then
 3033     cross_compiling=yes
 3034     else
 3035     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3037 as_fn_error $? "cannot run C compiled programs.
 3038 If you meant to cross compile, use \`--host'.
 3039 See \`config.log' for more details" "$LINENO" 5 ; }
 3040     fi
 3041   fi
 3042 fi
 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3044 $as_echo "$cross_compiling" >&6; }
 3045 
 3046 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3047 ac_clean_files=$ac_clean_files_save
 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3049 $as_echo_n "checking for suffix of object files... " >&6; }
 3050 if ${ac_cv_objext+:} false; then :
 3051   $as_echo_n "(cached) " >&6
 3052 else
 3053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3054 /* end confdefs.h.  */
 3055 
 3056 int
 3057 main ()
 3058 {
 3059 
 3060   ;
 3061   return 0;
 3062 }
 3063 _ACEOF
 3064 rm -f conftest.o conftest.obj
 3065 if { { ac_try="$ac_compile"
 3066 case "(($ac_try" in
 3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3068   *) ac_try_echo=$ac_try;;
 3069 esac
 3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3071 $as_echo "$ac_try_echo"; } >&5
 3072   (eval "$ac_compile") 2>&5
 3073   ac_status=$?
 3074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3075   test $ac_status = 0; }; then :
 3076   for ac_file in conftest.o conftest.obj conftest.*; do
 3077   test -f "$ac_file" || continue;
 3078   case $ac_file in
 3079     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3080     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3081        break;;
 3082   esac
 3083 done
 3084 else
 3085   $as_echo "$as_me: failed program was:" >&5
 3086 sed 's/^/| /' conftest.$ac_ext >&5
 3087 
 3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3090 as_fn_error $? "cannot compute suffix of object files: cannot compile
 3091 See \`config.log' for more details" "$LINENO" 5 ; }
 3092 fi
 3093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3094 fi
 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3096 $as_echo "$ac_cv_objext" >&6; }
 3097 OBJEXT=$ac_cv_objext
 3098 ac_objext=$OBJEXT
 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3100 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3101 if ${ac_cv_c_compiler_gnu+:} false; then :
 3102   $as_echo_n "(cached) " >&6
 3103 else
 3104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3105 /* end confdefs.h.  */
 3106 
 3107 int
 3108 main ()
 3109 {
 3110 #ifndef __GNUC__
 3111        choke me
 3112 #endif
 3113 
 3114   ;
 3115   return 0;
 3116 }
 3117 _ACEOF
 3118 if ac_fn_c_try_compile "$LINENO"; then :
 3119   ac_compiler_gnu=yes
 3120 else
 3121   ac_compiler_gnu=no
 3122 fi
 3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3124 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3125 
 3126 fi
 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3128 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3129 if test $ac_compiler_gnu = yes; then
 3130   GCC=yes
 3131 else
 3132   GCC=
 3133 fi
 3134 ac_test_CFLAGS=${CFLAGS+set}
 3135 ac_save_CFLAGS=$CFLAGS
 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3137 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3138 if ${ac_cv_prog_cc_g+:} false; then :
 3139   $as_echo_n "(cached) " >&6
 3140 else
 3141   ac_save_c_werror_flag=$ac_c_werror_flag
 3142    ac_c_werror_flag=yes
 3143    ac_cv_prog_cc_g=no
 3144    CFLAGS="-g"
 3145    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3146 /* end confdefs.h.  */
 3147 
 3148 int
 3149 main ()
 3150 {
 3151 
 3152   ;
 3153   return 0;
 3154 }
 3155 _ACEOF
 3156 if ac_fn_c_try_compile "$LINENO"; then :
 3157   ac_cv_prog_cc_g=yes
 3158 else
 3159   CFLAGS=""
 3160       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3161 /* end confdefs.h.  */
 3162 
 3163 int
 3164 main ()
 3165 {
 3166 
 3167   ;
 3168   return 0;
 3169 }
 3170 _ACEOF
 3171 if ac_fn_c_try_compile "$LINENO"; then :
 3172 
 3173 else
 3174   ac_c_werror_flag=$ac_save_c_werror_flag
 3175      CFLAGS="-g"
 3176      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3177 /* end confdefs.h.  */
 3178 
 3179 int
 3180 main ()
 3181 {
 3182 
 3183   ;
 3184   return 0;
 3185 }
 3186 _ACEOF
 3187 if ac_fn_c_try_compile "$LINENO"; then :
 3188   ac_cv_prog_cc_g=yes
 3189 fi
 3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3191 fi
 3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3193 fi
 3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3195    ac_c_werror_flag=$ac_save_c_werror_flag
 3196 fi
 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3198 $as_echo "$ac_cv_prog_cc_g" >&6; }
 3199 if test "$ac_test_CFLAGS" = set; then
 3200   CFLAGS=$ac_save_CFLAGS
 3201 elif test $ac_cv_prog_cc_g = yes; then
 3202   if test "$GCC" = yes; then
 3203     CFLAGS="-g -O2"
 3204   else
 3205     CFLAGS="-g"
 3206   fi
 3207 else
 3208   if test "$GCC" = yes; then
 3209     CFLAGS="-O2"
 3210   else
 3211     CFLAGS=
 3212   fi
 3213 fi
 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3215 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3216 if ${ac_cv_prog_cc_c89+:} false; then :
 3217   $as_echo_n "(cached) " >&6
 3218 else
 3219   ac_cv_prog_cc_c89=no
 3220 ac_save_CC=$CC
 3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3222 /* end confdefs.h.  */
 3223 #include <stdarg.h>
 3224 #include <stdio.h>
 3225 struct stat;
 3226 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3227 struct buf { int x; };
 3228 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3229 static char *e (p, i)
 3230      char **p;
 3231      int i;
 3232 {
 3233   return p[i];
 3234 }
 3235 static char *f (char * (*g) (char **, int), char **p, ...)
 3236 {
 3237   char *s;
 3238   va_list v;
 3239   va_start (v,p);
 3240   s = g (p, va_arg (v,int));
 3241   va_end (v);
 3242   return s;
 3243 }
 3244 
 3245 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3246    function prototypes and stuff, but not '\xHH' hex character constants.
 3247    These don't provoke an error unfortunately, instead are silently treated
 3248    as 'x'.  The following induces an error, until -std is added to get
 3249    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3250    array size at least.  It's necessary to write '\x00'==0 to get something
 3251    that's true only with -std.  */
 3252 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3253 
 3254 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3255    inside strings and character constants.  */
 3256 #define FOO(x) 'x'
 3257 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3258 
 3259 int test (int i, double x);
 3260 struct s1 {int (*f) (int a);};
 3261 struct s2 {int (*f) (double a);};
 3262 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3263 int argc;
 3264 char **argv;
 3265 int
 3266 main ()
 3267 {
 3268 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3269   ;
 3270   return 0;
 3271 }
 3272 _ACEOF
 3273 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3274     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3275 do
 3276   CC="$ac_save_CC $ac_arg"
 3277   if ac_fn_c_try_compile "$LINENO"; then :
 3278   ac_cv_prog_cc_c89=$ac_arg
 3279 fi
 3280 rm -f core conftest.err conftest.$ac_objext
 3281   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3282 done
 3283 rm -f conftest.$ac_ext
 3284 CC=$ac_save_CC
 3285 
 3286 fi
 3287 # AC_CACHE_VAL
 3288 case "x$ac_cv_prog_cc_c89" in
 3289   x)
 3290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3291 $as_echo "none needed" >&6; } ;;
 3292   xno)
 3293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3294 $as_echo "unsupported" >&6; } ;;
 3295   *)
 3296     CC="$CC $ac_cv_prog_cc_c89"
 3297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3298 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3299 esac
 3300 if test "x$ac_cv_prog_cc_c89" != xno; then :
 3301 
 3302 fi
 3303 
 3304 ac_ext=c
 3305 ac_cpp='$CPP $CPPFLAGS'
 3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3309 
 3310 
 3311 
 3312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
 3313 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
 3314 
 3315     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
 3316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
 3317 $as_echo "loading" >&6; }
 3318     . "${TCL_BIN_DIR}/tclConfig.sh"
 3319     else
 3320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
 3321 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
 3322     fi
 3323 
 3324     # eval is required to do the TCL_DBGX substitution
 3325     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
 3326     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
 3327 
 3328     # If the TCL_BIN_DIR is the build directory (not the install directory),
 3329     # then set the common variable name to the value of the build variables.
 3330     # For example, the variable TCL_LIB_SPEC will be set to the value
 3331     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
 3332     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
 3333     # installed and uninstalled version of Tcl.
 3334     if test -f "${TCL_BIN_DIR}/Makefile" ; then
 3335         TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
 3336         TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
 3337         TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
 3338     elif test "`uname -s`" = "Darwin"; then
 3339     # If Tcl was built as a framework, attempt to use the libraries
 3340     # from the framework at the given location so that linking works
 3341     # against Tcl.framework installed in an arbitrary location.
 3342     case ${TCL_DEFS} in
 3343         *TCL_FRAMEWORK*)
 3344         if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
 3345             for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
 3346                  "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
 3347             if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
 3348                 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
 3349                 break
 3350             fi
 3351             done
 3352         fi
 3353         if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
 3354             TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
 3355             TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
 3356         fi
 3357         ;;
 3358     esac
 3359     fi
 3360 
 3361     # eval is required to do the TCL_DBGX substitution
 3362     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
 3363     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
 3364     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
 3365     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
 3366 
 3367 
 3368 
 3369 
 3370 
 3371 
 3372 
 3373 
 3374 
 3375 
 3376 
 3377 
 3378 
 3379 
 3380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
 3381 $as_echo_n "checking platform... " >&6; }
 3382     hold_cc=$CC; CC="$TCL_CC"
 3383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3384 /* end confdefs.h.  */
 3385 
 3386 int
 3387 main ()
 3388 {
 3389 
 3390         #ifdef _WIN32
 3391         #error win32
 3392         #endif
 3393 
 3394   ;
 3395   return 0;
 3396 }
 3397 _ACEOF
 3398 if ac_fn_c_try_compile "$LINENO"; then :
 3399 
 3400         TEA_PLATFORM="unix"
 3401         CYGPATH=echo
 3402 
 3403 else
 3404 
 3405         TEA_PLATFORM="windows"
 3406         # Extract the first word of "cygpath", so it can be a program name with args.
 3407 set dummy cygpath; ac_word=$2
 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3409 $as_echo_n "checking for $ac_word... " >&6; }
 3410 if ${ac_cv_prog_CYGPATH+:} false; then :
 3411   $as_echo_n "(cached) " >&6
 3412 else
 3413   if test -n "$CYGPATH"; then
 3414   ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
 3415 else
 3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3417 for as_dir in $PATH
 3418 do
 3419   IFS=$as_save_IFS
 3420   test -z "$as_dir" && as_dir=.
 3421     for ac_exec_ext in '' $ac_executable_extensions; do
 3422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3423     ac_cv_prog_CYGPATH="cygpath -m"
 3424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3425     break 2
 3426   fi
 3427 done
 3428   done
 3429 IFS=$as_save_IFS
 3430 
 3431   test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
 3432 fi
 3433 fi
 3434 CYGPATH=$ac_cv_prog_CYGPATH
 3435 if test -n "$CYGPATH"; then
 3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
 3437 $as_echo "$CYGPATH" >&6; }
 3438 else
 3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3440 $as_echo "no" >&6; }
 3441 fi
 3442 
 3443 
 3444 
 3445 fi
 3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3447     CC=$hold_cc
 3448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
 3449 $as_echo "$TEA_PLATFORM" >&6; }
 3450 
 3451     # The BUILD_$pkg is to define the correct extern storage class
 3452     # handling when making this package
 3453 
 3454 cat >>confdefs.h <<_ACEOF
 3455 #define BUILD_${PACKAGE_NAME} /**/
 3456 _ACEOF
 3457 
 3458     # Do this here as we have fully defined TEA_PLATFORM now
 3459     if test "${TEA_PLATFORM}" = "windows" ; then
 3460     EXEEXT=".exe"
 3461     CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
 3462     fi
 3463 
 3464     # TEA specific:
 3465 
 3466 
 3467 
 3468 
 3469 
 3470 
 3471 
 3472 
 3473 
 3474     #
 3475     # Ok, lets find the tk configuration
 3476     # First, look for one uninstalled.
 3477     # the alternative search directory is invoked by --with-tk
 3478     #
 3479 
 3480     if test x"${no_tk}" = x ; then
 3481     # we reset no_tk in case something fails here
 3482     no_tk=true
 3483 
 3484 # Check whether --with-tk was given.
 3485 if test "${with_tk+set}" = set; then :
 3486   withval=$with_tk; with_tkconfig="${withval}"
 3487 fi
 3488 
 3489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
 3490 $as_echo_n "checking for Tk configuration... " >&6; }
 3491     if ${ac_cv_c_tkconfig+:} false; then :
 3492   $as_echo_n "(cached) " >&6
 3493 else
 3494 
 3495 
 3496         # First check to see if --with-tkconfig was specified.
 3497         if test x"${with_tkconfig}" != x ; then
 3498         case "${with_tkconfig}" in
 3499             */tkConfig.sh )
 3500             if test -f "${with_tkconfig}"; then
 3501                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5
 3502 $as_echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
 3503                 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`"
 3504             fi ;;
 3505         esac
 3506         if test -f "${with_tkconfig}/tkConfig.sh" ; then
 3507             ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`"
 3508         else
 3509             as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
 3510         fi
 3511         fi
 3512 
 3513         # then check for a private Tk library
 3514         if test x"${ac_cv_c_tkconfig}" = x ; then
 3515         for i in \
 3516             ../tk \
 3517             `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
 3518             `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
 3519             `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
 3520             ../../tk \
 3521             `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
 3522             `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
 3523             `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
 3524             ../../../tk \
 3525             `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
 3526             `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
 3527             `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
 3528             if test "${TEA_PLATFORM}" = "windows" \
 3529                 -a -f "$i/win/tkConfig.sh" ; then
 3530             ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
 3531             break
 3532             fi
 3533             if test -f "$i/unix/tkConfig.sh" ; then
 3534             ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
 3535             break
 3536             fi
 3537         done
 3538         fi
 3539 
 3540         # on Darwin, check in Framework installation locations
 3541         if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
 3542         for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
 3543             `ls -d /Library/Frameworks 2>/dev/null` \
 3544             `ls -d /Network/Library/Frameworks 2>/dev/null` \
 3545             `ls -d /System/Library/Frameworks 2>/dev/null` \
 3546             ; do
 3547             if test -f "$i/Tk.framework/tkConfig.sh" ; then
 3548             ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`"
 3549             break
 3550             fi
 3551         done
 3552         fi
 3553 
 3554         # check in a few common install locations
 3555         if test x"${ac_cv_c_tkconfig}" = x ; then
 3556         for i in `ls -d ${libdir} 2>/dev/null` \
 3557             `ls -d ${exec_prefix}/lib 2>/dev/null` \
 3558             `ls -d ${prefix}/lib 2>/dev/null` \
 3559             `ls -d /usr/local/lib 2>/dev/null` \
 3560             `ls -d /usr/contrib/lib 2>/dev/null` \
 3561             `ls -d /usr/lib 2>/dev/null` \
 3562             `ls -d /usr/lib64 2>/dev/null` \
 3563             ; do
 3564             if test -f "$i/tkConfig.sh" ; then
 3565             ac_cv_c_tkconfig="`(cd $i; pwd)`"
 3566             break
 3567             fi
 3568         done
 3569         fi
 3570 
 3571         # TEA specific: on Windows, check in common installation locations
 3572         if test "${TEA_PLATFORM}" = "windows" \
 3573         -a x"${ac_cv_c_tkconfig}" = x ; then
 3574         for i in `ls -d C:/Tcl/lib 2>/dev/null` \
 3575             `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
 3576             ; do
 3577             if test -f "$i/tkConfig.sh" ; then
 3578             ac_cv_c_tkconfig="`(cd $i; pwd)`"
 3579             break
 3580             fi
 3581         done
 3582         fi
 3583 
 3584         # check in a few other private locations
 3585         if test x"${ac_cv_c_tkconfig}" = x ; then
 3586         for i in \
 3587             ${srcdir}/../tk \
 3588             `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
 3589             `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
 3590             `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
 3591             if test "${TEA_PLATFORM}" = "windows" \
 3592                 -a -f "$i/win/tkConfig.sh" ; then
 3593             ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
 3594             break
 3595             fi
 3596             if test -f "$i/unix/tkConfig.sh" ; then
 3597             ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
 3598             break
 3599             fi
 3600         done
 3601         fi
 3602 
 3603 fi
 3604 
 3605 
 3606     if test x"${ac_cv_c_tkconfig}" = x ; then
 3607         TK_BIN_DIR="# no Tk configs found"
 3608         as_fn_error $? "Can't find Tk configuration definitions. Use --with-tk to specify a directory containing tkConfig.sh" "$LINENO" 5
 3609     else
 3610         no_tk=
 3611         TK_BIN_DIR="${ac_cv_c_tkconfig}"
 3612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
 3613 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
 3614     fi
 3615     fi
 3616 
 3617 
 3618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
 3619 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
 3620 
 3621     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
 3622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
 3623 $as_echo "loading" >&6; }
 3624     . "${TK_BIN_DIR}/tkConfig.sh"
 3625     else
 3626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
 3627 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
 3628     fi
 3629 
 3630     # eval is required to do the TK_DBGX substitution
 3631     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
 3632     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
 3633 
 3634     # If the TK_BIN_DIR is the build directory (not the install directory),
 3635     # then set the common variable name to the value of the build variables.
 3636     # For example, the variable TK_LIB_SPEC will be set to the value
 3637     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
 3638     # instead of TK_BUILD_LIB_SPEC since it will work with both an
 3639     # installed and uninstalled version of Tcl.
 3640     if test -f "${TK_BIN_DIR}/Makefile" ; then
 3641         TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}"
 3642         TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}"
 3643         TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}"
 3644     elif test "`uname -s`" = "Darwin"; then
 3645     # If Tk was built as a framework, attempt to use the libraries
 3646     # from the framework at the given location so that linking works
 3647     # against Tk.framework installed in an arbitrary location.
 3648     case ${TK_DEFS} in
 3649         *TK_FRAMEWORK*)
 3650         if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
 3651             for i in "`cd "${TK_BIN_DIR}"; pwd`" \
 3652                  "`cd "${TK_BIN_DIR}"/../..; pwd`"; do
 3653             if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
 3654                 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}"
 3655                 break
 3656             fi
 3657             done
 3658         fi
 3659         if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
 3660             TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
 3661             TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
 3662         fi
 3663         ;;
 3664     esac
 3665     fi
 3666 
 3667     # eval is required to do the TK_DBGX substitution
 3668     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
 3669     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
 3670     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
 3671     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
 3672 
 3673     # TEA specific: Ensure windowingsystem is defined
 3674     if test "${TEA_PLATFORM}" = "unix" ; then
 3675     case ${TK_DEFS} in
 3676         *MAC_OSX_TK*)
 3677 
 3678 $as_echo "#define MAC_OSX_TK 1" >>confdefs.h
 3679 
 3680         TEA_WINDOWINGSYSTEM="aqua"
 3681         ;;
 3682         *)
 3683         TEA_WINDOWINGSYSTEM="x11"
 3684         ;;
 3685     esac
 3686     elif test "${TEA_PLATFORM}" = "windows" ; then
 3687     TEA_WINDOWINGSYSTEM="win32"
 3688     fi
 3689 
 3690 
 3691 
 3692 
 3693 
 3694 
 3695 
 3696 
 3697 
 3698 
 3699 
 3700 
 3701 
 3702     # TEA specific:
 3703 
 3704 
 3705 
 3706 
 3707 #-----------------------------------------------------------------------
 3708 # Handle the --prefix=... option by defaulting to what Tcl gave.
 3709 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
 3710 #-----------------------------------------------------------------------
 3711 
 3712 
 3713     if test "${prefix}" = "NONE"; then
 3714     prefix_default=yes
 3715     if test x"${TCL_PREFIX}" != x; then
 3716         { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
 3717 $as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
 3718         prefix=${TCL_PREFIX}
 3719     else
 3720         { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
 3721 $as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
 3722         prefix=/usr/local
 3723     fi
 3724     fi
 3725     if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
 3726     -o x"${exec_prefix_default}" = x"yes" ; then
 3727     if test x"${TCL_EXEC_PREFIX}" != x; then
 3728         { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
 3729 $as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
 3730         exec_prefix=${TCL_EXEC_PREFIX}
 3731     else
 3732         { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
 3733 $as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
 3734         exec_prefix=$prefix
 3735     fi
 3736     fi
 3737 
 3738 
 3739 #-----------------------------------------------------------------------
 3740 # Standard compiler checks.
 3741 # This sets up CC by using the CC env var, or looks for gcc otherwise.
 3742 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
 3743 # the basic setup necessary to compile executables.
 3744 #-----------------------------------------------------------------------
 3745 
 3746 
 3747     # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
 3748     # in this macro, they need to go into TEA_SETUP_COMPILER instead.
 3749 
 3750     ac_ext=c
 3751 ac_cpp='$CPP $CPPFLAGS'
 3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3755 if test -n "$ac_tool_prefix"; then
 3756   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3757 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3759 $as_echo_n "checking for $ac_word... " >&6; }
 3760 if ${ac_cv_prog_CC+:} false; then :
 3761   $as_echo_n "(cached) " >&6
 3762 else
 3763   if test -n "$CC"; then
 3764   ac_cv_prog_CC="$CC" # Let the user override the test.
 3765 else
 3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3767 for as_dir in $PATH
 3768 do
 3769   IFS=$as_save_IFS
 3770   test -z "$as_dir" && as_dir=.
 3771     for ac_exec_ext in '' $ac_executable_extensions; do
 3772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3773     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3775     break 2
 3776   fi
 3777 done
 3778   done
 3779 IFS=$as_save_IFS
 3780 
 3781 fi
 3782 fi
 3783 CC=$ac_cv_prog_CC
 3784 if test -n "$CC"; then
 3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3786 $as_echo "$CC" >&6; }
 3787 else
 3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3789 $as_echo "no" >&6; }
 3790 fi
 3791 
 3792 
 3793 fi
 3794 if test -z "$ac_cv_prog_CC"; then
 3795   ac_ct_CC=$CC
 3796   # Extract the first word of "gcc", so it can be a program name with args.
 3797 set dummy gcc; ac_word=$2
 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3799 $as_echo_n "checking for $ac_word... " >&6; }
 3800 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3801   $as_echo_n "(cached) " >&6
 3802 else
 3803   if test -n "$ac_ct_CC"; then
 3804   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3805 else
 3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3807 for as_dir in $PATH
 3808 do
 3809   IFS=$as_save_IFS
 3810   test -z "$as_dir" && as_dir=.
 3811     for ac_exec_ext in '' $ac_executable_extensions; do
 3812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3813     ac_cv_prog_ac_ct_CC="gcc"
 3814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3815     break 2
 3816   fi
 3817 done
 3818   done
 3819 IFS=$as_save_IFS
 3820 
 3821 fi
 3822 fi
 3823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3824 if test -n "$ac_ct_CC"; then
 3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3826 $as_echo "$ac_ct_CC" >&6; }
 3827 else
 3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3829 $as_echo "no" >&6; }
 3830 fi
 3831 
 3832   if test "x$ac_ct_CC" = x; then
 3833     CC=""
 3834   else
 3835     case $cross_compiling:$ac_tool_warned in
 3836 yes:)
 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3839 ac_tool_warned=yes ;;
 3840 esac
 3841     CC=$ac_ct_CC
 3842   fi
 3843 else
 3844   CC="$ac_cv_prog_CC"
 3845 fi
 3846 
 3847 if test -z "$CC"; then
 3848           if test -n "$ac_tool_prefix"; then
 3849     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3850 set dummy ${ac_tool_prefix}cc; ac_word=$2
 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3852 $as_echo_n "checking for $ac_word... " >&6; }
 3853 if ${ac_cv_prog_CC+:} false; then :
 3854   $as_echo_n "(cached) " >&6
 3855 else
 3856   if test -n "$CC"; then
 3857   ac_cv_prog_CC="$CC" # Let the user override the test.
 3858 else
 3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3860 for as_dir in $PATH
 3861 do
 3862   IFS=$as_save_IFS
 3863   test -z "$as_dir" && as_dir=.
 3864     for ac_exec_ext in '' $ac_executable_extensions; do
 3865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3866     ac_cv_prog_CC="${ac_tool_prefix}cc"
 3867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3868     break 2
 3869   fi
 3870 done
 3871   done
 3872 IFS=$as_save_IFS
 3873 
 3874 fi
 3875 fi
 3876 CC=$ac_cv_prog_CC
 3877 if test -n "$CC"; then
 3878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3879 $as_echo "$CC" >&6; }
 3880 else
 3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3882 $as_echo "no" >&6; }
 3883 fi
 3884 
 3885 
 3886   fi
 3887 fi
 3888 if test -z "$CC"; then
 3889   # Extract the first word of "cc", so it can be a program name with args.
 3890 set dummy cc; ac_word=$2
 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3892 $as_echo_n "checking for $ac_word... " >&6; }
 3893 if ${ac_cv_prog_CC+:} false; then :
 3894   $as_echo_n "(cached) " >&6
 3895 else
 3896   if test -n "$CC"; then
 3897   ac_cv_prog_CC="$CC" # Let the user override the test.
 3898 else
 3899   ac_prog_rejected=no
 3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3901 for as_dir in $PATH
 3902 do
 3903   IFS=$as_save_IFS
 3904   test -z "$as_dir" && as_dir=.
 3905     for ac_exec_ext in '' $ac_executable_extensions; do
 3906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3908        ac_prog_rejected=yes
 3909        continue
 3910      fi
 3911     ac_cv_prog_CC="cc"
 3912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3913     break 2
 3914   fi
 3915 done
 3916   done
 3917 IFS=$as_save_IFS
 3918 
 3919 if test $ac_prog_rejected = yes; then
 3920   # We found a bogon in the path, so make sure we never use it.
 3921   set dummy $ac_cv_prog_CC
 3922   shift
 3923   if test $# != 0; then
 3924     # We chose a different compiler from the bogus one.
 3925     # However, it has the same basename, so the bogon will be chosen
 3926     # first if we set CC to just the basename; use the full file name.
 3927     shift
 3928     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 3929   fi
 3930 fi
 3931 fi
 3932 fi
 3933 CC=$ac_cv_prog_CC
 3934 if test -n "$CC"; then
 3935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3936 $as_echo "$CC" >&6; }
 3937 else
 3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3939 $as_echo "no" >&6; }
 3940 fi
 3941 
 3942 
 3943 fi
 3944 if test -z "$CC"; then
 3945   if test -n "$ac_tool_prefix"; then
 3946   for ac_prog in cl.exe
 3947   do
 3948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3951 $as_echo_n "checking for $ac_word... " >&6; }
 3952 if ${ac_cv_prog_CC+:} false; then :
 3953   $as_echo_n "(cached) " >&6
 3954 else
 3955   if test -n "$CC"; then
 3956   ac_cv_prog_CC="$CC" # Let the user override the test.
 3957 else
 3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3959 for as_dir in $PATH
 3960 do
 3961   IFS=$as_save_IFS
 3962   test -z "$as_dir" && as_dir=.
 3963     for ac_exec_ext in '' $ac_executable_extensions; do
 3964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3965     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3967     break 2
 3968   fi
 3969 done
 3970   done
 3971 IFS=$as_save_IFS
 3972 
 3973 fi
 3974 fi
 3975 CC=$ac_cv_prog_CC
 3976 if test -n "$CC"; then
 3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3978 $as_echo "$CC" >&6; }
 3979 else
 3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3981 $as_echo "no" >&6; }
 3982 fi
 3983 
 3984 
 3985     test -n "$CC" && break
 3986   done
 3987 fi
 3988 if test -z "$CC"; then
 3989   ac_ct_CC=$CC
 3990   for ac_prog in cl.exe
 3991 do
 3992   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3993 set dummy $ac_prog; ac_word=$2
 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3995 $as_echo_n "checking for $ac_word... " >&6; }
 3996 if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3997   $as_echo_n "(cached) " >&6
 3998 else
 3999   if test -n "$ac_ct_CC"; then
 4000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 4001 else
 4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4003 for as_dir in $PATH
 4004 do
 4005   IFS=$as_save_IFS
 4006   test -z "$as_dir" && as_dir=.
 4007     for ac_exec_ext in '' $ac_executable_extensions; do
 4008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4009     ac_cv_prog_ac_ct_CC="$ac_prog"
 4010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4011     break 2
 4012   fi
 4013 done
 4014   done
 4015 IFS=$as_save_IFS
 4016 
 4017 fi
 4018 fi
 4019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 4020 if test -n "$ac_ct_CC"; then
 4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 4022 $as_echo "$ac_ct_CC" >&6; }
 4023 else
 4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4025 $as_echo "no" >&6; }
 4026 fi
 4027 
 4028 
 4029   test -n "$ac_ct_CC" && break
 4030 done
 4031 
 4032   if test "x$ac_ct_CC" = x; then
 4033     CC=""
 4034   else
 4035     case $cross_compiling:$ac_tool_warned in
 4036 yes:)
 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4039 ac_tool_warned=yes ;;
 4040 esac
 4041     CC=$ac_ct_CC
 4042   fi
 4043 fi
 4044 
 4045 fi
 4046 
 4047 
 4048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4050 as_fn_error $? "no acceptable C compiler found in \$PATH
 4051 See \`config.log' for more details" "$LINENO" 5 ; }
 4052 
 4053 # Provide some information about the compiler.
 4054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 4055 set X $ac_compile
 4056 ac_compiler=$2
 4057 for ac_option in --version -v -V -qversion; do
 4058   { { ac_try="$ac_compiler $ac_option >&5"
 4059 case "(($ac_try" in
 4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4061   *) ac_try_echo=$ac_try;;
 4062 esac
 4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4064 $as_echo "$ac_try_echo"; } >&5
 4065   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 4066   ac_status=$?
 4067   if test -s conftest.err; then
 4068     sed '10a\
 4069 ... rest of stderr output deleted ...
 4070          10q' conftest.err >conftest.er1
 4071     cat conftest.er1 >&5
 4072   fi
 4073   rm -f conftest.er1 conftest.err
 4074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4075   test $ac_status = 0; }
 4076 done
 4077 
 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 4079 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 4080 if ${ac_cv_c_compiler_gnu+:} false; then :
 4081   $as_echo_n "(cached) " >&6
 4082 else
 4083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4084 /* end confdefs.h.  */
 4085 
 4086 int
 4087 main ()
 4088 {
 4089 #ifndef __GNUC__
 4090        choke me
 4091 #endif
 4092 
 4093   ;
 4094   return 0;
 4095 }
 4096 _ACEOF
 4097 if ac_fn_c_try_compile "$LINENO"; then :
 4098   ac_compiler_gnu=yes
 4099 else
 4100   ac_compiler_gnu=no
 4101 fi
 4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4103 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 4104 
 4105 fi
 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 4107 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 4108 if test $ac_compiler_gnu = yes; then
 4109   GCC=yes
 4110 else
 4111   GCC=
 4112 fi
 4113 ac_test_CFLAGS=${CFLAGS+set}
 4114 ac_save_CFLAGS=$CFLAGS
 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 4116 $as_echo_n "checking whether $CC accepts -g... " >&6; }
 4117 if ${ac_cv_prog_cc_g+:} false; then :
 4118   $as_echo_n "(cached) " >&6
 4119 else
 4120   ac_save_c_werror_flag=$ac_c_werror_flag
 4121    ac_c_werror_flag=yes
 4122    ac_cv_prog_cc_g=no
 4123    CFLAGS="-g"
 4124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4125 /* end confdefs.h.  */
 4126 
 4127 int
 4128 main ()
 4129 {
 4130 
 4131   ;
 4132   return 0;
 4133 }
 4134 _ACEOF
 4135 if ac_fn_c_try_compile "$LINENO"; then :
 4136   ac_cv_prog_cc_g=yes
 4137 else
 4138   CFLAGS=""
 4139       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4140 /* end confdefs.h.  */
 4141 
 4142 int
 4143 main ()
 4144 {
 4145 
 4146   ;
 4147   return 0;
 4148 }
 4149 _ACEOF
 4150 if ac_fn_c_try_compile "$LINENO"; then :
 4151 
 4152 else
 4153   ac_c_werror_flag=$ac_save_c_werror_flag
 4154      CFLAGS="-g"
 4155      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4156 /* end confdefs.h.  */
 4157 
 4158 int
 4159 main ()
 4160 {
 4161 
 4162   ;
 4163   return 0;
 4164 }
 4165 _ACEOF
 4166 if ac_fn_c_try_compile "$LINENO"; then :
 4167   ac_cv_prog_cc_g=yes
 4168 fi
 4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4170 fi
 4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4172 fi
 4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4174    ac_c_werror_flag=$ac_save_c_werror_flag
 4175 fi
 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 4177 $as_echo "$ac_cv_prog_cc_g" >&6; }
 4178 if test "$ac_test_CFLAGS" = set; then
 4179   CFLAGS=$ac_save_CFLAGS
 4180 elif test $ac_cv_prog_cc_g = yes; then
 4181   if test "$GCC" = yes; then
 4182     CFLAGS="-g -O2"
 4183   else
 4184     CFLAGS="-g"
 4185   fi
 4186 else
 4187   if test "$GCC" = yes; then
 4188     CFLAGS="-O2"
 4189   else
 4190     CFLAGS=
 4191   fi
 4192 fi
 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 4195 if ${ac_cv_prog_cc_c89+:} false; then :
 4196   $as_echo_n "(cached) " >&6
 4197 else
 4198   ac_cv_prog_cc_c89=no
 4199 ac_save_CC=$CC
 4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4201 /* end confdefs.h.  */
 4202 #include <stdarg.h>
 4203 #include <stdio.h>
 4204 struct stat;
 4205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 4206 struct buf { int x; };
 4207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 4208 static char *e (p, i)
 4209      char **p;
 4210      int i;
 4211 {
 4212   return p[i];
 4213 }
 4214 static char *f (char * (*g) (char **, int), char **p, ...)
 4215 {
 4216   char *s;
 4217   va_list v;
 4218   va_start (v,p);
 4219   s = g (p, va_arg (v,int));
 4220   va_end (v);
 4221   return s;
 4222 }
 4223 
 4224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 4225    function prototypes and stuff, but not '\xHH' hex character constants.
 4226    These don't provoke an error unfortunately, instead are silently treated
 4227    as 'x'.  The following induces an error, until -std is added to get
 4228    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 4229    array size at least.  It's necessary to write '\x00'==0 to get something
 4230    that's true only with -std.  */
 4231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 4232 
 4233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 4234    inside strings and character constants.  */
 4235 #define FOO(x) 'x'
 4236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 4237 
 4238 int test (int i, double x);
 4239 struct s1 {int (*f) (int a);};
 4240 struct s2 {int (*f) (double a);};
 4241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 4242 int argc;
 4243 char **argv;
 4244 int
 4245 main ()
 4246 {
 4247 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 4248   ;
 4249   return 0;
 4250 }
 4251 _ACEOF
 4252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 4253     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4254 do
 4255   CC="$ac_save_CC $ac_arg"
 4256   if ac_fn_c_try_compile "$LINENO"; then :
 4257   ac_cv_prog_cc_c89=$ac_arg
 4258 fi
 4259 rm -f core conftest.err conftest.$ac_objext
 4260   test "x$ac_cv_prog_cc_c89" != "xno" && break
 4261 done
 4262 rm -f conftest.$ac_ext
 4263 CC=$ac_save_CC
 4264 
 4265 fi
 4266 # AC_CACHE_VAL
 4267 case "x$ac_cv_prog_cc_c89" in
 4268   x)
 4269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4270 $as_echo "none needed" >&6; } ;;
 4271   xno)
 4272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4273 $as_echo "unsupported" >&6; } ;;
 4274   *)
 4275     CC="$CC $ac_cv_prog_cc_c89"
 4276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4277 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 4278 esac
 4279 if test "x$ac_cv_prog_cc_c89" != xno; then :
 4280 
 4281 fi
 4282 
 4283 ac_ext=c
 4284 ac_cpp='$CPP $CPPFLAGS'
 4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4288 
 4289     ac_ext=c
 4290 ac_cpp='$CPP $CPPFLAGS'
 4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 4295 $as_echo_n "checking how to run the C preprocessor... " >&6; }
 4296 # On Suns, sometimes $CPP names a directory.
 4297 if test -n "$CPP" && test -d "$CPP"; then
 4298   CPP=
 4299 fi
 4300 if test -z "$CPP"; then
 4301   if ${ac_cv_prog_CPP+:} false; then :
 4302   $as_echo_n "(cached) " >&6
 4303 else
 4304       # Double quotes because CPP needs to be expanded
 4305     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 4306     do
 4307       ac_preproc_ok=false
 4308 for ac_c_preproc_warn_flag in '' yes
 4309 do
 4310   # Use a header file that comes with gcc, so configuring glibc
 4311   # with a fresh cross-compiler works.
 4312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4313   # <limits.h> exists even on freestanding compilers.
 4314   # On the NeXT, cc -E runs the code through the compiler's parser,
 4315   # not just through cpp. "Syntax error" is here to catch this case.
 4316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4317 /* end confdefs.h.  */
 4318 #ifdef __STDC__
 4319 # include <limits.h>
 4320 #else
 4321 # include <assert.h>
 4322 #endif
 4323              Syntax error
 4324 _ACEOF
 4325 if ac_fn_c_try_cpp "$LINENO"; then :
 4326 
 4327 else
 4328   # Broken: fails on valid input.
 4329 continue
 4330 fi
 4331 rm -f conftest.err conftest.i conftest.$ac_ext
 4332 
 4333   # OK, works on sane cases.  Now check whether nonexistent headers
 4334   # can be detected and how.
 4335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4336 /* end confdefs.h.  */
 4337 #include <ac_nonexistent.h>
 4338 _ACEOF
 4339 if ac_fn_c_try_cpp "$LINENO"; then :
 4340   # Broken: success on invalid input.
 4341 continue
 4342 else
 4343   # Passes both tests.
 4344 ac_preproc_ok=:
 4345 break
 4346 fi
 4347 rm -f conftest.err conftest.i conftest.$ac_ext
 4348 
 4349 done
 4350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4351 rm -f conftest.i conftest.err conftest.$ac_ext
 4352 if $ac_preproc_ok; then :
 4353   break
 4354 fi
 4355 
 4356     done
 4357     ac_cv_prog_CPP=$CPP
 4358 
 4359 fi
 4360   CPP=$ac_cv_prog_CPP
 4361 else
 4362   ac_cv_prog_CPP=$CPP
 4363 fi
 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 4365 $as_echo "$CPP" >&6; }
 4366 ac_preproc_ok=false
 4367 for ac_c_preproc_warn_flag in '' yes
 4368 do
 4369   # Use a header file that comes with gcc, so configuring glibc
 4370   # with a fresh cross-compiler works.
 4371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4372   # <limits.h> exists even on freestanding compilers.
 4373   # On the NeXT, cc -E runs the code through the compiler's parser,
 4374   # not just through cpp. "Syntax error" is here to catch this case.
 4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4376 /* end confdefs.h.  */
 4377 #ifdef __STDC__
 4378 # include <limits.h>
 4379 #else
 4380 # include <assert.h>
 4381 #endif
 4382              Syntax error
 4383 _ACEOF
 4384 if ac_fn_c_try_cpp "$LINENO"; then :
 4385 
 4386 else
 4387   # Broken: fails on valid input.
 4388 continue
 4389 fi
 4390 rm -f conftest.err conftest.i conftest.$ac_ext
 4391 
 4392   # OK, works on sane cases.  Now check whether nonexistent headers
 4393   # can be detected and how.
 4394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4395 /* end confdefs.h.  */
 4396 #include <ac_nonexistent.h>
 4397 _ACEOF
 4398 if ac_fn_c_try_cpp "$LINENO"; then :
 4399   # Broken: success on invalid input.
 4400 continue
 4401 else
 4402   # Passes both tests.
 4403 ac_preproc_ok=:
 4404 break
 4405 fi
 4406 rm -f conftest.err conftest.i conftest.$ac_ext
 4407 
 4408 done
 4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4410 rm -f conftest.i conftest.err conftest.$ac_ext
 4411 if $ac_preproc_ok; then :
 4412 
 4413 else
 4414   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4416 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 4417 See \`config.log' for more details" "$LINENO" 5 ; }
 4418 fi
 4419 
 4420 ac_ext=c
 4421 ac_cpp='$CPP $CPPFLAGS'
 4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4425 
 4426 
 4427     INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
 4428     INSTALL_DATA_DIR='${INSTALL} -d -m 755'
 4429     INSTALL_DATA='${INSTALL} -m 644'
 4430     INSTALL_PROGRAM='${INSTALL}'
 4431     INSTALL_SCRIPT='${INSTALL}'
 4432     INSTALL_LIBRARY='${INSTALL_DATA}'
 4433 
 4434 
 4435 
 4436 
 4437 
 4438 
 4439 
 4440 
 4441     #--------------------------------------------------------------------
 4442     # Checks to see if the make program sets the $MAKE variable.
 4443     #--------------------------------------------------------------------
 4444 
 4445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 4446 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 4447 set x ${MAKE-make}
 4448 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 4449 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 4450   $as_echo_n "(cached) " >&6
 4451 else
 4452   cat >conftest.make <<\_ACEOF
 4453 SHELL = /bin/sh
 4454 all:
 4455     @echo '@@@%%%=$(MAKE)=@@@%%%'
 4456 _ACEOF
 4457 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 4458 case `${MAKE-make} -f conftest.make 2>/dev/null` in
 4459   *@@@%%%=?*=@@@%%%*)
 4460     eval ac_cv_prog_make_${ac_make}_set=yes;;
 4461   *)
 4462     eval ac_cv_prog_make_${ac_make}_set=no;;
 4463 esac
 4464 rm -f conftest.make
 4465 fi
 4466 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4468 $as_echo "yes" >&6; }
 4469   SET_MAKE=
 4470 else
 4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4472 $as_echo "no" >&6; }
 4473   SET_MAKE="MAKE=${MAKE-make}"
 4474 fi
 4475 
 4476 
 4477     #--------------------------------------------------------------------
 4478     # Find ranlib
 4479     #--------------------------------------------------------------------
 4480 
 4481     if test -n "$ac_tool_prefix"; then
 4482   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 4483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4485 $as_echo_n "checking for $ac_word... " >&6; }
 4486 if ${ac_cv_prog_RANLIB+:} false; then :
 4487   $as_echo_n "(cached) " >&6
 4488 else
 4489   if test -n "$RANLIB"; then
 4490   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 4491 else
 4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4493 for as_dir in $PATH
 4494 do
 4495   IFS=$as_save_IFS
 4496   test -z "$as_dir" && as_dir=.
 4497     for ac_exec_ext in '' $ac_executable_extensions; do
 4498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4499     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 4500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4501     break 2
 4502   fi
 4503 done
 4504   done
 4505 IFS=$as_save_IFS
 4506 
 4507 fi
 4508 fi
 4509 RANLIB=$ac_cv_prog_RANLIB
 4510 if test -n "$RANLIB"; then
 4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 4512 $as_echo "$RANLIB" >&6; }
 4513 else
 4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4515 $as_echo "no" >&6; }
 4516 fi
 4517 
 4518 
 4519 fi
 4520 if test -z "$ac_cv_prog_RANLIB"; then
 4521   ac_ct_RANLIB=$RANLIB
 4522   # Extract the first word of "ranlib", so it can be a program name with args.
 4523 set dummy ranlib; ac_word=$2
 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4525 $as_echo_n "checking for $ac_word... " >&6; }
 4526 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 4527   $as_echo_n "(cached) " >&6
 4528 else
 4529   if test -n "$ac_ct_RANLIB"; then
 4530   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 4531 else
 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4533 for as_dir in $PATH
 4534 do
 4535   IFS=$as_save_IFS
 4536   test -z "$as_dir" && as_dir=.
 4537     for ac_exec_ext in '' $ac_executable_extensions; do
 4538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4539     ac_cv_prog_ac_ct_RANLIB="ranlib"
 4540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4541     break 2
 4542   fi
 4543 done
 4544   done
 4545 IFS=$as_save_IFS
 4546 
 4547 fi
 4548 fi
 4549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 4550 if test -n "$ac_ct_RANLIB"; then
 4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 4552 $as_echo "$ac_ct_RANLIB" >&6; }
 4553 else
 4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4555 $as_echo "no" >&6; }
 4556 fi
 4557 
 4558   if test "x$ac_ct_RANLIB" = x; then
 4559     RANLIB=""
 4560   else
 4561     case $cross_compiling:$ac_tool_warned in
 4562 yes:)
 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4565 ac_tool_warned=yes ;;
 4566 esac
 4567     RANLIB=$ac_ct_RANLIB
 4568   fi
 4569 else
 4570   RANLIB="$ac_cv_prog_RANLIB"
 4571 fi
 4572 
 4573 
 4574     #--------------------------------------------------------------------
 4575     # Determines the correct binary file extension (.o, .obj, .exe etc.)
 4576     #--------------------------------------------------------------------
 4577 
 4578 
 4579 
 4580 
 4581 
 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 4584 if ${ac_cv_path_GREP+:} false; then :
 4585   $as_echo_n "(cached) " >&6
 4586 else
 4587   if test -z "$GREP"; then
 4588   ac_path_GREP_found=false
 4589   # Loop through the user's path and test for each of PROGNAME-LIST
 4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4592 do
 4593   IFS=$as_save_IFS
 4594   test -z "$as_dir" && as_dir=.
 4595     for ac_prog in grep ggrep; do
 4596     for ac_exec_ext in '' $ac_executable_extensions; do
 4597       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 4598       as_fn_executable_p "$ac_path_GREP" || continue
 4599 # Check for GNU ac_path_GREP and select it if it is found.
 4600   # Check for GNU $ac_path_GREP
 4601 case `"$ac_path_GREP" --version 2>&1` in
 4602 *GNU*)
 4603   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 4604 *)
 4605   ac_count=0
 4606   $as_echo_n 0123456789 >"conftest.in"
 4607   while :
 4608   do
 4609     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4610     mv "conftest.tmp" "conftest.in"
 4611     cp "conftest.in" "conftest.nl"
 4612     $as_echo 'GREP' >> "conftest.nl"
 4613     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4615     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4616     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 4617       # Best one so far, save it but keep looking for a better one
 4618       ac_cv_path_GREP="$ac_path_GREP"
 4619       ac_path_GREP_max=$ac_count
 4620     fi
 4621     # 10*(2^10) chars as input seems more than enough
 4622     test $ac_count -gt 10 && break
 4623   done
 4624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4625 esac
 4626 
 4627       $ac_path_GREP_found && break 3
 4628     done
 4629   done
 4630   done
 4631 IFS=$as_save_IFS
 4632   if test -z "$ac_cv_path_GREP"; then
 4633     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4634   fi
 4635 else
 4636   ac_cv_path_GREP=$GREP
 4637 fi
 4638 
 4639 fi
 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 4641 $as_echo "$ac_cv_path_GREP" >&6; }
 4642  GREP="$ac_cv_path_GREP"
 4643 
 4644 
 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 4646 $as_echo_n "checking for egrep... " >&6; }
 4647 if ${ac_cv_path_EGREP+:} false; then :
 4648   $as_echo_n "(cached) " >&6
 4649 else
 4650   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 4651    then ac_cv_path_EGREP="$GREP -E"
 4652    else
 4653      if test -z "$EGREP"; then
 4654   ac_path_EGREP_found=false
 4655   # Loop through the user's path and test for each of PROGNAME-LIST
 4656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 4658 do
 4659   IFS=$as_save_IFS
 4660   test -z "$as_dir" && as_dir=.
 4661     for ac_prog in egrep; do
 4662     for ac_exec_ext in '' $ac_executable_extensions; do
 4663       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 4664       as_fn_executable_p "$ac_path_EGREP" || continue
 4665 # Check for GNU ac_path_EGREP and select it if it is found.
 4666   # Check for GNU $ac_path_EGREP
 4667 case `"$ac_path_EGREP" --version 2>&1` in
 4668 *GNU*)
 4669   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 4670 *)
 4671   ac_count=0
 4672   $as_echo_n 0123456789 >"conftest.in"
 4673   while :
 4674   do
 4675     cat "conftest.in" "conftest.in" >"conftest.tmp"
 4676     mv "conftest.tmp" "conftest.in"
 4677     cp "conftest.in" "conftest.nl"
 4678     $as_echo 'EGREP' >> "conftest.nl"
 4679     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 4680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 4681     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4682     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 4683       # Best one so far, save it but keep looking for a better one
 4684       ac_cv_path_EGREP="$ac_path_EGREP"
 4685       ac_path_EGREP_max=$ac_count
 4686     fi
 4687     # 10*(2^10) chars as input seems more than enough
 4688     test $ac_count -gt 10 && break
 4689   done
 4690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4691 esac
 4692 
 4693       $ac_path_EGREP_found && break 3
 4694     done
 4695   done
 4696   done
 4697 IFS=$as_save_IFS
 4698   if test -z "$ac_cv_path_EGREP"; then
 4699     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4700   fi
 4701 else
 4702   ac_cv_path_EGREP=$EGREP
 4703 fi
 4704 
 4705    fi
 4706 fi
 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 4708 $as_echo "$ac_cv_path_EGREP" >&6; }
 4709  EGREP="$ac_cv_path_EGREP"
 4710 
 4711 
 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 4713 $as_echo_n "checking for ANSI C header files... " >&6; }
 4714 if ${ac_cv_header_stdc+:} false; then :
 4715   $as_echo_n "(cached) " >&6
 4716 else
 4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4718 /* end confdefs.h.  */
 4719 #include <stdlib.h>
 4720 #include <stdarg.h>
 4721 #include <string.h>
 4722 #include <float.h>
 4723 
 4724 int
 4725 main ()
 4726 {
 4727 
 4728   ;
 4729   return 0;
 4730 }
 4731 _ACEOF
 4732 if ac_fn_c_try_compile "$LINENO"; then :
 4733   ac_cv_header_stdc=yes
 4734 else
 4735   ac_cv_header_stdc=no
 4736 fi
 4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4738 
 4739 if test $ac_cv_header_stdc = yes; then
 4740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 4741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4742 /* end confdefs.h.  */
 4743 #include <string.h>
 4744 
 4745 _ACEOF
 4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4747   $EGREP "memchr" >/dev/null 2>&1; then :
 4748 
 4749 else
 4750   ac_cv_header_stdc=no
 4751 fi
 4752 rm -f conftest*
 4753 
 4754 fi
 4755 
 4756 if test $ac_cv_header_stdc = yes; then
 4757   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 4758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4759 /* end confdefs.h.  */
 4760 #include <stdlib.h>
 4761 
 4762 _ACEOF
 4763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4764   $EGREP "free" >/dev/null 2>&1; then :
 4765 
 4766 else
 4767   ac_cv_header_stdc=no
 4768 fi
 4769 rm -f conftest*
 4770 
 4771 fi
 4772 
 4773 if test $ac_cv_header_stdc = yes; then
 4774   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 4775   if test "$cross_compiling" = yes; then :
 4776   :
 4777 else
 4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4779 /* end confdefs.h.  */
 4780 #include <ctype.h>
 4781 #include <stdlib.h>
 4782 #if ((' ' & 0x0FF) == 0x020)
 4783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 4784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 4785 #else
 4786 # define ISLOWER(c) \
 4787            (('a' <= (c) && (c) <= 'i') \
 4788              || ('j' <= (c) && (c) <= 'r') \
 4789              || ('s' <= (c) && (c) <= 'z'))
 4790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 4791 #endif
 4792 
 4793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 4794 int
 4795 main ()
 4796 {
 4797   int i;
 4798   for (i = 0; i < 256; i++)
 4799     if (XOR (islower (i), ISLOWER (i))
 4800     || toupper (i) != TOUPPER (i))
 4801       return 2;
 4802   return 0;
 4803 }
 4804 _ACEOF
 4805 if ac_fn_c_try_run "$LINENO"; then :
 4806 
 4807 else
 4808   ac_cv_header_stdc=no
 4809 fi
 4810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4811   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4812 fi
 4813 
 4814 fi
 4815 fi
 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 4817 $as_echo "$ac_cv_header_stdc" >&6; }
 4818 if test $ac_cv_header_stdc = yes; then
 4819 
 4820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 4821 
 4822 fi
 4823 
 4824 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 4825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 4826           inttypes.h stdint.h unistd.h
 4827 do :
 4828   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4830 "
 4831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4832   cat >>confdefs.h <<_ACEOF
 4833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4834 _ACEOF
 4835 
 4836 fi
 4837 
 4838 done
 4839 
 4840 
 4841 
 4842     # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
 4843 
 4844 
 4845     #------------------------------------------------------------------------
 4846     # If we're using GCC, see if the compiler understands -pipe. If so, use it.
 4847     # It makes compiling go faster.  (This is only a performance feature.)
 4848     #------------------------------------------------------------------------
 4849 
 4850     if test -z "$no_pipe" -a -n "$GCC"; then
 4851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
 4852 $as_echo_n "checking if the compiler understands -pipe... " >&6; }
 4853 if ${tcl_cv_cc_pipe+:} false; then :
 4854   $as_echo_n "(cached) " >&6
 4855 else
 4856 
 4857         hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
 4858         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4859 /* end confdefs.h.  */
 4860 
 4861 int
 4862 main ()
 4863 {
 4864 
 4865   ;
 4866   return 0;
 4867 }
 4868 _ACEOF
 4869 if ac_fn_c_try_compile "$LINENO"; then :
 4870   tcl_cv_cc_pipe=yes
 4871 else
 4872   tcl_cv_cc_pipe=no
 4873 fi
 4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4875         CFLAGS=$hold_cflags
 4876 fi
 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
 4878 $as_echo "$tcl_cv_cc_pipe" >&6; }
 4879     if test $tcl_cv_cc_pipe = yes; then
 4880         CFLAGS="$CFLAGS -pipe"
 4881     fi
 4882     fi
 4883 
 4884     #--------------------------------------------------------------------
 4885     # Common compiler flag setup
 4886     #--------------------------------------------------------------------
 4887 
 4888      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 4889 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 4890 if ${ac_cv_c_bigendian+:} false; then :
 4891   $as_echo_n "(cached) " >&6
 4892 else
 4893   ac_cv_c_bigendian=unknown
 4894     # See if we're dealing with a universal compiler.
 4895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4896 /* end confdefs.h.  */
 4897 #ifndef __APPLE_CC__
 4898            not a universal capable compiler
 4899          #endif
 4900          typedef int dummy;
 4901 
 4902 _ACEOF
 4903 if ac_fn_c_try_compile "$LINENO"; then :
 4904 
 4905     # Check for potential -arch flags.  It is not universal unless
 4906     # there are at least two -arch flags with different values.
 4907     ac_arch=
 4908     ac_prev=
 4909     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 4910      if test -n "$ac_prev"; then
 4911        case $ac_word in
 4912          i?86 | x86_64 | ppc | ppc64)
 4913            if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 4914          ac_arch=$ac_word
 4915            else
 4916          ac_cv_c_bigendian=universal
 4917          break
 4918            fi
 4919            ;;
 4920        esac
 4921        ac_prev=
 4922      elif test "x$ac_word" = "x-arch"; then
 4923        ac_prev=arch
 4924      fi
 4925        done
 4926 fi
 4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4928     if test $ac_cv_c_bigendian = unknown; then
 4929       # See if sys/param.h defines the BYTE_ORDER macro.
 4930       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4931 /* end confdefs.h.  */
 4932 #include <sys/types.h>
 4933          #include <sys/param.h>
 4934 
 4935 int
 4936 main ()
 4937 {
 4938 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 4939              && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 4940              && LITTLE_ENDIAN)
 4941           bogus endian macros
 4942          #endif
 4943 
 4944   ;
 4945   return 0;
 4946 }
 4947 _ACEOF
 4948 if ac_fn_c_try_compile "$LINENO"; then :
 4949   # It does; now see whether it defined to BIG_ENDIAN or not.
 4950      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4951 /* end confdefs.h.  */
 4952 #include <sys/types.h>
 4953         #include <sys/param.h>
 4954 
 4955 int
 4956 main ()
 4957 {
 4958 #if BYTE_ORDER != BIG_ENDIAN
 4959          not big endian
 4960         #endif
 4961 
 4962   ;
 4963   return 0;
 4964 }
 4965 _ACEOF
 4966 if ac_fn_c_try_compile "$LINENO"; then :
 4967   ac_cv_c_bigendian=yes
 4968 else
 4969   ac_cv_c_bigendian=no
 4970 fi
 4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4972 fi
 4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4974     fi
 4975     if test $ac_cv_c_bigendian = unknown; then
 4976       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 4977       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4978 /* end confdefs.h.  */
 4979 #include <limits.h>
 4980 
 4981 int
 4982 main ()
 4983 {
 4984 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 4985           bogus endian macros
 4986          #endif
 4987 
 4988   ;
 4989   return 0;
 4990 }
 4991 _ACEOF
 4992 if ac_fn_c_try_compile "$LINENO"; then :
 4993   # It does; now see whether it defined to _BIG_ENDIAN or not.
 4994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4995 /* end confdefs.h.  */
 4996 #include <limits.h>
 4997 
 4998 int
 4999 main ()
 5000 {
 5001 #ifndef _BIG_ENDIAN
 5002          not big endian
 5003         #endif
 5004 
 5005   ;
 5006   return 0;
 5007 }
 5008 _ACEOF
 5009 if ac_fn_c_try_compile "$LINENO"; then :
 5010   ac_cv_c_bigendian=yes
 5011 else
 5012   ac_cv_c_bigendian=no
 5013 fi
 5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5015 fi
 5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5017     fi
 5018     if test $ac_cv_c_bigendian = unknown; then
 5019       # Compile a test program.
 5020       if test "$cross_compiling" = yes; then :
 5021   # Try to guess by grepping values from an object file.
 5022      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5023 /* end confdefs.h.  */
 5024 short int ascii_mm[] =
 5025           { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 5026         short int ascii_ii[] =
 5027           { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 5028         int use_ascii (int i) {
 5029           return ascii_mm[i] + ascii_ii[i];
 5030         }
 5031         short int ebcdic_ii[] =
 5032           { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 5033         short int ebcdic_mm[] =
 5034           { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 5035         int use_ebcdic (int i) {
 5036           return ebcdic_mm[i] + ebcdic_ii[i];
 5037         }
 5038         extern int foo;
 5039 
 5040 int
 5041 main ()
 5042 {
 5043 return use_ascii (foo) == use_ebcdic (foo);
 5044   ;
 5045   return 0;
 5046 }
 5047 _ACEOF
 5048 if ac_fn_c_try_compile "$LINENO"; then :
 5049   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 5050           ac_cv_c_bigendian=yes
 5051         fi
 5052         if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 5053           if test "$ac_cv_c_bigendian" = unknown; then
 5054         ac_cv_c_bigendian=no
 5055           else
 5056         # finding both strings is unlikely to happen, but who knows?
 5057         ac_cv_c_bigendian=unknown
 5058           fi
 5059         fi
 5060 fi
 5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5062 else
 5063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5064 /* end confdefs.h.  */
 5065 $ac_includes_default
 5066 int
 5067 main ()
 5068 {
 5069 
 5070          /* Are we little or big endian?  From Harbison&Steele.  */
 5071          union
 5072          {
 5073            long int l;
 5074            char c[sizeof (long int)];
 5075          } u;
 5076          u.l = 1;
 5077          return u.c[sizeof (long int) - 1] == 1;
 5078 
 5079   ;
 5080   return 0;
 5081 }
 5082 _ACEOF
 5083 if ac_fn_c_try_run "$LINENO"; then :
 5084   ac_cv_c_bigendian=no
 5085 else
 5086   ac_cv_c_bigendian=yes
 5087 fi
 5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5089   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5090 fi
 5091 
 5092     fi
 5093 fi
 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 5095 $as_echo "$ac_cv_c_bigendian" >&6; }
 5096  case $ac_cv_c_bigendian in #(
 5097    yes)
 5098      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 5099 ;; #(
 5100    no)
 5101       ;; #(
 5102    universal)
 5103 
 5104 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 5105 
 5106      ;; #(
 5107    *)
 5108      as_fn_error $? "unknown endianness
 5109  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
 5110  esac
 5111 
 5112     if test "${TEA_PLATFORM}" = "unix" ; then
 5113 
 5114     #--------------------------------------------------------------------
 5115     # On a few very rare systems, all of the libm.a stuff is
 5116     # already in libc.a.  Set compiler flags accordingly.
 5117     # Also, Linux requires the "ieee" library for math to work
 5118     # right (and it must appear before "-lm").
 5119     #--------------------------------------------------------------------
 5120 
 5121     ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
 5122 if test "x$ac_cv_func_sin" = xyes; then :
 5123   MATH_LIBS=""
 5124 else
 5125   MATH_LIBS="-lm"
 5126 fi
 5127 
 5128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
 5129 $as_echo_n "checking for main in -lieee... " >&6; }
 5130 if ${ac_cv_lib_ieee_main+:} false; then :
 5131   $as_echo_n "(cached) " >&6
 5132 else
 5133   ac_check_lib_save_LIBS=$LIBS
 5134 LIBS="-lieee  $LIBS"
 5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5136 /* end confdefs.h.  */
 5137 
 5138 
 5139 int
 5140 main ()
 5141 {
 5142 return main ();
 5143   ;
 5144   return 0;
 5145 }
 5146 _ACEOF
 5147 if ac_fn_c_try_link "$LINENO"; then :
 5148   ac_cv_lib_ieee_main=yes
 5149 else
 5150   ac_cv_lib_ieee_main=no
 5151 fi
 5152 rm -f core conftest.err conftest.$ac_objext \
 5153     conftest$ac_exeext conftest.$ac_ext
 5154 LIBS=$ac_check_lib_save_LIBS
 5155 fi
 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
 5157 $as_echo "$ac_cv_lib_ieee_main" >&6; }
 5158 if test "x$ac_cv_lib_ieee_main" = xyes; then :
 5159   MATH_LIBS="-lieee $MATH_LIBS"
 5160 fi
 5161 
 5162 
 5163     #--------------------------------------------------------------------
 5164     # Interactive UNIX requires -linet instead of -lsocket, plus it
 5165     # needs net/errno.h to define the socket-related error codes.
 5166     #--------------------------------------------------------------------
 5167 
 5168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
 5169 $as_echo_n "checking for main in -linet... " >&6; }
 5170 if ${ac_cv_lib_inet_main+:} false; then :
 5171   $as_echo_n "(cached) " >&6
 5172 else
 5173   ac_check_lib_save_LIBS=$LIBS
 5174 LIBS="-linet  $LIBS"
 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5176 /* end confdefs.h.  */
 5177 
 5178 
 5179 int
 5180 main ()
 5181 {
 5182 return main ();
 5183   ;
 5184   return 0;
 5185 }
 5186 _ACEOF
 5187 if ac_fn_c_try_link "$LINENO"; then :
 5188   ac_cv_lib_inet_main=yes
 5189 else
 5190   ac_cv_lib_inet_main=no
 5191 fi
 5192 rm -f core conftest.err conftest.$ac_objext \
 5193     conftest$ac_exeext conftest.$ac_ext
 5194 LIBS=$ac_check_lib_save_LIBS
 5195 fi
 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
 5197 $as_echo "$ac_cv_lib_inet_main" >&6; }
 5198 if test "x$ac_cv_lib_inet_main" = xyes; then :
 5199   LIBS="$LIBS -linet"
 5200 fi
 5201 
 5202     ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
 5203 if test "x$ac_cv_header_net_errno_h" = xyes; then :
 5204 
 5205 
 5206 $as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
 5207 
 5208 fi
 5209 
 5210 
 5211 
 5212     #--------------------------------------------------------------------
 5213     #   Check for the existence of the -lsocket and -lnsl libraries.
 5214     #   The order here is important, so that they end up in the right
 5215     #   order in the command line generated by make.  Here are some
 5216     #   special considerations:
 5217     #   1. Use "connect" and "accept" to check for -lsocket, and
 5218     #      "gethostbyname" to check for -lnsl.
 5219     #   2. Use each function name only once:  can't redo a check because
 5220     #      autoconf caches the results of the last check and won't redo it.
 5221     #   3. Use -lnsl and -lsocket only if they supply procedures that
 5222     #      aren't already present in the normal libraries.  This is because
 5223     #      IRIX 5.2 has libraries, but they aren't needed and they're
 5224     #      bogus:  they goof up name resolution if used.
 5225     #   4. On some SVR4 systems, can't use -lsocket without -lnsl too.
 5226     #      To get around this problem, check for both libraries together
 5227     #      if -lsocket doesn't work by itself.
 5228     #--------------------------------------------------------------------
 5229 
 5230     tcl_checkBoth=0
 5231     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
 5232 if test "x$ac_cv_func_connect" = xyes; then :
 5233   tcl_checkSocket=0
 5234 else
 5235   tcl_checkSocket=1
 5236 fi
 5237 
 5238     if test "$tcl_checkSocket" = 1; then
 5239     ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
 5240 if test "x$ac_cv_func_setsockopt" = xyes; then :
 5241 
 5242 else
 5243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
 5244 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
 5245 if ${ac_cv_lib_socket_setsockopt+:} false; then :
 5246   $as_echo_n "(cached) " >&6
 5247 else
 5248   ac_check_lib_save_LIBS=$LIBS
 5249 LIBS="-lsocket  $LIBS"
 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5251 /* end confdefs.h.  */
 5252 
 5253 /* Override any GCC internal prototype to avoid an error.
 5254    Use char because int might match the return type of a GCC
 5255    builtin and then its argument prototype would still apply.  */
 5256 #ifdef __cplusplus
 5257 extern "C"
 5258 #endif
 5259 char setsockopt ();
 5260 int
 5261 main ()
 5262 {
 5263 return setsockopt ();
 5264   ;
 5265   return 0;
 5266 }
 5267 _ACEOF
 5268 if ac_fn_c_try_link "$LINENO"; then :
 5269   ac_cv_lib_socket_setsockopt=yes
 5270 else
 5271   ac_cv_lib_socket_setsockopt=no
 5272 fi
 5273 rm -f core conftest.err conftest.$ac_objext \
 5274     conftest$ac_exeext conftest.$ac_ext
 5275 LIBS=$ac_check_lib_save_LIBS
 5276 fi
 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
 5278 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
 5279 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
 5280   LIBS="$LIBS -lsocket"
 5281 else
 5282   tcl_checkBoth=1
 5283 fi
 5284 
 5285 fi
 5286 
 5287     fi
 5288     if test "$tcl_checkBoth" = 1; then
 5289     tk_oldLibs=$LIBS
 5290     LIBS="$LIBS -lsocket -lnsl"
 5291     ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
 5292 if test "x$ac_cv_func_accept" = xyes; then :
 5293   tcl_checkNsl=0
 5294 else
 5295   LIBS=$tk_oldLibs
 5296 fi
 5297 
 5298     fi
 5299     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 5300 if test "x$ac_cv_func_gethostbyname" = xyes; then :
 5301 
 5302 else
 5303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 5304 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 5305 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
 5306   $as_echo_n "(cached) " >&6
 5307 else
 5308   ac_check_lib_save_LIBS=$LIBS
 5309 LIBS="-lnsl  $LIBS"
 5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5311 /* end confdefs.h.  */
 5312 
 5313 /* Override any GCC internal prototype to avoid an error.
 5314    Use char because int might match the return type of a GCC
 5315    builtin and then its argument prototype would still apply.  */
 5316 #ifdef __cplusplus
 5317 extern "C"
 5318 #endif
 5319 char gethostbyname ();
 5320 int
 5321 main ()
 5322 {
 5323 return gethostbyname ();
 5324   ;
 5325   return 0;
 5326 }
 5327 _ACEOF
 5328 if ac_fn_c_try_link "$LINENO"; then :
 5329   ac_cv_lib_nsl_gethostbyname=yes
 5330 else
 5331   ac_cv_lib_nsl_gethostbyname=no
 5332 fi
 5333 rm -f core conftest.err conftest.$ac_objext \
 5334     conftest$ac_exeext conftest.$ac_ext
 5335 LIBS=$ac_check_lib_save_LIBS
 5336 fi
 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 5338 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 5339 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
 5340   LIBS="$LIBS -lnsl"
 5341 fi
 5342 
 5343 fi
 5344 
 5345 
 5346     # TEA specific: Don't perform the eval of the libraries here because
 5347     # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
 5348 
 5349     TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
 5350 
 5351 
 5352 
 5353 
 5354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
 5355 $as_echo_n "checking dirent.h... " >&6; }
 5356 if ${tcl_cv_dirent_h+:} false; then :
 5357   $as_echo_n "(cached) " >&6
 5358 else
 5359 
 5360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5361 /* end confdefs.h.  */
 5362 #include <sys/types.h>
 5363 #include <dirent.h>
 5364 int
 5365 main ()
 5366 {
 5367 
 5368 #ifndef _POSIX_SOURCE
 5369 #   ifdef __Lynx__
 5370     /*
 5371      * Generate compilation error to make the test fail:  Lynx headers
 5372      * are only valid if really in the POSIX environment.
 5373      */
 5374 
 5375     missing_procedure();
 5376 #   endif
 5377 #endif
 5378 DIR *d;
 5379 struct dirent *entryPtr;
 5380 char *p;
 5381 d = opendir("foobar");
 5382 entryPtr = readdir(d);
 5383 p = entryPtr->d_name;
 5384 closedir(d);
 5385 
 5386   ;
 5387   return 0;
 5388 }
 5389 _ACEOF
 5390 if ac_fn_c_try_link "$LINENO"; then :
 5391   tcl_cv_dirent_h=yes
 5392 else
 5393   tcl_cv_dirent_h=no
 5394 fi
 5395 rm -f core conftest.err conftest.$ac_objext \
 5396     conftest$ac_exeext conftest.$ac_ext
 5397 fi
 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
 5399 $as_echo "$tcl_cv_dirent_h" >&6; }
 5400 
 5401     if test $tcl_cv_dirent_h = no; then
 5402 
 5403 $as_echo "#define NO_DIRENT_H 1" >>confdefs.h
 5404 
 5405     fi
 5406 
 5407     # TEA specific:
 5408     ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
 5409 if test "x$ac_cv_header_errno_h" = xyes; then :
 5410 
 5411 else
 5412 
 5413 $as_echo "#define NO_ERRNO_H 1" >>confdefs.h
 5414 
 5415 fi
 5416 
 5417 
 5418     ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
 5419 if test "x$ac_cv_header_float_h" = xyes; then :
 5420 
 5421 else
 5422 
 5423 $as_echo "#define NO_FLOAT_H 1" >>confdefs.h
 5424 
 5425 fi
 5426 
 5427 
 5428     ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
 5429 if test "x$ac_cv_header_values_h" = xyes; then :
 5430 
 5431 else
 5432 
 5433 $as_echo "#define NO_VALUES_H 1" >>confdefs.h
 5434 
 5435 fi
 5436 
 5437 
 5438     ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
 5439 if test "x$ac_cv_header_limits_h" = xyes; then :
 5440 
 5441 $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
 5442 
 5443 else
 5444 
 5445 $as_echo "#define NO_LIMITS_H 1" >>confdefs.h
 5446 
 5447 fi
 5448 
 5449 
 5450     ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 5451 if test "x$ac_cv_header_stdlib_h" = xyes; then :
 5452   tcl_ok=1
 5453 else
 5454   tcl_ok=0
 5455 fi
 5456 
 5457 
 5458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5459 /* end confdefs.h.  */
 5460 #include <stdlib.h>
 5461 
 5462 _ACEOF
 5463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5464   $EGREP "strtol" >/dev/null 2>&1; then :
 5465 
 5466 else
 5467   tcl_ok=0
 5468 fi
 5469 rm -f conftest*
 5470 
 5471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5472 /* end confdefs.h.  */
 5473 #include <stdlib.h>
 5474 
 5475 _ACEOF
 5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5477   $EGREP "strtoul" >/dev/null 2>&1; then :
 5478 
 5479 else
 5480   tcl_ok=0
 5481 fi
 5482 rm -f conftest*
 5483 
 5484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5485 /* end confdefs.h.  */
 5486 #include <stdlib.h>
 5487 
 5488 _ACEOF
 5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5490   $EGREP "strtod" >/dev/null 2>&1; then :
 5491 
 5492 else
 5493   tcl_ok=0
 5494 fi
 5495 rm -f conftest*
 5496 
 5497     if test $tcl_ok = 0; then
 5498 
 5499 $as_echo "#define NO_STDLIB_H 1" >>confdefs.h
 5500 
 5501     fi
 5502     ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 5503 if test "x$ac_cv_header_string_h