"Fossies" - the Fresh Open Source Software Archive

Member "wcalc-2.5/configure" (2 Jan 2015, 210031 Bytes) of package /linux/privat/wcalc-2.5.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 and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 2.4.1_vs_2.5.

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