github.com/aergoio/aergo@v1.3.1/libtool/src/gmp-6.1.2/configure (about)

     1  #! /bin/sh
     2  # From configure.ac Revision.
     3  # Guess values for system-dependent variables and create Makefiles.
     4  # Generated by GNU Autoconf 2.69 for GNU MP 6.1.2.
     5  #
     6  # Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>.
     7  #
     8  #
     9  #
    10  # Copyright 1996-2016 Free Software Foundation, Inc.
    11  #
    12  # This file is part of the GNU MP Library.
    13  #
    14  # The GNU MP Library is free software; you can redistribute it and/or modify
    15  # it under the terms of either:
    16  #
    17  #   * the GNU Lesser General Public License as published by the Free
    18  #     Software Foundation; either version 3 of the License, or (at your
    19  #     option) any later version.
    20  #
    21  # or
    22  #
    23  #   * the GNU General Public License as published by the Free Software
    24  #     Foundation; either version 2 of the License, or (at your option) any
    25  #     later version.
    26  #
    27  # or both in parallel, as here.
    28  #
    29  # The GNU MP Library is distributed in the hope that it will be useful, but
    30  # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    31  # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    32  # for more details.
    33  #
    34  # You should have received copies of the GNU General Public License and the
    35  # GNU Lesser General Public License along with the GNU MP Library.  If not,
    36  # see https://www.gnu.org/licenses/.
    37  #
    38  #
    39  #
    40  # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    41  #
    42  #
    43  # This configure script is free software; the Free Software Foundation
    44  # gives unlimited permission to copy, distribute and modify it.
    45  ## -------------------- ##
    46  ## M4sh Initialization. ##
    47  ## -------------------- ##
    48  
    49  # Be more Bourne compatible
    50  DUALCASE=1; export DUALCASE # for MKS sh
    51  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    52    emulate sh
    53    NULLCMD=:
    54    # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    55    # is contrary to our usage.  Disable this feature.
    56    alias -g '${1+"$@"}'='"$@"'
    57    setopt NO_GLOB_SUBST
    58  else
    59    case `(set -o) 2>/dev/null` in #(
    60    *posix*) :
    61      set -o posix ;; #(
    62    *) :
    63       ;;
    64  esac
    65  fi
    66  
    67  
    68  as_nl='
    69  '
    70  export as_nl
    71  # Printing a long string crashes Solaris 7 /usr/bin/printf.
    72  as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    73  as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    74  as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    75  # Prefer a ksh shell builtin over an external printf program on Solaris,
    76  # but without wasting forks for bash or zsh.
    77  if test -z "$BASH_VERSION$ZSH_VERSION" \
    78      && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
    79    as_echo='print -r --'
    80    as_echo_n='print -rn --'
    81  elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    82    as_echo='printf %s\n'
    83    as_echo_n='printf %s'
    84  else
    85    if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    86      as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    87      as_echo_n='/usr/ucb/echo -n'
    88    else
    89      as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    90      as_echo_n_body='eval
    91        arg=$1;
    92        case $arg in #(
    93        *"$as_nl"*)
    94  	expr "X$arg" : "X\\(.*\\)$as_nl";
    95  	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
    96        esac;
    97        expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    98      '
    99      export as_echo_n_body
   100      as_echo_n='sh -c $as_echo_n_body as_echo'
   101    fi
   102    export as_echo_body
   103    as_echo='sh -c $as_echo_body as_echo'
   104  fi
   105  
   106  # The user is always right.
   107  if test "${PATH_SEPARATOR+set}" != set; then
   108    PATH_SEPARATOR=:
   109    (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   110      (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   111        PATH_SEPARATOR=';'
   112    }
   113  fi
   114  
   115  
   116  # IFS
   117  # We need space, tab and new line, in precisely that order.  Quoting is
   118  # there to prevent editors from complaining about space-tab.
   119  # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   120  # splitting by setting IFS to empty value.)
   121  IFS=" ""	$as_nl"
   122  
   123  # Find who we are.  Look in the path if we contain no directory separator.
   124  as_myself=
   125  case $0 in #((
   126    *[\\/]* ) as_myself=$0 ;;
   127    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   128  for as_dir in $PATH
   129  do
   130    IFS=$as_save_IFS
   131    test -z "$as_dir" && as_dir=.
   132      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   133    done
   134  IFS=$as_save_IFS
   135  
   136       ;;
   137  esac
   138  # We did not find ourselves, most probably we were run as `sh COMMAND'
   139  # in which case we are not to be found in the path.
   140  if test "x$as_myself" = x; then
   141    as_myself=$0
   142  fi
   143  if test ! -f "$as_myself"; then
   144    $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   145    exit 1
   146  fi
   147  
   148  # Unset variables that we do not need and which cause bugs (e.g. in
   149  # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   150  # suppresses any "Segmentation fault" message there.  '((' could
   151  # trigger a bug in pdksh 5.2.14.
   152  for as_var in BASH_ENV ENV MAIL MAILPATH
   153  do eval test x\${$as_var+set} = xset \
   154    && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   155  done
   156  PS1='$ '
   157  PS2='> '
   158  PS4='+ '
   159  
   160  # NLS nuisances.
   161  LC_ALL=C
   162  export LC_ALL
   163  LANGUAGE=C
   164  export LANGUAGE
   165  
   166  # CDPATH.
   167  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   168  
   169  # Use a proper internal environment variable to ensure we don't fall
   170    # into an infinite loop, continuously re-executing ourselves.
   171    if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
   172      _as_can_reexec=no; export _as_can_reexec;
   173      # We cannot yet assume a decent shell, so we have to provide a
   174  # neutralization value for shells without unset; and this also
   175  # works around shells that cannot unset nonexistent variables.
   176  # Preserve -v and -x to the replacement shell.
   177  BASH_ENV=/dev/null
   178  ENV=/dev/null
   179  (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   180  case $- in # ((((
   181    *v*x* | *x*v* ) as_opts=-vx ;;
   182    *v* ) as_opts=-v ;;
   183    *x* ) as_opts=-x ;;
   184    * ) as_opts= ;;
   185  esac
   186  exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
   187  # Admittedly, this is quite paranoid, since all the known shells bail
   188  # out after a failed `exec'.
   189  $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
   190  as_fn_exit 255
   191    fi
   192    # We don't want this to propagate to other subprocesses.
   193            { _as_can_reexec=; unset _as_can_reexec;}
   194  if test "x$CONFIG_SHELL" = x; then
   195    as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
   196    emulate sh
   197    NULLCMD=:
   198    # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
   199    # is contrary to our usage.  Disable this feature.
   200    alias -g '\${1+\"\$@\"}'='\"\$@\"'
   201    setopt NO_GLOB_SUBST
   202  else
   203    case \`(set -o) 2>/dev/null\` in #(
   204    *posix*) :
   205      set -o posix ;; #(
   206    *) :
   207       ;;
   208  esac
   209  fi
   210  "
   211    as_required="as_fn_return () { (exit \$1); }
   212  as_fn_success () { as_fn_return 0; }
   213  as_fn_failure () { as_fn_return 1; }
   214  as_fn_ret_success () { return 0; }
   215  as_fn_ret_failure () { return 1; }
   216  
   217  exitcode=0
   218  as_fn_success || { exitcode=1; echo as_fn_success failed.; }
   219  as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
   220  as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
   221  as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
   222  if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
   223  
   224  else
   225    exitcode=1; echo positional parameters were not saved.
   226  fi
   227  test x\$exitcode = x0 || exit 1
   228  test -x / || exit 1"
   229    as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
   230    as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   231    eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
   232    test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
   233  test \$(( 1 + 1 )) = 2 || exit 1
   234  
   235    test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
   236      ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   237      ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
   238      ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
   239      PATH=/empty FPATH=/empty; export PATH FPATH
   240      test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
   241        || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
   242    if (eval "$as_required") 2>/dev/null; then :
   243    as_have_required=yes
   244  else
   245    as_have_required=no
   246  fi
   247    if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
   248  
   249  else
   250    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   251  as_found=false
   252  for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   253  do
   254    IFS=$as_save_IFS
   255    test -z "$as_dir" && as_dir=.
   256    as_found=:
   257    case $as_dir in #(
   258  	 /*)
   259  	   for as_base in sh bash ksh sh5; do
   260  	     # Try only shells that exist, to save several forks.
   261  	     as_shell=$as_dir/$as_base
   262  	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   263  		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
   264    CONFIG_SHELL=$as_shell as_have_required=yes
   265  		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
   266    break 2
   267  fi
   268  fi
   269  	   done;;
   270         esac
   271    as_found=false
   272  done
   273  $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
   274  	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
   275    CONFIG_SHELL=$SHELL as_have_required=yes
   276  fi; }
   277  IFS=$as_save_IFS
   278  
   279  
   280        if test "x$CONFIG_SHELL" != x; then :
   281    export CONFIG_SHELL
   282               # We cannot yet assume a decent shell, so we have to provide a
   283  # neutralization value for shells without unset; and this also
   284  # works around shells that cannot unset nonexistent variables.
   285  # Preserve -v and -x to the replacement shell.
   286  BASH_ENV=/dev/null
   287  ENV=/dev/null
   288  (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   289  case $- in # ((((
   290    *v*x* | *x*v* ) as_opts=-vx ;;
   291    *v* ) as_opts=-v ;;
   292    *x* ) as_opts=-x ;;
   293    * ) as_opts= ;;
   294  esac
   295  exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
   296  # Admittedly, this is quite paranoid, since all the known shells bail
   297  # out after a failed `exec'.
   298  $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
   299  exit 255
   300  fi
   301  
   302      if test x$as_have_required = xno; then :
   303    $as_echo "$0: This script requires a shell more modern than all"
   304    $as_echo "$0: the shells that I found on your system."
   305    if test x${ZSH_VERSION+set} = xset ; then
   306      $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
   307      $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   308    else
   309      $as_echo "$0: Please tell bug-autoconf@gnu.org and
   310  $0: gmp-bugs@gmplib.org, see
   311  $0: https://gmplib.org/manual/Reporting-Bugs.html about
   312  $0: your system, including any error possibly output before
   313  $0: this message. Then install a modern shell, or manually
   314  $0: run the script under such a shell if you do have one."
   315    fi
   316    exit 1
   317  fi
   318  fi
   319  fi
   320  SHELL=${CONFIG_SHELL-/bin/sh}
   321  export SHELL
   322  # Unset more variables known to interfere with behavior of common tools.
   323  CLICOLOR_FORCE= GREP_OPTIONS=
   324  unset CLICOLOR_FORCE GREP_OPTIONS
   325  
   326  ## --------------------- ##
   327  ## M4sh Shell Functions. ##
   328  ## --------------------- ##
   329  # as_fn_unset VAR
   330  # ---------------
   331  # Portably unset VAR.
   332  as_fn_unset ()
   333  {
   334    { eval $1=; unset $1;}
   335  }
   336  as_unset=as_fn_unset
   337  
   338  # as_fn_set_status STATUS
   339  # -----------------------
   340  # Set $? to STATUS, without forking.
   341  as_fn_set_status ()
   342  {
   343    return $1
   344  } # as_fn_set_status
   345  
   346  # as_fn_exit STATUS
   347  # -----------------
   348  # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   349  as_fn_exit ()
   350  {
   351    set +e
   352    as_fn_set_status $1
   353    exit $1
   354  } # as_fn_exit
   355  
   356  # as_fn_mkdir_p
   357  # -------------
   358  # Create "$as_dir" as a directory, including parents if necessary.
   359  as_fn_mkdir_p ()
   360  {
   361  
   362    case $as_dir in #(
   363    -*) as_dir=./$as_dir;;
   364    esac
   365    test -d "$as_dir" || eval $as_mkdir_p || {
   366      as_dirs=
   367      while :; do
   368        case $as_dir in #(
   369        *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   370        *) as_qdir=$as_dir;;
   371        esac
   372        as_dirs="'$as_qdir' $as_dirs"
   373        as_dir=`$as_dirname -- "$as_dir" ||
   374  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   375  	 X"$as_dir" : 'X\(//\)[^/]' \| \
   376  	 X"$as_dir" : 'X\(//\)$' \| \
   377  	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   378  $as_echo X"$as_dir" |
   379      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   380  	    s//\1/
   381  	    q
   382  	  }
   383  	  /^X\(\/\/\)[^/].*/{
   384  	    s//\1/
   385  	    q
   386  	  }
   387  	  /^X\(\/\/\)$/{
   388  	    s//\1/
   389  	    q
   390  	  }
   391  	  /^X\(\/\).*/{
   392  	    s//\1/
   393  	    q
   394  	  }
   395  	  s/.*/./; q'`
   396        test -d "$as_dir" && break
   397      done
   398      test -z "$as_dirs" || eval "mkdir $as_dirs"
   399    } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   400  
   401  
   402  } # as_fn_mkdir_p
   403  
   404  # as_fn_executable_p FILE
   405  # -----------------------
   406  # Test if FILE is an executable regular file.
   407  as_fn_executable_p ()
   408  {
   409    test -f "$1" && test -x "$1"
   410  } # as_fn_executable_p
   411  # as_fn_append VAR VALUE
   412  # ----------------------
   413  # Append the text in VALUE to the end of the definition contained in VAR. Take
   414  # advantage of any shell optimizations that allow amortized linear growth over
   415  # repeated appends, instead of the typical quadratic growth present in naive
   416  # implementations.
   417  if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   418    eval 'as_fn_append ()
   419    {
   420      eval $1+=\$2
   421    }'
   422  else
   423    as_fn_append ()
   424    {
   425      eval $1=\$$1\$2
   426    }
   427  fi # as_fn_append
   428  
   429  # as_fn_arith ARG...
   430  # ------------------
   431  # Perform arithmetic evaluation on the ARGs, and store the result in the
   432  # global $as_val. Take advantage of shells that can avoid forks. The arguments
   433  # must be portable across $(()) and expr.
   434  if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   435    eval 'as_fn_arith ()
   436    {
   437      as_val=$(( $* ))
   438    }'
   439  else
   440    as_fn_arith ()
   441    {
   442      as_val=`expr "$@" || test $? -eq 1`
   443    }
   444  fi # as_fn_arith
   445  
   446  
   447  # as_fn_error STATUS ERROR [LINENO LOG_FD]
   448  # ----------------------------------------
   449  # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   450  # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   451  # script with STATUS, using 1 if that was 0.
   452  as_fn_error ()
   453  {
   454    as_status=$1; test $as_status -eq 0 && as_status=1
   455    if test "$4"; then
   456      as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   457      $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   458    fi
   459    $as_echo "$as_me: error: $2" >&2
   460    as_fn_exit $as_status
   461  } # as_fn_error
   462  
   463  if expr a : '\(a\)' >/dev/null 2>&1 &&
   464     test "X`expr 00001 : '.*\(...\)'`" = X001; then
   465    as_expr=expr
   466  else
   467    as_expr=false
   468  fi
   469  
   470  if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   471    as_basename=basename
   472  else
   473    as_basename=false
   474  fi
   475  
   476  if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   477    as_dirname=dirname
   478  else
   479    as_dirname=false
   480  fi
   481  
   482  as_me=`$as_basename -- "$0" ||
   483  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   484  	 X"$0" : 'X\(//\)$' \| \
   485  	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   486  $as_echo X/"$0" |
   487      sed '/^.*\/\([^/][^/]*\)\/*$/{
   488  	    s//\1/
   489  	    q
   490  	  }
   491  	  /^X\/\(\/\/\)$/{
   492  	    s//\1/
   493  	    q
   494  	  }
   495  	  /^X\/\(\/\).*/{
   496  	    s//\1/
   497  	    q
   498  	  }
   499  	  s/.*/./; q'`
   500  
   501  # Avoid depending upon Character Ranges.
   502  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   503  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   504  as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   505  as_cr_digits='0123456789'
   506  as_cr_alnum=$as_cr_Letters$as_cr_digits
   507  
   508  
   509    as_lineno_1=$LINENO as_lineno_1a=$LINENO
   510    as_lineno_2=$LINENO as_lineno_2a=$LINENO
   511    eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
   512    test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
   513    # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
   514    sed -n '
   515      p
   516      /[$]LINENO/=
   517    ' <$as_myself |
   518      sed '
   519        s/[$]LINENO.*/&-/
   520        t lineno
   521        b
   522        :lineno
   523        N
   524        :loop
   525        s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   526        t loop
   527        s/-\n.*//
   528      ' >$as_me.lineno &&
   529    chmod +x "$as_me.lineno" ||
   530      { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
   531  
   532    # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
   533    # already done that, so ensure we don't try to do so again and fall
   534    # in an infinite loop.  This has already happened in practice.
   535    _as_can_reexec=no; export _as_can_reexec
   536    # Don't try to exec as it changes $[0], causing all sort of problems
   537    # (the dirname of $[0] is not the place where we might find the
   538    # original and so on.  Autoconf is especially sensitive to this).
   539    . "./$as_me.lineno"
   540    # Exit status is that of the last command.
   541    exit
   542  }
   543  
   544  ECHO_C= ECHO_N= ECHO_T=
   545  case `echo -n x` in #(((((
   546  -n*)
   547    case `echo 'xy\c'` in
   548    *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   549    xy)  ECHO_C='\c';;
   550    *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   551         ECHO_T='	';;
   552    esac;;
   553  *)
   554    ECHO_N='-n';;
   555  esac
   556  
   557  rm -f conf$$ conf$$.exe conf$$.file
   558  if test -d conf$$.dir; then
   559    rm -f conf$$.dir/conf$$.file
   560  else
   561    rm -f conf$$.dir
   562    mkdir conf$$.dir 2>/dev/null
   563  fi
   564  if (echo >conf$$.file) 2>/dev/null; then
   565    if ln -s conf$$.file conf$$ 2>/dev/null; then
   566      as_ln_s='ln -s'
   567      # ... but there are two gotchas:
   568      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   569      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   570      # In both cases, we have to default to `cp -pR'.
   571      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   572        as_ln_s='cp -pR'
   573    elif ln conf$$.file conf$$ 2>/dev/null; then
   574      as_ln_s=ln
   575    else
   576      as_ln_s='cp -pR'
   577    fi
   578  else
   579    as_ln_s='cp -pR'
   580  fi
   581  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   582  rmdir conf$$.dir 2>/dev/null
   583  
   584  if mkdir -p . 2>/dev/null; then
   585    as_mkdir_p='mkdir -p "$as_dir"'
   586  else
   587    test -d ./-p && rmdir ./-p
   588    as_mkdir_p=false
   589  fi
   590  
   591  as_test_x='test -x'
   592  as_executable_p=as_fn_executable_p
   593  
   594  # Sed expression to map a string onto a valid CPP name.
   595  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   596  
   597  # Sed expression to map a string onto a valid variable name.
   598  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   599  
   600  SHELL=${CONFIG_SHELL-/bin/sh}
   601  
   602  
   603  test -n "$DJDIR" || exec 7<&0 </dev/null
   604  exec 6>&1
   605  
   606  # Name of the host.
   607  # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
   608  # so uname gets run too.
   609  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   610  
   611  #
   612  # Initializations.
   613  #
   614  ac_default_prefix=/usr/local
   615  ac_clean_files=
   616  ac_config_libobj_dir=.
   617  LIBOBJS=
   618  cross_compiling=no
   619  subdirs=
   620  MFLAGS=
   621  MAKEFLAGS=
   622  
   623  # Identity of this package.
   624  PACKAGE_NAME='GNU MP'
   625  PACKAGE_TARNAME='gmp'
   626  PACKAGE_VERSION='6.1.2'
   627  PACKAGE_STRING='GNU MP 6.1.2'
   628  PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
   629  PACKAGE_URL='http://www.gnu.org/software/gmp/'
   630  
   631  ac_unique_file="gmp-impl.h"
   632  # Factoring default headers for most tests.
   633  ac_includes_default="\
   634  #include <stdio.h>
   635  #ifdef HAVE_SYS_TYPES_H
   636  # include <sys/types.h>
   637  #endif
   638  #ifdef HAVE_SYS_STAT_H
   639  # include <sys/stat.h>
   640  #endif
   641  #ifdef STDC_HEADERS
   642  # include <stdlib.h>
   643  # include <stddef.h>
   644  #else
   645  # ifdef HAVE_STDLIB_H
   646  #  include <stdlib.h>
   647  # endif
   648  #endif
   649  #ifdef HAVE_STRING_H
   650  # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
   651  #  include <memory.h>
   652  # endif
   653  # include <string.h>
   654  #endif
   655  #ifdef HAVE_STRINGS_H
   656  # include <strings.h>
   657  #endif
   658  #ifdef HAVE_INTTYPES_H
   659  # include <inttypes.h>
   660  #endif
   661  #ifdef HAVE_STDINT_H
   662  # include <stdint.h>
   663  #endif
   664  #ifdef HAVE_UNISTD_H
   665  # include <unistd.h>
   666  #endif"
   667  
   668  ac_subst_vars='am__EXEEXT_FALSE
   669  am__EXEEXT_TRUE
   670  LTLIBOBJS
   671  LIBOBJS
   672  LEXLIB
   673  LEX_OUTPUT_ROOT
   674  LEX
   675  YFLAGS
   676  YACC
   677  LIBREADLINE
   678  WITH_READLINE_01
   679  LIBCURSES
   680  HAVE_STACK_T_01
   681  HAVE_SYS_RESOURCE_H_01
   682  HAVE_SIGSTACK_01
   683  HAVE_SIGALTSTACK_01
   684  HAVE_SIGACTION_01
   685  HAVE_GETTIMEOFDAY_01
   686  HAVE_GETRUSAGE_01
   687  HAVE_CPUTIME_01
   688  HAVE_CLOCK_01
   689  TUNE_SQR_OBJ
   690  gmp_srclinks
   691  mpn_objs_in_libgmp
   692  mpn_objects
   693  GMP_LIMB_BITS
   694  M4
   695  TUNE_LIBS
   696  TAL_OBJECT
   697  LIBM
   698  ENABLE_STATIC_FALSE
   699  ENABLE_STATIC_TRUE
   700  LT_SYS_LIBRARY_PATH
   701  OTOOL64
   702  OTOOL
   703  LIPO
   704  NMEDIT
   705  DSYMUTIL
   706  MANIFEST_TOOL
   707  RANLIB
   708  ac_ct_AR
   709  LN_S
   710  LD
   711  FGREP
   712  SED
   713  LIBTOOL
   714  LIBGMP_DLL
   715  OBJDUMP
   716  DLLTOOL
   717  AS
   718  NM
   719  ac_ct_DUMPBIN
   720  DUMPBIN
   721  AR
   722  ASMFLAGS
   723  EGREP
   724  GREP
   725  CXXCPP
   726  WANT_CXX_FALSE
   727  WANT_CXX_TRUE
   728  ac_ct_CXX
   729  CXXFLAGS
   730  CXX
   731  CCAS
   732  LIBM_FOR_BUILD
   733  U_FOR_BUILD
   734  EXEEXT_FOR_BUILD
   735  CPP_FOR_BUILD
   736  CC_FOR_BUILD
   737  CPP
   738  OBJEXT
   739  EXEEXT
   740  ac_ct_CC
   741  CPPFLAGS
   742  LDFLAGS
   743  CFLAGS
   744  CC
   745  DEFN_LONG_LONG_LIMB
   746  CALLING_CONVENTIONS_OBJS
   747  SPEED_CYCLECOUNTER_OBJ
   748  LIBGMPXX_LDFLAGS
   749  LIBGMP_LDFLAGS
   750  GMP_LDFLAGS
   751  HAVE_HOST_CPU_FAMILY_powerpc
   752  HAVE_HOST_CPU_FAMILY_power
   753  ABI
   754  GMP_NAIL_BITS
   755  MAINT
   756  MAINTAINER_MODE_FALSE
   757  MAINTAINER_MODE_TRUE
   758  AM_BACKSLASH
   759  AM_DEFAULT_VERBOSITY
   760  AM_DEFAULT_V
   761  AM_V
   762  am__untar
   763  am__tar
   764  AMTAR
   765  am__leading_dot
   766  SET_MAKE
   767  AWK
   768  mkdir_p
   769  MKDIR_P
   770  INSTALL_STRIP_PROGRAM
   771  STRIP
   772  install_sh
   773  MAKEINFO
   774  AUTOHEADER
   775  AUTOMAKE
   776  AUTOCONF
   777  ACLOCAL
   778  VERSION
   779  PACKAGE
   780  CYGPATH_W
   781  am__isrc
   782  INSTALL_DATA
   783  INSTALL_SCRIPT
   784  INSTALL_PROGRAM
   785  host_os
   786  host_vendor
   787  host_cpu
   788  host
   789  build_os
   790  build_vendor
   791  build_cpu
   792  build
   793  target_alias
   794  host_alias
   795  build_alias
   796  LIBS
   797  ECHO_T
   798  ECHO_N
   799  ECHO_C
   800  DEFS
   801  mandir
   802  localedir
   803  libdir
   804  psdir
   805  pdfdir
   806  dvidir
   807  htmldir
   808  infodir
   809  docdir
   810  oldincludedir
   811  includedir
   812  localstatedir
   813  sharedstatedir
   814  sysconfdir
   815  datadir
   816  datarootdir
   817  libexecdir
   818  sbindir
   819  bindir
   820  program_transform_name
   821  prefix
   822  exec_prefix
   823  PACKAGE_URL
   824  PACKAGE_BUGREPORT
   825  PACKAGE_STRING
   826  PACKAGE_VERSION
   827  PACKAGE_TARNAME
   828  PACKAGE_NAME
   829  PATH_SEPARATOR
   830  SHELL'
   831  ac_subst_files=''
   832  ac_user_opts='
   833  enable_option_checking
   834  enable_silent_rules
   835  enable_maintainer_mode
   836  enable_assert
   837  enable_alloca
   838  enable_cxx
   839  enable_assembly
   840  enable_fft
   841  enable_old_fft_full
   842  enable_nails
   843  enable_profiling
   844  with_readline
   845  enable_fat
   846  enable_minithres
   847  enable_fake_cpuid
   848  enable_shared
   849  enable_static
   850  with_pic
   851  enable_fast_install
   852  with_aix_soname
   853  with_gnu_ld
   854  with_sysroot
   855  enable_libtool_lock
   856  '
   857        ac_precious_vars='build_alias
   858  host_alias
   859  target_alias
   860  ABI
   861  CC
   862  CFLAGS
   863  LDFLAGS
   864  LIBS
   865  CPPFLAGS
   866  CPP
   867  CC_FOR_BUILD
   868  CPP_FOR_BUILD
   869  CXX
   870  CXXFLAGS
   871  CCC
   872  CXXCPP
   873  LT_SYS_LIBRARY_PATH
   874  M4
   875  YACC
   876  YFLAGS'
   877  
   878  
   879  # Initialize some variables set by options.
   880  ac_init_help=
   881  ac_init_version=false
   882  ac_unrecognized_opts=
   883  ac_unrecognized_sep=
   884  # The variables have the same names as the options, with
   885  # dashes changed to underlines.
   886  cache_file=/dev/null
   887  exec_prefix=NONE
   888  no_create=
   889  no_recursion=
   890  prefix=NONE
   891  program_prefix=NONE
   892  program_suffix=NONE
   893  program_transform_name=s,x,x,
   894  silent=
   895  site=
   896  srcdir=
   897  verbose=
   898  x_includes=NONE
   899  x_libraries=NONE
   900  
   901  # Installation directory options.
   902  # These are left unexpanded so users can "make install exec_prefix=/foo"
   903  # and all the variables that are supposed to be based on exec_prefix
   904  # by default will actually change.
   905  # Use braces instead of parens because sh, perl, etc. also accept them.
   906  # (The list follows the same order as the GNU Coding Standards.)
   907  bindir='${exec_prefix}/bin'
   908  sbindir='${exec_prefix}/sbin'
   909  libexecdir='${exec_prefix}/libexec'
   910  datarootdir='${prefix}/share'
   911  datadir='${datarootdir}'
   912  sysconfdir='${prefix}/etc'
   913  sharedstatedir='${prefix}/com'
   914  localstatedir='${prefix}/var'
   915  includedir='${prefix}/include'
   916  oldincludedir='/usr/include'
   917  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   918  infodir='${datarootdir}/info'
   919  htmldir='${docdir}'
   920  dvidir='${docdir}'
   921  pdfdir='${docdir}'
   922  psdir='${docdir}'
   923  libdir='${exec_prefix}/lib'
   924  localedir='${datarootdir}/locale'
   925  mandir='${datarootdir}/man'
   926  
   927  ac_prev=
   928  ac_dashdash=
   929  for ac_option
   930  do
   931    # If the previous option needs an argument, assign it.
   932    if test -n "$ac_prev"; then
   933      eval $ac_prev=\$ac_option
   934      ac_prev=
   935      continue
   936    fi
   937  
   938    case $ac_option in
   939    *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   940    *=)   ac_optarg= ;;
   941    *)    ac_optarg=yes ;;
   942    esac
   943  
   944    # Accept the important Cygnus configure options, so we can diagnose typos.
   945  
   946    case $ac_dashdash$ac_option in
   947    --)
   948      ac_dashdash=yes ;;
   949  
   950    -bindir | --bindir | --bindi | --bind | --bin | --bi)
   951      ac_prev=bindir ;;
   952    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   953      bindir=$ac_optarg ;;
   954  
   955    -build | --build | --buil | --bui | --bu)
   956      ac_prev=build_alias ;;
   957    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   958      build_alias=$ac_optarg ;;
   959  
   960    -cache-file | --cache-file | --cache-fil | --cache-fi \
   961    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   962      ac_prev=cache_file ;;
   963    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   964    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   965      cache_file=$ac_optarg ;;
   966  
   967    --config-cache | -C)
   968      cache_file=config.cache ;;
   969  
   970    -datadir | --datadir | --datadi | --datad)
   971      ac_prev=datadir ;;
   972    -datadir=* | --datadir=* | --datadi=* | --datad=*)
   973      datadir=$ac_optarg ;;
   974  
   975    -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   976    | --dataroo | --dataro | --datar)
   977      ac_prev=datarootdir ;;
   978    -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   979    | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   980      datarootdir=$ac_optarg ;;
   981  
   982    -disable-* | --disable-*)
   983      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   984      # Reject names that are not valid shell variable names.
   985      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   986        as_fn_error $? "invalid feature name: $ac_useropt"
   987      ac_useropt_orig=$ac_useropt
   988      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   989      case $ac_user_opts in
   990        *"
   991  "enable_$ac_useropt"
   992  "*) ;;
   993        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   994  	 ac_unrecognized_sep=', ';;
   995      esac
   996      eval enable_$ac_useropt=no ;;
   997  
   998    -docdir | --docdir | --docdi | --doc | --do)
   999      ac_prev=docdir ;;
  1000    -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1001      docdir=$ac_optarg ;;
  1002  
  1003    -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1004      ac_prev=dvidir ;;
  1005    -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1006      dvidir=$ac_optarg ;;
  1007  
  1008    -enable-* | --enable-*)
  1009      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1010      # Reject names that are not valid shell variable names.
  1011      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012        as_fn_error $? "invalid feature name: $ac_useropt"
  1013      ac_useropt_orig=$ac_useropt
  1014      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015      case $ac_user_opts in
  1016        *"
  1017  "enable_$ac_useropt"
  1018  "*) ;;
  1019        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1020  	 ac_unrecognized_sep=', ';;
  1021      esac
  1022      eval enable_$ac_useropt=\$ac_optarg ;;
  1023  
  1024    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1025    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1026    | --exec | --exe | --ex)
  1027      ac_prev=exec_prefix ;;
  1028    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1029    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1030    | --exec=* | --exe=* | --ex=*)
  1031      exec_prefix=$ac_optarg ;;
  1032  
  1033    -gas | --gas | --ga | --g)
  1034      # Obsolete; use --with-gas.
  1035      with_gas=yes ;;
  1036  
  1037    -help | --help | --hel | --he | -h)
  1038      ac_init_help=long ;;
  1039    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1040      ac_init_help=recursive ;;
  1041    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1042      ac_init_help=short ;;
  1043  
  1044    -host | --host | --hos | --ho)
  1045      ac_prev=host_alias ;;
  1046    -host=* | --host=* | --hos=* | --ho=*)
  1047      host_alias=$ac_optarg ;;
  1048  
  1049    -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1050      ac_prev=htmldir ;;
  1051    -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1052    | --ht=*)
  1053      htmldir=$ac_optarg ;;
  1054  
  1055    -includedir | --includedir | --includedi | --included | --include \
  1056    | --includ | --inclu | --incl | --inc)
  1057      ac_prev=includedir ;;
  1058    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1059    | --includ=* | --inclu=* | --incl=* | --inc=*)
  1060      includedir=$ac_optarg ;;
  1061  
  1062    -infodir | --infodir | --infodi | --infod | --info | --inf)
  1063      ac_prev=infodir ;;
  1064    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1065      infodir=$ac_optarg ;;
  1066  
  1067    -libdir | --libdir | --libdi | --libd)
  1068      ac_prev=libdir ;;
  1069    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1070      libdir=$ac_optarg ;;
  1071  
  1072    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1073    | --libexe | --libex | --libe)
  1074      ac_prev=libexecdir ;;
  1075    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1076    | --libexe=* | --libex=* | --libe=*)
  1077      libexecdir=$ac_optarg ;;
  1078  
  1079    -localedir | --localedir | --localedi | --localed | --locale)
  1080      ac_prev=localedir ;;
  1081    -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1082      localedir=$ac_optarg ;;
  1083  
  1084    -localstatedir | --localstatedir | --localstatedi | --localstated \
  1085    | --localstate | --localstat | --localsta | --localst | --locals)
  1086      ac_prev=localstatedir ;;
  1087    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1088    | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1089      localstatedir=$ac_optarg ;;
  1090  
  1091    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1092      ac_prev=mandir ;;
  1093    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1094      mandir=$ac_optarg ;;
  1095  
  1096    -nfp | --nfp | --nf)
  1097      # Obsolete; use --without-fp.
  1098      with_fp=no ;;
  1099  
  1100    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1101    | --no-cr | --no-c | -n)
  1102      no_create=yes ;;
  1103  
  1104    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1105    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1106      no_recursion=yes ;;
  1107  
  1108    -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1109    | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1110    | --oldin | --oldi | --old | --ol | --o)
  1111      ac_prev=oldincludedir ;;
  1112    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1113    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1114    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1115      oldincludedir=$ac_optarg ;;
  1116  
  1117    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1118      ac_prev=prefix ;;
  1119    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1120      prefix=$ac_optarg ;;
  1121  
  1122    -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1123    | --program-pre | --program-pr | --program-p)
  1124      ac_prev=program_prefix ;;
  1125    -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1126    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1127      program_prefix=$ac_optarg ;;
  1128  
  1129    -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1130    | --program-suf | --program-su | --program-s)
  1131      ac_prev=program_suffix ;;
  1132    -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1133    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1134      program_suffix=$ac_optarg ;;
  1135  
  1136    -program-transform-name | --program-transform-name \
  1137    | --program-transform-nam | --program-transform-na \
  1138    | --program-transform-n | --program-transform- \
  1139    | --program-transform | --program-transfor \
  1140    | --program-transfo | --program-transf \
  1141    | --program-trans | --program-tran \
  1142    | --progr-tra | --program-tr | --program-t)
  1143      ac_prev=program_transform_name ;;
  1144    -program-transform-name=* | --program-transform-name=* \
  1145    | --program-transform-nam=* | --program-transform-na=* \
  1146    | --program-transform-n=* | --program-transform-=* \
  1147    | --program-transform=* | --program-transfor=* \
  1148    | --program-transfo=* | --program-transf=* \
  1149    | --program-trans=* | --program-tran=* \
  1150    | --progr-tra=* | --program-tr=* | --program-t=*)
  1151      program_transform_name=$ac_optarg ;;
  1152  
  1153    -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1154      ac_prev=pdfdir ;;
  1155    -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1156      pdfdir=$ac_optarg ;;
  1157  
  1158    -psdir | --psdir | --psdi | --psd | --ps)
  1159      ac_prev=psdir ;;
  1160    -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1161      psdir=$ac_optarg ;;
  1162  
  1163    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1164    | -silent | --silent | --silen | --sile | --sil)
  1165      silent=yes ;;
  1166  
  1167    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1168      ac_prev=sbindir ;;
  1169    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1170    | --sbi=* | --sb=*)
  1171      sbindir=$ac_optarg ;;
  1172  
  1173    -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1174    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1175    | --sharedst | --shareds | --shared | --share | --shar \
  1176    | --sha | --sh)
  1177      ac_prev=sharedstatedir ;;
  1178    -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1179    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1180    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1181    | --sha=* | --sh=*)
  1182      sharedstatedir=$ac_optarg ;;
  1183  
  1184    -site | --site | --sit)
  1185      ac_prev=site ;;
  1186    -site=* | --site=* | --sit=*)
  1187      site=$ac_optarg ;;
  1188  
  1189    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1190      ac_prev=srcdir ;;
  1191    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1192      srcdir=$ac_optarg ;;
  1193  
  1194    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1195    | --syscon | --sysco | --sysc | --sys | --sy)
  1196      ac_prev=sysconfdir ;;
  1197    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1198    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1199      sysconfdir=$ac_optarg ;;
  1200  
  1201    -target | --target | --targe | --targ | --tar | --ta | --t)
  1202      ac_prev=target_alias ;;
  1203    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1204      target_alias=$ac_optarg ;;
  1205  
  1206    -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1207      verbose=yes ;;
  1208  
  1209    -version | --version | --versio | --versi | --vers | -V)
  1210      ac_init_version=: ;;
  1211  
  1212    -with-* | --with-*)
  1213      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1214      # Reject names that are not valid shell variable names.
  1215      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1216        as_fn_error $? "invalid package name: $ac_useropt"
  1217      ac_useropt_orig=$ac_useropt
  1218      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1219      case $ac_user_opts in
  1220        *"
  1221  "with_$ac_useropt"
  1222  "*) ;;
  1223        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1224  	 ac_unrecognized_sep=', ';;
  1225      esac
  1226      eval with_$ac_useropt=\$ac_optarg ;;
  1227  
  1228    -without-* | --without-*)
  1229      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1230      # Reject names that are not valid shell variable names.
  1231      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1232        as_fn_error $? "invalid package name: $ac_useropt"
  1233      ac_useropt_orig=$ac_useropt
  1234      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1235      case $ac_user_opts in
  1236        *"
  1237  "with_$ac_useropt"
  1238  "*) ;;
  1239        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1240  	 ac_unrecognized_sep=', ';;
  1241      esac
  1242      eval with_$ac_useropt=no ;;
  1243  
  1244    --x)
  1245      # Obsolete; use --with-x.
  1246      with_x=yes ;;
  1247  
  1248    -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1249    | --x-incl | --x-inc | --x-in | --x-i)
  1250      ac_prev=x_includes ;;
  1251    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1252    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1253      x_includes=$ac_optarg ;;
  1254  
  1255    -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1256    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1257      ac_prev=x_libraries ;;
  1258    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1259    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1260      x_libraries=$ac_optarg ;;
  1261  
  1262    -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1263  Try \`$0 --help' for more information"
  1264      ;;
  1265  
  1266    *=*)
  1267      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1268      # Reject names that are not valid shell variable names.
  1269      case $ac_envvar in #(
  1270        '' | [0-9]* | *[!_$as_cr_alnum]* )
  1271        as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1272      esac
  1273      eval $ac_envvar=\$ac_optarg
  1274      export $ac_envvar ;;
  1275  
  1276    *)
  1277      # FIXME: should be removed in autoconf 3.0.
  1278      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1279      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1280        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1281      : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1282      ;;
  1283  
  1284    esac
  1285  done
  1286  
  1287  if test -n "$ac_prev"; then
  1288    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1289    as_fn_error $? "missing argument to $ac_option"
  1290  fi
  1291  
  1292  if test -n "$ac_unrecognized_opts"; then
  1293    case $enable_option_checking in
  1294      no) ;;
  1295      fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1296      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1297    esac
  1298  fi
  1299  
  1300  # Check all directory arguments for consistency.
  1301  for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1302  		datadir sysconfdir sharedstatedir localstatedir includedir \
  1303  		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1304  		libdir localedir mandir
  1305  do
  1306    eval ac_val=\$$ac_var
  1307    # Remove trailing slashes.
  1308    case $ac_val in
  1309      */ )
  1310        ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1311        eval $ac_var=\$ac_val;;
  1312    esac
  1313    # Be sure to have absolute directory names.
  1314    case $ac_val in
  1315      [\\/$]* | ?:[\\/]* )  continue;;
  1316      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1317    esac
  1318    as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1319  done
  1320  
  1321  # There might be people who depend on the old broken behavior: `$host'
  1322  # used to hold the argument of --host etc.
  1323  # FIXME: To remove some day.
  1324  build=$build_alias
  1325  host=$host_alias
  1326  target=$target_alias
  1327  
  1328  # FIXME: To remove some day.
  1329  if test "x$host_alias" != x; then
  1330    if test "x$build_alias" = x; then
  1331      cross_compiling=maybe
  1332    elif test "x$build_alias" != "x$host_alias"; then
  1333      cross_compiling=yes
  1334    fi
  1335  fi
  1336  
  1337  ac_tool_prefix=
  1338  test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1339  
  1340  test "$silent" = yes && exec 6>/dev/null
  1341  
  1342  
  1343  ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1344  ac_ls_di=`ls -di .` &&
  1345  ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1346    as_fn_error $? "working directory cannot be determined"
  1347  test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1348    as_fn_error $? "pwd does not report name of working directory"
  1349  
  1350  
  1351  # Find the source files, if location was not specified.
  1352  if test -z "$srcdir"; then
  1353    ac_srcdir_defaulted=yes
  1354    # Try the directory containing this script, then the parent directory.
  1355    ac_confdir=`$as_dirname -- "$as_myself" ||
  1356  $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1357  	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1358  	 X"$as_myself" : 'X\(//\)$' \| \
  1359  	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1360  $as_echo X"$as_myself" |
  1361      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1362  	    s//\1/
  1363  	    q
  1364  	  }
  1365  	  /^X\(\/\/\)[^/].*/{
  1366  	    s//\1/
  1367  	    q
  1368  	  }
  1369  	  /^X\(\/\/\)$/{
  1370  	    s//\1/
  1371  	    q
  1372  	  }
  1373  	  /^X\(\/\).*/{
  1374  	    s//\1/
  1375  	    q
  1376  	  }
  1377  	  s/.*/./; q'`
  1378    srcdir=$ac_confdir
  1379    if test ! -r "$srcdir/$ac_unique_file"; then
  1380      srcdir=..
  1381    fi
  1382  else
  1383    ac_srcdir_defaulted=no
  1384  fi
  1385  if test ! -r "$srcdir/$ac_unique_file"; then
  1386    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1387    as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1388  fi
  1389  ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1390  ac_abs_confdir=`(
  1391  	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1392  	pwd)`
  1393  # When building in place, set srcdir=.
  1394  if test "$ac_abs_confdir" = "$ac_pwd"; then
  1395    srcdir=.
  1396  fi
  1397  # Remove unnecessary trailing slashes from srcdir.
  1398  # Double slashes in file names in object file debugging info
  1399  # mess up M-x gdb in Emacs.
  1400  case $srcdir in
  1401  */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1402  esac
  1403  for ac_var in $ac_precious_vars; do
  1404    eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1405    eval ac_env_${ac_var}_value=\$${ac_var}
  1406    eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1407    eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1408  done
  1409  
  1410  #
  1411  # Report the --help message.
  1412  #
  1413  if test "$ac_init_help" = "long"; then
  1414    # Omit some internal or obsolete options to make the list less imposing.
  1415    # This message is too long to be a string in the A/UX 3.1 sh.
  1416    cat <<_ACEOF
  1417  \`configure' configures GNU MP 6.1.2 to adapt to many kinds of systems.
  1418  
  1419  Usage: $0 [OPTION]... [VAR=VALUE]...
  1420  
  1421  To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1422  VAR=VALUE.  See below for descriptions of some of the useful variables.
  1423  
  1424  Defaults for the options are specified in brackets.
  1425  
  1426  Configuration:
  1427    -h, --help              display this help and exit
  1428        --help=short        display options specific to this package
  1429        --help=recursive    display the short help of all the included packages
  1430    -V, --version           display version information and exit
  1431    -q, --quiet, --silent   do not print \`checking ...' messages
  1432        --cache-file=FILE   cache test results in FILE [disabled]
  1433    -C, --config-cache      alias for \`--cache-file=config.cache'
  1434    -n, --no-create         do not create output files
  1435        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1436  
  1437  Installation directories:
  1438    --prefix=PREFIX         install architecture-independent files in PREFIX
  1439                            [$ac_default_prefix]
  1440    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1441                            [PREFIX]
  1442  
  1443  By default, \`make install' will install all the files in
  1444  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1445  an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1446  for instance \`--prefix=\$HOME'.
  1447  
  1448  For better control, use the options below.
  1449  
  1450  Fine tuning of the installation directories:
  1451    --bindir=DIR            user executables [EPREFIX/bin]
  1452    --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1453    --libexecdir=DIR        program executables [EPREFIX/libexec]
  1454    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1455    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1456    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1457    --libdir=DIR            object code libraries [EPREFIX/lib]
  1458    --includedir=DIR        C header files [PREFIX/include]
  1459    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1460    --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1461    --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1462    --infodir=DIR           info documentation [DATAROOTDIR/info]
  1463    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1464    --mandir=DIR            man documentation [DATAROOTDIR/man]
  1465    --docdir=DIR            documentation root [DATAROOTDIR/doc/gmp]
  1466    --htmldir=DIR           html documentation [DOCDIR]
  1467    --dvidir=DIR            dvi documentation [DOCDIR]
  1468    --pdfdir=DIR            pdf documentation [DOCDIR]
  1469    --psdir=DIR             ps documentation [DOCDIR]
  1470  _ACEOF
  1471  
  1472    cat <<\_ACEOF
  1473  
  1474  Program names:
  1475    --program-prefix=PREFIX            prepend PREFIX to installed program names
  1476    --program-suffix=SUFFIX            append SUFFIX to installed program names
  1477    --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1478  
  1479  System types:
  1480    --build=BUILD     configure for building on BUILD [guessed]
  1481    --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1482  _ACEOF
  1483  fi
  1484  
  1485  if test -n "$ac_init_help"; then
  1486    case $ac_init_help in
  1487       short | recursive ) echo "Configuration of GNU MP 6.1.2:";;
  1488     esac
  1489    cat <<\_ACEOF
  1490  
  1491  Optional Features:
  1492    --disable-option-checking  ignore unrecognized --enable/--with options
  1493    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1494    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1495    --enable-silent-rules   less verbose build output (undo: "make V=1")
  1496    --disable-silent-rules  verbose build output (undo: "make V=0")
  1497    --enable-maintainer-mode
  1498                            enable make rules and dependencies not useful (and
  1499                            sometimes confusing) to the casual installer
  1500    --enable-assert         enable ASSERT checking [default=no]
  1501    --enable-alloca         how to get temp memory [default=reentrant]
  1502    --enable-cxx            enable C++ support [default=no]
  1503    --enable-assembly       enable the use of assembly loops [default=yes]
  1504    --enable-fft            enable FFTs for multiplication [default=yes]
  1505    --enable-old-fft-full   enable old mpn_mul_fft_full for multiplication
  1506                            [default=no]
  1507    --enable-nails          use nails on limbs [default=no]
  1508    --enable-profiling      build with profiler support [default=no]
  1509    --enable-fat            build fat libraries on systems that support it
  1510                            [default=no]
  1511    --enable-minithres      choose minimal thresholds for testing [default=no]
  1512    --enable-fake-cpuid     enable GMP_CPU_TYPE faking cpuid [default=no]
  1513    --enable-shared[=PKGS]  build shared libraries [default=yes]
  1514    --enable-static[=PKGS]  build static libraries [default=yes]
  1515    --enable-fast-install[=PKGS]
  1516                            optimize for fast installation [default=yes]
  1517    --disable-libtool-lock  avoid locking (might break parallel builds)
  1518  
  1519  Optional Packages:
  1520    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1521    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1522    --with-readline         readline support in demo programs [default=detect]
  1523    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1524                            both]
  1525    --with-aix-soname=aix|svr4|both
  1526                            shared library versioning (aka "SONAME") variant to
  1527                            provide on AIX, [default=aix].
  1528    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1529    --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
  1530                            compiler's sysroot if not specified).
  1531  
  1532  Some influential environment variables:
  1533    ABI         desired ABI (for processors supporting more than one ABI)
  1534    CC          C compiler command
  1535    CFLAGS      C compiler flags
  1536    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1537                nonstandard directory <lib dir>
  1538    LIBS        libraries to pass to the linker, e.g. -l<library>
  1539    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1540                you have headers in a nonstandard directory <include dir>
  1541    CPP         C preprocessor
  1542    CC_FOR_BUILD
  1543                build system C compiler
  1544    CPP_FOR_BUILD
  1545                build system C preprocessor
  1546    CXX         C++ compiler command
  1547    CXXFLAGS    C++ compiler flags
  1548    CXXCPP      C++ preprocessor
  1549    LT_SYS_LIBRARY_PATH
  1550                User-defined run-time library search path.
  1551    M4          m4 macro processor
  1552    YACC        The `Yet Another Compiler Compiler' implementation to use.
  1553                Defaults to the first program found out of: `bison -y', `byacc',
  1554                `yacc'.
  1555    YFLAGS      The list of arguments that will be passed by default to $YACC.
  1556                This script will default YFLAGS to the empty string to avoid a
  1557                default value of `-d' given by some make applications.
  1558  
  1559  Use these variables to override the choices made by `configure' or to help
  1560  it to find libraries and programs with nonstandard names/locations.
  1561  
  1562  Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>.
  1563  GNU MP home page: <http://www.gnu.org/software/gmp/>.
  1564  General help using GNU software: <http://www.gnu.org/gethelp/>.
  1565  _ACEOF
  1566  ac_status=$?
  1567  fi
  1568  
  1569  if test "$ac_init_help" = "recursive"; then
  1570    # If there are subdirs, report their specific --help.
  1571    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1572      test -d "$ac_dir" ||
  1573        { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1574        continue
  1575      ac_builddir=.
  1576  
  1577  case "$ac_dir" in
  1578  .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1579  *)
  1580    ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1581    # A ".." for each directory in $ac_dir_suffix.
  1582    ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1583    case $ac_top_builddir_sub in
  1584    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1585    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1586    esac ;;
  1587  esac
  1588  ac_abs_top_builddir=$ac_pwd
  1589  ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1590  # for backward compatibility:
  1591  ac_top_builddir=$ac_top_build_prefix
  1592  
  1593  case $srcdir in
  1594    .)  # We are building in place.
  1595      ac_srcdir=.
  1596      ac_top_srcdir=$ac_top_builddir_sub
  1597      ac_abs_top_srcdir=$ac_pwd ;;
  1598    [\\/]* | ?:[\\/]* )  # Absolute name.
  1599      ac_srcdir=$srcdir$ac_dir_suffix;
  1600      ac_top_srcdir=$srcdir
  1601      ac_abs_top_srcdir=$srcdir ;;
  1602    *) # Relative name.
  1603      ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1604      ac_top_srcdir=$ac_top_build_prefix$srcdir
  1605      ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1606  esac
  1607  ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1608  
  1609      cd "$ac_dir" || { ac_status=$?; continue; }
  1610      # Check for guested configure.
  1611      if test -f "$ac_srcdir/configure.gnu"; then
  1612        echo &&
  1613        $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1614      elif test -f "$ac_srcdir/configure"; then
  1615        echo &&
  1616        $SHELL "$ac_srcdir/configure" --help=recursive
  1617      else
  1618        $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1619      fi || ac_status=$?
  1620      cd "$ac_pwd" || { ac_status=$?; break; }
  1621    done
  1622  fi
  1623  
  1624  test -n "$ac_init_help" && exit $ac_status
  1625  if $ac_init_version; then
  1626    cat <<\_ACEOF
  1627  GNU MP configure 6.1.2
  1628  generated by GNU Autoconf 2.69
  1629  
  1630  Copyright (C) 2012 Free Software Foundation, Inc.
  1631  This configure script is free software; the Free Software Foundation
  1632  gives unlimited permission to copy, distribute and modify it.
  1633  
  1634  
  1635  
  1636  Copyright 1996-2016 Free Software Foundation, Inc.
  1637  
  1638  This file is part of the GNU MP Library.
  1639  
  1640  The GNU MP Library is free software; you can redistribute it and/or modify
  1641  it under the terms of either:
  1642  
  1643    * the GNU Lesser General Public License as published by the Free
  1644      Software Foundation; either version 3 of the License, or (at your
  1645      option) any later version.
  1646  
  1647  or
  1648  
  1649    * the GNU General Public License as published by the Free Software
  1650      Foundation; either version 2 of the License, or (at your option) any
  1651      later version.
  1652  
  1653  or both in parallel, as here.
  1654  
  1655  The GNU MP Library is distributed in the hope that it will be useful, but
  1656  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  1657  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1658  for more details.
  1659  
  1660  You should have received copies of the GNU General Public License and the
  1661  GNU Lesser General Public License along with the GNU MP Library.  If not,
  1662  see https://www.gnu.org/licenses/.
  1663  
  1664  _ACEOF
  1665    exit
  1666  fi
  1667  
  1668  ## ------------------------ ##
  1669  ## Autoconf initialization. ##
  1670  ## ------------------------ ##
  1671  
  1672  # ac_fn_c_try_compile LINENO
  1673  # --------------------------
  1674  # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1675  ac_fn_c_try_compile ()
  1676  {
  1677    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678    rm -f conftest.$ac_objext
  1679    if { { ac_try="$ac_compile"
  1680  case "(($ac_try" in
  1681    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1682    *) ac_try_echo=$ac_try;;
  1683  esac
  1684  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1685  $as_echo "$ac_try_echo"; } >&5
  1686    (eval "$ac_compile") 2>conftest.err
  1687    ac_status=$?
  1688    if test -s conftest.err; then
  1689      grep -v '^ *+' conftest.err >conftest.er1
  1690      cat conftest.er1 >&5
  1691      mv -f conftest.er1 conftest.err
  1692    fi
  1693    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694    test $ac_status = 0; } && {
  1695  	 test -z "$ac_c_werror_flag" ||
  1696  	 test ! -s conftest.err
  1697         } && test -s conftest.$ac_objext; then :
  1698    ac_retval=0
  1699  else
  1700    $as_echo "$as_me: failed program was:" >&5
  1701  sed 's/^/| /' conftest.$ac_ext >&5
  1702  
  1703  	ac_retval=1
  1704  fi
  1705    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1706    as_fn_set_status $ac_retval
  1707  
  1708  } # ac_fn_c_try_compile
  1709  
  1710  # ac_fn_c_try_cpp LINENO
  1711  # ----------------------
  1712  # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1713  ac_fn_c_try_cpp ()
  1714  {
  1715    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716    if { { ac_try="$ac_cpp conftest.$ac_ext"
  1717  case "(($ac_try" in
  1718    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1719    *) ac_try_echo=$ac_try;;
  1720  esac
  1721  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1722  $as_echo "$ac_try_echo"; } >&5
  1723    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1724    ac_status=$?
  1725    if test -s conftest.err; then
  1726      grep -v '^ *+' conftest.err >conftest.er1
  1727      cat conftest.er1 >&5
  1728      mv -f conftest.er1 conftest.err
  1729    fi
  1730    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731    test $ac_status = 0; } > conftest.i && {
  1732  	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1733  	 test ! -s conftest.err
  1734         }; then :
  1735    ac_retval=0
  1736  else
  1737    $as_echo "$as_me: failed program was:" >&5
  1738  sed 's/^/| /' conftest.$ac_ext >&5
  1739  
  1740      ac_retval=1
  1741  fi
  1742    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1743    as_fn_set_status $ac_retval
  1744  
  1745  } # ac_fn_c_try_cpp
  1746  
  1747  # ac_fn_cxx_try_compile LINENO
  1748  # ----------------------------
  1749  # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1750  ac_fn_cxx_try_compile ()
  1751  {
  1752    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1753    rm -f conftest.$ac_objext
  1754    if { { ac_try="$ac_compile"
  1755  case "(($ac_try" in
  1756    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1757    *) ac_try_echo=$ac_try;;
  1758  esac
  1759  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1760  $as_echo "$ac_try_echo"; } >&5
  1761    (eval "$ac_compile") 2>conftest.err
  1762    ac_status=$?
  1763    if test -s conftest.err; then
  1764      grep -v '^ *+' conftest.err >conftest.er1
  1765      cat conftest.er1 >&5
  1766      mv -f conftest.er1 conftest.err
  1767    fi
  1768    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1769    test $ac_status = 0; } && {
  1770  	 test -z "$ac_cxx_werror_flag" ||
  1771  	 test ! -s conftest.err
  1772         } && test -s conftest.$ac_objext; then :
  1773    ac_retval=0
  1774  else
  1775    $as_echo "$as_me: failed program was:" >&5
  1776  sed 's/^/| /' conftest.$ac_ext >&5
  1777  
  1778  	ac_retval=1
  1779  fi
  1780    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1781    as_fn_set_status $ac_retval
  1782  
  1783  } # ac_fn_cxx_try_compile
  1784  
  1785  # ac_fn_cxx_try_cpp LINENO
  1786  # ------------------------
  1787  # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1788  ac_fn_cxx_try_cpp ()
  1789  {
  1790    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791    if { { ac_try="$ac_cpp conftest.$ac_ext"
  1792  case "(($ac_try" in
  1793    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794    *) ac_try_echo=$ac_try;;
  1795  esac
  1796  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797  $as_echo "$ac_try_echo"; } >&5
  1798    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1799    ac_status=$?
  1800    if test -s conftest.err; then
  1801      grep -v '^ *+' conftest.err >conftest.er1
  1802      cat conftest.er1 >&5
  1803      mv -f conftest.er1 conftest.err
  1804    fi
  1805    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806    test $ac_status = 0; } > conftest.i && {
  1807  	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1808  	 test ! -s conftest.err
  1809         }; then :
  1810    ac_retval=0
  1811  else
  1812    $as_echo "$as_me: failed program was:" >&5
  1813  sed 's/^/| /' conftest.$ac_ext >&5
  1814  
  1815      ac_retval=1
  1816  fi
  1817    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818    as_fn_set_status $ac_retval
  1819  
  1820  } # ac_fn_cxx_try_cpp
  1821  
  1822  # ac_fn_c_try_link LINENO
  1823  # -----------------------
  1824  # Try to link conftest.$ac_ext, and return whether this succeeded.
  1825  ac_fn_c_try_link ()
  1826  {
  1827    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828    rm -f conftest.$ac_objext conftest$ac_exeext
  1829    if { { ac_try="$ac_link"
  1830  case "(($ac_try" in
  1831    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1832    *) ac_try_echo=$ac_try;;
  1833  esac
  1834  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1835  $as_echo "$ac_try_echo"; } >&5
  1836    (eval "$ac_link") 2>conftest.err
  1837    ac_status=$?
  1838    if test -s conftest.err; then
  1839      grep -v '^ *+' conftest.err >conftest.er1
  1840      cat conftest.er1 >&5
  1841      mv -f conftest.er1 conftest.err
  1842    fi
  1843    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1844    test $ac_status = 0; } && {
  1845  	 test -z "$ac_c_werror_flag" ||
  1846  	 test ! -s conftest.err
  1847         } && test -s conftest$ac_exeext && {
  1848  	 test "$cross_compiling" = yes ||
  1849  	 test -x conftest$ac_exeext
  1850         }; then :
  1851    ac_retval=0
  1852  else
  1853    $as_echo "$as_me: failed program was:" >&5
  1854  sed 's/^/| /' conftest.$ac_ext >&5
  1855  
  1856  	ac_retval=1
  1857  fi
  1858    # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1859    # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1860    # interfere with the next link command; also delete a directory that is
  1861    # left behind by Apple's compiler.  We do this before executing the actions.
  1862    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1863    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1864    as_fn_set_status $ac_retval
  1865  
  1866  } # ac_fn_c_try_link
  1867  
  1868  # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1869  # -------------------------------------------------------
  1870  # Tests whether HEADER exists and can be compiled using the include files in
  1871  # INCLUDES, setting the cache variable VAR accordingly.
  1872  ac_fn_c_check_header_compile ()
  1873  {
  1874    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1876  $as_echo_n "checking for $2... " >&6; }
  1877  if eval \${$3+:} false; then :
  1878    $as_echo_n "(cached) " >&6
  1879  else
  1880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1881  /* end confdefs.h.  */
  1882  $4
  1883  #include <$2>
  1884  _ACEOF
  1885  if ac_fn_c_try_compile "$LINENO"; then :
  1886    eval "$3=yes"
  1887  else
  1888    eval "$3=no"
  1889  fi
  1890  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1891  fi
  1892  eval ac_res=\$$3
  1893  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1894  $as_echo "$ac_res" >&6; }
  1895    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1896  
  1897  } # ac_fn_c_check_header_compile
  1898  
  1899  # ac_fn_c_try_run LINENO
  1900  # ----------------------
  1901  # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1902  # that executables *can* be run.
  1903  ac_fn_c_try_run ()
  1904  {
  1905    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1906    if { { ac_try="$ac_link"
  1907  case "(($ac_try" in
  1908    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1909    *) ac_try_echo=$ac_try;;
  1910  esac
  1911  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1912  $as_echo "$ac_try_echo"; } >&5
  1913    (eval "$ac_link") 2>&5
  1914    ac_status=$?
  1915    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1916    test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1917    { { case "(($ac_try" in
  1918    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1919    *) ac_try_echo=$ac_try;;
  1920  esac
  1921  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1922  $as_echo "$ac_try_echo"; } >&5
  1923    (eval "$ac_try") 2>&5
  1924    ac_status=$?
  1925    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1926    test $ac_status = 0; }; }; then :
  1927    ac_retval=0
  1928  else
  1929    $as_echo "$as_me: program exited with status $ac_status" >&5
  1930         $as_echo "$as_me: failed program was:" >&5
  1931  sed 's/^/| /' conftest.$ac_ext >&5
  1932  
  1933         ac_retval=$ac_status
  1934  fi
  1935    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1936    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937    as_fn_set_status $ac_retval
  1938  
  1939  } # ac_fn_c_try_run
  1940  
  1941  # ac_fn_c_check_func LINENO FUNC VAR
  1942  # ----------------------------------
  1943  # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1944  ac_fn_c_check_func ()
  1945  {
  1946    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1948  $as_echo_n "checking for $2... " >&6; }
  1949  if eval \${$3+:} false; then :
  1950    $as_echo_n "(cached) " >&6
  1951  else
  1952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1953  /* end confdefs.h.  */
  1954  /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1955     For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1956  #define $2 innocuous_$2
  1957  
  1958  /* System header to define __stub macros and hopefully few prototypes,
  1959      which can conflict with char $2 (); below.
  1960      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1961      <limits.h> exists even on freestanding compilers.  */
  1962  
  1963  #ifdef __STDC__
  1964  # include <limits.h>
  1965  #else
  1966  # include <assert.h>
  1967  #endif
  1968  
  1969  #undef $2
  1970  
  1971  /* Override any GCC internal prototype to avoid an error.
  1972     Use char because int might match the return type of a GCC
  1973     builtin and then its argument prototype would still apply.  */
  1974  #ifdef __cplusplus
  1975  extern "C"
  1976  #endif
  1977  char $2 ();
  1978  /* The GNU C library defines this for functions which it implements
  1979      to always fail with ENOSYS.  Some functions are actually named
  1980      something starting with __ and the normal name is an alias.  */
  1981  #if defined __stub_$2 || defined __stub___$2
  1982  choke me
  1983  #endif
  1984  
  1985  int
  1986  main ()
  1987  {
  1988  return $2 ();
  1989    ;
  1990    return 0;
  1991  }
  1992  _ACEOF
  1993  if ac_fn_c_try_link "$LINENO"; then :
  1994    eval "$3=yes"
  1995  else
  1996    eval "$3=no"
  1997  fi
  1998  rm -f core conftest.err conftest.$ac_objext \
  1999      conftest$ac_exeext conftest.$ac_ext
  2000  fi
  2001  eval ac_res=\$$3
  2002  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2003  $as_echo "$ac_res" >&6; }
  2004    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005  
  2006  } # ac_fn_c_check_func
  2007  
  2008  # ac_fn_cxx_try_link LINENO
  2009  # -------------------------
  2010  # Try to link conftest.$ac_ext, and return whether this succeeded.
  2011  ac_fn_cxx_try_link ()
  2012  {
  2013    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2014    rm -f conftest.$ac_objext conftest$ac_exeext
  2015    if { { ac_try="$ac_link"
  2016  case "(($ac_try" in
  2017    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2018    *) ac_try_echo=$ac_try;;
  2019  esac
  2020  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2021  $as_echo "$ac_try_echo"; } >&5
  2022    (eval "$ac_link") 2>conftest.err
  2023    ac_status=$?
  2024    if test -s conftest.err; then
  2025      grep -v '^ *+' conftest.err >conftest.er1
  2026      cat conftest.er1 >&5
  2027      mv -f conftest.er1 conftest.err
  2028    fi
  2029    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2030    test $ac_status = 0; } && {
  2031  	 test -z "$ac_cxx_werror_flag" ||
  2032  	 test ! -s conftest.err
  2033         } && test -s conftest$ac_exeext && {
  2034  	 test "$cross_compiling" = yes ||
  2035  	 test -x conftest$ac_exeext
  2036         }; then :
  2037    ac_retval=0
  2038  else
  2039    $as_echo "$as_me: failed program was:" >&5
  2040  sed 's/^/| /' conftest.$ac_ext >&5
  2041  
  2042  	ac_retval=1
  2043  fi
  2044    # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2045    # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2046    # interfere with the next link command; also delete a directory that is
  2047    # left behind by Apple's compiler.  We do this before executing the actions.
  2048    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2049    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2050    as_fn_set_status $ac_retval
  2051  
  2052  } # ac_fn_cxx_try_link
  2053  
  2054  # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2055  # -------------------------------------------------------
  2056  # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2057  # the include files in INCLUDES and setting the cache variable VAR
  2058  # accordingly.
  2059  ac_fn_c_check_header_mongrel ()
  2060  {
  2061    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2062    if eval \${$3+:} false; then :
  2063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2064  $as_echo_n "checking for $2... " >&6; }
  2065  if eval \${$3+:} false; then :
  2066    $as_echo_n "(cached) " >&6
  2067  fi
  2068  eval ac_res=\$$3
  2069  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2070  $as_echo "$ac_res" >&6; }
  2071  else
  2072    # Is the header compilable?
  2073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2074  $as_echo_n "checking $2 usability... " >&6; }
  2075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076  /* end confdefs.h.  */
  2077  $4
  2078  #include <$2>
  2079  _ACEOF
  2080  if ac_fn_c_try_compile "$LINENO"; then :
  2081    ac_header_compiler=yes
  2082  else
  2083    ac_header_compiler=no
  2084  fi
  2085  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2087  $as_echo "$ac_header_compiler" >&6; }
  2088  
  2089  # Is the header present?
  2090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2091  $as_echo_n "checking $2 presence... " >&6; }
  2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2093  /* end confdefs.h.  */
  2094  #include <$2>
  2095  _ACEOF
  2096  if ac_fn_c_try_cpp "$LINENO"; then :
  2097    ac_header_preproc=yes
  2098  else
  2099    ac_header_preproc=no
  2100  fi
  2101  rm -f conftest.err conftest.i conftest.$ac_ext
  2102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2103  $as_echo "$ac_header_preproc" >&6; }
  2104  
  2105  # So?  What about this header?
  2106  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2107    yes:no: )
  2108      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2109  $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2110      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2111  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2112      ;;
  2113    no:yes:* )
  2114      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2115  $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2116      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2117  $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2118      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2119  $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2120      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2121  $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2122      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2123  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2124  ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
  2125  ## Report this to gmp-bugs@gmplib.org ##
  2126  ## ssssssssssssssssssssssssssssssssss ##"
  2127       ) | sed "s/^/$as_me: WARNING:     /" >&2
  2128      ;;
  2129  esac
  2130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2131  $as_echo_n "checking for $2... " >&6; }
  2132  if eval \${$3+:} false; then :
  2133    $as_echo_n "(cached) " >&6
  2134  else
  2135    eval "$3=\$ac_header_compiler"
  2136  fi
  2137  eval ac_res=\$$3
  2138  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2139  $as_echo "$ac_res" >&6; }
  2140  fi
  2141    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2142  
  2143  } # ac_fn_c_check_header_mongrel
  2144  
  2145  # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2146  # ---------------------------------------------
  2147  # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2148  # accordingly.
  2149  ac_fn_c_check_decl ()
  2150  {
  2151    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2152    as_decl_name=`echo $2|sed 's/ *(.*//'`
  2153    as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2155  $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2156  if eval \${$3+:} false; then :
  2157    $as_echo_n "(cached) " >&6
  2158  else
  2159    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2160  /* end confdefs.h.  */
  2161  $4
  2162  int
  2163  main ()
  2164  {
  2165  #ifndef $as_decl_name
  2166  #ifdef __cplusplus
  2167    (void) $as_decl_use;
  2168  #else
  2169    (void) $as_decl_name;
  2170  #endif
  2171  #endif
  2172  
  2173    ;
  2174    return 0;
  2175  }
  2176  _ACEOF
  2177  if ac_fn_c_try_compile "$LINENO"; then :
  2178    eval "$3=yes"
  2179  else
  2180    eval "$3=no"
  2181  fi
  2182  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183  fi
  2184  eval ac_res=\$$3
  2185  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2186  $as_echo "$ac_res" >&6; }
  2187    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2188  
  2189  } # ac_fn_c_check_decl
  2190  
  2191  # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2192  # -------------------------------------------
  2193  # Tests whether TYPE exists after having included INCLUDES, setting cache
  2194  # variable VAR accordingly.
  2195  ac_fn_c_check_type ()
  2196  {
  2197    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2199  $as_echo_n "checking for $2... " >&6; }
  2200  if eval \${$3+:} false; then :
  2201    $as_echo_n "(cached) " >&6
  2202  else
  2203    eval "$3=no"
  2204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2205  /* end confdefs.h.  */
  2206  $4
  2207  int
  2208  main ()
  2209  {
  2210  if (sizeof ($2))
  2211  	 return 0;
  2212    ;
  2213    return 0;
  2214  }
  2215  _ACEOF
  2216  if ac_fn_c_try_compile "$LINENO"; then :
  2217    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2218  /* end confdefs.h.  */
  2219  $4
  2220  int
  2221  main ()
  2222  {
  2223  if (sizeof (($2)))
  2224  	    return 0;
  2225    ;
  2226    return 0;
  2227  }
  2228  _ACEOF
  2229  if ac_fn_c_try_compile "$LINENO"; then :
  2230  
  2231  else
  2232    eval "$3=yes"
  2233  fi
  2234  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2235  fi
  2236  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2237  fi
  2238  eval ac_res=\$$3
  2239  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2240  $as_echo "$ac_res" >&6; }
  2241    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2242  
  2243  } # ac_fn_c_check_type
  2244  
  2245  # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2246  # ----------------------------------------------------
  2247  # Tries to find if the field MEMBER exists in type AGGR, after including
  2248  # INCLUDES, setting cache variable VAR accordingly.
  2249  ac_fn_c_check_member ()
  2250  {
  2251    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2253  $as_echo_n "checking for $2.$3... " >&6; }
  2254  if eval \${$4+:} false; then :
  2255    $as_echo_n "(cached) " >&6
  2256  else
  2257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2258  /* end confdefs.h.  */
  2259  $5
  2260  int
  2261  main ()
  2262  {
  2263  static $2 ac_aggr;
  2264  if (ac_aggr.$3)
  2265  return 0;
  2266    ;
  2267    return 0;
  2268  }
  2269  _ACEOF
  2270  if ac_fn_c_try_compile "$LINENO"; then :
  2271    eval "$4=yes"
  2272  else
  2273    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2274  /* end confdefs.h.  */
  2275  $5
  2276  int
  2277  main ()
  2278  {
  2279  static $2 ac_aggr;
  2280  if (sizeof ac_aggr.$3)
  2281  return 0;
  2282    ;
  2283    return 0;
  2284  }
  2285  _ACEOF
  2286  if ac_fn_c_try_compile "$LINENO"; then :
  2287    eval "$4=yes"
  2288  else
  2289    eval "$4=no"
  2290  fi
  2291  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2292  fi
  2293  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2294  fi
  2295  eval ac_res=\$$4
  2296  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2297  $as_echo "$ac_res" >&6; }
  2298    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2299  
  2300  } # ac_fn_c_check_member
  2301  
  2302  # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2303  # ---------------------------------------------------------
  2304  # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2305  # the include files in INCLUDES and setting the cache variable VAR
  2306  # accordingly.
  2307  ac_fn_cxx_check_header_mongrel ()
  2308  {
  2309    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2310    if eval \${$3+:} false; then :
  2311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2312  $as_echo_n "checking for $2... " >&6; }
  2313  if eval \${$3+:} false; then :
  2314    $as_echo_n "(cached) " >&6
  2315  fi
  2316  eval ac_res=\$$3
  2317  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2318  $as_echo "$ac_res" >&6; }
  2319  else
  2320    # Is the header compilable?
  2321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2322  $as_echo_n "checking $2 usability... " >&6; }
  2323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2324  /* end confdefs.h.  */
  2325  $4
  2326  #include <$2>
  2327  _ACEOF
  2328  if ac_fn_cxx_try_compile "$LINENO"; then :
  2329    ac_header_compiler=yes
  2330  else
  2331    ac_header_compiler=no
  2332  fi
  2333  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2335  $as_echo "$ac_header_compiler" >&6; }
  2336  
  2337  # Is the header present?
  2338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2339  $as_echo_n "checking $2 presence... " >&6; }
  2340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2341  /* end confdefs.h.  */
  2342  #include <$2>
  2343  _ACEOF
  2344  if ac_fn_cxx_try_cpp "$LINENO"; then :
  2345    ac_header_preproc=yes
  2346  else
  2347    ac_header_preproc=no
  2348  fi
  2349  rm -f conftest.err conftest.i conftest.$ac_ext
  2350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2351  $as_echo "$ac_header_preproc" >&6; }
  2352  
  2353  # So?  What about this header?
  2354  case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2355    yes:no: )
  2356      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2357  $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2358      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2359  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2360      ;;
  2361    no:yes:* )
  2362      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2363  $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2364      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2365  $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2366      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2367  $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2368      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2369  $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2370      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2371  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2372  ( $as_echo "## ssssssssssssssssssssssssssssssssss ##
  2373  ## Report this to gmp-bugs@gmplib.org ##
  2374  ## ssssssssssssssssssssssssssssssssss ##"
  2375       ) | sed "s/^/$as_me: WARNING:     /" >&2
  2376      ;;
  2377  esac
  2378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2379  $as_echo_n "checking for $2... " >&6; }
  2380  if eval \${$3+:} false; then :
  2381    $as_echo_n "(cached) " >&6
  2382  else
  2383    eval "$3=\$ac_header_compiler"
  2384  fi
  2385  eval ac_res=\$$3
  2386  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2387  $as_echo "$ac_res" >&6; }
  2388  fi
  2389    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2390  
  2391  } # ac_fn_cxx_check_header_mongrel
  2392  
  2393  # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  2394  # ---------------------------------------------
  2395  # Tests whether TYPE exists after having included INCLUDES, setting cache
  2396  # variable VAR accordingly.
  2397  ac_fn_cxx_check_type ()
  2398  {
  2399    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2400    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2401  $as_echo_n "checking for $2... " >&6; }
  2402  if eval \${$3+:} false; then :
  2403    $as_echo_n "(cached) " >&6
  2404  else
  2405    eval "$3=no"
  2406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2407  /* end confdefs.h.  */
  2408  $4
  2409  int
  2410  main ()
  2411  {
  2412  if (sizeof ($2))
  2413  	 return 0;
  2414    ;
  2415    return 0;
  2416  }
  2417  _ACEOF
  2418  if ac_fn_cxx_try_compile "$LINENO"; then :
  2419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2420  /* end confdefs.h.  */
  2421  $4
  2422  int
  2423  main ()
  2424  {
  2425  if (sizeof (($2)))
  2426  	    return 0;
  2427    ;
  2428    return 0;
  2429  }
  2430  _ACEOF
  2431  if ac_fn_cxx_try_compile "$LINENO"; then :
  2432  
  2433  else
  2434    eval "$3=yes"
  2435  fi
  2436  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2437  fi
  2438  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2439  fi
  2440  eval ac_res=\$$3
  2441  	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2442  $as_echo "$ac_res" >&6; }
  2443    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2444  
  2445  } # ac_fn_cxx_check_type
  2446  
  2447  # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2448  # --------------------------------------------
  2449  # Tries to find the compile-time value of EXPR in a program that includes
  2450  # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2451  # computed
  2452  ac_fn_c_compute_int ()
  2453  {
  2454    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2455    if test "$cross_compiling" = yes; then
  2456      # Depending upon the size, compute the lo and hi bounds.
  2457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2458  /* end confdefs.h.  */
  2459  $4
  2460  int
  2461  main ()
  2462  {
  2463  static int test_array [1 - 2 * !(($2) >= 0)];
  2464  test_array [0] = 0;
  2465  return test_array [0];
  2466  
  2467    ;
  2468    return 0;
  2469  }
  2470  _ACEOF
  2471  if ac_fn_c_try_compile "$LINENO"; then :
  2472    ac_lo=0 ac_mid=0
  2473    while :; do
  2474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2475  /* end confdefs.h.  */
  2476  $4
  2477  int
  2478  main ()
  2479  {
  2480  static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2481  test_array [0] = 0;
  2482  return test_array [0];
  2483  
  2484    ;
  2485    return 0;
  2486  }
  2487  _ACEOF
  2488  if ac_fn_c_try_compile "$LINENO"; then :
  2489    ac_hi=$ac_mid; break
  2490  else
  2491    as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2492  			if test $ac_lo -le $ac_mid; then
  2493  			  ac_lo= ac_hi=
  2494  			  break
  2495  			fi
  2496  			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2497  fi
  2498  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2499    done
  2500  else
  2501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2502  /* end confdefs.h.  */
  2503  $4
  2504  int
  2505  main ()
  2506  {
  2507  static int test_array [1 - 2 * !(($2) < 0)];
  2508  test_array [0] = 0;
  2509  return test_array [0];
  2510  
  2511    ;
  2512    return 0;
  2513  }
  2514  _ACEOF
  2515  if ac_fn_c_try_compile "$LINENO"; then :
  2516    ac_hi=-1 ac_mid=-1
  2517    while :; do
  2518      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2519  /* end confdefs.h.  */
  2520  $4
  2521  int
  2522  main ()
  2523  {
  2524  static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2525  test_array [0] = 0;
  2526  return test_array [0];
  2527  
  2528    ;
  2529    return 0;
  2530  }
  2531  _ACEOF
  2532  if ac_fn_c_try_compile "$LINENO"; then :
  2533    ac_lo=$ac_mid; break
  2534  else
  2535    as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2536  			if test $ac_mid -le $ac_hi; then
  2537  			  ac_lo= ac_hi=
  2538  			  break
  2539  			fi
  2540  			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2541  fi
  2542  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2543    done
  2544  else
  2545    ac_lo= ac_hi=
  2546  fi
  2547  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2548  fi
  2549  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2550  # Binary search between lo and hi bounds.
  2551  while test "x$ac_lo" != "x$ac_hi"; do
  2552    as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2554  /* end confdefs.h.  */
  2555  $4
  2556  int
  2557  main ()
  2558  {
  2559  static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2560  test_array [0] = 0;
  2561  return test_array [0];
  2562  
  2563    ;
  2564    return 0;
  2565  }
  2566  _ACEOF
  2567  if ac_fn_c_try_compile "$LINENO"; then :
  2568    ac_hi=$ac_mid
  2569  else
  2570    as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2571  fi
  2572  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2573  done
  2574  case $ac_lo in #((
  2575  ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2576  '') ac_retval=1 ;;
  2577  esac
  2578    else
  2579      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2580  /* end confdefs.h.  */
  2581  $4
  2582  static long int longval () { return $2; }
  2583  static unsigned long int ulongval () { return $2; }
  2584  #include <stdio.h>
  2585  #include <stdlib.h>
  2586  int
  2587  main ()
  2588  {
  2589  
  2590    FILE *f = fopen ("conftest.val", "w");
  2591    if (! f)
  2592      return 1;
  2593    if (($2) < 0)
  2594      {
  2595        long int i = longval ();
  2596        if (i != ($2))
  2597  	return 1;
  2598        fprintf (f, "%ld", i);
  2599      }
  2600    else
  2601      {
  2602        unsigned long int i = ulongval ();
  2603        if (i != ($2))
  2604  	return 1;
  2605        fprintf (f, "%lu", i);
  2606      }
  2607    /* Do not output a trailing newline, as this causes \r\n confusion
  2608       on some platforms.  */
  2609    return ferror (f) || fclose (f) != 0;
  2610  
  2611    ;
  2612    return 0;
  2613  }
  2614  _ACEOF
  2615  if ac_fn_c_try_run "$LINENO"; then :
  2616    echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2617  else
  2618    ac_retval=1
  2619  fi
  2620  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2621    conftest.$ac_objext conftest.beam conftest.$ac_ext
  2622  rm -f conftest.val
  2623  
  2624    fi
  2625    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2626    as_fn_set_status $ac_retval
  2627  
  2628  } # ac_fn_c_compute_int
  2629  cat >config.log <<_ACEOF
  2630  This file contains any messages produced by compilers while
  2631  running configure, to aid debugging if configure makes a mistake.
  2632  
  2633  It was created by GNU MP $as_me 6.1.2, which was
  2634  generated by GNU Autoconf 2.69.  Invocation command line was
  2635  
  2636    $ $0 $@
  2637  
  2638  _ACEOF
  2639  exec 5>>config.log
  2640  {
  2641  cat <<_ASUNAME
  2642  ## --------- ##
  2643  ## Platform. ##
  2644  ## --------- ##
  2645  
  2646  hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2647  uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2648  uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2649  uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2650  uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2651  
  2652  /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2653  /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2654  
  2655  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2656  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2657  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2658  /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2659  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2660  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2661  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2662  
  2663  _ASUNAME
  2664  
  2665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666  for as_dir in $PATH
  2667  do
  2668    IFS=$as_save_IFS
  2669    test -z "$as_dir" && as_dir=.
  2670      $as_echo "PATH: $as_dir"
  2671    done
  2672  IFS=$as_save_IFS
  2673  
  2674  } >&5
  2675  
  2676  cat >&5 <<_ACEOF
  2677  
  2678  
  2679  ## ----------- ##
  2680  ## Core tests. ##
  2681  ## ----------- ##
  2682  
  2683  _ACEOF
  2684  
  2685  
  2686  # Keep a trace of the command line.
  2687  # Strip out --no-create and --no-recursion so they do not pile up.
  2688  # Strip out --silent because we don't want to record it for future runs.
  2689  # Also quote any args containing shell meta-characters.
  2690  # Make two passes to allow for proper duplicate-argument suppression.
  2691  ac_configure_args=
  2692  ac_configure_args0=
  2693  ac_configure_args1=
  2694  ac_must_keep_next=false
  2695  for ac_pass in 1 2
  2696  do
  2697    for ac_arg
  2698    do
  2699      case $ac_arg in
  2700      -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2701      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2702      | -silent | --silent | --silen | --sile | --sil)
  2703        continue ;;
  2704      *\'*)
  2705        ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2706      esac
  2707      case $ac_pass in
  2708      1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2709      2)
  2710        as_fn_append ac_configure_args1 " '$ac_arg'"
  2711        if test $ac_must_keep_next = true; then
  2712  	ac_must_keep_next=false # Got value, back to normal.
  2713        else
  2714  	case $ac_arg in
  2715  	  *=* | --config-cache | -C | -disable-* | --disable-* \
  2716  	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2717  	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2718  	  | -with-* | --with-* | -without-* | --without-* | --x)
  2719  	    case "$ac_configure_args0 " in
  2720  	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2721  	    esac
  2722  	    ;;
  2723  	  -* ) ac_must_keep_next=true ;;
  2724  	esac
  2725        fi
  2726        as_fn_append ac_configure_args " '$ac_arg'"
  2727        ;;
  2728      esac
  2729    done
  2730  done
  2731  { ac_configure_args0=; unset ac_configure_args0;}
  2732  { ac_configure_args1=; unset ac_configure_args1;}
  2733  
  2734  # When interrupted or exit'd, cleanup temporary files, and complete
  2735  # config.log.  We remove comments because anyway the quotes in there
  2736  # would cause problems or look ugly.
  2737  # WARNING: Use '\'' to represent an apostrophe within the trap.
  2738  # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2739  trap 'exit_status=$?
  2740    # Save into config.log some information that might help in debugging.
  2741    {
  2742      echo
  2743  
  2744      $as_echo "## ---------------- ##
  2745  ## Cache variables. ##
  2746  ## ---------------- ##"
  2747      echo
  2748      # The following way of writing the cache mishandles newlines in values,
  2749  (
  2750    for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2751      eval ac_val=\$$ac_var
  2752      case $ac_val in #(
  2753      *${as_nl}*)
  2754        case $ac_var in #(
  2755        *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2756  $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2757        esac
  2758        case $ac_var in #(
  2759        _ | IFS | as_nl) ;; #(
  2760        BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2761        *) { eval $ac_var=; unset $ac_var;} ;;
  2762        esac ;;
  2763      esac
  2764    done
  2765    (set) 2>&1 |
  2766      case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2767      *${as_nl}ac_space=\ *)
  2768        sed -n \
  2769  	"s/'\''/'\''\\\\'\'''\''/g;
  2770  	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2771        ;; #(
  2772      *)
  2773        sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2774        ;;
  2775      esac |
  2776      sort
  2777  )
  2778      echo
  2779  
  2780      $as_echo "## ----------------- ##
  2781  ## Output variables. ##
  2782  ## ----------------- ##"
  2783      echo
  2784      for ac_var in $ac_subst_vars
  2785      do
  2786        eval ac_val=\$$ac_var
  2787        case $ac_val in
  2788        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2789        esac
  2790        $as_echo "$ac_var='\''$ac_val'\''"
  2791      done | sort
  2792      echo
  2793  
  2794      if test -n "$ac_subst_files"; then
  2795        $as_echo "## ------------------- ##
  2796  ## File substitutions. ##
  2797  ## ------------------- ##"
  2798        echo
  2799        for ac_var in $ac_subst_files
  2800        do
  2801  	eval ac_val=\$$ac_var
  2802  	case $ac_val in
  2803  	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2804  	esac
  2805  	$as_echo "$ac_var='\''$ac_val'\''"
  2806        done | sort
  2807        echo
  2808      fi
  2809  
  2810      if test -s confdefs.h; then
  2811        $as_echo "## ----------- ##
  2812  ## confdefs.h. ##
  2813  ## ----------- ##"
  2814        echo
  2815        cat confdefs.h
  2816        echo
  2817      fi
  2818      test "$ac_signal" != 0 &&
  2819        $as_echo "$as_me: caught signal $ac_signal"
  2820      $as_echo "$as_me: exit $exit_status"
  2821    } >&5
  2822    rm -f core *.core core.conftest.* &&
  2823      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2824      exit $exit_status
  2825  ' 0
  2826  for ac_signal in 1 2 13 15; do
  2827    trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2828  done
  2829  ac_signal=0
  2830  
  2831  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2832  rm -f -r conftest* confdefs.h
  2833  
  2834  $as_echo "/* confdefs.h */" > confdefs.h
  2835  
  2836  # Predefined preprocessor variables.
  2837  
  2838  cat >>confdefs.h <<_ACEOF
  2839  #define PACKAGE_NAME "$PACKAGE_NAME"
  2840  _ACEOF
  2841  
  2842  cat >>confdefs.h <<_ACEOF
  2843  #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2844  _ACEOF
  2845  
  2846  cat >>confdefs.h <<_ACEOF
  2847  #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2848  _ACEOF
  2849  
  2850  cat >>confdefs.h <<_ACEOF
  2851  #define PACKAGE_STRING "$PACKAGE_STRING"
  2852  _ACEOF
  2853  
  2854  cat >>confdefs.h <<_ACEOF
  2855  #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2856  _ACEOF
  2857  
  2858  cat >>confdefs.h <<_ACEOF
  2859  #define PACKAGE_URL "$PACKAGE_URL"
  2860  _ACEOF
  2861  
  2862  
  2863  # Let the site file select an alternate cache file if it wants to.
  2864  # Prefer an explicitly selected file to automatically selected ones.
  2865  ac_site_file1=NONE
  2866  ac_site_file2=NONE
  2867  if test -n "$CONFIG_SITE"; then
  2868    # We do not want a PATH search for config.site.
  2869    case $CONFIG_SITE in #((
  2870      -*)  ac_site_file1=./$CONFIG_SITE;;
  2871      */*) ac_site_file1=$CONFIG_SITE;;
  2872      *)   ac_site_file1=./$CONFIG_SITE;;
  2873    esac
  2874  elif test "x$prefix" != xNONE; then
  2875    ac_site_file1=$prefix/share/config.site
  2876    ac_site_file2=$prefix/etc/config.site
  2877  else
  2878    ac_site_file1=$ac_default_prefix/share/config.site
  2879    ac_site_file2=$ac_default_prefix/etc/config.site
  2880  fi
  2881  for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2882  do
  2883    test "x$ac_site_file" = xNONE && continue
  2884    if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2885      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2886  $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2887      sed 's/^/| /' "$ac_site_file" >&5
  2888      . "$ac_site_file" \
  2889        || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2890  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2891  as_fn_error $? "failed to load site script $ac_site_file
  2892  See \`config.log' for more details" "$LINENO" 5; }
  2893    fi
  2894  done
  2895  
  2896  if test -r "$cache_file"; then
  2897    # Some versions of bash will fail to source /dev/null (special files
  2898    # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2899    if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2900      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2901  $as_echo "$as_me: loading cache $cache_file" >&6;}
  2902      case $cache_file in
  2903        [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2904        *)                      . "./$cache_file";;
  2905      esac
  2906    fi
  2907  else
  2908    { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2909  $as_echo "$as_me: creating cache $cache_file" >&6;}
  2910    >$cache_file
  2911  fi
  2912  
  2913  # Check that the precious variables saved in the cache have kept the same
  2914  # value.
  2915  ac_cache_corrupted=false
  2916  for ac_var in $ac_precious_vars; do
  2917    eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2918    eval ac_new_set=\$ac_env_${ac_var}_set
  2919    eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2920    eval ac_new_val=\$ac_env_${ac_var}_value
  2921    case $ac_old_set,$ac_new_set in
  2922      set,)
  2923        { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2924  $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2925        ac_cache_corrupted=: ;;
  2926      ,set)
  2927        { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2928  $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2929        ac_cache_corrupted=: ;;
  2930      ,);;
  2931      *)
  2932        if test "x$ac_old_val" != "x$ac_new_val"; then
  2933  	# differences in whitespace do not lead to failure.
  2934  	ac_old_val_w=`echo x $ac_old_val`
  2935  	ac_new_val_w=`echo x $ac_new_val`
  2936  	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2937  	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2938  $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2939  	  ac_cache_corrupted=:
  2940  	else
  2941  	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2942  $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2943  	  eval $ac_var=\$ac_old_val
  2944  	fi
  2945  	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2946  $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2947  	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2948  $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2949        fi;;
  2950    esac
  2951    # Pass precious variables to config.status.
  2952    if test "$ac_new_set" = set; then
  2953      case $ac_new_val in
  2954      *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2955      *) ac_arg=$ac_var=$ac_new_val ;;
  2956      esac
  2957      case " $ac_configure_args " in
  2958        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2959        *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2960      esac
  2961    fi
  2962  done
  2963  if $ac_cache_corrupted; then
  2964    { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2965  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2966    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2967  $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2968    as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2969  fi
  2970  ## -------------------- ##
  2971  ## Main body of script. ##
  2972  ## -------------------- ##
  2973  
  2974  ac_ext=c
  2975  ac_cpp='$CPP $CPPFLAGS'
  2976  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2977  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2978  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2979  
  2980  
  2981  
  2982  
  2983  
  2984  
  2985  
  2986  
  2987  
  2988  
  2989  
  2990  
  2991  # If --target is not used then $target_alias is empty, but if say
  2992  # "./configure athlon-pc-freebsd3.5" is used, then all three of
  2993  # $build_alias, $host_alias and $target_alias are set to
  2994  # "athlon-pc-freebsd3.5".
  2995  #
  2996  if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
  2997    as_fn_error $? "--target is not appropriate for GMP
  2998  Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
  2999  explicitly.  Use --host if cross-compiling (see \"Installing GMP\" in the
  3000  manual for more on this)." "$LINENO" 5
  3001  fi
  3002  
  3003  gmp_configm4="config.m4"
  3004  gmp_tmpconfigm4=cnfm4.tmp
  3005  gmp_tmpconfigm4i=cnfm4i.tmp
  3006  gmp_tmpconfigm4p=cnfm4p.tmp
  3007  rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
  3008  
  3009  # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
  3010  # The pattern here tests for an absolute path the same way as
  3011  # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
  3012  case $srcdir in
  3013  [\\/]* | ?:[\\/]* )  tmp="$srcdir"    ;;
  3014  *)                       tmp="../$srcdir" ;;
  3015  esac
  3016  echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
  3017  
  3018  # All CPUs use asm-defs.m4
  3019  echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
  3020  
  3021  
  3022  ac_aux_dir=
  3023  for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3024    if test -f "$ac_dir/install-sh"; then
  3025      ac_aux_dir=$ac_dir
  3026      ac_install_sh="$ac_aux_dir/install-sh -c"
  3027      break
  3028    elif test -f "$ac_dir/install.sh"; then
  3029      ac_aux_dir=$ac_dir
  3030      ac_install_sh="$ac_aux_dir/install.sh -c"
  3031      break
  3032    elif test -f "$ac_dir/shtool"; then
  3033      ac_aux_dir=$ac_dir
  3034      ac_install_sh="$ac_aux_dir/shtool install -c"
  3035      break
  3036    fi
  3037  done
  3038  if test -z "$ac_aux_dir"; then
  3039    as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3040  fi
  3041  
  3042  # These three variables are undocumented and unsupported,
  3043  # and are intended to be withdrawn in a future Autoconf release.
  3044  # They can cause serious problems if a builder's source tree is in a directory
  3045  # whose full name contains unusual characters.
  3046  ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  3047  ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  3048  ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  3049  
  3050  
  3051  # Make sure we can run config.sub.
  3052  $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3053    as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3054  
  3055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3056  $as_echo_n "checking build system type... " >&6; }
  3057  if ${ac_cv_build+:} false; then :
  3058    $as_echo_n "(cached) " >&6
  3059  else
  3060    ac_build_alias=$build_alias
  3061  test "x$ac_build_alias" = x &&
  3062    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3063  test "x$ac_build_alias" = x &&
  3064    as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3065  ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3066    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3067  
  3068  fi
  3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3070  $as_echo "$ac_cv_build" >&6; }
  3071  case $ac_cv_build in
  3072  *-*-*) ;;
  3073  *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3074  esac
  3075  build=$ac_cv_build
  3076  ac_save_IFS=$IFS; IFS='-'
  3077  set x $ac_cv_build
  3078  shift
  3079  build_cpu=$1
  3080  build_vendor=$2
  3081  shift; shift
  3082  # Remember, the first character of IFS is used to create $*,
  3083  # except with old shells:
  3084  build_os=$*
  3085  IFS=$ac_save_IFS
  3086  case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3087  
  3088  
  3089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3090  $as_echo_n "checking host system type... " >&6; }
  3091  if ${ac_cv_host+:} false; then :
  3092    $as_echo_n "(cached) " >&6
  3093  else
  3094    if test "x$host_alias" = x; then
  3095    ac_cv_host=$ac_cv_build
  3096  else
  3097    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3098      as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3099  fi
  3100  
  3101  fi
  3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3103  $as_echo "$ac_cv_host" >&6; }
  3104  case $ac_cv_host in
  3105  *-*-*) ;;
  3106  *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3107  esac
  3108  host=$ac_cv_host
  3109  ac_save_IFS=$IFS; IFS='-'
  3110  set x $ac_cv_host
  3111  shift
  3112  host_cpu=$1
  3113  host_vendor=$2
  3114  shift; shift
  3115  # Remember, the first character of IFS is used to create $*,
  3116  # except with old shells:
  3117  host_os=$*
  3118  IFS=$ac_save_IFS
  3119  case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3120  
  3121  
  3122  
  3123  am__api_version='1.15'
  3124  
  3125  # Find a good install program.  We prefer a C program (faster),
  3126  # so one script is as good as another.  But avoid the broken or
  3127  # incompatible versions:
  3128  # SysV /etc/install, /usr/sbin/install
  3129  # SunOS /usr/etc/install
  3130  # IRIX /sbin/install
  3131  # AIX /bin/install
  3132  # AmigaOS /C/install, which installs bootblocks on floppy discs
  3133  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3134  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3135  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3136  # OS/2's system install, which has a completely different semantic
  3137  # ./install, which can be erroneously created by make from ./install.sh.
  3138  # Reject install programs that cannot install multiple files.
  3139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3140  $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3141  if test -z "$INSTALL"; then
  3142  if ${ac_cv_path_install+:} false; then :
  3143    $as_echo_n "(cached) " >&6
  3144  else
  3145    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146  for as_dir in $PATH
  3147  do
  3148    IFS=$as_save_IFS
  3149    test -z "$as_dir" && as_dir=.
  3150      # Account for people who put trailing slashes in PATH elements.
  3151  case $as_dir/ in #((
  3152    ./ | .// | /[cC]/* | \
  3153    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3154    ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3155    /usr/ucb/* ) ;;
  3156    *)
  3157      # OSF1 and SCO ODT 3.0 have their own names for install.
  3158      # Don't use installbsd from OSF since it installs stuff as root
  3159      # by default.
  3160      for ac_prog in ginstall scoinst install; do
  3161        for ac_exec_ext in '' $ac_executable_extensions; do
  3162  	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3163  	  if test $ac_prog = install &&
  3164  	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3165  	    # AIX install.  It has an incompatible calling convention.
  3166  	    :
  3167  	  elif test $ac_prog = install &&
  3168  	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3169  	    # program-specific install script used by HP pwplus--don't use.
  3170  	    :
  3171  	  else
  3172  	    rm -rf conftest.one conftest.two conftest.dir
  3173  	    echo one > conftest.one
  3174  	    echo two > conftest.two
  3175  	    mkdir conftest.dir
  3176  	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3177  	      test -s conftest.one && test -s conftest.two &&
  3178  	      test -s conftest.dir/conftest.one &&
  3179  	      test -s conftest.dir/conftest.two
  3180  	    then
  3181  	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3182  	      break 3
  3183  	    fi
  3184  	  fi
  3185  	fi
  3186        done
  3187      done
  3188      ;;
  3189  esac
  3190  
  3191    done
  3192  IFS=$as_save_IFS
  3193  
  3194  rm -rf conftest.one conftest.two conftest.dir
  3195  
  3196  fi
  3197    if test "${ac_cv_path_install+set}" = set; then
  3198      INSTALL=$ac_cv_path_install
  3199    else
  3200      # As a last resort, use the slow shell script.  Don't cache a
  3201      # value for INSTALL within a source directory, because that will
  3202      # break other packages using the cache if that directory is
  3203      # removed, or if the value is a relative name.
  3204      INSTALL=$ac_install_sh
  3205    fi
  3206  fi
  3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3208  $as_echo "$INSTALL" >&6; }
  3209  
  3210  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3211  # It thinks the first close brace ends the variable substitution.
  3212  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3213  
  3214  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3215  
  3216  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3217  
  3218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3219  $as_echo_n "checking whether build environment is sane... " >&6; }
  3220  # Reject unsafe characters in $srcdir or the absolute working directory
  3221  # name.  Accept space and tab only in the latter.
  3222  am_lf='
  3223  '
  3224  case `pwd` in
  3225    *[\\\"\#\$\&\'\`$am_lf]*)
  3226      as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3227  esac
  3228  case $srcdir in
  3229    *[\\\"\#\$\&\'\`$am_lf\ \	]*)
  3230      as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3231  esac
  3232  
  3233  # Do 'set' in a subshell so we don't clobber the current shell's
  3234  # arguments.  Must try -L first in case configure is actually a
  3235  # symlink; some systems play weird games with the mod time of symlinks
  3236  # (eg FreeBSD returns the mod time of the symlink's containing
  3237  # directory).
  3238  if (
  3239     am_has_slept=no
  3240     for am_try in 1 2; do
  3241       echo "timestamp, slept: $am_has_slept" > conftest.file
  3242       set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3243       if test "$*" = "X"; then
  3244  	# -L didn't work.
  3245  	set X `ls -t "$srcdir/configure" conftest.file`
  3246       fi
  3247       if test "$*" != "X $srcdir/configure conftest.file" \
  3248  	&& test "$*" != "X conftest.file $srcdir/configure"; then
  3249  
  3250  	# If neither matched, then we have a broken ls.  This can happen
  3251  	# if, for instance, CONFIG_SHELL is bash and it inherits a
  3252  	# broken ls alias from the environment.  This has actually
  3253  	# happened.  Such a system could not be considered "sane".
  3254  	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  3255    alias in your environment" "$LINENO" 5
  3256       fi
  3257       if test "$2" = conftest.file || test $am_try -eq 2; then
  3258         break
  3259       fi
  3260       # Just in case.
  3261       sleep 1
  3262       am_has_slept=yes
  3263     done
  3264     test "$2" = conftest.file
  3265     )
  3266  then
  3267     # Ok.
  3268     :
  3269  else
  3270     as_fn_error $? "newly created file is older than distributed files!
  3271  Check your system clock" "$LINENO" 5
  3272  fi
  3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3274  $as_echo "yes" >&6; }
  3275  # If we didn't sleep, we still need to ensure time stamps of config.status and
  3276  # generated files are strictly newer.
  3277  am_sleep_pid=
  3278  if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3279    ( sleep 1 ) &
  3280    am_sleep_pid=$!
  3281  fi
  3282  
  3283  rm -f conftest.file
  3284  
  3285  test "$program_prefix" != NONE &&
  3286    program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3287  # Use a double $ so make ignores it.
  3288  test "$program_suffix" != NONE &&
  3289    program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3290  # Double any \ or $.
  3291  # By default was `s,x,x', remove it if useless.
  3292  ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3293  program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3294  
  3295  # Expand $ac_aux_dir to an absolute path.
  3296  am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3297  
  3298  if test x"${MISSING+set}" != xset; then
  3299    case $am_aux_dir in
  3300    *\ * | *\	*)
  3301      MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3302    *)
  3303      MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3304    esac
  3305  fi
  3306  # Use eval to expand $SHELL
  3307  if eval "$MISSING --is-lightweight"; then
  3308    am_missing_run="$MISSING "
  3309  else
  3310    am_missing_run=
  3311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3312  $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3313  fi
  3314  
  3315  if test x"${install_sh+set}" != xset; then
  3316    case $am_aux_dir in
  3317    *\ * | *\	*)
  3318      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3319    *)
  3320      install_sh="\${SHELL} $am_aux_dir/install-sh"
  3321    esac
  3322  fi
  3323  
  3324  # Installed binaries are usually stripped using 'strip' when the user
  3325  # run "make install-strip".  However 'strip' might not be the right
  3326  # tool to use in cross-compilation environments, therefore Automake
  3327  # will honor the 'STRIP' environment variable to overrule this program.
  3328  if test "$cross_compiling" != no; then
  3329    if test -n "$ac_tool_prefix"; then
  3330    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3331  set dummy ${ac_tool_prefix}strip; ac_word=$2
  3332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3333  $as_echo_n "checking for $ac_word... " >&6; }
  3334  if ${ac_cv_prog_STRIP+:} false; then :
  3335    $as_echo_n "(cached) " >&6
  3336  else
  3337    if test -n "$STRIP"; then
  3338    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3339  else
  3340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341  for as_dir in $PATH
  3342  do
  3343    IFS=$as_save_IFS
  3344    test -z "$as_dir" && as_dir=.
  3345      for ac_exec_ext in '' $ac_executable_extensions; do
  3346    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3347      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3348      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349      break 2
  3350    fi
  3351  done
  3352    done
  3353  IFS=$as_save_IFS
  3354  
  3355  fi
  3356  fi
  3357  STRIP=$ac_cv_prog_STRIP
  3358  if test -n "$STRIP"; then
  3359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3360  $as_echo "$STRIP" >&6; }
  3361  else
  3362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3363  $as_echo "no" >&6; }
  3364  fi
  3365  
  3366  
  3367  fi
  3368  if test -z "$ac_cv_prog_STRIP"; then
  3369    ac_ct_STRIP=$STRIP
  3370    # Extract the first word of "strip", so it can be a program name with args.
  3371  set dummy strip; ac_word=$2
  3372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3373  $as_echo_n "checking for $ac_word... " >&6; }
  3374  if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3375    $as_echo_n "(cached) " >&6
  3376  else
  3377    if test -n "$ac_ct_STRIP"; then
  3378    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3379  else
  3380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3381  for as_dir in $PATH
  3382  do
  3383    IFS=$as_save_IFS
  3384    test -z "$as_dir" && as_dir=.
  3385      for ac_exec_ext in '' $ac_executable_extensions; do
  3386    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3387      ac_cv_prog_ac_ct_STRIP="strip"
  3388      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3389      break 2
  3390    fi
  3391  done
  3392    done
  3393  IFS=$as_save_IFS
  3394  
  3395  fi
  3396  fi
  3397  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3398  if test -n "$ac_ct_STRIP"; then
  3399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3400  $as_echo "$ac_ct_STRIP" >&6; }
  3401  else
  3402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403  $as_echo "no" >&6; }
  3404  fi
  3405  
  3406    if test "x$ac_ct_STRIP" = x; then
  3407      STRIP=":"
  3408    else
  3409      case $cross_compiling:$ac_tool_warned in
  3410  yes:)
  3411  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3412  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3413  ac_tool_warned=yes ;;
  3414  esac
  3415      STRIP=$ac_ct_STRIP
  3416    fi
  3417  else
  3418    STRIP="$ac_cv_prog_STRIP"
  3419  fi
  3420  
  3421  fi
  3422  INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3423  
  3424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3425  $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3426  if test -z "$MKDIR_P"; then
  3427    if ${ac_cv_path_mkdir+:} false; then :
  3428    $as_echo_n "(cached) " >&6
  3429  else
  3430    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3431  for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3432  do
  3433    IFS=$as_save_IFS
  3434    test -z "$as_dir" && as_dir=.
  3435      for ac_prog in mkdir gmkdir; do
  3436  	 for ac_exec_ext in '' $ac_executable_extensions; do
  3437  	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3438  	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3439  	     'mkdir (GNU coreutils) '* | \
  3440  	     'mkdir (coreutils) '* | \
  3441  	     'mkdir (fileutils) '4.1*)
  3442  	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3443  	       break 3;;
  3444  	   esac
  3445  	 done
  3446         done
  3447    done
  3448  IFS=$as_save_IFS
  3449  
  3450  fi
  3451  
  3452    test -d ./--version && rmdir ./--version
  3453    if test "${ac_cv_path_mkdir+set}" = set; then
  3454      MKDIR_P="$ac_cv_path_mkdir -p"
  3455    else
  3456      # As a last resort, use the slow shell script.  Don't cache a
  3457      # value for MKDIR_P within a source directory, because that will
  3458      # break other packages using the cache if that directory is
  3459      # removed, or if the value is a relative name.
  3460      MKDIR_P="$ac_install_sh -d"
  3461    fi
  3462  fi
  3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3464  $as_echo "$MKDIR_P" >&6; }
  3465  
  3466  for ac_prog in gawk mawk nawk awk
  3467  do
  3468    # Extract the first word of "$ac_prog", so it can be a program name with args.
  3469  set dummy $ac_prog; ac_word=$2
  3470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3471  $as_echo_n "checking for $ac_word... " >&6; }
  3472  if ${ac_cv_prog_AWK+:} false; then :
  3473    $as_echo_n "(cached) " >&6
  3474  else
  3475    if test -n "$AWK"; then
  3476    ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3477  else
  3478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3479  for as_dir in $PATH
  3480  do
  3481    IFS=$as_save_IFS
  3482    test -z "$as_dir" && as_dir=.
  3483      for ac_exec_ext in '' $ac_executable_extensions; do
  3484    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3485      ac_cv_prog_AWK="$ac_prog"
  3486      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3487      break 2
  3488    fi
  3489  done
  3490    done
  3491  IFS=$as_save_IFS
  3492  
  3493  fi
  3494  fi
  3495  AWK=$ac_cv_prog_AWK
  3496  if test -n "$AWK"; then
  3497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3498  $as_echo "$AWK" >&6; }
  3499  else
  3500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3501  $as_echo "no" >&6; }
  3502  fi
  3503  
  3504  
  3505    test -n "$AWK" && break
  3506  done
  3507  
  3508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3509  $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3510  set x ${MAKE-make}
  3511  ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3512  if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3513    $as_echo_n "(cached) " >&6
  3514  else
  3515    cat >conftest.make <<\_ACEOF
  3516  SHELL = /bin/sh
  3517  all:
  3518  	@echo '@@@%%%=$(MAKE)=@@@%%%'
  3519  _ACEOF
  3520  # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3521  case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3522    *@@@%%%=?*=@@@%%%*)
  3523      eval ac_cv_prog_make_${ac_make}_set=yes;;
  3524    *)
  3525      eval ac_cv_prog_make_${ac_make}_set=no;;
  3526  esac
  3527  rm -f conftest.make
  3528  fi
  3529  if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3531  $as_echo "yes" >&6; }
  3532    SET_MAKE=
  3533  else
  3534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3535  $as_echo "no" >&6; }
  3536    SET_MAKE="MAKE=${MAKE-make}"
  3537  fi
  3538  
  3539  rm -rf .tst 2>/dev/null
  3540  mkdir .tst 2>/dev/null
  3541  if test -d .tst; then
  3542    am__leading_dot=.
  3543  else
  3544    am__leading_dot=_
  3545  fi
  3546  rmdir .tst 2>/dev/null
  3547  
  3548  # Check whether --enable-silent-rules was given.
  3549  if test "${enable_silent_rules+set}" = set; then :
  3550    enableval=$enable_silent_rules;
  3551  fi
  3552  
  3553  case $enable_silent_rules in # (((
  3554    yes) AM_DEFAULT_VERBOSITY=0;;
  3555     no) AM_DEFAULT_VERBOSITY=1;;
  3556      *) AM_DEFAULT_VERBOSITY=1;;
  3557  esac
  3558  am_make=${MAKE-make}
  3559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3560  $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3561  if ${am_cv_make_support_nested_variables+:} false; then :
  3562    $as_echo_n "(cached) " >&6
  3563  else
  3564    if $as_echo 'TRUE=$(BAR$(V))
  3565  BAR0=false
  3566  BAR1=true
  3567  V=1
  3568  am__doit:
  3569  	@$(TRUE)
  3570  .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3571    am_cv_make_support_nested_variables=yes
  3572  else
  3573    am_cv_make_support_nested_variables=no
  3574  fi
  3575  fi
  3576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3577  $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3578  if test $am_cv_make_support_nested_variables = yes; then
  3579      AM_V='$(V)'
  3580    AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3581  else
  3582    AM_V=$AM_DEFAULT_VERBOSITY
  3583    AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3584  fi
  3585  AM_BACKSLASH='\'
  3586  
  3587  if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3588    # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3589    # is not polluted with repeated "-I."
  3590    am__isrc=' -I$(srcdir)'
  3591    # test to see if srcdir already configured
  3592    if test -f $srcdir/config.status; then
  3593      as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3594    fi
  3595  fi
  3596  
  3597  # test whether we have cygpath
  3598  if test -z "$CYGPATH_W"; then
  3599    if (cygpath --version) >/dev/null 2>/dev/null; then
  3600      CYGPATH_W='cygpath -w'
  3601    else
  3602      CYGPATH_W=echo
  3603    fi
  3604  fi
  3605  
  3606  
  3607  # Define the identity of the package.
  3608   PACKAGE='gmp'
  3609   VERSION='6.1.2'
  3610  
  3611  
  3612  cat >>confdefs.h <<_ACEOF
  3613  #define PACKAGE "$PACKAGE"
  3614  _ACEOF
  3615  
  3616  
  3617  cat >>confdefs.h <<_ACEOF
  3618  #define VERSION "$VERSION"
  3619  _ACEOF
  3620  
  3621  # Some tools Automake needs.
  3622  
  3623  ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3624  
  3625  
  3626  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3627  
  3628  
  3629  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3630  
  3631  
  3632  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3633  
  3634  
  3635  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3636  
  3637  # For better backward compatibility.  To be removed once Automake 1.9.x
  3638  # dies out for good.  For more background, see:
  3639  # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3640  # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3641  mkdir_p='$(MKDIR_P)'
  3642  
  3643  # We need awk for the "check" target (and possibly the TAP driver).  The
  3644  # system "awk" is bad on some platforms.
  3645  # Always define AMTAR for backward compatibility.  Yes, it's still used
  3646  # in the wild :-(  We should find a proper way to deprecate it ...
  3647  AMTAR='$${TAR-tar}'
  3648  
  3649  
  3650  # We'll loop over all known methods to create a tar archive until one works.
  3651  _am_tools='gnutar  pax cpio none'
  3652  
  3653  am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3654  
  3655  
  3656  
  3657  
  3658  
  3659  
  3660  # POSIX will say in a future version that running "rm -f" with no argument
  3661  # is OK; and we want to be able to make that assumption in our Makefile
  3662  # recipes.  So use an aggressive probe to check that the usage we want is
  3663  # actually supported "in the wild" to an acceptable degree.
  3664  # See automake bug#10828.
  3665  # To make any issue more visible, cause the running configure to be aborted
  3666  # by default if the 'rm' program in use doesn't match our expectations; the
  3667  # user can still override this though.
  3668  if rm -f && rm -fr && rm -rf; then : OK; else
  3669    cat >&2 <<'END'
  3670  Oops!
  3671  
  3672  Your 'rm' program seems unable to run without file operands specified
  3673  on the command line, even when the '-f' option is present.  This is contrary
  3674  to the behaviour of most rm programs out there, and not conforming with
  3675  the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3676  
  3677  Please tell bug-automake@gnu.org about your system, including the value
  3678  of your $PATH and any error possibly output before this message.  This
  3679  can help us improve future automake versions.
  3680  
  3681  END
  3682    if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3683      echo 'Configuration will proceed anyway, since you have set the' >&2
  3684      echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3685      echo >&2
  3686    else
  3687      cat >&2 <<'END'
  3688  Aborting the configuration process, to ensure you take notice of the issue.
  3689  
  3690  You can download and install GNU coreutils to get an 'rm' implementation
  3691  that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3692  
  3693  If you want to complete the configuration process using your problematic
  3694  'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3695  to "yes", and re-run configure.
  3696  
  3697  END
  3698      as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3699    fi
  3700  fi
  3701  
  3702  ac_config_headers="$ac_config_headers config.h:config.in"
  3703  
  3704  
  3705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3706  $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3707      # Check whether --enable-maintainer-mode was given.
  3708  if test "${enable_maintainer_mode+set}" = set; then :
  3709    enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3710  else
  3711    USE_MAINTAINER_MODE=no
  3712  fi
  3713  
  3714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3715  $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3716     if test $USE_MAINTAINER_MODE = yes; then
  3717    MAINTAINER_MODE_TRUE=
  3718    MAINTAINER_MODE_FALSE='#'
  3719  else
  3720    MAINTAINER_MODE_TRUE='#'
  3721    MAINTAINER_MODE_FALSE=
  3722  fi
  3723  
  3724    MAINT=$MAINTAINER_MODE_TRUE
  3725  
  3726  
  3727  
  3728  
  3729  # Check whether --enable-assert was given.
  3730  if test "${enable_assert+set}" = set; then :
  3731    enableval=$enable_assert; case $enableval in
  3732  yes|no) ;;
  3733  *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
  3734  esac
  3735  else
  3736    enable_assert=no
  3737  fi
  3738  
  3739  
  3740  if test "$enable_assert" = "yes"; then
  3741  
  3742  $as_echo "#define WANT_ASSERT 1" >>confdefs.h
  3743  
  3744    want_assert_01=1
  3745  else
  3746    want_assert_01=0
  3747  fi
  3748  
  3749  echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
  3750  
  3751  
  3752  
  3753  # Check whether --enable-alloca was given.
  3754  if test "${enable_alloca+set}" = set; then :
  3755    enableval=$enable_alloca; case $enableval in
  3756  alloca|malloc-reentrant|malloc-notreentrant) ;;
  3757  yes|no|reentrant|notreentrant) ;;
  3758  debug) ;;
  3759  *)
  3760    as_fn_error $? "bad value $enableval for --enable-alloca, need one of:
  3761  yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
  3762  esac
  3763  else
  3764    enable_alloca=reentrant
  3765  fi
  3766  
  3767  
  3768  
  3769  # IMPROVE ME: The default for C++ is disabled.  The tests currently
  3770  # performed below for a working C++ compiler are not particularly strong,
  3771  # and in general can't be expected to get the right setup on their own.  The
  3772  # most significant problem is getting the ABI the same.  Defaulting CXXFLAGS
  3773  # to CFLAGS takes only a small step towards this.  It's also probably worth
  3774  # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
  3775  # work together.  Some rather broken C++ installations were encountered
  3776  # during testing, and though such things clearly aren't GMP's problem, if
  3777  # --enable-cxx=detect were to be the default then some careful checks of
  3778  # which, if any, C++ compiler on the system is up to scratch would be
  3779  # wanted.
  3780  #
  3781  # Check whether --enable-cxx was given.
  3782  if test "${enable_cxx+set}" = set; then :
  3783    enableval=$enable_cxx; case $enableval in
  3784  yes|no|detect) ;;
  3785  *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
  3786  esac
  3787  else
  3788    enable_cxx=no
  3789  fi
  3790  
  3791  
  3792  
  3793  # Check whether --enable-assembly was given.
  3794  if test "${enable_assembly+set}" = set; then :
  3795    enableval=$enable_assembly; case $enableval in
  3796  yes|no) ;;
  3797  *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;;
  3798  esac
  3799  else
  3800    enable_assembly=yes
  3801  fi
  3802  
  3803  
  3804  
  3805  # Check whether --enable-fft was given.
  3806  if test "${enable_fft+set}" = set; then :
  3807    enableval=$enable_fft; case $enableval in
  3808  yes|no) ;;
  3809  *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
  3810  esac
  3811  else
  3812    enable_fft=yes
  3813  fi
  3814  
  3815  
  3816  if test "$enable_fft" = "yes"; then
  3817  
  3818  $as_echo "#define WANT_FFT 1" >>confdefs.h
  3819  
  3820  fi
  3821  
  3822  
  3823  # Check whether --enable-old-fft-full was given.
  3824  if test "${enable_old_fft_full+set}" = set; then :
  3825    enableval=$enable_old_fft_full; case $enableval in
  3826  yes|no) ;;
  3827  *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
  3828  esac
  3829  else
  3830    enable_old_fft_full=no
  3831  fi
  3832  
  3833  
  3834  if test "$enable_old_fft_full" = "yes"; then
  3835  
  3836  $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
  3837  
  3838  fi
  3839  
  3840  
  3841  # Check whether --enable-nails was given.
  3842  if test "${enable_nails+set}" = set; then :
  3843    enableval=$enable_nails; case $enableval in
  3844  yes|no|[02468]|[0-9][02468]) ;;
  3845  *[13579])
  3846    as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
  3847  *)
  3848    as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
  3849  esac
  3850  else
  3851    enable_nails=no
  3852  fi
  3853  
  3854  
  3855  case $enable_nails in
  3856  yes) GMP_NAIL_BITS=2 ;;
  3857  no)  GMP_NAIL_BITS=0 ;;
  3858  *)   GMP_NAIL_BITS=$enable_nails ;;
  3859  esac
  3860  
  3861  
  3862  
  3863  # Check whether --enable-profiling was given.
  3864  if test "${enable_profiling+set}" = set; then :
  3865    enableval=$enable_profiling; case $enableval in
  3866  no|prof|gprof|instrument) ;;
  3867  *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
  3868  esac
  3869  else
  3870    enable_profiling=no
  3871  fi
  3872  
  3873  
  3874  case $enable_profiling in
  3875    prof)
  3876  
  3877  $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
  3878  
  3879      ;;
  3880    gprof)
  3881  
  3882  $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
  3883  
  3884      ;;
  3885    instrument)
  3886  
  3887  $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
  3888  
  3889      ;;
  3890  esac
  3891  
  3892  
  3893  echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
  3894  
  3895  
  3896  # -fomit-frame-pointer is incompatible with -pg on some chips
  3897  if test "$enable_profiling" = gprof; then
  3898    fomit_frame_pointer=
  3899  else
  3900    fomit_frame_pointer="-fomit-frame-pointer"
  3901  fi
  3902  
  3903  
  3904  
  3905  # Check whether --with-readline was given.
  3906  if test "${with_readline+set}" = set; then :
  3907    withval=$with_readline; case $withval in
  3908  yes|no|detect) ;;
  3909  *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
  3910  esac
  3911  else
  3912    with_readline=detect
  3913  fi
  3914  
  3915  
  3916  
  3917  # Check whether --enable-fat was given.
  3918  if test "${enable_fat+set}" = set; then :
  3919    enableval=$enable_fat; case $enableval in
  3920  yes|no) ;;
  3921  *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
  3922  esac
  3923  else
  3924    enable_fat=no
  3925  fi
  3926  
  3927  
  3928  
  3929  # Check whether --enable-minithres was given.
  3930  if test "${enable_minithres+set}" = set; then :
  3931    enableval=$enable_minithres; case $enableval in
  3932  yes|no) ;;
  3933  *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
  3934  esac
  3935  else
  3936    enable_minithres=no
  3937  fi
  3938  
  3939  
  3940  
  3941  # Check whether --enable-fake-cpuid was given.
  3942  if test "${enable_fake_cpuid+set}" = set; then :
  3943    enableval=$enable_fake_cpuid; case $enableval in
  3944  yes|no) ;;
  3945  *) as_fn_error $? "bad value $enableval for --enable-fake-cpuid, need yes or no" "$LINENO" 5 ;;
  3946  esac
  3947  else
  3948    enable_fake_cpuid=no
  3949  fi
  3950  
  3951  
  3952  if test "$enable_fake_cpuid" = "yes"; then
  3953  
  3954  $as_echo "#define WANT_FAKE_CPUID 1" >>confdefs.h
  3955  
  3956  fi
  3957  
  3958  
  3959  if test $enable_fat = yes && test $enable_assembly = no ; then
  3960    as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5
  3961  fi
  3962  
  3963  if test $enable_fake_cpuid = yes && test $enable_fat = no ; then
  3964    as_fn_error $? "--enable-fake-cpuid requires --enable-fat" "$LINENO" 5
  3965  fi
  3966  
  3967  
  3968  tmp_host=`echo $host_cpu | sed 's/\./_/'`
  3969  cat >>confdefs.h <<_ACEOF
  3970  #define HAVE_HOST_CPU_$tmp_host 1
  3971  _ACEOF
  3972  
  3973  
  3974  echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
  3975  
  3976  
  3977  
  3978  
  3979  
  3980  
  3981  # Table of compilers, options, and mpn paths.  This code has various related
  3982  # purposes
  3983  #
  3984  #   - better default CC/CFLAGS selections than autoconf otherwise gives
  3985  #   - default CC/CFLAGS selections for extra CPU types specific to GMP
  3986  #   - a few tests for known bad compilers
  3987  #   - choice of ABIs on suitable systems
  3988  #   - selection of corresponding mpn search path
  3989  #
  3990  # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
  3991  # called.  User selections of CC etc are respected.
  3992  #
  3993  # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
  3994  # pre-testing, since they of course depend on AC_PROG_CC, and also some of
  3995  # them cache their results, which is not wanted.
  3996  #
  3997  # The ABI selection mechanism is unique to GMP.  All that reaches autoconf
  3998  # is a different selection of CC/CFLAGS according to the best ABI the system
  3999  # supports, and/or what the user selects.  Naturally the mpn assembler code
  4000  # selected is very dependent on the ABI.
  4001  #
  4002  # The closest the standard tools come to a notion of ABI is something like
  4003  # "sparc64" which encodes a CPU and an ABI together.  This doesn't seem to
  4004  # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
  4005  # separate from the ABI used on them.
  4006  #
  4007  #
  4008  # The variables set here are
  4009  #
  4010  #   cclist              the compiler choices
  4011  #   xx_cflags           flags for compiler xx
  4012  #   xx_cflags_maybe     flags for compiler xx, if they work
  4013  #   xx_cppflags         cpp flags for compiler xx
  4014  #   xx_cflags_optlist   list of sets of optional flags
  4015  #   xx_cflags_yyy       set yyy of optional flags for compiler xx
  4016  #   xx_ldflags          -Wc,-foo flags for libtool linking with compiler xx
  4017  #   ar_flags            extra flags for $AR
  4018  #   nm_flags            extra flags for $NM
  4019  #   limb                limb size, can be "longlong"
  4020  #   path                mpn search path
  4021  #   extra_functions     extra mpn functions
  4022  #   fat_path            fat binary mpn search path [if fat binary desired]
  4023  #   fat_functions       fat functions
  4024  #   fat_thresholds      fat thresholds
  4025  #
  4026  # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
  4027  # tried, and the first flag that works will be used.  An optlist like "arch
  4028  # cpu optimize" can be used to get multiple independent sets of flags tried.
  4029  # The first that works from each will be used.  If no flag in a set works
  4030  # then nothing from that set is added.
  4031  #
  4032  # For multiple ABIs, the scheme extends as follows.
  4033  #
  4034  #   abilist               set of ABI choices
  4035  #   cclist_aa             compiler choices in ABI aa
  4036  #   xx_aa_cflags          flags for xx in ABI aa
  4037  #   xx_aa_cflags_maybe    flags for xx in ABI aa, if they work
  4038  #   xx_aa_cppflags        cpp flags for xx in ABI aa
  4039  #   xx_aa_cflags_optlist  list of sets of optional flags in ABI aa
  4040  #   xx_aa_cflags_yyy      set yyy of optional flags for compiler xx in ABI aa
  4041  #   xx_aa_ldflags         -Wc,-foo flags for libtool linking
  4042  #   ar_aa_flags           extra flags for $AR in ABI aa
  4043  #   nm_aa_flags           extra flags for $NM in ABI aa
  4044  #   limb_aa               limb size in ABI aa, can be "longlong"
  4045  #   path_aa               mpn search path in ABI aa
  4046  #   extra_functions_aa    extra mpn functions in ABI aa
  4047  #
  4048  # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
  4049  # in ablist, if an xx_aa_cflags for that ABI isn't given.  For example if
  4050  # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
  4051  # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
  4052  # defined.  This makes it easy to add some 64-bit compilers and flags to an
  4053  # unadorned 32-bit set.
  4054  #
  4055  # limb=longlong (or limb_aa=longlong) applies to all compilers within that
  4056  # ABI.  It won't work to have some needing long long and some not, since a
  4057  # single instantiated gmp.h will be used by both.
  4058  #
  4059  # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
  4060  # also set here, with an ABI suffix.
  4061  #
  4062  #
  4063  #
  4064  # A table-driven approach like this to mapping cpu type to good compiler
  4065  # options is a bit of a maintenance burden, but there's not much uniformity
  4066  # between options specifications on different compilers.  Some sort of
  4067  # separately updatable tool might be cute.
  4068  #
  4069  # The use of lots of variables like this, direct and indirect, tends to
  4070  # obscure when and how various things are done, but unfortunately it's
  4071  # pretty much the only way.  If shell subroutines were portable then actual
  4072  # code like "if this .. do that" could be written, but attempting the same
  4073  # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
  4074  # hugely bloat the output.
  4075  
  4076  
  4077  
  4078  
  4079  # abilist needs to be non-empty, "standard" is just a generic name here
  4080  abilist="standard"
  4081  
  4082  # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
  4083  # c89 over cc here.  But note that on HP-UX c89 provides a castrated
  4084  # environment, and would want to be excluded somehow.  Maybe
  4085  # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
  4086  # we don't need to worry.
  4087  #
  4088  cclist="gcc cc"
  4089  
  4090  gcc_cflags="-O2 -pedantic"
  4091  gcc_64_cflags="-O2 -pedantic"
  4092  cc_cflags="-O"
  4093  cc_64_cflags="-O"
  4094  
  4095  SPEED_CYCLECOUNTER_OBJ=
  4096  cyclecounter_size=2
  4097  
  4098  HAVE_HOST_CPU_FAMILY_power=0
  4099  
  4100  HAVE_HOST_CPU_FAMILY_powerpc=0
  4101  
  4102  
  4103  case $host in
  4104  
  4105    alpha*-*-*)
  4106      $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
  4107  
  4108      case $host_cpu in
  4109        alphaev5* | alphapca5*)
  4110  	path="alpha/ev5 alpha" ;;
  4111        alphaev67 | alphaev68 | alphaev7*)
  4112          path="alpha/ev67 alpha/ev6 alpha" ;;
  4113        alphaev6)
  4114  	path="alpha/ev6 alpha" ;;
  4115        *)
  4116          path="alpha" ;;
  4117      esac
  4118      if test "$enable_assembly" = "yes" ; then
  4119         extra_functions="cntlz"
  4120      fi
  4121      gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
  4122      gcc_cflags_maybe="-mieee"
  4123      gcc_cflags_oldas="-Wa,-oldas"     # see GMP_GCC_WA_OLDAS.
  4124  
  4125      # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
  4126      # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
  4127      # gcc 3.0 adds nothing.
  4128      # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
  4129      # gcc 3.2 adds nothing.
  4130      #
  4131      # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
  4132      # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS.  Each
  4133      # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
  4134      #
  4135      case $host_cpu in
  4136        alpha)        gcc_cflags_cpu="-mcpu=ev4" ;;
  4137        alphaev5)     gcc_cflags_cpu="-mcpu=ev5" ;;
  4138        alphaev56)    gcc_cflags_cpu="-mcpu=ev56" ;;
  4139        alphapca56 | alphapca57)
  4140                      gcc_cflags_cpu="-mcpu=pca56" ;;
  4141        alphaev6)     gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
  4142        alphaev67 | alphaev68 | alphaev7*)
  4143                      gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
  4144      esac
  4145  
  4146      # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
  4147      # accepting -mcpu=ev6, but not putting the assembler in the right mode
  4148      # for what it produces.  We need to do this for it, and need to do it
  4149      # before testing the -mcpu options.
  4150      #
  4151      # On old versions of gcc, which don't know -mcpu=, we believe an
  4152      # explicit -Wa,-mev5 etc will be necessary to put the assembler in
  4153      # the right mode for our .asm files and longlong.h asm blocks.
  4154      #
  4155      # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
  4156      # which is at least as high as the code gcc will generate.  gcc
  4157      # establishes what it needs with a ".arch" directive, our command line
  4158      # option seems to override that.
  4159      #
  4160      # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
  4161      # ctlz and cttz (in 2.10.0 at least).
  4162      #
  4163      # OSF `as' accepts ev68 but stupidly treats it as ev4.  -arch only seems
  4164      # to affect insns like ldbu which are expanded as macros when necessary.
  4165      # Insns like ctlz which were never available as macros are always
  4166      # accepted and always generate their plain code.
  4167      #
  4168      case $host_cpu in
  4169        alpha)        gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
  4170        alphaev5)     gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
  4171        alphaev56)    gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
  4172        alphapca56 | alphapca57)
  4173                      gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
  4174        alphaev6)     gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
  4175        alphaev67 | alphaev68 | alphaev7*)
  4176                      gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
  4177      esac
  4178  
  4179      # It might be better to ask "cc" whether it's Cray C or DEC C,
  4180      # instead of relying on the OS part of $host.  But it's hard to
  4181      # imagine either of those compilers anywhere except their native
  4182      # systems.
  4183      #
  4184  
  4185  echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
  4186  
  4187      case $host in
  4188        *-cray-unicos*)
  4189          cc_cflags="-O"		# no -g, it silently disables all optimizations
  4190  
  4191  echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
  4192  
  4193          # Don't perform any assembly syntax tests on this beast.
  4194          gmp_asm_syntax_testing=no
  4195          ;;
  4196        *-*-osf*)
  4197  
  4198  echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
  4199  
  4200          cc_cflags=""
  4201          cc_cflags_optlist="opt cpu"
  4202  
  4203          # not sure if -fast works on old versions, so make it optional
  4204  	cc_cflags_opt="-fast -O2"
  4205  
  4206  	# DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
  4207  	# Compaq C V6.3-029 adds ev67.
  4208  	#
  4209  	case $host_cpu in
  4210  	  alpha)       cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
  4211  	  alphaev5)    cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
  4212  	  alphaev56)   cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
  4213  	  alphapca56 | alphapca57)
  4214              cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
  4215  	  alphaev6)    cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
  4216  	  alphaev67 | alphaev68 | alphaev7*)
  4217              cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
  4218  	esac
  4219          ;;
  4220        *)
  4221  
  4222  echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
  4223  
  4224          ;;
  4225      esac
  4226  
  4227      case $host in
  4228        *-*-unicos*)
  4229          # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
  4230          ;;
  4231        *)
  4232          SPEED_CYCLECOUNTER_OBJ=alpha.lo
  4233          cyclecounter_size=1 ;;
  4234      esac
  4235      ;;
  4236  
  4237  
  4238    # Cray vector machines.
  4239    # This must come after alpha* so that we can recognize present and future
  4240    # vector processors with a wildcard.
  4241    *-cray-unicos*)
  4242      gmp_asm_syntax_testing=no
  4243      cclist="cc"
  4244      # We used to have -hscalar0 here as a workaround for miscompilation of
  4245      # mpz/import.c, but let's hope Cray fixes their bugs instead, since
  4246      # -hscalar0 causes disastrously poor code to be generated.
  4247      cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
  4248      path="cray"
  4249      ;;
  4250  
  4251  
  4252    arm*-*-* | aarch64*-*-*)
  4253      abilist="32"
  4254      gcc_cflags="$gcc_cflags $fomit_frame_pointer"
  4255      gcc_cflags_optlist="arch fpmode neon tune"
  4256      gcc_64_cflags_optlist="arch tune"
  4257      gcc_testlist="gcc-arm-umodsi"
  4258      gcc_64_testlist=""
  4259      CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
  4260      CALLING_CONVENTIONS_OBJS_64=""
  4261      cclist_64="gcc cc"
  4262      any_32_testlist="sizeof-long-4"
  4263      any_64_testlist="sizeof-long-8"
  4264  
  4265      # This is needed for clang, which is not content with flags like -mfpu=neon
  4266      # alone.
  4267      case $host in
  4268        *-*-*eabi)
  4269          gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
  4270        *-*-*eabihf)
  4271          gcc_cflags_fpmode="-mfloat-abi=hard" ;;
  4272      esac
  4273  
  4274      # FIXME: We make mandatory compiler options optional here.  We should
  4275      # either enforce them, or organise to strip paths as the corresponding
  4276      # options fail.
  4277      case $host_cpu in
  4278        armxscale | arm7ej | arm9te | arm9e* | arm10* | armv5*)
  4279  	path="arm/v5 arm"
  4280  	gcc_cflags_arch="-march=armv5"
  4281  	;;
  4282        armsa1 | arm7t* | arm9t* | armv4t*)
  4283  	path="arm"
  4284  	gcc_cflags_arch="-march=armv4"
  4285  	;;
  4286        arm1156 | armv6t2*)
  4287  	path="arm/v6t2 arm/v6 arm/v5 arm"
  4288  	gcc_cflags_arch="-march=armv6t2"
  4289  	;;
  4290        arm11* | armv6*)
  4291  	path="arm/v6 arm/v5 arm"
  4292  	gcc_cflags_arch="-march=armv6"
  4293  	;;
  4294        armcortexa5 | armv7*)
  4295  	path="arm/v6t2 arm/v6 arm/v5 arm"
  4296  	gcc_cflags_arch="-march=armv7-a"
  4297  	gcc_cflags_tune="-mtune=cortex-a5"
  4298  	;;
  4299        armcortexa5neon)
  4300  	path="arm/neon arm/v6t2 arm/v6 arm/v5 arm"
  4301  	gcc_cflags_neon="-mfpu=neon"
  4302  	gcc_cflags_arch="-march=armv7-a"
  4303  	gcc_cflags_tune="-mtune=cortex-a5"
  4304  	;;
  4305        armcortexa7)
  4306  	path="arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm"
  4307  	gcc_cflags_arch="-march=armv7-a"
  4308  	gcc_cflags_tune="-mtune=cortex-a7"
  4309  	;;
  4310        armcortexa7neon)
  4311  	path="arm/neon arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm"
  4312  	gcc_cflags_arch="-march=armv7-a"
  4313  	gcc_cflags_neon="-mfpu=neon"
  4314  	gcc_cflags_tune="-mtune=cortex-a7"
  4315  	;;
  4316        armcortexa8)
  4317  	path="arm/v7a/cora8 arm/v6t2 arm/v6 arm/v5 arm"
  4318  	gcc_cflags_arch="-march=armv7-a"
  4319  	gcc_cflags_tune="-mtune=cortex-a8"
  4320  	;;
  4321        armcortexa8neon)
  4322  	path="arm/neon arm/v7a/cora8 arm/v6t2 arm/v6 arm/v5 arm"
  4323  	gcc_cflags_arch="-march=armv7-a"
  4324  	gcc_cflags_neon="-mfpu=neon"
  4325  	gcc_cflags_tune="-mtune=cortex-a8"
  4326  	;;
  4327        armcortexa9)
  4328  	path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
  4329  	gcc_cflags_arch="-march=armv7-a"
  4330  	gcc_cflags_tune="-mtune=cortex-a9"
  4331  	;;
  4332        armcortexa9neon)
  4333  	path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
  4334  	gcc_cflags_arch="-march=armv7-a"
  4335  	gcc_cflags_neon="-mfpu=neon"
  4336  	gcc_cflags_tune="-mtune=cortex-a9"
  4337  	;;
  4338        armcortexa15)
  4339  	path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4340  	gcc_cflags_arch="-march=armv7-a"
  4341  	gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
  4342  	;;
  4343        armcortexa15neon)
  4344  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4345  	gcc_cflags_arch="-march=armv7-a"
  4346  	gcc_cflags_neon="-mfpu=neon"
  4347  	gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9"
  4348  	;;
  4349        armcortexa53 | armcortexa53neon)
  4350          abilist="64 32"
  4351  	path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm"
  4352  	path_64="arm64/cora53 arm64"
  4353  	gcc_cflags_arch="-march=armv8-a"
  4354  	gcc_cflags_neon="-mfpu=neon"
  4355  	gcc_cflags_tune="-mtune=cortex-a53"
  4356  	;;
  4357        armcortexa57 | armcortexa57neon)
  4358          abilist="64 32"
  4359  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4360  	path_64="arm64/cora57 arm64"
  4361  	gcc_cflags_arch="-march=armv8-a"
  4362  	gcc_cflags_neon="-mfpu=neon"
  4363  	gcc_cflags_tune="-mtune=cortex-a57"
  4364  	;;
  4365        armcortexa72 | armcortexa72neon)
  4366          abilist="64 32"
  4367  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4368  	path_64="arm64/cora72 arm64"
  4369  	gcc_cflags_arch="-march=armv8-a"
  4370  	gcc_cflags_neon="-mfpu=neon"
  4371  	gcc_cflags_tune="-mtune=cortex-a72"
  4372  	;;
  4373        armexynosm1)
  4374          abilist="64 32"
  4375  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4376  	path_64="arm64"
  4377  	gcc_cflags_arch="-march=armv8-a"
  4378  	gcc_cflags_neon="-mfpu=neon"
  4379  	gcc_cflags_tune="-mtune=exynosm1"
  4380  	;;
  4381        armthunderx)
  4382          abilist="64 32"
  4383  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4384  	path_64="arm64"
  4385  	gcc_cflags_arch="-march=armv8-a"
  4386  	gcc_cflags_neon="-mfpu=neon"
  4387  	gcc_cflags_tune="-mtune=thunderx"
  4388  	;;
  4389        armxgene1)
  4390          abilist="64 32"
  4391  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4392  	path_64="arm64/xgene1 arm64"
  4393  	gcc_cflags_arch="-march=armv8-a"
  4394  	gcc_cflags_neon="-mfpu=neon"
  4395  	gcc_cflags_tune="-mtune=xgene1"
  4396  	;;
  4397        aarch64*)
  4398          abilist="64 32"
  4399  	path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm"
  4400  	path_64="arm64"
  4401  	gcc_cflags_arch="-march=armv8-a"
  4402  	gcc_cflags_neon="-mfpu=neon"
  4403  	gcc_cflags_tune=""
  4404  	;;
  4405        *)
  4406  	path="arm"
  4407  	gcc_cflags_arch="-march=armv4"
  4408  
  4409  echo "define(<NOTHUMB>,1)" >> $gmp_tmpconfigm4
  4410  
  4411  	;;
  4412      esac
  4413      ;;
  4414  
  4415  
  4416    # Fujitsu
  4417    f30[01]-fujitsu-sysv*)
  4418      cclist="gcc vcc"
  4419      # FIXME: flags for vcc?
  4420      vcc_cflags="-g"
  4421      path="fujitsu"
  4422      ;;
  4423  
  4424  
  4425    hppa*-*-*)
  4426      # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
  4427      # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
  4428      # possible.
  4429      #
  4430      # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
  4431      # (64-bit), but not both, so there's no option to choose the desired
  4432      # mode, we must instead detect which of the two it is.  This is done by
  4433      # checking sizeof(long), either 4 or 8 bytes respectively.  Do this in
  4434      # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
  4435      #
  4436      gcc_cflags_optlist="arch"
  4437      gcc_testlist="sizeof-long-4"
  4438      SPEED_CYCLECOUNTER_OBJ=hppa.lo
  4439      cyclecounter_size=1
  4440  
  4441      # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
  4442      # (Can't remember why this isn't done already, have to check what .asm
  4443      # files are available in each and how they run on a typical 2.0 cpu.)
  4444      #
  4445      case $host_cpu in
  4446        hppa1.0*)    path="pa32" ;;
  4447        hppa7000*)   path="pa32/hppa1_1 pa32" ;;
  4448        hppa2.0* | hppa64)
  4449                     path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
  4450        *)           # default to 7100
  4451                     path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
  4452      esac
  4453  
  4454      # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
  4455      # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
  4456      #
  4457      # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
  4458      # be saved by the kernel on an old system.  Actually gcc (as of 3.2)
  4459      # only adds a few float instructions with -mpa-risc-2-0, so it would
  4460      # probably be safe, but let's not take the chance.  In any case, a
  4461      # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
  4462      #
  4463      case $host_cpu in
  4464        hppa1.0*)           gcc_cflags_arch="-mpa-risc-1-0" ;;
  4465        *)                  # default to 7100
  4466                            gcc_cflags_arch="-mpa-risc-1-1" ;;
  4467      esac
  4468  
  4469      case $host_cpu in
  4470        hppa1.0*)    cc_cflags="+O2" ;;
  4471        *)           # default to 7100
  4472                     cc_cflags="+DA1.1 +O2" ;;
  4473      esac
  4474  
  4475      case $host in
  4476        hppa2.0*-*-* | hppa64-*-*)
  4477  	cclist_20n="gcc cc"
  4478          abilist="2.0n 1.0"
  4479          path_20n="pa64"
  4480  	limb_20n=longlong
  4481          any_20n_testlist="sizeof-long-4"
  4482          SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
  4483          cyclecounter_size_20n=2
  4484  
  4485          # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
  4486          # used.  Assembler support for 2.0 is essential though, for our asm
  4487          # files.
  4488  	gcc_20n_cflags="$gcc_cflags"
  4489  	gcc_20n_cflags_optlist="arch"
  4490          gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
  4491          gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
  4492  
  4493          cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
  4494          cc_20n_testlist="hpc-hppa-2-0"
  4495  
  4496  	# ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
  4497  	# hppa2.0n, on the assumption that that the latter indicates a
  4498  	# desire for ABI=2.0n.
  4499  	case $host in
  4500          hppa2.0n-*-*) ;;
  4501          *)
  4502            # HPUX 10 and earlier cannot run 2.0w.  Not sure about other
  4503            # systems (GNU/Linux for instance), but lets assume they're ok.
  4504            case $host in
  4505              *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
  4506  	    *-*-linux*)  abilist="1.0" ;; # due to linux permanent kernel bug
  4507              *)    abilist="2.0w $abilist" ;;
  4508            esac
  4509  
  4510            cclist_20w="gcc cc"
  4511  	  gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0"
  4512            cc_20w_cflags="+DD64 +O2"
  4513            cc_20w_testlist="hpc-hppa-2-0"
  4514            path_20w="pa64"
  4515  	  any_20w_testlist="sizeof-long-8"
  4516            SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
  4517            cyclecounter_size_20w=2
  4518  	  ;;
  4519          esac
  4520          ;;
  4521      esac
  4522      ;;
  4523  
  4524  
  4525    ia64*-*-* | itanium-*-* | itanium2-*-*)
  4526      abilist="64"
  4527  
  4528  echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
  4529  
  4530      SPEED_CYCLECOUNTER_OBJ=ia64.lo
  4531      any_32_testlist="sizeof-long-4"
  4532  
  4533      case $host_cpu in
  4534        itanium)   path="ia64/itanium  ia64" ;;
  4535        itanium2)  path="ia64/itanium2 ia64" ;;
  4536        *)         path="ia64" ;;
  4537      esac
  4538  
  4539      gcc_64_cflags_optlist="tune"
  4540      gcc_32_cflags_optlist=$gcc_64_cflags_optlist
  4541  
  4542      # gcc pre-release 3.4 adds -mtune itanium and itanium2
  4543      case $host_cpu in
  4544        itanium)   gcc_cflags_tune="-mtune=itanium" ;;
  4545        itanium2)  gcc_cflags_tune="-mtune=itanium2" ;;
  4546      esac
  4547  
  4548      case $host in
  4549        *-*-linux*)
  4550  	cclist="gcc icc"
  4551  	icc_cflags="-no-gcc"
  4552  	icc_cflags_optlist="opt"
  4553  	# Don't use -O3, it is for "large data sets" and also miscompiles GMP.
  4554  	# But icc miscompiles GMP at any optimization level, at higher levels
  4555  	# it miscompiles more files...
  4556  	icc_cflags_opt="-O2 -O1"
  4557  	icc_cflags_opt_maybe="-fp-model~precise"
  4558  	;;
  4559  
  4560        *-*-hpux*)
  4561          # HP cc sometimes gets internal errors if the optimization level is
  4562          # too high.  GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
  4563          # let us use whatever seems to work.
  4564          #
  4565          abilist="32 64"
  4566          any_64_testlist="sizeof-long-8"
  4567  
  4568          cclist_32="gcc cc"
  4569          path_32="ia64"
  4570          cc_32_cflags=""
  4571          cc_32_cflags_optlist="opt"
  4572          cc_32_cflags_opt="+O2 +O1"
  4573          gcc_32_cflags="$gcc_cflags -milp32"
  4574          limb_32=longlong
  4575          SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
  4576          cyclecounter_size_32=2
  4577  
  4578          # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
  4579          # but also need it in CFLAGS for linking programs, since automake
  4580          # only uses CFLAGS when linking, not CPPFLAGS.
  4581          # FIXME: Maybe should use cc_64_ldflags for this, but that would
  4582          # need GMP_LDFLAGS used consistently by all the programs.
  4583          #
  4584          cc_64_cflags="+DD64"
  4585          cc_64_cppflags="+DD64"
  4586          cc_64_cflags_optlist="opt"
  4587          cc_64_cflags_opt="+O2 +O1"
  4588          gcc_64_cflags="$gcc_cflags -mlp64"
  4589          ;;
  4590      esac
  4591      ;;
  4592  
  4593  
  4594    # Motorola 68k
  4595    #
  4596    m68k-*-* | m68[0-9][0-9][0-9]-*-*)
  4597      $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
  4598  
  4599  
  4600  echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
  4601  
  4602      gcc_cflags="$gcc_cflags $fomit_frame_pointer"
  4603      gcc_cflags_optlist="arch"
  4604  
  4605      # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
  4606      # gcc 2.95 adds -mcpu32, -m68060.
  4607      # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
  4608      #
  4609      case $host_cpu in
  4610      m68020)  gcc_cflags_arch="-m68020" ;;
  4611      m68030)  gcc_cflags_arch="-m68030" ;;
  4612      m68040)  gcc_cflags_arch="-m68040" ;;
  4613      m68060)  gcc_cflags_arch="-m68060 -m68000" ;;
  4614      m68360)  gcc_cflags_arch="-mcpu32 -m68000" ;;
  4615      *)       gcc_cflags_arch="-m68000" ;;
  4616      esac
  4617  
  4618      # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
  4619      # tested.  Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
  4620      # the bitfield instructions.
  4621      case $host_cpu in
  4622      m680[234]0 | m68360)  path="m68k/mc68020 m68k" ;;
  4623      *)                      path="m68k" ;;
  4624      esac
  4625      ;;
  4626  
  4627  
  4628    # Motorola 88k
  4629    m88k*-*-*)
  4630      path="m88k"
  4631      ;;
  4632    m88110*-*-*)
  4633      gcc_cflags="$gcc_cflags -m88110"
  4634      path="m88k/mc88110 m88k"
  4635      ;;
  4636  
  4637  
  4638    # IRIX 5 and earlier can only run 32-bit o32.
  4639    #
  4640    # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64.  n32 is
  4641    # preferred over 64, but only because that's been the default in past
  4642    # versions of GMP.  The two are equally efficient.
  4643    #
  4644    # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
  4645    # supporting n32 or 64.
  4646    #
  4647    # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
  4648    # right options to use when linking (both cc and gcc), so no need for
  4649    # anything special from us.
  4650    #
  4651    mips*-*-*)
  4652      abilist="o32"
  4653      gcc_cflags_optlist="abi"
  4654      gcc_cflags_abi="-mabi=32 -m32"
  4655      gcc_testlist="gcc-mips-o32"
  4656      path="mips32"
  4657      cc_cflags="-O2 -o32"   # no -g, it disables all optimizations
  4658      # this suits both mips32 and mips64
  4659  
  4660  echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
  4661  
  4662  
  4663      case $host in
  4664        mips64*-*-* | mips*-*-irix[6789]*)
  4665          abilist="n32 64 o32"
  4666  
  4667          cclist_n32="gcc cc"
  4668          gcc_n32_cflags_optlist="abi"
  4669          gcc_n32_cflags="$gcc_cflags"
  4670          gcc_n32_cflags_abi="-mabi=n32 -mn32"
  4671          cc_n32_cflags="-O2 -n32"	# no -g, it disables all optimizations
  4672          limb_n32=longlong
  4673          path_n32="mips64"
  4674  
  4675          cclist_64="gcc cc"
  4676          gcc_64_cflags_optlist="abi"
  4677          gcc_64_cflags="$gcc_cflags"
  4678          gcc_64_cflags_abi="-mabi=64 -m64"
  4679          gcc_64_ldflags="-Wc,-mabi=64"
  4680          cc_64_cflags="-O2 -64"		# no -g, it disables all optimizations
  4681          cc_64_ldflags="-Wc,-64"
  4682          path_64="mips64"
  4683          ;;
  4684      esac
  4685      ;;
  4686  
  4687  
  4688    # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
  4689    # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
  4690    # used.
  4691    #
  4692    # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
  4693    # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
  4694    # and so always ends up running the plain preprocessor anyway.  This could
  4695    # be done in CPPFLAGS rather than CFLAGS, but there's not many places
  4696    # preprocessing is done separately, and this is only a speedup, the normal
  4697    # preprocessor gets run if there's any problems.
  4698    #
  4699    # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
  4700    # Presumably it was for old versions of gcc where -mpowerpc doesn't put
  4701    # the assembler in the right mode.  In any case -Wa,-mppc is not good, for
  4702    # instance -mcpu=604 makes recent gcc use -m604 to get access to the
  4703    # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
  4704    # comes out with fsel fail.
  4705    #
  4706    # (Note also that the darwin assembler doesn't accept "-mppc", so any
  4707    # -Wa,-mppc was used only if it worked.  The right flag on darwin would be
  4708    # "-arch ppc" or some such, but that's already the default.)
  4709    #
  4710    powerpc*-*-* | power[3-9]-*-*)
  4711      $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
  4712  
  4713      HAVE_HOST_CPU_FAMILY_powerpc=1
  4714      abilist="32"
  4715      cclist="gcc cc"
  4716      cc_cflags="-O2"
  4717      gcc_32_cflags_maybe="-m32"
  4718      gcc_cflags_optlist="precomp subtype asm cpu"
  4719      gcc_cflags_precomp="-no-cpp-precomp"
  4720      gcc_cflags_subtype="-force_cpusubtype_ALL"	# for vmx on darwin
  4721      gcc_cflags_asm=""
  4722      gcc_cflags_cpu=""
  4723      vmx_path=""
  4724  
  4725      # grab this object, though it's not a true cycle counter routine
  4726      SPEED_CYCLECOUNTER_OBJ=powerpc.lo
  4727      cyclecounter_size=0
  4728  
  4729      case $host_cpu in
  4730        powerpc740 | powerpc750)
  4731          path="powerpc32/750 powerpc32" ;;
  4732        powerpc7400 | powerpc7410)
  4733          path="powerpc32/vmx powerpc32/750 powerpc32" ;;
  4734        powerpc74[45]?)
  4735          path="powerpc32/vmx powerpc32" ;;
  4736        *)
  4737          path="powerpc32" ;;
  4738      esac
  4739  
  4740      case $host_cpu in
  4741        powerpc401)   gcc_cflags_cpu="-mcpu=401" ;;
  4742        powerpc403)   gcc_cflags_cpu="-mcpu=403"
  4743  		    xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
  4744        powerpc405)   gcc_cflags_cpu="-mcpu=405" ;;
  4745        powerpc505)   gcc_cflags_cpu="-mcpu=505" ;;
  4746        powerpc601)   gcc_cflags_cpu="-mcpu=601"
  4747  		    xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
  4748        powerpc602)   gcc_cflags_cpu="-mcpu=602"
  4749  		    xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
  4750        powerpc603)   gcc_cflags_cpu="-mcpu=603"
  4751  		    xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
  4752        powerpc603e)  gcc_cflags_cpu="-mcpu=603e -mcpu=603"
  4753  		    xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
  4754        powerpc604)   gcc_cflags_cpu="-mcpu=604"
  4755  		    xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
  4756        powerpc604e)  gcc_cflags_cpu="-mcpu=604e -mcpu=604"
  4757  		    xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
  4758        powerpc620)   gcc_cflags_cpu="-mcpu=620" ;;
  4759        powerpc630)   gcc_cflags_cpu="-mcpu=630"
  4760  		    xlc_cflags_arch="-qarch=pwr3"
  4761  		    cpu_path="p3 p3-p7" ;;
  4762        powerpc740)   gcc_cflags_cpu="-mcpu=740" ;;
  4763        powerpc7400 | powerpc7410)
  4764  		    gcc_cflags_asm="-Wa,-maltivec"
  4765  		    gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
  4766        powerpc74[45]?)
  4767  		    gcc_cflags_asm="-Wa,-maltivec"
  4768  		    gcc_cflags_cpu="-mcpu=7450" ;;
  4769        powerpc750)   gcc_cflags_cpu="-mcpu=750" ;;
  4770        powerpc801)   gcc_cflags_cpu="-mcpu=801" ;;
  4771        powerpc821)   gcc_cflags_cpu="-mcpu=821" ;;
  4772        powerpc823)   gcc_cflags_cpu="-mcpu=823" ;;
  4773        powerpc860)   gcc_cflags_cpu="-mcpu=860" ;;
  4774        powerpc970)   gcc_cflags_cpu="-mtune=970"
  4775  		    xlc_cflags_arch="-qarch=970 -qarch=pwr3"
  4776  		    vmx_path="powerpc64/vmx"
  4777  		    cpu_path="p4 p3-p7" ;;
  4778        power4)	    gcc_cflags_cpu="-mtune=power4"
  4779  		    xlc_cflags_arch="-qarch=pwr4"
  4780  		    cpu_path="p4 p3-p7" ;;
  4781        power5)	    gcc_cflags_cpu="-mtune=power5 -mtune=power4"
  4782  		    xlc_cflags_arch="-qarch=pwr5"
  4783  		    cpu_path="p5 p4 p3-p7" ;;
  4784        power6)	    gcc_cflags_cpu="-mtune=power6"
  4785  		    xlc_cflags_arch="-qarch=pwr6"
  4786  		    cpu_path="p6 p3-p7" ;;
  4787        power7)	    gcc_cflags_cpu="-mtune=power7 -mtune=power5"
  4788  		    xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
  4789  		    cpu_path="p7 p5 p4 p3-p7" ;;
  4790        power[89])  gcc_cflags_cpu="-mtune=power8 -mtune=power7 -mtune=power5"
  4791  		    xlc_cflags_arch="-qarch=pwr8 -qarch=pwr7 -qarch=pwr5"
  4792  		    cpu_path="p8 p7 p5 p4 p3-p7" ;;
  4793      esac
  4794  
  4795      case $host in
  4796        *-*-aix*)
  4797  	cclist="gcc xlc cc"
  4798  	gcc_32_cflags_maybe="-maix32"
  4799  	xlc_cflags="-O2 -qmaxmem=20000"
  4800  	xlc_cflags_optlist="arch"
  4801  	xlc_32_cflags_maybe="-q32"
  4802  	ar_32_flags="-X32"
  4803  	nm_32_flags="-X32"
  4804      esac
  4805  
  4806      case $host in
  4807        powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
  4808  	case $host in
  4809  	  *-*-aix*)
  4810  	    # On AIX a true 64-bit ABI is available.
  4811  	    # Need -Wc to pass object type flags through to the linker.
  4812  	    abilist="mode64 $abilist"
  4813  	    cclist_mode64="gcc xlc"
  4814  	    gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64"
  4815  	    gcc_mode64_cflags_optlist="cpu"
  4816  	    gcc_mode64_ldflags="-Wc,-maix64"
  4817  	    xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000"
  4818  	    xlc_mode64_cflags_optlist="arch"
  4819  	    xlc_mode64_ldflags="-Wc,-q64"
  4820  	    # Must indicate object type to ar and nm
  4821  	    ar_mode64_flags="-X64"
  4822  	    nm_mode64_flags="-X64"
  4823  	    path_mode64=""
  4824  	    p=""
  4825  	    for i in $cpu_path
  4826  	      do path_mode64="${path_mode64}powerpc64/mode64/$i "
  4827  		 path_mode64="${path_mode64}powerpc64/$i "
  4828  		 p="${p} powerpc32/$i "
  4829  	      done
  4830  	    path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
  4831  	    path="$p $path"
  4832  	    # grab this object, though it's not a true cycle counter routine
  4833  	    SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
  4834  	    cyclecounter_size_mode64=0
  4835  	    ;;
  4836  	  *-*-darwin*)
  4837  	    # On Darwin we can use 64-bit instructions with a longlong limb,
  4838  	    # but the chip still in 32-bit mode.
  4839  	    # In theory this can be used on any OS which knows how to save
  4840  	    # 64-bit registers in a context switch.
  4841  	    #
  4842  	    # Note that we must use -mpowerpc64 with gcc, since the
  4843  	    # longlong.h macros expect limb operands in a single 64-bit
  4844  	    # register, not two 32-bit registers as would be given for a
  4845  	    # long long without -mpowerpc64.  In theory we could detect and
  4846  	    # accommodate both styles, but the proper 64-bit registers will
  4847  	    # be fastest and are what we really want to use.
  4848  	    #
  4849  	    # One would think -mpowerpc64 would set the assembler in the right
  4850  	    # mode to handle 64-bit instructions.  But for that, also
  4851  	    # -force_cpusubtype_ALL is needed.
  4852  	    #
  4853  	    # Do not use -fast for Darwin, it actually adds options
  4854  	    # incompatible with a shared library.
  4855  	    #
  4856  	    abilist="mode64 mode32 $abilist"
  4857  	    gcc_cflags_opt="-O3 -O2 -O1"	# will this become used?
  4858  	    cclist_mode32="gcc"
  4859  	    gcc_mode32_cflags_maybe="-m32"
  4860  	    gcc_mode32_cflags="-mpowerpc64"
  4861  	    gcc_mode32_cflags_optlist="subtype cpu opt"
  4862  	    gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
  4863  	    gcc_mode32_cflags_opt="-O3 -O2 -O1"
  4864  	    limb_mode32=longlong
  4865  	    cclist_mode64="gcc"
  4866  	    gcc_mode64_cflags="-m64"
  4867  	    gcc_mode64_cflags_optlist="cpu opt"
  4868  	    gcc_mode64_cflags_opt="-O3 -O2 -O1"
  4869  	    path_mode64=""
  4870  	    path_mode32=""
  4871  	    p=""
  4872  	    for i in $cpu_path
  4873  	      do path_mode64="${path_mode64}powerpc64/mode64/$i "
  4874  		 path_mode64="${path_mode64}powerpc64/$i "
  4875  		 path_mode32="${path_mode32}powerpc64/mode32/$i "
  4876  		 path_mode32="${path_mode32}powerpc64/$i "
  4877  		 p="${p} powerpc32/$i "
  4878  	      done
  4879  	    path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
  4880  	    path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
  4881  	    path="$p $path"
  4882  	    SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
  4883  	    cyclecounter_size_mode64=0
  4884  	    any_mode64_testlist="sizeof-long-8"
  4885  	    ;;
  4886  	  *-*-linux* | *-*-*bsd*)
  4887  	    # On GNU/Linux, assume the processor is in 64-bit mode.  Some
  4888  	    # environments have a gcc that is always in 64-bit mode, while
  4889  	    # others require -m64, hence the use of cflags_maybe.  The
  4890  	    # sizeof-long-8 test checks the mode is right (for the no option
  4891  	    # case).
  4892  	    #
  4893  	    # -mpowerpc64 is not used, since it should be the default in
  4894  	    # 64-bit mode.  (We need its effect for the various longlong.h
  4895  	    # asm macros to be right of course.)
  4896  	    #
  4897  	    # gcc64 was an early port of gcc to 64-bit mode, but should be
  4898  	    # obsolete before too long.  We prefer plain gcc when it knows
  4899  	    # 64-bits.
  4900  	    #
  4901  	    abilist="mode64 mode32 $abilist"
  4902  	    cclist_mode32="gcc"
  4903  	    gcc_mode32_cflags_maybe="-m32"
  4904  	    gcc_mode32_cflags="-mpowerpc64"
  4905  	    gcc_mode32_cflags_optlist="cpu opt"
  4906  	    gcc_mode32_cflags_opt="-O3 -O2 -O1"
  4907  	    limb_mode32=longlong
  4908  	    cclist_mode64="gcc gcc64"
  4909  	    gcc_mode64_cflags_maybe="-m64"
  4910  	    gcc_mode64_cflags_optlist="cpu opt"
  4911  	    gcc_mode64_cflags_opt="-O3 -O2 -O1"
  4912  	    path_mode64=""
  4913  	    path_mode32=""
  4914  	    p=""
  4915  	    for i in $cpu_path
  4916  	      do path_mode64="${path_mode64}powerpc64/mode64/$i "
  4917  		 path_mode64="${path_mode64}powerpc64/$i "
  4918  		 path_mode32="${path_mode32}powerpc64/mode32/$i "
  4919  		 path_mode32="${path_mode32}powerpc64/$i "
  4920  		 p="${p} powerpc32/$i "
  4921  	      done
  4922  	    path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
  4923  	    path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64"
  4924  	    path="$p $path"
  4925  	    SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
  4926  	    cyclecounter_size_mode64=0
  4927  	    any_mode64_testlist="sizeof-long-8"
  4928  	    ;;
  4929  	esac
  4930  	;;
  4931      esac
  4932      ;;
  4933  
  4934  
  4935    # POWER 32-bit
  4936    power-*-* | power[12]-*-* | power2sc-*-*)
  4937      $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
  4938  
  4939      HAVE_HOST_CPU_FAMILY_power=1
  4940      cclist="gcc"
  4941      if test "$enable_assembly" = "yes" ; then
  4942        extra_functions="udiv_w_sdiv"
  4943      fi
  4944      path="power"
  4945  
  4946      # gcc 2.7.2 knows rios1, rios2, rsc
  4947      #
  4948      # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
  4949      # there needs to be a fallback to just -mpower.
  4950      #
  4951      gcc_cflags_optlist="cpu"
  4952      case $host in
  4953        power-*-*)    gcc_cflags_cpu="-mcpu=power -mpower" ;;
  4954        power1-*-*)   gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
  4955        power2-*-*)   gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
  4956        power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc   -mpower" ;;
  4957      esac
  4958      case $host in
  4959      *-*-aix*)
  4960        cclist="gcc xlc"
  4961        xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
  4962        ;;
  4963      esac
  4964      ;;
  4965  
  4966  
  4967    # IBM System/390 and z/Architecture
  4968    s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
  4969      abilist="32"
  4970      gcc_cflags="$gcc_cflags $fomit_frame_pointer"
  4971      gcc_cflags_optlist="arch"
  4972      path="s390_32"
  4973      if test "$enable_assembly" = "yes" ; then
  4974         extra_functions="udiv_w_sdiv"
  4975      fi
  4976      gcc_32_cflags_maybe="-m31"
  4977  
  4978      case $host_cpu in
  4979        s390)
  4980  	;;
  4981        z900 | z900esa)
  4982          cpu="z900"
  4983          gccarch="$cpu"
  4984  	path="s390_32/esame/$cpu s390_32/esame s390_32"
  4985  	gcc_cflags_arch="-march=$gccarch"
  4986  	cat >>confdefs.h <<_ACEOF
  4987  #define HAVE_HOST_CPU_s390_$cpu 1
  4988  _ACEOF
  4989  
  4990  	$as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
  4991  
  4992  	extra_functions=""
  4993          ;;
  4994        z990 | z990esa)
  4995          cpu="z990"
  4996          gccarch="$cpu"
  4997  	path="s390_32/esame/$cpu s390_32/esame s390_32"
  4998  	gcc_cflags_arch="-march=$gccarch"
  4999  	cat >>confdefs.h <<_ACEOF
  5000  #define HAVE_HOST_CPU_s390_$cpu 1
  5001  _ACEOF
  5002  
  5003  	$as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
  5004  
  5005  	extra_functions=""
  5006          ;;
  5007        z9 | z9esa)
  5008          cpu="z9"
  5009  	gccarch="z9-109"
  5010  	path="s390_32/esame/$cpu s390_32/esame s390_32"
  5011  	gcc_cflags_arch="-march=$gccarch"
  5012  	cat >>confdefs.h <<_ACEOF
  5013  #define HAVE_HOST_CPU_s390_$cpu 1
  5014  _ACEOF
  5015  
  5016  	$as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
  5017  
  5018  	extra_functions=""
  5019          ;;
  5020        z10 | z10esa)
  5021          cpu="z10"
  5022  	gccarch="z10"
  5023  	path="s390_32/esame/$cpu s390_32/esame s390_32"
  5024  	gcc_cflags_arch="-march=$gccarch"
  5025  	cat >>confdefs.h <<_ACEOF
  5026  #define HAVE_HOST_CPU_s390_$cpu 1
  5027  _ACEOF
  5028  
  5029  	$as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
  5030  
  5031  	extra_functions=""
  5032          ;;
  5033        z196 | z196esa)
  5034          cpu="z196"
  5035  	gccarch="z196"
  5036  	path="s390_32/esame/$cpu s390_32/esame s390_32"
  5037  	gcc_cflags_arch="-march=$gccarch"
  5038  	cat >>confdefs.h <<_ACEOF
  5039  #define HAVE_HOST_CPU_s390_$cpu 1
  5040  _ACEOF
  5041  
  5042  	$as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h
  5043  
  5044  	extra_functions=""
  5045          ;;
  5046        esac
  5047  
  5048      case $host in
  5049        s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*)
  5050  	abilist="64 32"
  5051  	cclist_64="gcc"
  5052  	gcc_64_cflags_optlist="arch"
  5053  	gcc_64_cflags="$gcc_cflags -m64"
  5054  	path_64="s390_64/$host_cpu s390_64"
  5055  	extra_functions=""
  5056  	;;
  5057        esac
  5058      ;;
  5059  
  5060  
  5061    sh-*-*)   path="sh" ;;
  5062    sh[2-4]-*-*)  path="sh/sh2 sh" ;;
  5063  
  5064  
  5065    *sparc*-*-*)
  5066      # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI.  We've
  5067      # had various bug reports where users have set CFLAGS for their desired
  5068      # mode, but not set our ABI.  For some reason it's sparc where this
  5069      # keeps coming up, presumably users there are accustomed to driving the
  5070      # compiler mode that way.  The effect of our testlist setting is to
  5071      # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
  5072      # 32-bit mode.
  5073      #
  5074      abilist="32"
  5075      cclist="gcc acc cc"
  5076      any_testlist="sizeof-long-4"
  5077  
  5078  echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
  5079  
  5080  
  5081      case $host_cpu in
  5082        sparcv8 | microsparc | turbosparc)
  5083          path="sparc32/v8 sparc32" ;;
  5084        supersparc)
  5085          path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
  5086        sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*)
  5087          path="sparc32/v9 sparc32/v8 sparc32" ;;
  5088        ultrasparct[12345])
  5089          path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;;
  5090        *)
  5091          path="sparc32" ;;
  5092      esac
  5093  
  5094      # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
  5095      # assembler.  Add it explicitly since the solaris assembler won't accept
  5096      # our sparc32/v9 asm code without it.  gas accepts -xarch=v8plus too, so
  5097      # it can be in the cflags unconditionally (though gas doesn't need it).
  5098      #
  5099      # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
  5100      # gcc doesn't know that flag, hence cflags_maybe.  Note that -m32 cannot
  5101      # be done through the optlist since the plain cflags would be run first
  5102      # and we don't want to require the default mode (whatever it is) works.
  5103      #
  5104      # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
  5105      # latter would be used in the 64-bit ABI on systems like "*bsd" where
  5106      # abilist="64" only.
  5107      #
  5108      gcc_32_cflags_maybe="-m32"
  5109      gcc_cflags_optlist="cpu asm"
  5110  
  5111      # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
  5112      # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
  5113      #   sparclet, tsc701, v9, ultrasparc.  A warning is given that the
  5114      #   plain -m forms will disappear.
  5115      # gcc 3.3 adds ultrasparc3.
  5116      #
  5117      case $host_cpu in
  5118        supersparc*)
  5119  			gcc_cflags_cpu="-mcpu=supersparc -msupersparc"
  5120  			gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";;
  5121        sparcv8 | microsparc* | turbosparc | hypersparc*)
  5122  			gcc_cflags_cpu="-mcpu=v8 -mv8"
  5123  			gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";;
  5124        sparc64 | sparcv9*)
  5125  			gcc_cflags_cpu="-mcpu=v9"
  5126  			gcc_32_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8plus"
  5127  			gcc_64_cflags_asm="-Wa,-Av9 -Wa,-xarch=v9";;
  5128        ultrasparc1 | ultrasparc2*)
  5129  			gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9"
  5130  			gcc_32_cflags_asm="-Wa,-Av8plusa -Wa,-xarch=v8plusa"
  5131  			gcc_64_cflags_asm="-Wa,-Av9a -Wa,-xarch=v9a";;
  5132        ultrasparc[34])
  5133  			gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mcpu=v9"
  5134  			gcc_32_cflags_asm="-Wa,-Av8plusb -Wa,-xarch=v8plusb"
  5135  			gcc_64_cflags_asm="-Wa,-Av9b -Wa,-xarch=v9b";;
  5136        ultrasparct[12])
  5137  			gcc_cflags_cpu="-mcpu=niagara -mcpu=v9"
  5138  			gcc_32_cflags_asm="-Wa,-Av8plusc -Wa,-xarch=v8plusc"
  5139  			gcc_64_cflags_asm="-Wa,-Av9c -Wa,-xarch=v9c";;
  5140        ultrasparct3)
  5141  			gcc_cflags_cpu="-mcpu=niagara3 -mcpu=niagara -mcpu=v9"
  5142  			gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd"
  5143  			gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";;
  5144        ultrasparct[45])
  5145  			gcc_cflags_cpu="-mcpu=niagara4 -mcpu=niagara3 -mcpu=niagara -mcpu=v9"
  5146  			gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd"
  5147  			gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";;
  5148        *)
  5149  			gcc_cflags_cpu="-mcpu=v7 -mcypress"
  5150  			gcc_cflags_asm="";;
  5151      esac
  5152  
  5153      # SunPRO cc and acc, and SunOS bundled cc
  5154      case $host in
  5155        *-*-solaris* | *-*-sunos*)
  5156  	# Note no -g, it disables all optimizations.
  5157  	cc_cflags=
  5158  	cc_cflags_optlist="opt arch cpu"
  5159  
  5160          # SunOS <= 4 cc doesn't know -xO3, fallback to -O2.
  5161  	cc_cflags_opt="-xO3 -O2"
  5162  
  5163          # SunOS cc doesn't know -xarch, apparently always generating v7
  5164          # code, so make this optional
  5165  	case $host_cpu in
  5166  	  sparcv8 | microsparc* | supersparc* | turbosparc | hypersparc*)
  5167  			cc_cflags_arch="-xarch=v8";;
  5168            ultrasparct[345])
  5169  			cc_cflags_arch="-xarch=v8plusd" ;;
  5170  	  sparc64 | sparcv9* | ultrasparc*)
  5171  			cc_cflags_arch="-xarch=v8plus" ;;
  5172  	  *)
  5173  			cc_cflags_arch="-xarch=v7" ;;
  5174  	esac
  5175  
  5176          # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
  5177  	# SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
  5178  	#   micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
  5179  	# SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
  5180          #
  5181  	case $host_cpu in
  5182  	  supersparc*)  cc_cflags_cpu="-xchip=super" ;;
  5183  	  microsparc*)  cc_cflags_cpu="-xchip=micro" ;;
  5184  	  turbosparc)   cc_cflags_cpu="-xchip=micro2" ;;
  5185  	  hypersparc*)  cc_cflags_cpu="-xchip=hyper" ;;
  5186  	  ultrasparc)   cc_cflags_cpu="-xchip=ultra" ;;
  5187  	  ultrasparc2)  cc_cflags_cpu="-xchip=ultra2 -xchip=ultra" ;;
  5188  	  ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i -xchip=ultra2 -xchip=ultra" ;;
  5189  	  ultrasparc3)  cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
  5190  	  ultrasparc4)  cc_cflags_cpu="-xchip=ultra4 -xchip=ultra3 -xchip=ultra" ;;
  5191  	  ultrasparct1) cc_cflags_cpu="-xchip=ultraT1" ;;
  5192  	  ultrasparct2) cc_cflags_cpu="-xchip=ultraT2 -xchip=ultraT1" ;;
  5193  	  ultrasparct3) cc_cflags_cpu="-xchip=ultraT3 -xchip=ultraT2" ;;
  5194  	  ultrasparct4) cc_cflags_cpu="-xchip=T4" ;;
  5195  	  ultrasparct5) cc_cflags_cpu="-xchip=T5 -xchip=T4" ;;
  5196  	  *)            cc_cflags_cpu="-xchip=generic" ;;
  5197  	esac
  5198      esac
  5199  
  5200      case $host_cpu in
  5201        sparc64 | sparcv9* | ultrasparc*)
  5202          case $host in
  5203            # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
  5204            # registers properly, so ABI=32 is left as the only choice.
  5205            #
  5206            *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
  5207  
  5208            # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
  5209            # choice.  In fact they need no special compiler flags, gcc -m64
  5210            # is the default, but it doesn't hurt to add it.  v9 CPUs always
  5211            # use the sparc64 port, since the plain 32-bit sparc ports don't
  5212            # run on a v9.
  5213            #
  5214            *-*-*bsd*) abilist="64" ;;
  5215  
  5216            # For all other systems, we try both 64 and 32.
  5217            #
  5218            # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
  5219            # In the past sparc64 meant a v9 cpu, but there were no 64-bit
  5220            # operations in user mode.  We assume that if "gcc -m64" works
  5221            # then the system is suitable.  Hopefully even if someone attempts
  5222            # to put a new gcc and/or glibc on an old system it won't run.
  5223            #
  5224            *) abilist="64 32" ;;
  5225          esac
  5226  
  5227  	case $host_cpu in
  5228  	  ultrasparc | ultrasparc2 | ultrasparc2i)
  5229  	    path_64="sparc64/ultrasparc1234 sparc64" ;;
  5230  	  ultrasparc[34])
  5231  	    path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;;
  5232  	  ultrasparct[12])
  5233  	    path_64="sparc64/ultrasparct1 sparc64" ;;
  5234  	  ultrasparct[345])
  5235  	    path_64="sparc64/ultrasparct3 sparc64" ;;
  5236  	  *)
  5237  	    path_64="sparc64"
  5238  	esac
  5239  
  5240          cclist_64="gcc"
  5241          any_64_testlist="sizeof-long-8"
  5242  
  5243          # gcc -mptr64 is probably implied by -m64, but we're not sure if
  5244          # this was always so.  On Solaris in the past we always used both
  5245          # "-m64 -mptr64".
  5246          #
  5247          # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
  5248          # solaris, but it would seem likely that if gcc is going to generate
  5249          # 64-bit code it will have to add that option itself where needed.
  5250          # An extra copy of this option should be harmless though, but leave
  5251          # it until we're sure.  (Might want -xarch=v9a or -xarch=v9b for the
  5252          # higher cpu types instead.)
  5253          #
  5254          gcc_64_cflags="$gcc_cflags -m64 -mptr64"
  5255          gcc_64_ldflags="-Wc,-m64"
  5256          gcc_64_cflags_optlist="cpu asm"
  5257  
  5258          case $host in
  5259            *-*-solaris*)
  5260              # Sun cc.
  5261              #
  5262              # We used to have -fast and some fixup options here, but it
  5263              # recurrently caused problems with miscompilation.  Of course,
  5264              # -fast is documented as miscompiling things for the sake of speed.
  5265              #
  5266              cclist_64="$cclist_64 cc"
  5267              cc_64_cflags_optlist="cpu"
  5268              case $host_cpu in
  5269                ultrasparct[345])
  5270                  cc_64_cflags="$cc_64_cflags -xO3 -xarch=v9d" ;;
  5271                *)
  5272                  cc_64_cflags="-xO3 -xarch=v9" ;;
  5273              esac
  5274              ;;
  5275          esac
  5276  
  5277          # using the v9 %tick register
  5278          SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
  5279          SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
  5280          cyclecounter_size_32=2
  5281          cyclecounter_size_64=2
  5282          ;;
  5283      esac
  5284      ;;
  5285  
  5286  
  5287    # VAX
  5288    vax*-*-*elf*)
  5289      # Use elf conventions (i.e., '%' register prefix, no global prefix)
  5290      #
  5291  
  5292  echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i
  5293  
  5294      gcc_cflags="$gcc_cflags $fomit_frame_pointer"
  5295      path="vax"
  5296      if test "$enable_assembly" = "yes" ; then
  5297        extra_functions="udiv_w_sdiv"
  5298      fi
  5299      ;;
  5300    vax*-*-*)
  5301      # Default to aout conventions (i.e., no register prefix, '_' global prefix)
  5302      #
  5303      gcc_cflags="$gcc_cflags $fomit_frame_pointer"
  5304      path="vax"
  5305      if test "$enable_assembly" = "yes" ; then
  5306        extra_functions="udiv_w_sdiv"
  5307      fi
  5308      ;;
  5309  
  5310  
  5311    # AMD and Intel x86 configurations, including AMD64
  5312    #
  5313    # Rumour has it gcc -O2 used to give worse register allocation than just
  5314    # -O, but lets assume that's no longer true.
  5315    #
  5316    # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc.  -m64 is
  5317    # the default in such a build (we think), so -m32 is essential for ABI=32.
  5318    # This is, of course, done for any $host_cpu, not just x86_64, so we can
  5319    # get such a gcc into the right mode to cross-compile to say i486-*-*.
  5320    #
  5321    # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
  5322    # it when it works.  We check sizeof(long)==4 to ensure we get the right
  5323    # mode, in case -m32 has failed not because it's an old gcc, but because
  5324    # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
  5325    #
  5326    i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*)
  5327      abilist="32"
  5328      cclist="gcc icc cc"
  5329      gcc_cflags="$gcc_cflags $fomit_frame_pointer"
  5330      gcc_32_cflags_maybe="-m32"
  5331      icc_cflags="-no-gcc"
  5332      icc_cflags_optlist="opt"
  5333      icc_cflags_opt="-O3 -O2 -O1"
  5334      icc_cflags_opt_maybe="-fp-model~precise"
  5335      any_32_testlist="sizeof-long-4"
  5336      gcc_cflags_optlist="cpu arch noavx"
  5337      CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
  5338  
  5339      # Availability of rdtsc is checked at run-time.
  5340      SPEED_CYCLECOUNTER_OBJ=pentium.lo
  5341  
  5342      # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486.  These
  5343      #     represent -mcpu= since -m486 doesn't generate 486 specific insns.
  5344      # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
  5345      # gcc 3.0 adds athlon.
  5346      # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
  5347      #     athlon-tbird, athlon-4, athlon-xp, athlon-mp.
  5348      # gcc 3.2 adds winchip2.
  5349      # gcc 3.3 adds winchip-c6.
  5350      # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
  5351      # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
  5352      #
  5353      # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
  5354      # old version of mpz/powm.c.  Seems to be fine with the current code, so
  5355      # no need for any restrictions on that option.
  5356      #
  5357      # -march=pentiumpro can fail if the assembler doesn't know "cmov"
  5358      # (eg. solaris 2.8 native "as"), so always have -march=pentium after
  5359      # that as a fallback.
  5360      #
  5361      # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
  5362      # may not be supported by the assembler and/or the OS, and is bad in gcc
  5363      # prior to 3.3.  The tests will reject these if no good, so fallbacks
  5364      # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
  5365      # Note the relevant -march types are listed in the optflags handling
  5366      # below, be sure to update there if adding new types emitting SSE2.
  5367      #
  5368      # -mtune is used at the start of each cpu option list to give something
  5369      # gcc 3.4 will use, thereby avoiding warnings from -mcpu.  -mcpu forms
  5370      # are retained for use by prior gcc.  For example pentium has
  5371      # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
  5372      # -mcpu for prior.  If there's a brand new choice in 3.4 for a chip,
  5373      # like k8 for x86_64, then it can be the -mtune at the start, no need to
  5374      # duplicate anything.
  5375      #
  5376      case $host_cpu in
  5377        i386*)
  5378  	gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
  5379  	gcc_cflags_arch="-march=i386"
  5380  	path="x86"
  5381  	;;
  5382        i486*)
  5383  	gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
  5384  	gcc_cflags_arch="-march=i486"
  5385  	path="x86/i486 x86"
  5386  	;;
  5387        i586 | pentium)
  5388  	gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
  5389  	gcc_cflags_arch="-march=pentium"
  5390  	path="x86/pentium x86"
  5391  	;;
  5392        pentiummmx)
  5393  	gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
  5394  	gcc_cflags_arch="-march=pentium-mmx -march=pentium"
  5395  	path="x86/pentium/mmx x86/pentium x86/mmx x86"
  5396  	;;
  5397        i686 | pentiumpro)
  5398  	gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
  5399  	gcc_cflags_arch="-march=pentiumpro -march=pentium"
  5400  	path="x86/p6 x86"
  5401  	;;
  5402        pentium2)
  5403  	gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
  5404  	gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
  5405  	path="x86/p6/mmx x86/p6 x86/mmx x86"
  5406  	;;
  5407        pentium3)
  5408  	gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
  5409  	gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
  5410  	path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5411  	;;
  5412        pentiumm)
  5413  	gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
  5414  	gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
  5415  	path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5416  	;;
  5417        k6)
  5418  	gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
  5419  	gcc_cflags_arch="-march=k6"
  5420  	path="x86/k6/mmx x86/k6 x86/mmx x86"
  5421  	;;
  5422        k62)
  5423  	gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
  5424  	gcc_cflags_arch="-march=k6-2 -march=k6"
  5425  	path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
  5426  	;;
  5427        k63)
  5428  	gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
  5429  	gcc_cflags_arch="-march=k6-3 -march=k6"
  5430  	path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
  5431  	;;
  5432        geode)
  5433  	gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
  5434  	gcc_cflags_arch="-march=k6-3 -march=k6"
  5435  	path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86"
  5436  	;;
  5437        athlon)
  5438  	# Athlon instruction costs are close to P6 (3 cycle load latency,
  5439  	# 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
  5440  	# know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
  5441  	gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
  5442  	gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
  5443  	path="x86/k7/mmx x86/k7 x86/mmx x86"
  5444  	;;
  5445        i786 | pentium4)
  5446  	# pentiumpro is the primary fallback when gcc doesn't know pentium4.
  5447  	# This gets us cmov to eliminate branches.  Maybe "athlon" would be
  5448  	# a possibility on gcc 3.0.
  5449  	#
  5450  	gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
  5451  	gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
  5452  	gcc_64_cflags_cpu="-mtune=nocona"
  5453  	path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86/mmx x86"
  5454  	path_64="x86_64/pentium4 x86_64"
  5455  	;;
  5456        viac32)
  5457  	# Not sure of the best fallbacks here for -mcpu.
  5458  	# c3-2 has sse and mmx, so pentium3 is good for -march.
  5459  	gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
  5460  	gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
  5461  	path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5462  	;;
  5463        viac3*)
  5464  	# Not sure of the best fallbacks here.
  5465  	gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
  5466  	gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
  5467  	path="x86/pentium/mmx x86/pentium x86/mmx x86"
  5468  	;;
  5469        athlon64 | k8 | x86_64)
  5470  	gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
  5471  	gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
  5472  	path="x86/k8 x86/k7/mmx x86/k7 x86/mmx x86"
  5473  	path_64="x86_64/k8 x86_64"
  5474  	;;
  5475        k10)
  5476  	gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8"
  5477  	gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5478  	path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86/mmx x86"
  5479  	path_64="x86_64/k10 x86_64/k8 x86_64"
  5480  	;;
  5481        bobcat)
  5482  	gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8"
  5483  	gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5484  	path="x86/bobcat x86/k7/mmx x86/k7 x86/mmx x86"
  5485  	path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
  5486  	;;
  5487        jaguar | jaguarnoavx)
  5488  	gcc_cflags_cpu="-mtune=btver2 -mtune=btver1 -mtune=amdfam10 -mtune=k8"
  5489  	gcc_cflags_arch="-march=btver2 -march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5490  	path="x86/jaguar x86/bobcat x86/k7/mmx x86/k7 x86/mmx x86"
  5491  	path_64="x86_64/jaguar x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
  5492  	;;
  5493        bulldozer | bd1 | bulldozernoavx | bd1noavx)
  5494  	gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
  5495  	gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5496  	path="x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
  5497  	path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
  5498  	;;
  5499        piledriver | bd2 | piledrivernoavx | bd2noavx)
  5500  	gcc_cflags_cpu="-mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
  5501  	gcc_cflags_arch="-march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5502  	path="x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
  5503  	path_64="x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
  5504  	;;
  5505        steamroller | bd3 | steamrollernoavx | bd3noavx)
  5506  	gcc_cflags_cpu="-mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
  5507  	gcc_cflags_arch="-march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5508  	path="x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
  5509  	path_64="x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
  5510  	;;
  5511        excavator | bd4 | excavatornoavx | bd4noavx)
  5512  	gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
  5513  	gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
  5514  	path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
  5515  	path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
  5516  	;;
  5517        core2)
  5518  	gcc_cflags_cpu="-mtune=core2 -mtune=k8"
  5519  	gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
  5520  	path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5521  	path_64="x86_64/core2 x86_64"
  5522  	;;
  5523        corei | coreinhm | coreiwsm | nehalem | westmere)
  5524  	gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8"
  5525  	gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
  5526  	path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5527  	path_64="x86_64/coreinhm x86_64/core2 x86_64"
  5528  	;;
  5529        coreisbr | coreisbrnoavx | coreiibr | coreiibrnoavx | \
  5530        sandybridge | sandybridgenoavx | ivybridge | ivybridgenoavx)
  5531  	gcc_cflags_cpu="-mtune=sandybridge -mtune=corei7 -mtune=core2 -mtune=k8"
  5532  	gcc_cflags_arch="-march=sandybridge -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
  5533  	path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5534  	path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
  5535  	;;
  5536        coreihwl | coreihwlnoavx | haswell | haswellnoavx)
  5537  	gcc_cflags_cpu="-mtune=haswell -mtune=corei7 -mtune=core2 -mtune=k8"
  5538  	gcc_cflags_arch="-march=haswell -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
  5539  	path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5540  	path_64="x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
  5541  	;;
  5542        coreibwl | coreibwlnoavx | broadwell | broadwellnoavx)
  5543  	gcc_cflags_cpu="-mtune=broadwell -mtune=corei7 -mtune=core2 -mtune=k8"
  5544  	gcc_cflags_arch="-march=broadwell -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
  5545  	path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5546  	path_64="x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
  5547  	# extra_functions_64="missing"	 # enable for bmi2/adx simulation
  5548  	;;
  5549        skylake | skylakenoavx | kabylake | kabylakenoavx)
  5550  	gcc_cflags_cpu="-mtune=skylake -mtune=broadwell -mtune=corei7 -mtune=core2 -mtune=k8"
  5551  	# Don't pass -march=skylake for now as then some compilers emit AVX512.
  5552  	gcc_cflags_arch="-march=broadwell -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
  5553  	path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
  5554  	path_64="x86_64/skylake x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
  5555  	# extra_functions_64="missing"	 # enable for bmi2/adx simulation
  5556  	;;
  5557        atom)			# in-order pipeline atom
  5558  	gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
  5559  	gcc_cflags_arch="-march=atom -march=pentium3"
  5560  	path="x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
  5561  	path_64="x86_64/atom x86_64"
  5562  	;;
  5563        silvermont | goldmont)	# out-of-order pipeline atom
  5564  	gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3"
  5565  	gcc_cflags_arch="-march=slm -march=atom -march=pentium3"
  5566  	path="x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
  5567  	path_64="x86_64/silvermont x86_64/atom x86_64"
  5568  	;;
  5569        nano)
  5570  	gcc_cflags_cpu="-mtune=nano"
  5571  	gcc_cflags_arch="-march=nano"
  5572  	path="x86/nano x86/mmx x86"
  5573  	path_64="x86_64/nano x86_64"
  5574  	;;
  5575        *)
  5576  	gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
  5577  	gcc_cflags_arch="-march=i486"
  5578  	path="x86"
  5579  	path_64="x86_64"
  5580  	;;
  5581      esac
  5582  
  5583      case $host in
  5584        # Disable AVX if the CPU part tells us AVX is unavailable, but also
  5585        # unconditionally for NetBSD where they don't work but OSXSAVE is set
  5586        # to claim the contrary.
  5587        *noavx-*-* | *-*-netbsd*)
  5588  	gcc_cflags_noavx="-mno-avx";;
  5589      esac
  5590  
  5591      case $host in
  5592        athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*)
  5593  	cclist_64="gcc cc"
  5594  	gcc_64_cflags="$gcc_cflags -m64"
  5595  	gcc_64_cflags_optlist="cpu arch noavx"
  5596  	CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
  5597  	SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
  5598  	cyclecounter_size_64=2
  5599  
  5600  	cclist_x32="gcc cc"
  5601  	gcc_x32_cflags="$gcc_cflags -mx32"
  5602  	gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
  5603  	CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
  5604  	SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
  5605  	cyclecounter_size_x32="$cyclecounter_size_64"
  5606  	path_x32="$path_64"
  5607  	limb_x32=longlong
  5608  	any_x32_testlist="sizeof-long-4"
  5609  
  5610  	abilist="64 x32 32"
  5611  	if test "$enable_assembly" = "yes" ; then
  5612  	    extra_functions_64="$extra_functions_64 invert_limb_table"
  5613  	    extra_functions_x32=$extra_functions_64
  5614  	fi
  5615  
  5616  	case $host in
  5617  	  *-*-solaris*)
  5618  	    # Sun cc.
  5619  	    cc_64_cflags="-xO3 -m64"
  5620  	    ;;
  5621  	  *-*-mingw* | *-*-cygwin)
  5622  	    limb_64=longlong
  5623  	    CALLING_CONVENTIONS_OBJS_64=""
  5624  
  5625  $as_echo "#define HOST_DOS64 1" >>confdefs.h
  5626  
  5627  	    GMP_NONSTD_ABI_64=DOS64
  5628  	    ;;
  5629  	esac
  5630  	;;
  5631      esac
  5632      ;;
  5633  
  5634  
  5635    # Special CPU "none" used to select generic C, now this is obsolete.
  5636    none-*-*)
  5637      enable_assembly=no
  5638      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5
  5639  $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;}
  5640      ;;
  5641  
  5642  esac
  5643  
  5644  # mingw can be built by the cygwin gcc if -mno-cygwin is added.  For
  5645  # convenience add this automatically if it works.  Actual mingw gcc accepts
  5646  # -mno-cygwin too, but of course is the default.  mingw only runs on the
  5647  # x86s, but allow any CPU here so as to catch "none" too.
  5648  #
  5649  case $host in
  5650    *-*-mingw*)
  5651      gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
  5652      gcc_cflags_nocygwin="-mno-cygwin"
  5653      ;;
  5654  esac
  5655  
  5656  
  5657  CFLAGS_or_unset=${CFLAGS-'(unset)'}
  5658  CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
  5659  
  5660  cat >&5 <<EOF
  5661  User:
  5662  ABI=$ABI
  5663  CC=$CC
  5664  CFLAGS=$CFLAGS_or_unset
  5665  CPPFLAGS=$CPPFLAGS_or_unset
  5666  MPN_PATH=$MPN_PATH
  5667  GMP:
  5668  abilist=$abilist
  5669  cclist=$cclist
  5670  EOF
  5671  
  5672  
  5673  test_CFLAGS=${CFLAGS+set}
  5674  test_CPPFLAGS=${CPPFLAGS+set}
  5675  
  5676  for abi in $abilist; do
  5677    abi_last="$abi"
  5678  done
  5679  
  5680  # If the user specifies an ABI then it must be in $abilist, after that
  5681  # $abilist is restricted to just that choice.
  5682  #
  5683  if test -n "$ABI"; then
  5684    found=no
  5685    for abi in $abilist; do
  5686      if test $abi = "$ABI"; then found=yes; break; fi
  5687    done
  5688    if test $found = no; then
  5689      as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
  5690    fi
  5691    abilist="$ABI"
  5692  fi
  5693  
  5694  found_compiler=no
  5695  
  5696  for abi in $abilist; do
  5697  
  5698    echo "checking ABI=$abi"
  5699  
  5700    # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
  5701    # abi2="_64".  For abi=32, will have abi1="_32" and abi2="".  This is how
  5702    # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
  5703    # abilist), but there's no fallback for $gcc_64_cflags.
  5704    #
  5705    abi1=`echo _$abi | sed 's/[.]//g'`
  5706    if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
  5707  
  5708    # Compiler choices under this ABI
  5709                                eval cclist_chosen=\"\$cclist$abi1\"
  5710    test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
  5711  
  5712    # If there's a user specified $CC then don't use a list for
  5713    # $cclist_chosen, just a single value for $ccbase.
  5714    #
  5715    if test -n "$CC"; then
  5716  
  5717      # The first word of $CC, stripped of any directory.  For instance
  5718      # CC="/usr/local/bin/gcc -pipe" will give "gcc".
  5719      #
  5720      for ccbase in $CC; do break; done
  5721      ccbase=`echo $ccbase | sed 's:.*/::'`
  5722  
  5723      # If this $ccbase is in $cclist_chosen then it's a compiler we know and
  5724      # we can do flags defaulting with it.  If not, then $cclist_chosen is
  5725      # set to "unrecognised" so no default flags are used.
  5726      #
  5727      # "unrecognised" is used to avoid bad effects with eval if $ccbase has
  5728      # non-symbol characters.  For instance ccbase=my+cc would end up with
  5729      # something like cflags="$my+cc_cflags" which would give
  5730      # cflags="+cc_cflags" rather than the intended empty string for an
  5731      # unknown compiler.
  5732      #
  5733      found=unrecognised
  5734      for i in $cclist_chosen; do
  5735        if test "$ccbase" = $i; then
  5736          found=$ccbase
  5737          break
  5738        fi
  5739      done
  5740      cclist_chosen=$found
  5741    fi
  5742  
  5743    for ccbase in $cclist_chosen; do
  5744  
  5745      # When cross compiling, look for a compiler with the $host_alias as a
  5746      # prefix, the same way that AC_CHECK_TOOL does.  But don't do this to a
  5747      # user-selected $CC.
  5748      #
  5749      # $cross_compiling will be yes/no/maybe at this point.  Do the host
  5750      # prefixing for "maybe" as well as "yes".
  5751      #
  5752      if test "$cross_compiling" != no && test -z "$CC"; then
  5753        cross_compiling_prefix="${host_alias}-"
  5754      fi
  5755  
  5756      for ccprefix in $cross_compiling_prefix ""; do
  5757  
  5758        cc="$CC"
  5759        test -n "$cc" || cc="$ccprefix$ccbase"
  5760  
  5761        # If the compiler is gcc but installed under another name, then change
  5762        # $ccbase so as to use the flags we know for gcc.  This helps for
  5763        # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
  5764        # native cc which is really gcc on NeXT or MacOS-X.
  5765        #
  5766        # FIXME: There's a slight misfeature here.  If cc is actually gcc but
  5767        # gcc is not a known compiler under this $abi then we'll end up
  5768        # testing it with no flags and it'll work, but chances are it won't be
  5769        # in the right mode for the ABI we desire.  Let's quietly hope this
  5770        # doesn't happen.
  5771        #
  5772        if test $ccbase != gcc; then
  5773          cat >conftest.c <<EOF
  5774  #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
  5775    choke me
  5776  #endif
  5777  EOF
  5778  gmp_compile="$cc -c conftest.c >&5"
  5779  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  5780    (eval $gmp_compile) 2>&5
  5781    ac_status=$?
  5782    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5783    test $ac_status = 0; }; then
  5784    rm -f conftest*
  5785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
  5786  $as_echo_n "checking whether $cc is gcc... " >&6; }
  5787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5788  $as_echo "yes" >&6; }
  5789    ccbase=gcc
  5790  else
  5791    rm -f conftest*
  5792    :
  5793  fi
  5794  
  5795        fi
  5796  
  5797        # Similarly if the compiler is IBM xlc but invoked as cc or whatever
  5798        # then change $ccbase and make the default xlc flags available.
  5799        if test $ccbase != xlc; then
  5800          gmp_command="$cc 2>&1 | grep xlc >/dev/null"
  5801  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
  5802    (eval $gmp_command) 2>&5
  5803    ac_status=$?
  5804    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5805    test $ac_status = 0; }; then
  5806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
  5807  $as_echo_n "checking whether $cc is xlc... " >&6; }
  5808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5809  $as_echo "yes" >&6; }
  5810    ccbase=xlc
  5811  else
  5812    :
  5813  fi
  5814  
  5815        fi
  5816  
  5817        # acc was Sun's first unbundled compiler back in the SunOS days, or
  5818        # something like that, but today its man page says it's not meant to
  5819        # be used directly (instead via /usr/ucb/cc).  The options are pretty
  5820        # much the same as the main SunPRO cc, so share those configs.
  5821        #
  5822        case $host in
  5823          *sparc*-*-solaris* | *sparc*-*-sunos*)
  5824            if test "$ccbase" = acc; then ccbase=cc; fi ;;
  5825        esac
  5826  
  5827        for tmp_cflags_maybe in yes no; do
  5828                               eval cflags=\"\$${ccbase}${abi1}_cflags\"
  5829          test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
  5830  
  5831  	if test "$tmp_cflags_maybe" = yes; then
  5832            # don't try cflags_maybe when the user set CFLAGS
  5833            if test "$test_CFLAGS" = set; then continue; fi
  5834                                       eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
  5835            test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
  5836            # don't try cflags_maybe if there's nothing set
  5837            if test -z "$cflags_maybe"; then continue; fi
  5838            cflags="$cflags_maybe $cflags"
  5839          fi
  5840  
  5841          # Any user CFLAGS, even an empty string, takes precedence
  5842          if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
  5843  
  5844          # Any user CPPFLAGS, even an empty string, takes precedence
  5845                                 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
  5846          test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
  5847          if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
  5848  
  5849          # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
  5850          # This is convenient, but it's perhaps a bit naughty to modify user
  5851          # CFLAGS.
  5852          case "$enable_profiling" in
  5853            prof)       cflags="$cflags -p" ;;
  5854            gprof)      cflags="$cflags -pg" ;;
  5855            instrument) cflags="$cflags -finstrument-functions" ;;
  5856          esac
  5857  
  5858          { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
  5859  $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
  5860  gmp_prog_cc_works=yes
  5861  
  5862  # first see a simple "main()" works, then go on to other checks
  5863  if test "$gmp_prog_cc_works" = yes; then
  5864    # remove anything that might look like compiler output to our "||" expression
  5865    rm -f conftest* a.out b.out a.exe a_out.exe
  5866    cat >conftest.c <<EOF
  5867  
  5868  int main () { return 0; }
  5869  EOF
  5870    echo "Test compile: " >&5
  5871    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  5872    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  5873    (eval $gmp_compile) 2>&5
  5874    ac_status=$?
  5875    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5876    test $ac_status = 0; }; then
  5877      cc_works_part=yes
  5878      if test "$cross_compiling" = no; then
  5879        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  5880    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5881    (eval $ac_try) 2>&5
  5882    ac_status=$?
  5883    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5884    test $ac_status = 0; }; }; then :;
  5885        else
  5886          cc_works_part=norun
  5887        fi
  5888      fi
  5889    else
  5890      cc_works_part=no
  5891    fi
  5892    if test "$cc_works_part" != yes; then
  5893      echo "failed program was:" >&5
  5894      cat conftest.c >&5
  5895    fi
  5896    rm -f conftest* a.out b.out a.exe a_out.exe
  5897    case $cc_works_part in
  5898      yes)
  5899  
  5900        ;;
  5901      no)
  5902        gmp_prog_cc_works="no"
  5903        ;;
  5904      norun)
  5905        gmp_prog_cc_works="no, program does not run"
  5906        ;;
  5907    esac
  5908  fi
  5909  
  5910  
  5911  
  5912  
  5913  if test "$gmp_prog_cc_works" = yes; then
  5914    # remove anything that might look like compiler output to our "||" expression
  5915    rm -f conftest* a.out b.out a.exe a_out.exe
  5916    cat >conftest.c <<EOF
  5917  /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
  5918     (without -maix64), hence detecting an unusable compiler */
  5919  void *g() { return (void *) 0; }
  5920  void *f() { return g(); }
  5921  
  5922  int main () { return 0; }
  5923  EOF
  5924    echo "Test compile: function pointer return" >&5
  5925    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  5926    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  5927    (eval $gmp_compile) 2>&5
  5928    ac_status=$?
  5929    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5930    test $ac_status = 0; }; then
  5931      cc_works_part=yes
  5932      if test "$cross_compiling" = no; then
  5933        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  5934    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5935    (eval $ac_try) 2>&5
  5936    ac_status=$?
  5937    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5938    test $ac_status = 0; }; }; then :;
  5939        else
  5940          cc_works_part=norun
  5941        fi
  5942      fi
  5943    else
  5944      cc_works_part=no
  5945    fi
  5946    if test "$cc_works_part" != yes; then
  5947      echo "failed program was:" >&5
  5948      cat conftest.c >&5
  5949    fi
  5950    rm -f conftest* a.out b.out a.exe a_out.exe
  5951    case $cc_works_part in
  5952      yes)
  5953  
  5954        ;;
  5955      no)
  5956        gmp_prog_cc_works="no, function pointer return"
  5957        ;;
  5958      norun)
  5959        gmp_prog_cc_works="no, function pointer return, program does not run"
  5960        ;;
  5961    esac
  5962  fi
  5963  
  5964  
  5965  
  5966  
  5967  if test "$gmp_prog_cc_works" = yes; then
  5968    # remove anything that might look like compiler output to our "||" expression
  5969    rm -f conftest* a.out b.out a.exe a_out.exe
  5970    cat >conftest.c <<EOF
  5971  /* The following provokes an invalid instruction syntax from i386 gcc
  5972     -march=pentiumpro on Solaris 2.8.  The native sun assembler
  5973     requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
  5974     least) doesn't know.  */
  5975  int n;
  5976  int cmov () { return (n >= 0 ? n : 0); }
  5977  
  5978  int main () { return 0; }
  5979  EOF
  5980    echo "Test compile: cmov instruction" >&5
  5981    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  5982    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  5983    (eval $gmp_compile) 2>&5
  5984    ac_status=$?
  5985    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5986    test $ac_status = 0; }; then
  5987      cc_works_part=yes
  5988      if test "$cross_compiling" = no; then
  5989        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  5990    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  5991    (eval $ac_try) 2>&5
  5992    ac_status=$?
  5993    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5994    test $ac_status = 0; }; }; then :;
  5995        else
  5996          cc_works_part=norun
  5997        fi
  5998      fi
  5999    else
  6000      cc_works_part=no
  6001    fi
  6002    if test "$cc_works_part" != yes; then
  6003      echo "failed program was:" >&5
  6004      cat conftest.c >&5
  6005    fi
  6006    rm -f conftest* a.out b.out a.exe a_out.exe
  6007    case $cc_works_part in
  6008      yes)
  6009  
  6010        ;;
  6011      no)
  6012        gmp_prog_cc_works="no, cmov instruction"
  6013        ;;
  6014      norun)
  6015        gmp_prog_cc_works="no, cmov instruction, program does not run"
  6016        ;;
  6017    esac
  6018  fi
  6019  
  6020  
  6021  
  6022  
  6023  if test "$gmp_prog_cc_works" = yes; then
  6024    # remove anything that might look like compiler output to our "||" expression
  6025    rm -f conftest* a.out b.out a.exe a_out.exe
  6026    cat >conftest.c <<EOF
  6027  /* The following provokes a linker invocation problem with gcc 3.0.3
  6028     on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
  6029     option causes gcc to incorrectly select the 32-bit libgcc.a, not
  6030     the 64-bit one, and consequently it misses out on the __fixunsdfdi
  6031     helper (double -> uint64 conversion).  */
  6032  double d;
  6033  unsigned long gcc303 () { return (unsigned long) d; }
  6034  
  6035  int main () { return 0; }
  6036  EOF
  6037    echo "Test compile: double -> ulong conversion" >&5
  6038    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6039    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6040    (eval $gmp_compile) 2>&5
  6041    ac_status=$?
  6042    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6043    test $ac_status = 0; }; then
  6044      cc_works_part=yes
  6045      if test "$cross_compiling" = no; then
  6046        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6047    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6048    (eval $ac_try) 2>&5
  6049    ac_status=$?
  6050    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6051    test $ac_status = 0; }; }; then :;
  6052        else
  6053          cc_works_part=norun
  6054        fi
  6055      fi
  6056    else
  6057      cc_works_part=no
  6058    fi
  6059    if test "$cc_works_part" != yes; then
  6060      echo "failed program was:" >&5
  6061      cat conftest.c >&5
  6062    fi
  6063    rm -f conftest* a.out b.out a.exe a_out.exe
  6064    case $cc_works_part in
  6065      yes)
  6066  
  6067        ;;
  6068      no)
  6069        gmp_prog_cc_works="no, double -> ulong conversion"
  6070        ;;
  6071      norun)
  6072        gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
  6073        ;;
  6074    esac
  6075  fi
  6076  
  6077  
  6078  
  6079  
  6080  if test "$gmp_prog_cc_works" = yes; then
  6081    # remove anything that might look like compiler output to our "||" expression
  6082    rm -f conftest* a.out b.out a.exe a_out.exe
  6083    cat >conftest.c <<EOF
  6084  /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
  6085     the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
  6086     instruction, and a negation like this comes out using it.  */
  6087  double fneg_data;
  6088  unsigned long fneg () { return -fneg_data; }
  6089  
  6090  int main () { return 0; }
  6091  EOF
  6092    echo "Test compile: double negation" >&5
  6093    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6094    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6095    (eval $gmp_compile) 2>&5
  6096    ac_status=$?
  6097    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6098    test $ac_status = 0; }; then
  6099      cc_works_part=yes
  6100      if test "$cross_compiling" = no; then
  6101        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6102    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6103    (eval $ac_try) 2>&5
  6104    ac_status=$?
  6105    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6106    test $ac_status = 0; }; }; then :;
  6107        else
  6108          cc_works_part=norun
  6109        fi
  6110      fi
  6111    else
  6112      cc_works_part=no
  6113    fi
  6114    if test "$cc_works_part" != yes; then
  6115      echo "failed program was:" >&5
  6116      cat conftest.c >&5
  6117    fi
  6118    rm -f conftest* a.out b.out a.exe a_out.exe
  6119    case $cc_works_part in
  6120      yes)
  6121  
  6122        ;;
  6123      no)
  6124        gmp_prog_cc_works="no, double negation"
  6125        ;;
  6126      norun)
  6127        gmp_prog_cc_works="no, double negation, program does not run"
  6128        ;;
  6129    esac
  6130  fi
  6131  
  6132  
  6133  
  6134  
  6135  if test "$gmp_prog_cc_works" = yes; then
  6136    # remove anything that might look like compiler output to our "||" expression
  6137    rm -f conftest* a.out b.out a.exe a_out.exe
  6138    cat >conftest.c <<EOF
  6139  /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
  6140     (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
  6141     those instructions.  Not sure how much of the gmp code will come out
  6142     wanting sse2, but it's easiest to reject an option we know is bad.  */
  6143  double ftod_data;
  6144  float ftod () { return (float) ftod_data; }
  6145  
  6146  int main () { return 0; }
  6147  EOF
  6148    echo "Test compile: double -> float conversion" >&5
  6149    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6150    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6151    (eval $gmp_compile) 2>&5
  6152    ac_status=$?
  6153    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6154    test $ac_status = 0; }; then
  6155      cc_works_part=yes
  6156      if test "$cross_compiling" = no; then
  6157        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6158    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6159    (eval $ac_try) 2>&5
  6160    ac_status=$?
  6161    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6162    test $ac_status = 0; }; }; then :;
  6163        else
  6164          cc_works_part=norun
  6165        fi
  6166      fi
  6167    else
  6168      cc_works_part=no
  6169    fi
  6170    if test "$cc_works_part" != yes; then
  6171      echo "failed program was:" >&5
  6172      cat conftest.c >&5
  6173    fi
  6174    rm -f conftest* a.out b.out a.exe a_out.exe
  6175    case $cc_works_part in
  6176      yes)
  6177  
  6178        ;;
  6179      no)
  6180        gmp_prog_cc_works="no, double -> float conversion"
  6181        ;;
  6182      norun)
  6183        gmp_prog_cc_works="no, double -> float conversion, program does not run"
  6184        ;;
  6185    esac
  6186  fi
  6187  
  6188  
  6189  
  6190  
  6191  if test "$gmp_prog_cc_works" = yes; then
  6192    # remove anything that might look like compiler output to our "||" expression
  6193    rm -f conftest* a.out b.out a.exe a_out.exe
  6194    cat >conftest.c <<EOF
  6195  /* The following provokes an internal compiler error from gcc version
  6196     "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
  6197     values being spilled into floating point registers.  The problem doesn't
  6198     show up all the time, but has occurred enough in GMP for us to reject
  6199     this compiler+flags.  */
  6200  #include <string.h>  /* for memcpy */
  6201  struct try_t
  6202  {
  6203   char dst[2];
  6204   char size;
  6205   long d0, d1, d2, d3, d4, d5, d6;
  6206   char overlap;
  6207  };
  6208  struct try_t param[6];
  6209  int
  6210  param_init ()
  6211  {
  6212   struct try_t *p;
  6213   memcpy (p, &param[ 2 ], sizeof (*p));
  6214   memcpy (p, &param[ 2 ], sizeof (*p));
  6215   p->size = 2;
  6216   memcpy (p, &param[ 1 ], sizeof (*p));
  6217   p->dst[0] = 1;
  6218   p->overlap = 2;
  6219   memcpy (p, &param[ 3 ], sizeof (*p));
  6220   p->dst[0] = 1;
  6221   p->overlap = 8;
  6222   memcpy (p, &param[ 4 ], sizeof (*p));
  6223   memcpy (p, &param[ 4 ], sizeof (*p));
  6224   p->overlap = 8;
  6225   memcpy (p, &param[ 5 ], sizeof (*p));
  6226   memcpy (p, &param[ 5 ], sizeof (*p));
  6227   memcpy (p, &param[ 5 ], sizeof (*p));
  6228   return 0;
  6229  }
  6230  
  6231  int main () { return 0; }
  6232  EOF
  6233    echo "Test compile: gnupro alpha ev6 char spilling" >&5
  6234    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6235    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6236    (eval $gmp_compile) 2>&5
  6237    ac_status=$?
  6238    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6239    test $ac_status = 0; }; then
  6240      cc_works_part=yes
  6241      if test "$cross_compiling" = no; then
  6242        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6243    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6244    (eval $ac_try) 2>&5
  6245    ac_status=$?
  6246    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6247    test $ac_status = 0; }; }; then :;
  6248        else
  6249          cc_works_part=norun
  6250        fi
  6251      fi
  6252    else
  6253      cc_works_part=no
  6254    fi
  6255    if test "$cc_works_part" != yes; then
  6256      echo "failed program was:" >&5
  6257      cat conftest.c >&5
  6258    fi
  6259    rm -f conftest* a.out b.out a.exe a_out.exe
  6260    case $cc_works_part in
  6261      yes)
  6262  
  6263        ;;
  6264      no)
  6265        gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
  6266        ;;
  6267      norun)
  6268        gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
  6269        ;;
  6270    esac
  6271  fi
  6272  
  6273  
  6274  
  6275  
  6276  # __builtin_alloca is not available everywhere, check it exists before
  6277  # seeing that it works
  6278  if test "$gmp_prog_cc_works" = yes; then
  6279    # remove anything that might look like compiler output to our "||" expression
  6280    rm -f conftest* a.out b.out a.exe a_out.exe
  6281    cat >conftest.c <<EOF
  6282  int k; int foo () { __builtin_alloca (k); }
  6283  EOF
  6284    echo "Test compile: __builtin_alloca availability" >&5
  6285    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6286    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6287    (eval $gmp_compile) 2>&5
  6288    ac_status=$?
  6289    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6290    test $ac_status = 0; }; then
  6291      cc_works_part=yes
  6292      if test "$cross_compiling" = no; then
  6293        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6294    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6295    (eval $ac_try) 2>&5
  6296    ac_status=$?
  6297    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6298    test $ac_status = 0; }; }; then :;
  6299        else
  6300          cc_works_part=norun
  6301        fi
  6302      fi
  6303    else
  6304      cc_works_part=no
  6305    fi
  6306    if test "$cc_works_part" != yes; then
  6307      echo "failed program was:" >&5
  6308      cat conftest.c >&5
  6309    fi
  6310    rm -f conftest* a.out b.out a.exe a_out.exe
  6311    case $cc_works_part in
  6312      yes)
  6313        if test "$gmp_prog_cc_works" = yes; then
  6314    # remove anything that might look like compiler output to our "||" expression
  6315    rm -f conftest* a.out b.out a.exe a_out.exe
  6316    cat >conftest.c <<EOF
  6317  /* The following provokes an internal compiler error from Itanium HP-UX cc
  6318      under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
  6319  int k;
  6320  int foo ()
  6321  {
  6322    int i, **a;
  6323    a = __builtin_alloca (k);
  6324    for (i = 0; i <= k; i++)
  6325      a[i] = __builtin_alloca (1 << i);
  6326  }
  6327  
  6328  int main () { return 0; }
  6329  EOF
  6330    echo "Test compile: alloca array" >&5
  6331    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6332    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6333    (eval $gmp_compile) 2>&5
  6334    ac_status=$?
  6335    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6336    test $ac_status = 0; }; then
  6337      cc_works_part=yes
  6338      if test "$cross_compiling" = no; then
  6339        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6340    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6341    (eval $ac_try) 2>&5
  6342    ac_status=$?
  6343    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6344    test $ac_status = 0; }; }; then :;
  6345        else
  6346          cc_works_part=norun
  6347        fi
  6348      fi
  6349    else
  6350      cc_works_part=no
  6351    fi
  6352    if test "$cc_works_part" != yes; then
  6353      echo "failed program was:" >&5
  6354      cat conftest.c >&5
  6355    fi
  6356    rm -f conftest* a.out b.out a.exe a_out.exe
  6357    case $cc_works_part in
  6358      yes)
  6359  
  6360        ;;
  6361      no)
  6362        gmp_prog_cc_works="no, alloca array"
  6363        ;;
  6364      norun)
  6365        gmp_prog_cc_works="no, alloca array, program does not run"
  6366        ;;
  6367    esac
  6368  fi
  6369  
  6370  
  6371  
  6372        ;;
  6373      no)
  6374  
  6375        ;;
  6376      norun)
  6377  
  6378        ;;
  6379    esac
  6380  fi
  6381  
  6382  
  6383  if test "$gmp_prog_cc_works" = yes; then
  6384    # remove anything that might look like compiler output to our "||" expression
  6385    rm -f conftest* a.out b.out a.exe a_out.exe
  6386    cat >conftest.c <<EOF
  6387  /* The following provokes an internal error from the assembler on
  6388     power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
  6389     results in "Internal error related to the source program domain".
  6390  
  6391     For reference it seems to be the combination of nabs+fcirz which is bad,
  6392     not either alone.  This sort of thing occurs in mpz/get_str.c with the
  6393     way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
  6394     if that code changes to a scaled-integer style then we won't need this
  6395     test.  */
  6396  
  6397  double fp[1];
  6398  int x;
  6399  int f ()
  6400  {
  6401    int a;
  6402    a = (x >= 0 ? x : -x);
  6403    return a * fp[0];
  6404  }
  6405  
  6406  int main () { return 0; }
  6407  EOF
  6408    echo "Test compile: abs int -> double conversion" >&5
  6409    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6410    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6411    (eval $gmp_compile) 2>&5
  6412    ac_status=$?
  6413    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6414    test $ac_status = 0; }; then
  6415      cc_works_part=yes
  6416      if test "$cross_compiling" = no; then
  6417        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6418    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6419    (eval $ac_try) 2>&5
  6420    ac_status=$?
  6421    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6422    test $ac_status = 0; }; }; then :;
  6423        else
  6424          cc_works_part=norun
  6425        fi
  6426      fi
  6427    else
  6428      cc_works_part=no
  6429    fi
  6430    if test "$cc_works_part" != yes; then
  6431      echo "failed program was:" >&5
  6432      cat conftest.c >&5
  6433    fi
  6434    rm -f conftest* a.out b.out a.exe a_out.exe
  6435    case $cc_works_part in
  6436      yes)
  6437  
  6438        ;;
  6439      no)
  6440        gmp_prog_cc_works="no, abs int -> double conversion"
  6441        ;;
  6442      norun)
  6443        gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
  6444        ;;
  6445    esac
  6446  fi
  6447  
  6448  
  6449  
  6450  
  6451  if test "$gmp_prog_cc_works" = yes; then
  6452    # remove anything that might look like compiler output to our "||" expression
  6453    rm -f conftest* a.out b.out a.exe a_out.exe
  6454    cat >conftest.c <<EOF
  6455  /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
  6456     Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
  6457     1666 to segfault with e.g., -O2 -mpowerpc64.  */
  6458  
  6459  #if defined (__GNUC__) && ! defined (__cplusplus)
  6460  typedef unsigned long long t1;typedef t1*t2;
  6461  void g(){}
  6462  void h(){}
  6463  static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
  6464  {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
  6465  void f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
  6466  for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
  6467  #else
  6468  int dummy;
  6469  #endif
  6470  
  6471  int main () { return 0; }
  6472  EOF
  6473    echo "Test compile: long long reliability test 1" >&5
  6474    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6475    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6476    (eval $gmp_compile) 2>&5
  6477    ac_status=$?
  6478    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6479    test $ac_status = 0; }; then
  6480      cc_works_part=yes
  6481      if test "$cross_compiling" = no; then
  6482        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6483    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6484    (eval $ac_try) 2>&5
  6485    ac_status=$?
  6486    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6487    test $ac_status = 0; }; }; then :;
  6488        else
  6489          cc_works_part=norun
  6490        fi
  6491      fi
  6492    else
  6493      cc_works_part=no
  6494    fi
  6495    if test "$cc_works_part" != yes; then
  6496      echo "failed program was:" >&5
  6497      cat conftest.c >&5
  6498    fi
  6499    rm -f conftest* a.out b.out a.exe a_out.exe
  6500    case $cc_works_part in
  6501      yes)
  6502  
  6503        ;;
  6504      no)
  6505        gmp_prog_cc_works="no, long long reliability test 1"
  6506        ;;
  6507      norun)
  6508        gmp_prog_cc_works="no, long long reliability test 1, program does not run"
  6509        ;;
  6510    esac
  6511  fi
  6512  
  6513  
  6514  
  6515  
  6516  if test "$gmp_prog_cc_works" = yes; then
  6517    # remove anything that might look like compiler output to our "||" expression
  6518    rm -f conftest* a.out b.out a.exe a_out.exe
  6519    cat >conftest.c <<EOF
  6520  /* The following provokes an internal compiler error on powerpc-apple-darwin.
  6521     Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
  6522     1666 to get an ICE with -O1 -mpowerpc64.  */
  6523  
  6524  #if defined (__GNUC__) && ! defined (__cplusplus)
  6525  int g();
  6526  void f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
  6527  int g(){return 0;}
  6528  #else
  6529  int dummy;
  6530  #endif
  6531  
  6532  int main () { return 0; }
  6533  EOF
  6534    echo "Test compile: long long reliability test 2" >&5
  6535    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6536    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6537    (eval $gmp_compile) 2>&5
  6538    ac_status=$?
  6539    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6540    test $ac_status = 0; }; then
  6541      cc_works_part=yes
  6542      if test "$cross_compiling" = no; then
  6543        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6544    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6545    (eval $ac_try) 2>&5
  6546    ac_status=$?
  6547    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6548    test $ac_status = 0; }; }; then :;
  6549        else
  6550          cc_works_part=norun
  6551        fi
  6552      fi
  6553    else
  6554      cc_works_part=no
  6555    fi
  6556    if test "$cc_works_part" != yes; then
  6557      echo "failed program was:" >&5
  6558      cat conftest.c >&5
  6559    fi
  6560    rm -f conftest* a.out b.out a.exe a_out.exe
  6561    case $cc_works_part in
  6562      yes)
  6563  
  6564        ;;
  6565      no)
  6566        gmp_prog_cc_works="no, long long reliability test 2"
  6567        ;;
  6568      norun)
  6569        gmp_prog_cc_works="no, long long reliability test 2, program does not run"
  6570        ;;
  6571    esac
  6572  fi
  6573  
  6574  
  6575  
  6576  
  6577  if test "$gmp_prog_cc_works" = yes; then
  6578    # remove anything that might look like compiler output to our "||" expression
  6579    rm -f conftest* a.out b.out a.exe a_out.exe
  6580    cat >conftest.c <<EOF
  6581  /* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under
  6582     -O2 -march=amdfam10.  We call helper functions here "open" and "close" in
  6583     order for linking to succeed.  */
  6584  
  6585  #if defined (__GNUC__) && ! defined (__cplusplus)
  6586  int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){
  6587  __builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl
  6588  (up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}}
  6589  #else
  6590  int dummy;
  6591  #endif
  6592  
  6593  int main () { return 0; }
  6594  EOF
  6595    echo "Test compile: freebsd hacked gcc" >&5
  6596    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6597    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6598    (eval $gmp_compile) 2>&5
  6599    ac_status=$?
  6600    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6601    test $ac_status = 0; }; then
  6602      cc_works_part=yes
  6603      if test "$cross_compiling" = no; then
  6604        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6605    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6606    (eval $ac_try) 2>&5
  6607    ac_status=$?
  6608    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6609    test $ac_status = 0; }; }; then :;
  6610        else
  6611          cc_works_part=norun
  6612        fi
  6613      fi
  6614    else
  6615      cc_works_part=no
  6616    fi
  6617    if test "$cc_works_part" != yes; then
  6618      echo "failed program was:" >&5
  6619      cat conftest.c >&5
  6620    fi
  6621    rm -f conftest* a.out b.out a.exe a_out.exe
  6622    case $cc_works_part in
  6623      yes)
  6624  
  6625        ;;
  6626      no)
  6627        gmp_prog_cc_works="no, freebsd hacked gcc"
  6628        ;;
  6629      norun)
  6630        gmp_prog_cc_works="no, freebsd hacked gcc, program does not run"
  6631        ;;
  6632    esac
  6633  fi
  6634  
  6635  
  6636  
  6637  
  6638  if test "$gmp_prog_cc_works" = yes; then
  6639    # remove anything that might look like compiler output to our "||" expression
  6640    rm -f conftest* a.out b.out a.exe a_out.exe
  6641    cat >conftest.c <<EOF
  6642  /* The following is mis-compiled by HP ia-64 cc version
  6643          cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
  6644     under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
  6645     inlined and its return value somehow botched to be 0 instead of 1.  This
  6646     arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
  6647     level, like +O2 seems ok.  This code needs to be run to show the problem,
  6648     but that's fine, the offending cc is a native-only compiler so we don't
  6649     have to worry about cross compiling.  */
  6650  
  6651  #if ! defined (__cplusplus)
  6652  unsigned long
  6653  lshift_com (rp, up, n, cnt)
  6654    unsigned long *rp;
  6655    unsigned long *up;
  6656    long n;
  6657    unsigned cnt;
  6658  {
  6659    unsigned long retval, high_limb, low_limb;
  6660    unsigned tnc;
  6661    long i;
  6662    tnc = 8 * sizeof (unsigned long) - cnt;
  6663    low_limb = *up++;
  6664    retval = low_limb >> tnc;
  6665    high_limb = low_limb << cnt;
  6666    for (i = n - 1; i != 0; i--)
  6667      {
  6668        low_limb = *up++;
  6669        *rp++ = ~(high_limb | (low_limb >> tnc));
  6670        high_limb = low_limb << cnt;
  6671      }
  6672    return retval;
  6673  }
  6674  int
  6675  main ()
  6676  {
  6677    unsigned long cy, rp[2], up[2];
  6678    up[0] = ~ 0L;
  6679    up[1] = 0;
  6680    cy = lshift_com (rp, up, 2L, 1);
  6681    if (cy != 1L)
  6682      return 1;
  6683    return 0;
  6684  }
  6685  #else
  6686  int
  6687  main ()
  6688  {
  6689    return 0;
  6690  }
  6691  #endif
  6692  
  6693  EOF
  6694    echo "Test compile: mpn_lshift_com optimization" >&5
  6695    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6696    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6697    (eval $gmp_compile) 2>&5
  6698    ac_status=$?
  6699    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6700    test $ac_status = 0; }; then
  6701      cc_works_part=yes
  6702      if test "$cross_compiling" = no; then
  6703        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6704    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6705    (eval $ac_try) 2>&5
  6706    ac_status=$?
  6707    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6708    test $ac_status = 0; }; }; then :;
  6709        else
  6710          cc_works_part=norun
  6711        fi
  6712      fi
  6713    else
  6714      cc_works_part=no
  6715    fi
  6716    if test "$cc_works_part" != yes; then
  6717      echo "failed program was:" >&5
  6718      cat conftest.c >&5
  6719    fi
  6720    rm -f conftest* a.out b.out a.exe a_out.exe
  6721    case $cc_works_part in
  6722      yes)
  6723  
  6724        ;;
  6725      no)
  6726        gmp_prog_cc_works="no, mpn_lshift_com optimization"
  6727        ;;
  6728      norun)
  6729        gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
  6730        ;;
  6731    esac
  6732  fi
  6733  
  6734  
  6735  
  6736  if test "$gmp_prog_cc_works" = yes; then
  6737    # remove anything that might look like compiler output to our "||" expression
  6738    rm -f conftest* a.out b.out a.exe a_out.exe
  6739    cat >conftest.c <<EOF
  6740  /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
  6741      "icc -O3",  After several calls, the function writes partial garbage to
  6742      the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
  6743      to be run to show the problem, but that's fine, the offending cc is a
  6744      native-only compiler so we don't have to worry about cross compiling.  */
  6745  
  6746  #if ! defined (__cplusplus)
  6747  #include <stdlib.h>
  6748  void
  6749  lshift_com (rp, up, n, cnt)
  6750    unsigned long *rp;
  6751    unsigned long *up;
  6752    long n;
  6753    unsigned cnt;
  6754  {
  6755    unsigned long high_limb, low_limb;
  6756    unsigned tnc;
  6757    long i;
  6758    up += n;
  6759    rp += n;
  6760    tnc = 8 * sizeof (unsigned long) - cnt;
  6761    low_limb = *--up;
  6762    high_limb = low_limb << cnt;
  6763    for (i = n - 1; i != 0; i--)
  6764      {
  6765        low_limb = *--up;
  6766        *--rp = ~(high_limb | (low_limb >> tnc));
  6767        high_limb = low_limb << cnt;
  6768      }
  6769    *--rp = ~high_limb;
  6770  }
  6771  int
  6772  main ()
  6773  {
  6774    unsigned long *r, *r2;
  6775    unsigned long a[88 + 1];
  6776    long i;
  6777    for (i = 0; i < 88 + 1; i++)
  6778      a[i] = ~0L;
  6779    r = malloc (10000 * sizeof (unsigned long));
  6780    r2 = r;
  6781    for (i = 0; i < 528; i += 23)
  6782      {
  6783        lshift_com (r2, a,
  6784  		  i / (8 * sizeof (unsigned long)) + 1,
  6785  		  i % (8 * sizeof (unsigned long)));
  6786        r2 += 88 + 1;
  6787      }
  6788    if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
  6789        r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
  6790      abort ();
  6791    free (r);
  6792    return 0;
  6793  }
  6794  #else
  6795  int
  6796  main ()
  6797  {
  6798    return 0;
  6799  }
  6800  #endif
  6801  
  6802  EOF
  6803    echo "Test compile: mpn_lshift_com optimization 2" >&5
  6804    gmp_compile="$cc $cflags $cppflags conftest.c >&5"
  6805    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6806    (eval $gmp_compile) 2>&5
  6807    ac_status=$?
  6808    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6809    test $ac_status = 0; }; then
  6810      cc_works_part=yes
  6811      if test "$cross_compiling" = no; then
  6812        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  6813    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  6814    (eval $ac_try) 2>&5
  6815    ac_status=$?
  6816    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6817    test $ac_status = 0; }; }; then :;
  6818        else
  6819          cc_works_part=norun
  6820        fi
  6821      fi
  6822    else
  6823      cc_works_part=no
  6824    fi
  6825    if test "$cc_works_part" != yes; then
  6826      echo "failed program was:" >&5
  6827      cat conftest.c >&5
  6828    fi
  6829    rm -f conftest* a.out b.out a.exe a_out.exe
  6830    case $cc_works_part in
  6831      yes)
  6832  
  6833        ;;
  6834      no)
  6835        gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
  6836        ;;
  6837      norun)
  6838        gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
  6839        ;;
  6840    esac
  6841  fi
  6842  
  6843  
  6844  
  6845  
  6846  # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
  6847  # by recent versions of gcc.
  6848  #
  6849  if test "$gmp_prog_cc_works" = yes; then
  6850    case $host in
  6851      i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
  6852        # this problem only arises in PIC code, so don't need to test when
  6853        # --disable-shared.  We don't necessarily have $enable_shared set to
  6854        # yes at this point, it will still be unset for the default (which is
  6855        # yes); hence the use of "!= no".
  6856        if test "$enable_shared" != no; then
  6857          echo "Testing gcc GOT with eax emitted" >&5
  6858  cat >conftest.c <<\EOF
  6859  int foo;
  6860  int bar () { return foo; }
  6861  EOF
  6862  tmp_got_emitted=no
  6863  gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
  6864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6865    (eval $gmp_compile) 2>&5
  6866    ac_status=$?
  6867    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6868    test $ac_status = 0; }; then
  6869    if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
  6870      tmp_got_emitted=yes
  6871    fi
  6872  fi
  6873  rm -f conftest.*
  6874  echo "Result: $tmp_got_emitted" >&5
  6875  if test "$tmp_got_emitted" = yes; then
  6876    echo "Testing gas GOT with eax good" >&5
  6877  cat >conftest.awk <<\EOF
  6878  BEGIN {
  6879    want[0]  = "001"
  6880    want[1]  = "043"
  6881    want[2]  = "105"
  6882    want[3]  = "147"
  6883    want[4]  = "211"
  6884    want[5]  = "253"
  6885    want[6]  = "315"
  6886    want[7]  = "357"
  6887  
  6888    want[8]  = "005"
  6889    want[9]  = "002"
  6890    want[10] = "000"
  6891    want[11] = "000"
  6892    want[12] = "000"
  6893  
  6894    want[13] = "376"
  6895    want[14] = "334"
  6896    want[15] = "272"
  6897    want[16] = "230"
  6898    want[17] = "166"
  6899    want[18] = "124"
  6900    want[19] = "062"
  6901    want[20] = "020"
  6902  
  6903    result = "yes"
  6904  }
  6905  {
  6906    for (f = 2; f <= NF; f++)
  6907      {
  6908        for (i = 0; i < 20; i++)
  6909          got[i] = got[i+1];
  6910        got[20] = $f;
  6911  
  6912        found = 1
  6913        for (i = 0; i < 21; i++)
  6914          if (got[i] != want[i])
  6915            {
  6916              found = 0
  6917              break
  6918            }
  6919        if (found)
  6920          {
  6921            result = "no"
  6922            exit
  6923          }
  6924      }
  6925  }
  6926  END {
  6927    print result
  6928  }
  6929  EOF
  6930  cat >conftest.s <<\EOF
  6931  	.text
  6932  	.byte	1, 35, 69, 103, 137, 171, 205, 239
  6933  	addl	$_GLOBAL_OFFSET_TABLE_, %eax
  6934  	.byte	254, 220, 186, 152, 118, 84, 50, 16
  6935  EOF
  6936  tmp_got_good=yes
  6937  gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
  6938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6939    (eval $gmp_compile) 2>&5
  6940    ac_status=$?
  6941    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6942    test $ac_status = 0; }; then
  6943    tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
  6944  fi
  6945  rm -f conftest.*
  6946  echo "Result: $tmp_got_good" >&5
  6947  if test "$tmp_got_good" = no; then
  6948    gmp_prog_cc_works="no, bad gas GOT with eax"
  6949  else
  6950    :
  6951  fi
  6952  
  6953  else
  6954    :
  6955  fi
  6956  
  6957        fi
  6958        ;;
  6959    esac
  6960  fi
  6961  
  6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
  6963  $as_echo "$gmp_prog_cc_works" >&6; }
  6964  case $gmp_prog_cc_works in
  6965    yes)
  6966  
  6967      ;;
  6968    *)
  6969      continue
  6970      ;;
  6971  esac
  6972  
  6973  
  6974          # If we're supposed to be using a "long long" for a limb, check that
  6975          # it works.
  6976                                    eval limb_chosen=\"\$limb$abi1\"
  6977          test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
  6978          if test "$limb_chosen" = longlong; then
  6979            { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
  6980  $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
  6981  cat >conftest.c <<EOF
  6982  long long  foo;
  6983  long long  bar () { return foo; }
  6984  int main () { return 0; }
  6985  EOF
  6986  gmp_prog_cc_works=no
  6987  gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
  6988  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  6989    (eval $gmp_compile) 2>&5
  6990    ac_status=$?
  6991    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6992    test $ac_status = 0; }; then
  6993    gmp_prog_cc_works=yes
  6994  else
  6995    echo "failed program was:" >&5
  6996    cat conftest.c >&5
  6997  fi
  6998  rm -f conftest* a.out b.out a.exe a_out.exe
  6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
  7000  $as_echo "$gmp_prog_cc_works" >&6; }
  7001  if test $gmp_prog_cc_works = yes; then
  7002    :
  7003  else
  7004    continue
  7005  fi
  7006  
  7007          fi
  7008  
  7009          # The tests to perform on this $cc, if any
  7010                                 eval testlist=\"\$${ccbase}${abi1}_testlist\"
  7011          test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
  7012          test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
  7013          test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
  7014  
  7015          testlist_pass=yes
  7016          for tst in $testlist; do
  7017            case $tst in
  7018            hpc-hppa-2-0)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
  7019  $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
  7020  # Bad compiler output:
  7021  #   ccom: HP92453-01 G.10.32.05 HP C Compiler
  7022  # Good compiler output:
  7023  #   ccom: HP92453-01 A.10.32.30 HP C Compiler
  7024  # Let A.10.32.30 or higher be ok.
  7025  echo >conftest.c
  7026  gmp_tmp_vs=`$cc  -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
  7027  echo "Version string: $gmp_tmp_vs" >&5
  7028  rm conftest*
  7029  gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
  7030  gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
  7031  gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
  7032  echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
  7033  if test -z "$gmp_tmp_v1"; then
  7034    gmp_hpc_64bit=not-applicable
  7035  else
  7036    gmp_compare_ge=no
  7037  if test -n "$gmp_tmp_v1"; then
  7038    if test "$gmp_tmp_v1" -gt 10; then
  7039      gmp_compare_ge=yes
  7040    else
  7041      if test "$gmp_tmp_v1" -eq 10; then
  7042        if test -n "$gmp_tmp_v2"; then
  7043    if test "$gmp_tmp_v2" -gt 32; then
  7044      gmp_compare_ge=yes
  7045    else
  7046      if test "$gmp_tmp_v2" -eq 32; then
  7047        if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
  7048    gmp_compare_ge=yes
  7049  fi
  7050  
  7051      fi
  7052    fi
  7053  fi
  7054  
  7055      fi
  7056    fi
  7057  fi
  7058  
  7059  
  7060    gmp_hpc_64bit=$gmp_compare_ge
  7061  fi
  7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
  7063  $as_echo "$gmp_hpc_64bit" >&6; }
  7064  if test $gmp_hpc_64bit = yes; then
  7065    :
  7066  else
  7067    testlist_pass=no
  7068  fi
  7069   ;;
  7070            gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
  7071  $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
  7072  tmp_version=`$cc --version`
  7073  echo "$tmp_version" >&5
  7074  case $tmp_version in
  7075    2.95 | 2.95.[123])
  7076      testlist_pass=no
  7077      gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
  7078    *)
  7079      :
  7080      gmp_gcc_arm_umodsi_result=yes ;;
  7081  esac
  7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
  7083  $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
  7084   ;;
  7085            gcc-mips-o32)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
  7086  $as_echo_n "checking whether gcc supports o32... " >&6; }
  7087  echo 'int x;' >conftest.c
  7088  echo "$cc -mabi=32 -c conftest.c" >&5
  7089  if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
  7090    result=yes
  7091  else
  7092    cat conftest.out >&5
  7093    if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
  7094      result=yes
  7095    else
  7096      result=no
  7097    fi
  7098  fi
  7099  rm -f conftest.*
  7100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  7101  $as_echo "$result" >&6; }
  7102  if test $result = yes; then
  7103    :
  7104  else
  7105    testlist_pass=no
  7106  fi
  7107   ;;
  7108            hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
  7109  $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
  7110  result=no
  7111  cat >conftest.s <<EOF
  7112  	.level 2.0
  7113  EOF
  7114  gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
  7115  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7116    (eval $gmp_compile) 2>&5
  7117    ac_status=$?
  7118    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7119    test $ac_status = 0; }; then
  7120    result=yes
  7121  else
  7122    echo "failed program was" >&5
  7123    cat conftest.s >&5
  7124  fi
  7125  rm -f conftest*
  7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  7127  $as_echo "$result" >&6; }
  7128  if test "$result" = yes; then
  7129    :
  7130  else
  7131    testlist_pass=no
  7132  fi
  7133   ;;
  7134            sizeof*)       echo "configure: testlist $tst" >&5
  7135  gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
  7136  gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
  7137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
  7138  $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
  7139  cat >conftest.c <<EOF
  7140  int
  7141  main ()
  7142  {
  7143    static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
  7144    test_array[0] = 0;
  7145    return 0;
  7146  }
  7147  EOF
  7148  gmp_c_testlist_sizeof=no
  7149  gmp_compile="$cc $cflags -c conftest.c >&5"
  7150  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7151    (eval $gmp_compile) 2>&5
  7152    ac_status=$?
  7153    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7154    test $ac_status = 0; }; then
  7155    gmp_c_testlist_sizeof=yes
  7156  fi
  7157  rm -f conftest*
  7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
  7159  $as_echo "$gmp_c_testlist_sizeof" >&6; }
  7160  if test $gmp_c_testlist_sizeof = yes; then
  7161    :
  7162  else
  7163    testlist_pass=no
  7164  fi
  7165   ;;
  7166            esac
  7167            if test $testlist_pass = no; then break; fi
  7168          done
  7169  
  7170          if test $testlist_pass = yes; then
  7171            found_compiler=yes
  7172            break
  7173          fi
  7174        done
  7175  
  7176        if test $found_compiler = yes; then break; fi
  7177      done
  7178  
  7179      if test $found_compiler = yes; then break; fi
  7180    done
  7181  
  7182    if test $found_compiler = yes; then break; fi
  7183  done
  7184  
  7185  
  7186  # If we recognised the CPU, as indicated by $path being set, then insist
  7187  # that we have a working compiler, either from our $cclist choices or from
  7188  # $CC.  We can't let AC_PROG_CC look around for a compiler because it might
  7189  # find one that we've rejected (for not supporting the modes our asm code
  7190  # demands, etc).
  7191  #
  7192  # If we didn't recognise the CPU (and this includes host_cpu=none), then
  7193  # fall through and let AC_PROG_CC look around for a compiler too.  This is
  7194  # mostly in the interests of following a standard autoconf setup, after all
  7195  # we've already tested cc and gcc adequately (hopefully).  As of autoconf
  7196  # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
  7197  # C on MS-DOS systems).
  7198  #
  7199  if test $found_compiler = no && test -n "$path"; then
  7200    as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5
  7201  fi
  7202  
  7203  case $host in
  7204    i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*)
  7205      # If the user asked for a fat build, override the path and flags set above
  7206      if test $enable_fat = yes; then
  7207        gcc_cflags_cpu=""
  7208        gcc_cflags_arch=""
  7209  
  7210        fat_functions="add_n addmul_1 bdiv_dbm1c com cnd_add_n cnd_sub_n
  7211  		     copyd copyi dive_1 divrem_1
  7212  		     gcd_1 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2
  7213  		     mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1
  7214  		     mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1
  7215  		     redc_2 rshift sqr_basecase sub_n submul_1"
  7216  
  7217        if test "$abi" = 32; then
  7218  	extra_functions="$extra_functions fat fat_entry"
  7219  	path="x86/fat x86"
  7220  	fat_path="x86 x86/fat x86/i486
  7221  		  x86/k6 x86/k6/mmx x86/k6/k62mmx
  7222  		  x86/k7 x86/k7/mmx
  7223  		  x86/k8 x86/k10 x86/bobcat
  7224  		  x86/pentium x86/pentium/mmx
  7225  		  x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
  7226  		  x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2
  7227  		  x86/core2 x86/coreinhm x86/coreisbr
  7228  		  x86/atom x86/atom/mmx x86/atom/sse2 x86/nano"
  7229        fi
  7230  
  7231        if test "$abi" = 64; then
  7232  	gcc_64_cflags=""
  7233  	extra_functions_64="$extra_functions_64 fat fat_entry"
  7234  	path_64="x86_64/fat x86_64"
  7235  	fat_path="x86_64 x86_64/fat
  7236  		  x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bobcat x86_64/pentium4
  7237  		  x86_64/core2 x86_64/coreinhm x86_64/coreisbr x86_64/coreihwl
  7238  		  x86_64/coreibwl x86_64/skylake x86_64/atom x86_64/silvermont
  7239  		  x86_64/nano"
  7240  	fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n"
  7241        fi
  7242  
  7243        fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
  7244  		      SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD
  7245  		      BMOD_1_TO_MOD_1_THRESHOLD"
  7246      fi
  7247      ;;
  7248  esac
  7249  
  7250  
  7251  if test $found_compiler = yes; then
  7252  
  7253    # If we're creating CFLAGS, then look for optional additions.  If the user
  7254    # set CFLAGS then leave it alone.
  7255    #
  7256    if test "$test_CFLAGS" != set; then
  7257                            eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
  7258      test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
  7259  
  7260      for opt in $optlist; do
  7261                               eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
  7262        test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
  7263        test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
  7264  
  7265        for flag in $optflags; do
  7266  
  7267  	# ~ represents a space in an option spec
  7268          flag=`echo "$flag" | tr '~' ' '`
  7269  
  7270          case $flag in
  7271            -march=pentium4 | -march=k8)
  7272              # For -march settings which enable SSE2 we exclude certain bad
  7273              # gcc versions and we need an OS knowing how to save xmm regs.
  7274              #
  7275              # This is only for ABI=32, any 64-bit gcc is good and any OS
  7276              # knowing x86_64 will know xmm.
  7277              #
  7278              # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
  7279              # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior).  But
  7280              # it doesn't hurt to run it anyway, sharing code with the
  7281              # pentium4 case.
  7282              #
  7283              if test "$abi" = 32; then
  7284                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
  7285  $as_echo_n "checking whether gcc is good for sse2... " >&6; }
  7286  case `$cc $cflags $cppflags -dumpversion` in
  7287    3.[012] | 3.[012].*) result=no ;;
  7288    *)                     result=yes ;;
  7289  esac
  7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  7291  $as_echo "$result" >&6; }
  7292  if test "$result" = yes; then
  7293    :
  7294  else
  7295    continue
  7296  fi
  7297  
  7298                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
  7299  $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
  7300  if ${gmp_cv_os_x86_xmm+:} false; then :
  7301    $as_echo_n "(cached) " >&6
  7302  else
  7303    if test "$build" = "$host"; then
  7304    # remove anything that might look like compiler output to our "||" expression
  7305    rm -f conftest* a.out b.out a.exe a_out.exe
  7306    cat >conftest.s <<EOF
  7307  	.text
  7308  main:
  7309  _main:
  7310  	.globl	main
  7311  	.globl	_main
  7312  	.byte	0x0f, 0x57, 0xc0
  7313  	xorl	%eax, %eax
  7314  	ret
  7315  EOF
  7316    gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
  7317    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7318    (eval $gmp_compile) 2>&5
  7319    ac_status=$?
  7320    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7321    test $ac_status = 0; }; then
  7322      if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7323    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7324    (eval $ac_try) 2>&5
  7325    ac_status=$?
  7326    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7327    test $ac_status = 0; }; }; then
  7328        gmp_cv_os_x86_xmm=yes
  7329      else
  7330        gmp_cv_os_x86_xmm=no
  7331      fi
  7332    else
  7333      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
  7334  $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
  7335    fi
  7336    rm -f conftest*
  7337  fi
  7338  
  7339  if test -z "$gmp_cv_os_x86_xmm"; then
  7340    case $host_os in
  7341      freebsd[123] | freebsd[123].*)
  7342        gmp_cv_os_x86_xmm=no ;;
  7343      freebsd*)
  7344        gmp_cv_os_x86_xmm=yes ;;
  7345      *)
  7346        gmp_cv_os_x86_xmm=probably ;;
  7347    esac
  7348  fi
  7349  
  7350  fi
  7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
  7352  $as_echo "$gmp_cv_os_x86_xmm" >&6; }
  7353  
  7354  if test "$gmp_cv_os_x86_xmm" = probably; then
  7355    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
  7356  $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
  7357    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
  7358  $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
  7359  fi
  7360  
  7361  case $gmp_cv_os_x86_xmm in
  7362  no)
  7363    continue
  7364    ;;
  7365  *)
  7366  
  7367    ;;
  7368  esac
  7369  
  7370              fi
  7371              ;;
  7372            -no-cpp-precomp)
  7373              # special check, avoiding a warning
  7374              if test "$ccbase" = gcc; then
  7375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
  7376  $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
  7377    result=no
  7378    cat >conftest.c <<EOF
  7379  int main () { return 0; }
  7380  EOF
  7381    gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
  7382    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7383    (eval $gmp_compile) 2>&5
  7384    ac_status=$?
  7385    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7386    test $ac_status = 0; }; then
  7387      if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
  7388      else
  7389        result=yes
  7390      fi
  7391    fi
  7392    cat conftest.out >&5
  7393    rm -f conftest* a.out b.out a.exe a_out.exe
  7394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  7395  $as_echo "$result" >&6; }
  7396    if test "$result" = yes; then
  7397        cflags="$cflags $flag"
  7398                                     break
  7399    else
  7400        continue
  7401    fi
  7402  fi
  7403  
  7404              ;;
  7405            -Wa,-m*)
  7406              case $host in
  7407                alpha*-*-*)
  7408                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
  7409  $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
  7410  result=no
  7411  cat >conftest.c <<EOF
  7412  int main () {}
  7413  EOF
  7414  gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
  7415  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7416    (eval $gmp_compile) 2>&5
  7417    ac_status=$?
  7418    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7419    test $ac_status = 0; }; then
  7420    if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
  7421    else
  7422      result=yes
  7423    fi
  7424  fi
  7425  cat conftest.out >&5
  7426  rm -f conftest*
  7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  7428  $as_echo "$result" >&6; }
  7429  if test "$result" = yes; then
  7430    :
  7431  else
  7432    continue
  7433  fi
  7434  
  7435                ;;
  7436              esac
  7437              ;;
  7438            -Wa,-oldas)
  7439              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
  7440  $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
  7441  result=no
  7442  cat >conftest.c <<EOF
  7443  EOF
  7444  echo "with empty conftest.c" >&5
  7445  gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
  7446  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7447    (eval $gmp_compile) 2>&5
  7448    ac_status=$?
  7449    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7450    test $ac_status = 0; }; then : ;
  7451  else
  7452    # empty fails
  7453    gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
  7454    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7455    (eval $gmp_compile) 2>&5
  7456    ac_status=$?
  7457    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7458    test $ac_status = 0; }; then
  7459      # but with -Wa,-oldas it works
  7460      result=yes
  7461    fi
  7462  fi
  7463  rm -f conftest*
  7464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
  7465  $as_echo "$result" >&6; }
  7466  if test "$result" = yes; then
  7467    cflags="$cflags $flag"
  7468                               break
  7469  else
  7470    continue
  7471  fi
  7472  
  7473              ;;
  7474          esac
  7475  
  7476          { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
  7477  $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
  7478  gmp_prog_cc_works=yes
  7479  
  7480  # first see a simple "main()" works, then go on to other checks
  7481  if test "$gmp_prog_cc_works" = yes; then
  7482    # remove anything that might look like compiler output to our "||" expression
  7483    rm -f conftest* a.out b.out a.exe a_out.exe
  7484    cat >conftest.c <<EOF
  7485  
  7486  int main () { return 0; }
  7487  EOF
  7488    echo "Test compile: " >&5
  7489    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7490    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7491    (eval $gmp_compile) 2>&5
  7492    ac_status=$?
  7493    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7494    test $ac_status = 0; }; then
  7495      cc_works_part=yes
  7496      if test "$cross_compiling" = no; then
  7497        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7498    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7499    (eval $ac_try) 2>&5
  7500    ac_status=$?
  7501    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7502    test $ac_status = 0; }; }; then :;
  7503        else
  7504          cc_works_part=norun
  7505        fi
  7506      fi
  7507    else
  7508      cc_works_part=no
  7509    fi
  7510    if test "$cc_works_part" != yes; then
  7511      echo "failed program was:" >&5
  7512      cat conftest.c >&5
  7513    fi
  7514    rm -f conftest* a.out b.out a.exe a_out.exe
  7515    case $cc_works_part in
  7516      yes)
  7517  
  7518        ;;
  7519      no)
  7520        gmp_prog_cc_works="no"
  7521        ;;
  7522      norun)
  7523        gmp_prog_cc_works="no, program does not run"
  7524        ;;
  7525    esac
  7526  fi
  7527  
  7528  
  7529  
  7530  
  7531  if test "$gmp_prog_cc_works" = yes; then
  7532    # remove anything that might look like compiler output to our "||" expression
  7533    rm -f conftest* a.out b.out a.exe a_out.exe
  7534    cat >conftest.c <<EOF
  7535  /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
  7536     (without -maix64), hence detecting an unusable compiler */
  7537  void *g() { return (void *) 0; }
  7538  void *f() { return g(); }
  7539  
  7540  int main () { return 0; }
  7541  EOF
  7542    echo "Test compile: function pointer return" >&5
  7543    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7544    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7545    (eval $gmp_compile) 2>&5
  7546    ac_status=$?
  7547    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7548    test $ac_status = 0; }; then
  7549      cc_works_part=yes
  7550      if test "$cross_compiling" = no; then
  7551        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7552    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7553    (eval $ac_try) 2>&5
  7554    ac_status=$?
  7555    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7556    test $ac_status = 0; }; }; then :;
  7557        else
  7558          cc_works_part=norun
  7559        fi
  7560      fi
  7561    else
  7562      cc_works_part=no
  7563    fi
  7564    if test "$cc_works_part" != yes; then
  7565      echo "failed program was:" >&5
  7566      cat conftest.c >&5
  7567    fi
  7568    rm -f conftest* a.out b.out a.exe a_out.exe
  7569    case $cc_works_part in
  7570      yes)
  7571  
  7572        ;;
  7573      no)
  7574        gmp_prog_cc_works="no, function pointer return"
  7575        ;;
  7576      norun)
  7577        gmp_prog_cc_works="no, function pointer return, program does not run"
  7578        ;;
  7579    esac
  7580  fi
  7581  
  7582  
  7583  
  7584  
  7585  if test "$gmp_prog_cc_works" = yes; then
  7586    # remove anything that might look like compiler output to our "||" expression
  7587    rm -f conftest* a.out b.out a.exe a_out.exe
  7588    cat >conftest.c <<EOF
  7589  /* The following provokes an invalid instruction syntax from i386 gcc
  7590     -march=pentiumpro on Solaris 2.8.  The native sun assembler
  7591     requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
  7592     least) doesn't know.  */
  7593  int n;
  7594  int cmov () { return (n >= 0 ? n : 0); }
  7595  
  7596  int main () { return 0; }
  7597  EOF
  7598    echo "Test compile: cmov instruction" >&5
  7599    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7600    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7601    (eval $gmp_compile) 2>&5
  7602    ac_status=$?
  7603    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7604    test $ac_status = 0; }; then
  7605      cc_works_part=yes
  7606      if test "$cross_compiling" = no; then
  7607        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7608    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7609    (eval $ac_try) 2>&5
  7610    ac_status=$?
  7611    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7612    test $ac_status = 0; }; }; then :;
  7613        else
  7614          cc_works_part=norun
  7615        fi
  7616      fi
  7617    else
  7618      cc_works_part=no
  7619    fi
  7620    if test "$cc_works_part" != yes; then
  7621      echo "failed program was:" >&5
  7622      cat conftest.c >&5
  7623    fi
  7624    rm -f conftest* a.out b.out a.exe a_out.exe
  7625    case $cc_works_part in
  7626      yes)
  7627  
  7628        ;;
  7629      no)
  7630        gmp_prog_cc_works="no, cmov instruction"
  7631        ;;
  7632      norun)
  7633        gmp_prog_cc_works="no, cmov instruction, program does not run"
  7634        ;;
  7635    esac
  7636  fi
  7637  
  7638  
  7639  
  7640  
  7641  if test "$gmp_prog_cc_works" = yes; then
  7642    # remove anything that might look like compiler output to our "||" expression
  7643    rm -f conftest* a.out b.out a.exe a_out.exe
  7644    cat >conftest.c <<EOF
  7645  /* The following provokes a linker invocation problem with gcc 3.0.3
  7646     on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630".  The -mcpu=630
  7647     option causes gcc to incorrectly select the 32-bit libgcc.a, not
  7648     the 64-bit one, and consequently it misses out on the __fixunsdfdi
  7649     helper (double -> uint64 conversion).  */
  7650  double d;
  7651  unsigned long gcc303 () { return (unsigned long) d; }
  7652  
  7653  int main () { return 0; }
  7654  EOF
  7655    echo "Test compile: double -> ulong conversion" >&5
  7656    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7657    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7658    (eval $gmp_compile) 2>&5
  7659    ac_status=$?
  7660    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7661    test $ac_status = 0; }; then
  7662      cc_works_part=yes
  7663      if test "$cross_compiling" = no; then
  7664        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7665    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7666    (eval $ac_try) 2>&5
  7667    ac_status=$?
  7668    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7669    test $ac_status = 0; }; }; then :;
  7670        else
  7671          cc_works_part=norun
  7672        fi
  7673      fi
  7674    else
  7675      cc_works_part=no
  7676    fi
  7677    if test "$cc_works_part" != yes; then
  7678      echo "failed program was:" >&5
  7679      cat conftest.c >&5
  7680    fi
  7681    rm -f conftest* a.out b.out a.exe a_out.exe
  7682    case $cc_works_part in
  7683      yes)
  7684  
  7685        ;;
  7686      no)
  7687        gmp_prog_cc_works="no, double -> ulong conversion"
  7688        ;;
  7689      norun)
  7690        gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
  7691        ;;
  7692    esac
  7693  fi
  7694  
  7695  
  7696  
  7697  
  7698  if test "$gmp_prog_cc_works" = yes; then
  7699    # remove anything that might look like compiler output to our "||" expression
  7700    rm -f conftest* a.out b.out a.exe a_out.exe
  7701    cat >conftest.c <<EOF
  7702  /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
  7703     the assembler doesn't know hppa 2.0 instructions.  fneg is a 2.0
  7704     instruction, and a negation like this comes out using it.  */
  7705  double fneg_data;
  7706  unsigned long fneg () { return -fneg_data; }
  7707  
  7708  int main () { return 0; }
  7709  EOF
  7710    echo "Test compile: double negation" >&5
  7711    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7712    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7713    (eval $gmp_compile) 2>&5
  7714    ac_status=$?
  7715    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7716    test $ac_status = 0; }; then
  7717      cc_works_part=yes
  7718      if test "$cross_compiling" = no; then
  7719        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7720    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7721    (eval $ac_try) 2>&5
  7722    ac_status=$?
  7723    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7724    test $ac_status = 0; }; }; then :;
  7725        else
  7726          cc_works_part=norun
  7727        fi
  7728      fi
  7729    else
  7730      cc_works_part=no
  7731    fi
  7732    if test "$cc_works_part" != yes; then
  7733      echo "failed program was:" >&5
  7734      cat conftest.c >&5
  7735    fi
  7736    rm -f conftest* a.out b.out a.exe a_out.exe
  7737    case $cc_works_part in
  7738      yes)
  7739  
  7740        ;;
  7741      no)
  7742        gmp_prog_cc_works="no, double negation"
  7743        ;;
  7744      norun)
  7745        gmp_prog_cc_works="no, double negation, program does not run"
  7746        ;;
  7747    esac
  7748  fi
  7749  
  7750  
  7751  
  7752  
  7753  if test "$gmp_prog_cc_works" = yes; then
  7754    # remove anything that might look like compiler output to our "||" expression
  7755    rm -f conftest* a.out b.out a.exe a_out.exe
  7756    cat >conftest.c <<EOF
  7757  /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
  7758     (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
  7759     those instructions.  Not sure how much of the gmp code will come out
  7760     wanting sse2, but it's easiest to reject an option we know is bad.  */
  7761  double ftod_data;
  7762  float ftod () { return (float) ftod_data; }
  7763  
  7764  int main () { return 0; }
  7765  EOF
  7766    echo "Test compile: double -> float conversion" >&5
  7767    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7768    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7769    (eval $gmp_compile) 2>&5
  7770    ac_status=$?
  7771    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7772    test $ac_status = 0; }; then
  7773      cc_works_part=yes
  7774      if test "$cross_compiling" = no; then
  7775        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7776    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7777    (eval $ac_try) 2>&5
  7778    ac_status=$?
  7779    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7780    test $ac_status = 0; }; }; then :;
  7781        else
  7782          cc_works_part=norun
  7783        fi
  7784      fi
  7785    else
  7786      cc_works_part=no
  7787    fi
  7788    if test "$cc_works_part" != yes; then
  7789      echo "failed program was:" >&5
  7790      cat conftest.c >&5
  7791    fi
  7792    rm -f conftest* a.out b.out a.exe a_out.exe
  7793    case $cc_works_part in
  7794      yes)
  7795  
  7796        ;;
  7797      no)
  7798        gmp_prog_cc_works="no, double -> float conversion"
  7799        ;;
  7800      norun)
  7801        gmp_prog_cc_works="no, double -> float conversion, program does not run"
  7802        ;;
  7803    esac
  7804  fi
  7805  
  7806  
  7807  
  7808  
  7809  if test "$gmp_prog_cc_works" = yes; then
  7810    # remove anything that might look like compiler output to our "||" expression
  7811    rm -f conftest* a.out b.out a.exe a_out.exe
  7812    cat >conftest.c <<EOF
  7813  /* The following provokes an internal compiler error from gcc version
  7814     "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
  7815     values being spilled into floating point registers.  The problem doesn't
  7816     show up all the time, but has occurred enough in GMP for us to reject
  7817     this compiler+flags.  */
  7818  #include <string.h>  /* for memcpy */
  7819  struct try_t
  7820  {
  7821   char dst[2];
  7822   char size;
  7823   long d0, d1, d2, d3, d4, d5, d6;
  7824   char overlap;
  7825  };
  7826  struct try_t param[6];
  7827  int
  7828  param_init ()
  7829  {
  7830   struct try_t *p;
  7831   memcpy (p, &param[ 2 ], sizeof (*p));
  7832   memcpy (p, &param[ 2 ], sizeof (*p));
  7833   p->size = 2;
  7834   memcpy (p, &param[ 1 ], sizeof (*p));
  7835   p->dst[0] = 1;
  7836   p->overlap = 2;
  7837   memcpy (p, &param[ 3 ], sizeof (*p));
  7838   p->dst[0] = 1;
  7839   p->overlap = 8;
  7840   memcpy (p, &param[ 4 ], sizeof (*p));
  7841   memcpy (p, &param[ 4 ], sizeof (*p));
  7842   p->overlap = 8;
  7843   memcpy (p, &param[ 5 ], sizeof (*p));
  7844   memcpy (p, &param[ 5 ], sizeof (*p));
  7845   memcpy (p, &param[ 5 ], sizeof (*p));
  7846   return 0;
  7847  }
  7848  
  7849  int main () { return 0; }
  7850  EOF
  7851    echo "Test compile: gnupro alpha ev6 char spilling" >&5
  7852    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7853    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7854    (eval $gmp_compile) 2>&5
  7855    ac_status=$?
  7856    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7857    test $ac_status = 0; }; then
  7858      cc_works_part=yes
  7859      if test "$cross_compiling" = no; then
  7860        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7861    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7862    (eval $ac_try) 2>&5
  7863    ac_status=$?
  7864    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7865    test $ac_status = 0; }; }; then :;
  7866        else
  7867          cc_works_part=norun
  7868        fi
  7869      fi
  7870    else
  7871      cc_works_part=no
  7872    fi
  7873    if test "$cc_works_part" != yes; then
  7874      echo "failed program was:" >&5
  7875      cat conftest.c >&5
  7876    fi
  7877    rm -f conftest* a.out b.out a.exe a_out.exe
  7878    case $cc_works_part in
  7879      yes)
  7880  
  7881        ;;
  7882      no)
  7883        gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
  7884        ;;
  7885      norun)
  7886        gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
  7887        ;;
  7888    esac
  7889  fi
  7890  
  7891  
  7892  
  7893  
  7894  # __builtin_alloca is not available everywhere, check it exists before
  7895  # seeing that it works
  7896  if test "$gmp_prog_cc_works" = yes; then
  7897    # remove anything that might look like compiler output to our "||" expression
  7898    rm -f conftest* a.out b.out a.exe a_out.exe
  7899    cat >conftest.c <<EOF
  7900  int k; int foo () { __builtin_alloca (k); }
  7901  EOF
  7902    echo "Test compile: __builtin_alloca availability" >&5
  7903    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7904    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7905    (eval $gmp_compile) 2>&5
  7906    ac_status=$?
  7907    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7908    test $ac_status = 0; }; then
  7909      cc_works_part=yes
  7910      if test "$cross_compiling" = no; then
  7911        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7912    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7913    (eval $ac_try) 2>&5
  7914    ac_status=$?
  7915    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7916    test $ac_status = 0; }; }; then :;
  7917        else
  7918          cc_works_part=norun
  7919        fi
  7920      fi
  7921    else
  7922      cc_works_part=no
  7923    fi
  7924    if test "$cc_works_part" != yes; then
  7925      echo "failed program was:" >&5
  7926      cat conftest.c >&5
  7927    fi
  7928    rm -f conftest* a.out b.out a.exe a_out.exe
  7929    case $cc_works_part in
  7930      yes)
  7931        if test "$gmp_prog_cc_works" = yes; then
  7932    # remove anything that might look like compiler output to our "||" expression
  7933    rm -f conftest* a.out b.out a.exe a_out.exe
  7934    cat >conftest.c <<EOF
  7935  /* The following provokes an internal compiler error from Itanium HP-UX cc
  7936      under +O2 or higher.  We use this sort of code in mpn/generic/mul_fft.c. */
  7937  int k;
  7938  int foo ()
  7939  {
  7940    int i, **a;
  7941    a = __builtin_alloca (k);
  7942    for (i = 0; i <= k; i++)
  7943      a[i] = __builtin_alloca (1 << i);
  7944  }
  7945  
  7946  int main () { return 0; }
  7947  EOF
  7948    echo "Test compile: alloca array" >&5
  7949    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  7950    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  7951    (eval $gmp_compile) 2>&5
  7952    ac_status=$?
  7953    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7954    test $ac_status = 0; }; then
  7955      cc_works_part=yes
  7956      if test "$cross_compiling" = no; then
  7957        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  7958    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  7959    (eval $ac_try) 2>&5
  7960    ac_status=$?
  7961    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7962    test $ac_status = 0; }; }; then :;
  7963        else
  7964          cc_works_part=norun
  7965        fi
  7966      fi
  7967    else
  7968      cc_works_part=no
  7969    fi
  7970    if test "$cc_works_part" != yes; then
  7971      echo "failed program was:" >&5
  7972      cat conftest.c >&5
  7973    fi
  7974    rm -f conftest* a.out b.out a.exe a_out.exe
  7975    case $cc_works_part in
  7976      yes)
  7977  
  7978        ;;
  7979      no)
  7980        gmp_prog_cc_works="no, alloca array"
  7981        ;;
  7982      norun)
  7983        gmp_prog_cc_works="no, alloca array, program does not run"
  7984        ;;
  7985    esac
  7986  fi
  7987  
  7988  
  7989  
  7990        ;;
  7991      no)
  7992  
  7993        ;;
  7994      norun)
  7995  
  7996        ;;
  7997    esac
  7998  fi
  7999  
  8000  
  8001  if test "$gmp_prog_cc_works" = yes; then
  8002    # remove anything that might look like compiler output to our "||" expression
  8003    rm -f conftest* a.out b.out a.exe a_out.exe
  8004    cat >conftest.c <<EOF
  8005  /* The following provokes an internal error from the assembler on
  8006     power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
  8007     results in "Internal error related to the source program domain".
  8008  
  8009     For reference it seems to be the combination of nabs+fcirz which is bad,
  8010     not either alone.  This sort of thing occurs in mpz/get_str.c with the
  8011     way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
  8012     if that code changes to a scaled-integer style then we won't need this
  8013     test.  */
  8014  
  8015  double fp[1];
  8016  int x;
  8017  int f ()
  8018  {
  8019    int a;
  8020    a = (x >= 0 ? x : -x);
  8021    return a * fp[0];
  8022  }
  8023  
  8024  int main () { return 0; }
  8025  EOF
  8026    echo "Test compile: abs int -> double conversion" >&5
  8027    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  8028    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8029    (eval $gmp_compile) 2>&5
  8030    ac_status=$?
  8031    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8032    test $ac_status = 0; }; then
  8033      cc_works_part=yes
  8034      if test "$cross_compiling" = no; then
  8035        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  8036    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8037    (eval $ac_try) 2>&5
  8038    ac_status=$?
  8039    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8040    test $ac_status = 0; }; }; then :;
  8041        else
  8042          cc_works_part=norun
  8043        fi
  8044      fi
  8045    else
  8046      cc_works_part=no
  8047    fi
  8048    if test "$cc_works_part" != yes; then
  8049      echo "failed program was:" >&5
  8050      cat conftest.c >&5
  8051    fi
  8052    rm -f conftest* a.out b.out a.exe a_out.exe
  8053    case $cc_works_part in
  8054      yes)
  8055  
  8056        ;;
  8057      no)
  8058        gmp_prog_cc_works="no, abs int -> double conversion"
  8059        ;;
  8060      norun)
  8061        gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
  8062        ;;
  8063    esac
  8064  fi
  8065  
  8066  
  8067  
  8068  
  8069  if test "$gmp_prog_cc_works" = yes; then
  8070    # remove anything that might look like compiler output to our "||" expression
  8071    rm -f conftest* a.out b.out a.exe a_out.exe
  8072    cat >conftest.c <<EOF
  8073  /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
  8074     Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
  8075     1666 to segfault with e.g., -O2 -mpowerpc64.  */
  8076  
  8077  #if defined (__GNUC__) && ! defined (__cplusplus)
  8078  typedef unsigned long long t1;typedef t1*t2;
  8079  void g(){}
  8080  void h(){}
  8081  static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
  8082  {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
  8083  void f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
  8084  for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
  8085  #else
  8086  int dummy;
  8087  #endif
  8088  
  8089  int main () { return 0; }
  8090  EOF
  8091    echo "Test compile: long long reliability test 1" >&5
  8092    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  8093    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8094    (eval $gmp_compile) 2>&5
  8095    ac_status=$?
  8096    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8097    test $ac_status = 0; }; then
  8098      cc_works_part=yes
  8099      if test "$cross_compiling" = no; then
  8100        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  8101    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8102    (eval $ac_try) 2>&5
  8103    ac_status=$?
  8104    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8105    test $ac_status = 0; }; }; then :;
  8106        else
  8107          cc_works_part=norun
  8108        fi
  8109      fi
  8110    else
  8111      cc_works_part=no
  8112    fi
  8113    if test "$cc_works_part" != yes; then
  8114      echo "failed program was:" >&5
  8115      cat conftest.c >&5
  8116    fi
  8117    rm -f conftest* a.out b.out a.exe a_out.exe
  8118    case $cc_works_part in
  8119      yes)
  8120  
  8121        ;;
  8122      no)
  8123        gmp_prog_cc_works="no, long long reliability test 1"
  8124        ;;
  8125      norun)
  8126        gmp_prog_cc_works="no, long long reliability test 1, program does not run"
  8127        ;;
  8128    esac
  8129  fi
  8130  
  8131  
  8132  
  8133  
  8134  if test "$gmp_prog_cc_works" = yes; then
  8135    # remove anything that might look like compiler output to our "||" expression
  8136    rm -f conftest* a.out b.out a.exe a_out.exe
  8137    cat >conftest.c <<EOF
  8138  /* The following provokes an internal compiler error on powerpc-apple-darwin.
  8139     Extracted from mpz/cfdiv_q_2exp.c.  Causes Apple's gcc 3.3 build 1640 and
  8140     1666 to get an ICE with -O1 -mpowerpc64.  */
  8141  
  8142  #if defined (__GNUC__) && ! defined (__cplusplus)
  8143  int g();
  8144  void f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
  8145  int g(){return 0;}
  8146  #else
  8147  int dummy;
  8148  #endif
  8149  
  8150  int main () { return 0; }
  8151  EOF
  8152    echo "Test compile: long long reliability test 2" >&5
  8153    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  8154    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8155    (eval $gmp_compile) 2>&5
  8156    ac_status=$?
  8157    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8158    test $ac_status = 0; }; then
  8159      cc_works_part=yes
  8160      if test "$cross_compiling" = no; then
  8161        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  8162    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8163    (eval $ac_try) 2>&5
  8164    ac_status=$?
  8165    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8166    test $ac_status = 0; }; }; then :;
  8167        else
  8168          cc_works_part=norun
  8169        fi
  8170      fi
  8171    else
  8172      cc_works_part=no
  8173    fi
  8174    if test "$cc_works_part" != yes; then
  8175      echo "failed program was:" >&5
  8176      cat conftest.c >&5
  8177    fi
  8178    rm -f conftest* a.out b.out a.exe a_out.exe
  8179    case $cc_works_part in
  8180      yes)
  8181  
  8182        ;;
  8183      no)
  8184        gmp_prog_cc_works="no, long long reliability test 2"
  8185        ;;
  8186      norun)
  8187        gmp_prog_cc_works="no, long long reliability test 2, program does not run"
  8188        ;;
  8189    esac
  8190  fi
  8191  
  8192  
  8193  
  8194  
  8195  if test "$gmp_prog_cc_works" = yes; then
  8196    # remove anything that might look like compiler output to our "||" expression
  8197    rm -f conftest* a.out b.out a.exe a_out.exe
  8198    cat >conftest.c <<EOF
  8199  /* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under
  8200     -O2 -march=amdfam10.  We call helper functions here "open" and "close" in
  8201     order for linking to succeed.  */
  8202  
  8203  #if defined (__GNUC__) && ! defined (__cplusplus)
  8204  int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){
  8205  __builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl
  8206  (up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}}
  8207  #else
  8208  int dummy;
  8209  #endif
  8210  
  8211  int main () { return 0; }
  8212  EOF
  8213    echo "Test compile: freebsd hacked gcc" >&5
  8214    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  8215    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8216    (eval $gmp_compile) 2>&5
  8217    ac_status=$?
  8218    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8219    test $ac_status = 0; }; then
  8220      cc_works_part=yes
  8221      if test "$cross_compiling" = no; then
  8222        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  8223    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8224    (eval $ac_try) 2>&5
  8225    ac_status=$?
  8226    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8227    test $ac_status = 0; }; }; then :;
  8228        else
  8229          cc_works_part=norun
  8230        fi
  8231      fi
  8232    else
  8233      cc_works_part=no
  8234    fi
  8235    if test "$cc_works_part" != yes; then
  8236      echo "failed program was:" >&5
  8237      cat conftest.c >&5
  8238    fi
  8239    rm -f conftest* a.out b.out a.exe a_out.exe
  8240    case $cc_works_part in
  8241      yes)
  8242  
  8243        ;;
  8244      no)
  8245        gmp_prog_cc_works="no, freebsd hacked gcc"
  8246        ;;
  8247      norun)
  8248        gmp_prog_cc_works="no, freebsd hacked gcc, program does not run"
  8249        ;;
  8250    esac
  8251  fi
  8252  
  8253  
  8254  
  8255  
  8256  if test "$gmp_prog_cc_works" = yes; then
  8257    # remove anything that might look like compiler output to our "||" expression
  8258    rm -f conftest* a.out b.out a.exe a_out.exe
  8259    cat >conftest.c <<EOF
  8260  /* The following is mis-compiled by HP ia-64 cc version
  8261          cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
  8262     under "cc +O3", both in +DD32 and +DD64 modes.  The mpn_lshift_com gets
  8263     inlined and its return value somehow botched to be 0 instead of 1.  This
  8264     arises in the real mpn_lshift_com in mul_fft.c.  A lower optimization
  8265     level, like +O2 seems ok.  This code needs to be run to show the problem,
  8266     but that's fine, the offending cc is a native-only compiler so we don't
  8267     have to worry about cross compiling.  */
  8268  
  8269  #if ! defined (__cplusplus)
  8270  unsigned long
  8271  lshift_com (rp, up, n, cnt)
  8272    unsigned long *rp;
  8273    unsigned long *up;
  8274    long n;
  8275    unsigned cnt;
  8276  {
  8277    unsigned long retval, high_limb, low_limb;
  8278    unsigned tnc;
  8279    long i;
  8280    tnc = 8 * sizeof (unsigned long) - cnt;
  8281    low_limb = *up++;
  8282    retval = low_limb >> tnc;
  8283    high_limb = low_limb << cnt;
  8284    for (i = n - 1; i != 0; i--)
  8285      {
  8286        low_limb = *up++;
  8287        *rp++ = ~(high_limb | (low_limb >> tnc));
  8288        high_limb = low_limb << cnt;
  8289      }
  8290    return retval;
  8291  }
  8292  int
  8293  main ()
  8294  {
  8295    unsigned long cy, rp[2], up[2];
  8296    up[0] = ~ 0L;
  8297    up[1] = 0;
  8298    cy = lshift_com (rp, up, 2L, 1);
  8299    if (cy != 1L)
  8300      return 1;
  8301    return 0;
  8302  }
  8303  #else
  8304  int
  8305  main ()
  8306  {
  8307    return 0;
  8308  }
  8309  #endif
  8310  
  8311  EOF
  8312    echo "Test compile: mpn_lshift_com optimization" >&5
  8313    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  8314    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8315    (eval $gmp_compile) 2>&5
  8316    ac_status=$?
  8317    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8318    test $ac_status = 0; }; then
  8319      cc_works_part=yes
  8320      if test "$cross_compiling" = no; then
  8321        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  8322    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8323    (eval $ac_try) 2>&5
  8324    ac_status=$?
  8325    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8326    test $ac_status = 0; }; }; then :;
  8327        else
  8328          cc_works_part=norun
  8329        fi
  8330      fi
  8331    else
  8332      cc_works_part=no
  8333    fi
  8334    if test "$cc_works_part" != yes; then
  8335      echo "failed program was:" >&5
  8336      cat conftest.c >&5
  8337    fi
  8338    rm -f conftest* a.out b.out a.exe a_out.exe
  8339    case $cc_works_part in
  8340      yes)
  8341  
  8342        ;;
  8343      no)
  8344        gmp_prog_cc_works="no, mpn_lshift_com optimization"
  8345        ;;
  8346      norun)
  8347        gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
  8348        ;;
  8349    esac
  8350  fi
  8351  
  8352  
  8353  
  8354  if test "$gmp_prog_cc_works" = yes; then
  8355    # remove anything that might look like compiler output to our "||" expression
  8356    rm -f conftest* a.out b.out a.exe a_out.exe
  8357    cat >conftest.c <<EOF
  8358  /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
  8359      "icc -O3",  After several calls, the function writes partial garbage to
  8360      the result vector.  Perhaps relates to the chk.a.nc insn.  This code needs
  8361      to be run to show the problem, but that's fine, the offending cc is a
  8362      native-only compiler so we don't have to worry about cross compiling.  */
  8363  
  8364  #if ! defined (__cplusplus)
  8365  #include <stdlib.h>
  8366  void
  8367  lshift_com (rp, up, n, cnt)
  8368    unsigned long *rp;
  8369    unsigned long *up;
  8370    long n;
  8371    unsigned cnt;
  8372  {
  8373    unsigned long high_limb, low_limb;
  8374    unsigned tnc;
  8375    long i;
  8376    up += n;
  8377    rp += n;
  8378    tnc = 8 * sizeof (unsigned long) - cnt;
  8379    low_limb = *--up;
  8380    high_limb = low_limb << cnt;
  8381    for (i = n - 1; i != 0; i--)
  8382      {
  8383        low_limb = *--up;
  8384        *--rp = ~(high_limb | (low_limb >> tnc));
  8385        high_limb = low_limb << cnt;
  8386      }
  8387    *--rp = ~high_limb;
  8388  }
  8389  int
  8390  main ()
  8391  {
  8392    unsigned long *r, *r2;
  8393    unsigned long a[88 + 1];
  8394    long i;
  8395    for (i = 0; i < 88 + 1; i++)
  8396      a[i] = ~0L;
  8397    r = malloc (10000 * sizeof (unsigned long));
  8398    r2 = r;
  8399    for (i = 0; i < 528; i += 23)
  8400      {
  8401        lshift_com (r2, a,
  8402  		  i / (8 * sizeof (unsigned long)) + 1,
  8403  		  i % (8 * sizeof (unsigned long)));
  8404        r2 += 88 + 1;
  8405      }
  8406    if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
  8407        r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
  8408      abort ();
  8409    free (r);
  8410    return 0;
  8411  }
  8412  #else
  8413  int
  8414  main ()
  8415  {
  8416    return 0;
  8417  }
  8418  #endif
  8419  
  8420  EOF
  8421    echo "Test compile: mpn_lshift_com optimization 2" >&5
  8422    gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
  8423    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8424    (eval $gmp_compile) 2>&5
  8425    ac_status=$?
  8426    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8427    test $ac_status = 0; }; then
  8428      cc_works_part=yes
  8429      if test "$cross_compiling" = no; then
  8430        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
  8431    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  8432    (eval $ac_try) 2>&5
  8433    ac_status=$?
  8434    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8435    test $ac_status = 0; }; }; then :;
  8436        else
  8437          cc_works_part=norun
  8438        fi
  8439      fi
  8440    else
  8441      cc_works_part=no
  8442    fi
  8443    if test "$cc_works_part" != yes; then
  8444      echo "failed program was:" >&5
  8445      cat conftest.c >&5
  8446    fi
  8447    rm -f conftest* a.out b.out a.exe a_out.exe
  8448    case $cc_works_part in
  8449      yes)
  8450  
  8451        ;;
  8452      no)
  8453        gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
  8454        ;;
  8455      norun)
  8456        gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
  8457        ;;
  8458    esac
  8459  fi
  8460  
  8461  
  8462  
  8463  
  8464  # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
  8465  # by recent versions of gcc.
  8466  #
  8467  if test "$gmp_prog_cc_works" = yes; then
  8468    case $host in
  8469      i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
  8470        # this problem only arises in PIC code, so don't need to test when
  8471        # --disable-shared.  We don't necessarily have $enable_shared set to
  8472        # yes at this point, it will still be unset for the default (which is
  8473        # yes); hence the use of "!= no".
  8474        if test "$enable_shared" != no; then
  8475          echo "Testing gcc GOT with eax emitted" >&5
  8476  cat >conftest.c <<\EOF
  8477  int foo;
  8478  int bar () { return foo; }
  8479  EOF
  8480  tmp_got_emitted=no
  8481  gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
  8482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8483    (eval $gmp_compile) 2>&5
  8484    ac_status=$?
  8485    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8486    test $ac_status = 0; }; then
  8487    if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
  8488      tmp_got_emitted=yes
  8489    fi
  8490  fi
  8491  rm -f conftest.*
  8492  echo "Result: $tmp_got_emitted" >&5
  8493  if test "$tmp_got_emitted" = yes; then
  8494    echo "Testing gas GOT with eax good" >&5
  8495  cat >conftest.awk <<\EOF
  8496  BEGIN {
  8497    want[0]  = "001"
  8498    want[1]  = "043"
  8499    want[2]  = "105"
  8500    want[3]  = "147"
  8501    want[4]  = "211"
  8502    want[5]  = "253"
  8503    want[6]  = "315"
  8504    want[7]  = "357"
  8505  
  8506    want[8]  = "005"
  8507    want[9]  = "002"
  8508    want[10] = "000"
  8509    want[11] = "000"
  8510    want[12] = "000"
  8511  
  8512    want[13] = "376"
  8513    want[14] = "334"
  8514    want[15] = "272"
  8515    want[16] = "230"
  8516    want[17] = "166"
  8517    want[18] = "124"
  8518    want[19] = "062"
  8519    want[20] = "020"
  8520  
  8521    result = "yes"
  8522  }
  8523  {
  8524    for (f = 2; f <= NF; f++)
  8525      {
  8526        for (i = 0; i < 20; i++)
  8527          got[i] = got[i+1];
  8528        got[20] = $f;
  8529  
  8530        found = 1
  8531        for (i = 0; i < 21; i++)
  8532          if (got[i] != want[i])
  8533            {
  8534              found = 0
  8535              break
  8536            }
  8537        if (found)
  8538          {
  8539            result = "no"
  8540            exit
  8541          }
  8542      }
  8543  }
  8544  END {
  8545    print result
  8546  }
  8547  EOF
  8548  cat >conftest.s <<\EOF
  8549  	.text
  8550  	.byte	1, 35, 69, 103, 137, 171, 205, 239
  8551  	addl	$_GLOBAL_OFFSET_TABLE_, %eax
  8552  	.byte	254, 220, 186, 152, 118, 84, 50, 16
  8553  EOF
  8554  tmp_got_good=yes
  8555  gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
  8556  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  8557    (eval $gmp_compile) 2>&5
  8558    ac_status=$?
  8559    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8560    test $ac_status = 0; }; then
  8561    tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
  8562  fi
  8563  rm -f conftest.*
  8564  echo "Result: $tmp_got_good" >&5
  8565  if test "$tmp_got_good" = no; then
  8566    gmp_prog_cc_works="no, bad gas GOT with eax"
  8567  else
  8568    :
  8569  fi
  8570  
  8571  else
  8572    :
  8573  fi
  8574  
  8575        fi
  8576        ;;
  8577    esac
  8578  fi
  8579  
  8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
  8581  $as_echo "$gmp_prog_cc_works" >&6; }
  8582  case $gmp_prog_cc_works in
  8583    yes)
  8584      cflags="$cflags $flag"
  8585            break
  8586      ;;
  8587    *)
  8588  
  8589      ;;
  8590  esac
  8591  
  8592        done
  8593      done
  8594    fi
  8595  
  8596    ABI="$abi"
  8597    CC="$cc"
  8598    CFLAGS="$cflags"
  8599    CPPFLAGS="$cppflags"
  8600    eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI\"
  8601  
  8602    # Could easily have this in config.h too, if desired.
  8603    ABI_nodots=`echo $ABI | sed 's/\./_/'`
  8604  
  8605  echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
  8606  
  8607  
  8608  
  8609    # GMP_LDFLAGS substitution, selected according to ABI.
  8610    # These are needed on libgmp.la and libmp.la, but currently not on
  8611    # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
  8612    #
  8613                              eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
  8614    test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
  8615  
  8616  
  8617  
  8618  
  8619    # extra_functions, selected according to ABI
  8620                      eval tmp=\"\$extra_functions$abi1\"
  8621    test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
  8622    extra_functions="$tmp"
  8623  
  8624  
  8625    # Cycle counter, selected according to ABI.
  8626    #
  8627                      eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
  8628    test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
  8629    SPEED_CYCLECOUNTER_OBJ="$tmp"
  8630                      eval tmp=\"\$cyclecounter_size$abi1\"
  8631    test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
  8632    cyclecounter_size="$tmp"
  8633  
  8634    if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
  8635  
  8636  cat >>confdefs.h <<_ACEOF
  8637  #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
  8638  _ACEOF
  8639  
  8640    fi
  8641  
  8642  
  8643  
  8644    # Calling conventions checking, selected according to ABI.
  8645    #
  8646                      eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
  8647    test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
  8648    if test "$enable_assembly" = "yes"; then
  8649       CALLING_CONVENTIONS_OBJS="$tmp"
  8650    else
  8651       CALLING_CONVENTIONS_OBJS=""
  8652    fi
  8653  
  8654    if test -n "$CALLING_CONVENTIONS_OBJS"; then
  8655  
  8656  $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
  8657  
  8658    fi
  8659  
  8660  
  8661  fi
  8662  
  8663  
  8664  # If the user gave an MPN_PATH, use that verbatim, otherwise choose
  8665  # according to the ABI and add "generic".
  8666  #
  8667  if test -n "$MPN_PATH"; then
  8668    path="$MPN_PATH"
  8669  else
  8670                      eval tmp=\"\$path$abi1\"
  8671    test -n "$tmp" || eval tmp=\"\$path$abi2\"
  8672    path="$tmp generic"
  8673  fi
  8674  
  8675  
  8676  # Long long limb setup for gmp.h.
  8677  case $limb_chosen in
  8678  longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1"    ;;
  8679  *)        DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
  8680  esac
  8681  
  8682  
  8683  
  8684  # The C compiler and preprocessor, put into ANSI mode if possible.
  8685  ac_ext=c
  8686  ac_cpp='$CPP $CPPFLAGS'
  8687  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8688  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8689  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8690  if test -n "$ac_tool_prefix"; then
  8691    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  8692  set dummy ${ac_tool_prefix}gcc; ac_word=$2
  8693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8694  $as_echo_n "checking for $ac_word... " >&6; }
  8695  if ${ac_cv_prog_CC+:} false; then :
  8696    $as_echo_n "(cached) " >&6
  8697  else
  8698    if test -n "$CC"; then
  8699    ac_cv_prog_CC="$CC" # Let the user override the test.
  8700  else
  8701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8702  for as_dir in $PATH
  8703  do
  8704    IFS=$as_save_IFS
  8705    test -z "$as_dir" && as_dir=.
  8706      for ac_exec_ext in '' $ac_executable_extensions; do
  8707    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8708      ac_cv_prog_CC="${ac_tool_prefix}gcc"
  8709      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8710      break 2
  8711    fi
  8712  done
  8713    done
  8714  IFS=$as_save_IFS
  8715  
  8716  fi
  8717  fi
  8718  CC=$ac_cv_prog_CC
  8719  if test -n "$CC"; then
  8720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8721  $as_echo "$CC" >&6; }
  8722  else
  8723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8724  $as_echo "no" >&6; }
  8725  fi
  8726  
  8727  
  8728  fi
  8729  if test -z "$ac_cv_prog_CC"; then
  8730    ac_ct_CC=$CC
  8731    # Extract the first word of "gcc", so it can be a program name with args.
  8732  set dummy gcc; ac_word=$2
  8733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8734  $as_echo_n "checking for $ac_word... " >&6; }
  8735  if ${ac_cv_prog_ac_ct_CC+:} false; then :
  8736    $as_echo_n "(cached) " >&6
  8737  else
  8738    if test -n "$ac_ct_CC"; then
  8739    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8740  else
  8741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8742  for as_dir in $PATH
  8743  do
  8744    IFS=$as_save_IFS
  8745    test -z "$as_dir" && as_dir=.
  8746      for ac_exec_ext in '' $ac_executable_extensions; do
  8747    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8748      ac_cv_prog_ac_ct_CC="gcc"
  8749      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8750      break 2
  8751    fi
  8752  done
  8753    done
  8754  IFS=$as_save_IFS
  8755  
  8756  fi
  8757  fi
  8758  ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8759  if test -n "$ac_ct_CC"; then
  8760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  8761  $as_echo "$ac_ct_CC" >&6; }
  8762  else
  8763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8764  $as_echo "no" >&6; }
  8765  fi
  8766  
  8767    if test "x$ac_ct_CC" = x; then
  8768      CC=""
  8769    else
  8770      case $cross_compiling:$ac_tool_warned in
  8771  yes:)
  8772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8773  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8774  ac_tool_warned=yes ;;
  8775  esac
  8776      CC=$ac_ct_CC
  8777    fi
  8778  else
  8779    CC="$ac_cv_prog_CC"
  8780  fi
  8781  
  8782  if test -z "$CC"; then
  8783            if test -n "$ac_tool_prefix"; then
  8784      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  8785  set dummy ${ac_tool_prefix}cc; ac_word=$2
  8786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8787  $as_echo_n "checking for $ac_word... " >&6; }
  8788  if ${ac_cv_prog_CC+:} false; then :
  8789    $as_echo_n "(cached) " >&6
  8790  else
  8791    if test -n "$CC"; then
  8792    ac_cv_prog_CC="$CC" # Let the user override the test.
  8793  else
  8794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8795  for as_dir in $PATH
  8796  do
  8797    IFS=$as_save_IFS
  8798    test -z "$as_dir" && as_dir=.
  8799      for ac_exec_ext in '' $ac_executable_extensions; do
  8800    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8801      ac_cv_prog_CC="${ac_tool_prefix}cc"
  8802      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8803      break 2
  8804    fi
  8805  done
  8806    done
  8807  IFS=$as_save_IFS
  8808  
  8809  fi
  8810  fi
  8811  CC=$ac_cv_prog_CC
  8812  if test -n "$CC"; then
  8813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8814  $as_echo "$CC" >&6; }
  8815  else
  8816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8817  $as_echo "no" >&6; }
  8818  fi
  8819  
  8820  
  8821    fi
  8822  fi
  8823  if test -z "$CC"; then
  8824    # Extract the first word of "cc", so it can be a program name with args.
  8825  set dummy cc; ac_word=$2
  8826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8827  $as_echo_n "checking for $ac_word... " >&6; }
  8828  if ${ac_cv_prog_CC+:} false; then :
  8829    $as_echo_n "(cached) " >&6
  8830  else
  8831    if test -n "$CC"; then
  8832    ac_cv_prog_CC="$CC" # Let the user override the test.
  8833  else
  8834    ac_prog_rejected=no
  8835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8836  for as_dir in $PATH
  8837  do
  8838    IFS=$as_save_IFS
  8839    test -z "$as_dir" && as_dir=.
  8840      for ac_exec_ext in '' $ac_executable_extensions; do
  8841    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8842      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  8843         ac_prog_rejected=yes
  8844         continue
  8845       fi
  8846      ac_cv_prog_CC="cc"
  8847      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8848      break 2
  8849    fi
  8850  done
  8851    done
  8852  IFS=$as_save_IFS
  8853  
  8854  if test $ac_prog_rejected = yes; then
  8855    # We found a bogon in the path, so make sure we never use it.
  8856    set dummy $ac_cv_prog_CC
  8857    shift
  8858    if test $# != 0; then
  8859      # We chose a different compiler from the bogus one.
  8860      # However, it has the same basename, so the bogon will be chosen
  8861      # first if we set CC to just the basename; use the full file name.
  8862      shift
  8863      ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  8864    fi
  8865  fi
  8866  fi
  8867  fi
  8868  CC=$ac_cv_prog_CC
  8869  if test -n "$CC"; then
  8870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8871  $as_echo "$CC" >&6; }
  8872  else
  8873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8874  $as_echo "no" >&6; }
  8875  fi
  8876  
  8877  
  8878  fi
  8879  if test -z "$CC"; then
  8880    if test -n "$ac_tool_prefix"; then
  8881    for ac_prog in cl.exe
  8882    do
  8883      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8884  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8886  $as_echo_n "checking for $ac_word... " >&6; }
  8887  if ${ac_cv_prog_CC+:} false; then :
  8888    $as_echo_n "(cached) " >&6
  8889  else
  8890    if test -n "$CC"; then
  8891    ac_cv_prog_CC="$CC" # Let the user override the test.
  8892  else
  8893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8894  for as_dir in $PATH
  8895  do
  8896    IFS=$as_save_IFS
  8897    test -z "$as_dir" && as_dir=.
  8898      for ac_exec_ext in '' $ac_executable_extensions; do
  8899    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8900      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  8901      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8902      break 2
  8903    fi
  8904  done
  8905    done
  8906  IFS=$as_save_IFS
  8907  
  8908  fi
  8909  fi
  8910  CC=$ac_cv_prog_CC
  8911  if test -n "$CC"; then
  8912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  8913  $as_echo "$CC" >&6; }
  8914  else
  8915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8916  $as_echo "no" >&6; }
  8917  fi
  8918  
  8919  
  8920      test -n "$CC" && break
  8921    done
  8922  fi
  8923  if test -z "$CC"; then
  8924    ac_ct_CC=$CC
  8925    for ac_prog in cl.exe
  8926  do
  8927    # Extract the first word of "$ac_prog", so it can be a program name with args.
  8928  set dummy $ac_prog; ac_word=$2
  8929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8930  $as_echo_n "checking for $ac_word... " >&6; }
  8931  if ${ac_cv_prog_ac_ct_CC+:} false; then :
  8932    $as_echo_n "(cached) " >&6
  8933  else
  8934    if test -n "$ac_ct_CC"; then
  8935    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8936  else
  8937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8938  for as_dir in $PATH
  8939  do
  8940    IFS=$as_save_IFS
  8941    test -z "$as_dir" && as_dir=.
  8942      for ac_exec_ext in '' $ac_executable_extensions; do
  8943    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8944      ac_cv_prog_ac_ct_CC="$ac_prog"
  8945      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8946      break 2
  8947    fi
  8948  done
  8949    done
  8950  IFS=$as_save_IFS
  8951  
  8952  fi
  8953  fi
  8954  ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8955  if test -n "$ac_ct_CC"; then
  8956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  8957  $as_echo "$ac_ct_CC" >&6; }
  8958  else
  8959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8960  $as_echo "no" >&6; }
  8961  fi
  8962  
  8963  
  8964    test -n "$ac_ct_CC" && break
  8965  done
  8966  
  8967    if test "x$ac_ct_CC" = x; then
  8968      CC=""
  8969    else
  8970      case $cross_compiling:$ac_tool_warned in
  8971  yes:)
  8972  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8973  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8974  ac_tool_warned=yes ;;
  8975  esac
  8976      CC=$ac_ct_CC
  8977    fi
  8978  fi
  8979  
  8980  fi
  8981  
  8982  
  8983  test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8984  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8985  as_fn_error $? "no acceptable C compiler found in \$PATH
  8986  See \`config.log' for more details" "$LINENO" 5; }
  8987  
  8988  # Provide some information about the compiler.
  8989  $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  8990  set X $ac_compile
  8991  ac_compiler=$2
  8992  for ac_option in --version -v -V -qversion; do
  8993    { { ac_try="$ac_compiler $ac_option >&5"
  8994  case "(($ac_try" in
  8995    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8996    *) ac_try_echo=$ac_try;;
  8997  esac
  8998  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8999  $as_echo "$ac_try_echo"; } >&5
  9000    (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9001    ac_status=$?
  9002    if test -s conftest.err; then
  9003      sed '10a\
  9004  ... rest of stderr output deleted ...
  9005           10q' conftest.err >conftest.er1
  9006      cat conftest.er1 >&5
  9007    fi
  9008    rm -f conftest.er1 conftest.err
  9009    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9010    test $ac_status = 0; }
  9011  done
  9012  
  9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9014  /* end confdefs.h.  */
  9015  
  9016  int
  9017  main ()
  9018  {
  9019  
  9020    ;
  9021    return 0;
  9022  }
  9023  _ACEOF
  9024  ac_clean_files_save=$ac_clean_files
  9025  ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  9026  # Try to create an executable without -o first, disregard a.out.
  9027  # It will help us diagnose broken compilers, and finding out an intuition
  9028  # of exeext.
  9029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  9030  $as_echo_n "checking whether the C compiler works... " >&6; }
  9031  ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  9032  
  9033  # The possible output files:
  9034  ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  9035  
  9036  ac_rmfiles=
  9037  for ac_file in $ac_files
  9038  do
  9039    case $ac_file in
  9040      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  9041      * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  9042    esac
  9043  done
  9044  rm -f $ac_rmfiles
  9045  
  9046  if { { ac_try="$ac_link_default"
  9047  case "(($ac_try" in
  9048    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9049    *) ac_try_echo=$ac_try;;
  9050  esac
  9051  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9052  $as_echo "$ac_try_echo"; } >&5
  9053    (eval "$ac_link_default") 2>&5
  9054    ac_status=$?
  9055    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9056    test $ac_status = 0; }; then :
  9057    # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  9058  # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  9059  # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  9060  # so that the user can short-circuit this test for compilers unknown to
  9061  # Autoconf.
  9062  for ac_file in $ac_files ''
  9063  do
  9064    test -f "$ac_file" || continue
  9065    case $ac_file in
  9066      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  9067  	;;
  9068      [ab].out )
  9069  	# We found the default executable, but exeext='' is most
  9070  	# certainly right.
  9071  	break;;
  9072      *.* )
  9073  	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  9074  	then :; else
  9075  	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  9076  	fi
  9077  	# We set ac_cv_exeext here because the later test for it is not
  9078  	# safe: cross compilers may not add the suffix if given an `-o'
  9079  	# argument, so we may need to know it at that point already.
  9080  	# Even if this section looks crufty: it has the advantage of
  9081  	# actually working.
  9082  	break;;
  9083      * )
  9084  	break;;
  9085    esac
  9086  done
  9087  test "$ac_cv_exeext" = no && ac_cv_exeext=
  9088  
  9089  else
  9090    ac_file=''
  9091  fi
  9092  if test -z "$ac_file"; then :
  9093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9094  $as_echo "no" >&6; }
  9095  $as_echo "$as_me: failed program was:" >&5
  9096  sed 's/^/| /' conftest.$ac_ext >&5
  9097  
  9098  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9099  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9100  as_fn_error 77 "C compiler cannot create executables
  9101  See \`config.log' for more details" "$LINENO" 5; }
  9102  else
  9103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9104  $as_echo "yes" >&6; }
  9105  fi
  9106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  9107  $as_echo_n "checking for C compiler default output file name... " >&6; }
  9108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  9109  $as_echo "$ac_file" >&6; }
  9110  ac_exeext=$ac_cv_exeext
  9111  
  9112  rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  9113  ac_clean_files=$ac_clean_files_save
  9114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  9115  $as_echo_n "checking for suffix of executables... " >&6; }
  9116  if { { ac_try="$ac_link"
  9117  case "(($ac_try" in
  9118    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9119    *) ac_try_echo=$ac_try;;
  9120  esac
  9121  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9122  $as_echo "$ac_try_echo"; } >&5
  9123    (eval "$ac_link") 2>&5
  9124    ac_status=$?
  9125    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9126    test $ac_status = 0; }; then :
  9127    # If both `conftest.exe' and `conftest' are `present' (well, observable)
  9128  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  9129  # work properly (i.e., refer to `conftest.exe'), while it won't with
  9130  # `rm'.
  9131  for ac_file in conftest.exe conftest conftest.*; do
  9132    test -f "$ac_file" || continue
  9133    case $ac_file in
  9134      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  9135      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  9136  	  break;;
  9137      * ) break;;
  9138    esac
  9139  done
  9140  else
  9141    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9142  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9143  as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  9144  See \`config.log' for more details" "$LINENO" 5; }
  9145  fi
  9146  rm -f conftest conftest$ac_cv_exeext
  9147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  9148  $as_echo "$ac_cv_exeext" >&6; }
  9149  
  9150  rm -f conftest.$ac_ext
  9151  EXEEXT=$ac_cv_exeext
  9152  ac_exeext=$EXEEXT
  9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154  /* end confdefs.h.  */
  9155  #include <stdio.h>
  9156  int
  9157  main ()
  9158  {
  9159  FILE *f = fopen ("conftest.out", "w");
  9160   return ferror (f) || fclose (f) != 0;
  9161  
  9162    ;
  9163    return 0;
  9164  }
  9165  _ACEOF
  9166  ac_clean_files="$ac_clean_files conftest.out"
  9167  # Check that the compiler produces executables we can run.  If not, either
  9168  # the compiler is broken, or we cross compile.
  9169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  9170  $as_echo_n "checking whether we are cross compiling... " >&6; }
  9171  if test "$cross_compiling" != yes; then
  9172    { { ac_try="$ac_link"
  9173  case "(($ac_try" in
  9174    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9175    *) ac_try_echo=$ac_try;;
  9176  esac
  9177  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9178  $as_echo "$ac_try_echo"; } >&5
  9179    (eval "$ac_link") 2>&5
  9180    ac_status=$?
  9181    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9182    test $ac_status = 0; }
  9183    if { ac_try='./conftest$ac_cv_exeext'
  9184    { { case "(($ac_try" in
  9185    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9186    *) ac_try_echo=$ac_try;;
  9187  esac
  9188  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9189  $as_echo "$ac_try_echo"; } >&5
  9190    (eval "$ac_try") 2>&5
  9191    ac_status=$?
  9192    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9193    test $ac_status = 0; }; }; then
  9194      cross_compiling=no
  9195    else
  9196      if test "$cross_compiling" = maybe; then
  9197  	cross_compiling=yes
  9198      else
  9199  	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9200  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9201  as_fn_error $? "cannot run C compiled programs.
  9202  If you meant to cross compile, use \`--host'.
  9203  See \`config.log' for more details" "$LINENO" 5; }
  9204      fi
  9205    fi
  9206  fi
  9207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  9208  $as_echo "$cross_compiling" >&6; }
  9209  
  9210  rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  9211  ac_clean_files=$ac_clean_files_save
  9212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  9213  $as_echo_n "checking for suffix of object files... " >&6; }
  9214  if ${ac_cv_objext+:} false; then :
  9215    $as_echo_n "(cached) " >&6
  9216  else
  9217    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9218  /* end confdefs.h.  */
  9219  
  9220  int
  9221  main ()
  9222  {
  9223  
  9224    ;
  9225    return 0;
  9226  }
  9227  _ACEOF
  9228  rm -f conftest.o conftest.obj
  9229  if { { ac_try="$ac_compile"
  9230  case "(($ac_try" in
  9231    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9232    *) ac_try_echo=$ac_try;;
  9233  esac
  9234  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9235  $as_echo "$ac_try_echo"; } >&5
  9236    (eval "$ac_compile") 2>&5
  9237    ac_status=$?
  9238    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9239    test $ac_status = 0; }; then :
  9240    for ac_file in conftest.o conftest.obj conftest.*; do
  9241    test -f "$ac_file" || continue;
  9242    case $ac_file in
  9243      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  9244      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  9245         break;;
  9246    esac
  9247  done
  9248  else
  9249    $as_echo "$as_me: failed program was:" >&5
  9250  sed 's/^/| /' conftest.$ac_ext >&5
  9251  
  9252  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9253  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9254  as_fn_error $? "cannot compute suffix of object files: cannot compile
  9255  See \`config.log' for more details" "$LINENO" 5; }
  9256  fi
  9257  rm -f conftest.$ac_cv_objext conftest.$ac_ext
  9258  fi
  9259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  9260  $as_echo "$ac_cv_objext" >&6; }
  9261  OBJEXT=$ac_cv_objext
  9262  ac_objext=$OBJEXT
  9263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9264  $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9265  if ${ac_cv_c_compiler_gnu+:} false; then :
  9266    $as_echo_n "(cached) " >&6
  9267  else
  9268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9269  /* end confdefs.h.  */
  9270  
  9271  int
  9272  main ()
  9273  {
  9274  #ifndef __GNUC__
  9275         choke me
  9276  #endif
  9277  
  9278    ;
  9279    return 0;
  9280  }
  9281  _ACEOF
  9282  if ac_fn_c_try_compile "$LINENO"; then :
  9283    ac_compiler_gnu=yes
  9284  else
  9285    ac_compiler_gnu=no
  9286  fi
  9287  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9288  ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9289  
  9290  fi
  9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9292  $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9293  if test $ac_compiler_gnu = yes; then
  9294    GCC=yes
  9295  else
  9296    GCC=
  9297  fi
  9298  ac_test_CFLAGS=${CFLAGS+set}
  9299  ac_save_CFLAGS=$CFLAGS
  9300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9301  $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9302  if ${ac_cv_prog_cc_g+:} false; then :
  9303    $as_echo_n "(cached) " >&6
  9304  else
  9305    ac_save_c_werror_flag=$ac_c_werror_flag
  9306     ac_c_werror_flag=yes
  9307     ac_cv_prog_cc_g=no
  9308     CFLAGS="-g"
  9309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9310  /* end confdefs.h.  */
  9311  
  9312  int
  9313  main ()
  9314  {
  9315  
  9316    ;
  9317    return 0;
  9318  }
  9319  _ACEOF
  9320  if ac_fn_c_try_compile "$LINENO"; then :
  9321    ac_cv_prog_cc_g=yes
  9322  else
  9323    CFLAGS=""
  9324        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9325  /* end confdefs.h.  */
  9326  
  9327  int
  9328  main ()
  9329  {
  9330  
  9331    ;
  9332    return 0;
  9333  }
  9334  _ACEOF
  9335  if ac_fn_c_try_compile "$LINENO"; then :
  9336  
  9337  else
  9338    ac_c_werror_flag=$ac_save_c_werror_flag
  9339  	 CFLAGS="-g"
  9340  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9341  /* end confdefs.h.  */
  9342  
  9343  int
  9344  main ()
  9345  {
  9346  
  9347    ;
  9348    return 0;
  9349  }
  9350  _ACEOF
  9351  if ac_fn_c_try_compile "$LINENO"; then :
  9352    ac_cv_prog_cc_g=yes
  9353  fi
  9354  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9355  fi
  9356  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9357  fi
  9358  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9359     ac_c_werror_flag=$ac_save_c_werror_flag
  9360  fi
  9361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9362  $as_echo "$ac_cv_prog_cc_g" >&6; }
  9363  if test "$ac_test_CFLAGS" = set; then
  9364    CFLAGS=$ac_save_CFLAGS
  9365  elif test $ac_cv_prog_cc_g = yes; then
  9366    if test "$GCC" = yes; then
  9367      CFLAGS="-g -O2"
  9368    else
  9369      CFLAGS="-g"
  9370    fi
  9371  else
  9372    if test "$GCC" = yes; then
  9373      CFLAGS="-O2"
  9374    else
  9375      CFLAGS=
  9376    fi
  9377  fi
  9378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9379  $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9380  if ${ac_cv_prog_cc_c89+:} false; then :
  9381    $as_echo_n "(cached) " >&6
  9382  else
  9383    ac_cv_prog_cc_c89=no
  9384  ac_save_CC=$CC
  9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9386  /* end confdefs.h.  */
  9387  #include <stdarg.h>
  9388  #include <stdio.h>
  9389  struct stat;
  9390  /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  9391  struct buf { int x; };
  9392  FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9393  static char *e (p, i)
  9394       char **p;
  9395       int i;
  9396  {
  9397    return p[i];
  9398  }
  9399  static char *f (char * (*g) (char **, int), char **p, ...)
  9400  {
  9401    char *s;
  9402    va_list v;
  9403    va_start (v,p);
  9404    s = g (p, va_arg (v,int));
  9405    va_end (v);
  9406    return s;
  9407  }
  9408  
  9409  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  9410     function prototypes and stuff, but not '\xHH' hex character constants.
  9411     These don't provoke an error unfortunately, instead are silently treated
  9412     as 'x'.  The following induces an error, until -std is added to get
  9413     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  9414     array size at least.  It's necessary to write '\x00'==0 to get something
  9415     that's true only with -std.  */
  9416  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9417  
  9418  /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9419     inside strings and character constants.  */
  9420  #define FOO(x) 'x'
  9421  int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9422  
  9423  int test (int i, double x);
  9424  struct s1 {int (*f) (int a);};
  9425  struct s2 {int (*f) (double a);};
  9426  int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9427  int argc;
  9428  char **argv;
  9429  int
  9430  main ()
  9431  {
  9432  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  9433    ;
  9434    return 0;
  9435  }
  9436  _ACEOF
  9437  for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9438  	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9439  do
  9440    CC="$ac_save_CC $ac_arg"
  9441    if ac_fn_c_try_compile "$LINENO"; then :
  9442    ac_cv_prog_cc_c89=$ac_arg
  9443  fi
  9444  rm -f core conftest.err conftest.$ac_objext
  9445    test "x$ac_cv_prog_cc_c89" != "xno" && break
  9446  done
  9447  rm -f conftest.$ac_ext
  9448  CC=$ac_save_CC
  9449  
  9450  fi
  9451  # AC_CACHE_VAL
  9452  case "x$ac_cv_prog_cc_c89" in
  9453    x)
  9454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9455  $as_echo "none needed" >&6; } ;;
  9456    xno)
  9457      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9458  $as_echo "unsupported" >&6; } ;;
  9459    *)
  9460      CC="$CC $ac_cv_prog_cc_c89"
  9461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9462  $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9463  esac
  9464  if test "x$ac_cv_prog_cc_c89" != xno; then :
  9465  
  9466  fi
  9467  
  9468  ac_ext=c
  9469  ac_cpp='$CPP $CPPFLAGS'
  9470  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9471  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9472  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9473  
  9474  ac_ext=c
  9475  ac_cpp='$CPP $CPPFLAGS'
  9476  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9477  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9478  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  9480  $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  9481  if ${am_cv_prog_cc_c_o+:} false; then :
  9482    $as_echo_n "(cached) " >&6
  9483  else
  9484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9485  /* end confdefs.h.  */
  9486  
  9487  int
  9488  main ()
  9489  {
  9490  
  9491    ;
  9492    return 0;
  9493  }
  9494  _ACEOF
  9495    # Make sure it works both with $CC and with simple cc.
  9496    # Following AC_PROG_CC_C_O, we do the test twice because some
  9497    # compilers refuse to overwrite an existing .o file with -o,
  9498    # though they will create one.
  9499    am_cv_prog_cc_c_o=yes
  9500    for am_i in 1 2; do
  9501      if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  9502     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  9503     ac_status=$?
  9504     echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9505     (exit $ac_status); } \
  9506           && test -f conftest2.$ac_objext; then
  9507        : OK
  9508      else
  9509        am_cv_prog_cc_c_o=no
  9510        break
  9511      fi
  9512    done
  9513    rm -f core conftest*
  9514    unset am_i
  9515  fi
  9516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  9517  $as_echo "$am_cv_prog_cc_c_o" >&6; }
  9518  if test "$am_cv_prog_cc_c_o" != yes; then
  9519     # Losing compiler, so override with the script.
  9520     # FIXME: It is wrong to rewrite CC.
  9521     # But if we don't then we get into trouble of one sort or another.
  9522     # A longer-term fix would be to have automake use am__CC in this case,
  9523     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9524     CC="$am_aux_dir/compile $CC"
  9525  fi
  9526  ac_ext=c
  9527  ac_cpp='$CPP $CPPFLAGS'
  9528  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9529  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9530  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9531  
  9532  
  9533     case $ac_cv_prog_cc_stdc in #(
  9534    no) :
  9535      ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  9536    *) :
  9537      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  9538  $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  9539  if ${ac_cv_prog_cc_c99+:} false; then :
  9540    $as_echo_n "(cached) " >&6
  9541  else
  9542    ac_cv_prog_cc_c99=no
  9543  ac_save_CC=$CC
  9544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9545  /* end confdefs.h.  */
  9546  #include <stdarg.h>
  9547  #include <stdbool.h>
  9548  #include <stdlib.h>
  9549  #include <wchar.h>
  9550  #include <stdio.h>
  9551  
  9552  // Check varargs macros.  These examples are taken from C99 6.10.3.5.
  9553  #define debug(...) fprintf (stderr, __VA_ARGS__)
  9554  #define showlist(...) puts (#__VA_ARGS__)
  9555  #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  9556  static void
  9557  test_varargs_macros (void)
  9558  {
  9559    int x = 1234;
  9560    int y = 5678;
  9561    debug ("Flag");
  9562    debug ("X = %d\n", x);
  9563    showlist (The first, second, and third items.);
  9564    report (x>y, "x is %d but y is %d", x, y);
  9565  }
  9566  
  9567  // Check long long types.
  9568  #define BIG64 18446744073709551615ull
  9569  #define BIG32 4294967295ul
  9570  #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  9571  #if !BIG_OK
  9572    your preprocessor is broken;
  9573  #endif
  9574  #if BIG_OK
  9575  #else
  9576    your preprocessor is broken;
  9577  #endif
  9578  static long long int bignum = -9223372036854775807LL;
  9579  static unsigned long long int ubignum = BIG64;
  9580  
  9581  struct incomplete_array
  9582  {
  9583    int datasize;
  9584    double data[];
  9585  };
  9586  
  9587  struct named_init {
  9588    int number;
  9589    const wchar_t *name;
  9590    double average;
  9591  };
  9592  
  9593  typedef const char *ccp;
  9594  
  9595  static inline int
  9596  test_restrict (ccp restrict text)
  9597  {
  9598    // See if C++-style comments work.
  9599    // Iterate through items via the restricted pointer.
  9600    // Also check for declarations in for loops.
  9601    for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  9602      continue;
  9603    return 0;
  9604  }
  9605  
  9606  // Check varargs and va_copy.
  9607  static void
  9608  test_varargs (const char *format, ...)
  9609  {
  9610    va_list args;
  9611    va_start (args, format);
  9612    va_list args_copy;
  9613    va_copy (args_copy, args);
  9614  
  9615    const char *str;
  9616    int number;
  9617    float fnumber;
  9618  
  9619    while (*format)
  9620      {
  9621        switch (*format++)
  9622  	{
  9623  	case 's': // string
  9624  	  str = va_arg (args_copy, const char *);
  9625  	  break;
  9626  	case 'd': // int
  9627  	  number = va_arg (args_copy, int);
  9628  	  break;
  9629  	case 'f': // float
  9630  	  fnumber = va_arg (args_copy, double);
  9631  	  break;
  9632  	default:
  9633  	  break;
  9634  	}
  9635      }
  9636    va_end (args_copy);
  9637    va_end (args);
  9638  }
  9639  
  9640  int
  9641  main ()
  9642  {
  9643  
  9644    // Check bool.
  9645    _Bool success = false;
  9646  
  9647    // Check restrict.
  9648    if (test_restrict ("String literal") == 0)
  9649      success = true;
  9650    char *restrict newvar = "Another string";
  9651  
  9652    // Check varargs.
  9653    test_varargs ("s, d' f .", "string", 65, 34.234);
  9654    test_varargs_macros ();
  9655  
  9656    // Check flexible array members.
  9657    struct incomplete_array *ia =
  9658      malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  9659    ia->datasize = 10;
  9660    for (int i = 0; i < ia->datasize; ++i)
  9661      ia->data[i] = i * 1.234;
  9662  
  9663    // Check named initializers.
  9664    struct named_init ni = {
  9665      .number = 34,
  9666      .name = L"Test wide string",
  9667      .average = 543.34343,
  9668    };
  9669  
  9670    ni.number = 58;
  9671  
  9672    int dynamic_array[ni.number];
  9673    dynamic_array[ni.number - 1] = 543;
  9674  
  9675    // work around unused variable warnings
  9676    return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  9677  	  || dynamic_array[ni.number - 1] != 543);
  9678  
  9679    ;
  9680    return 0;
  9681  }
  9682  _ACEOF
  9683  for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  9684  do
  9685    CC="$ac_save_CC $ac_arg"
  9686    if ac_fn_c_try_compile "$LINENO"; then :
  9687    ac_cv_prog_cc_c99=$ac_arg
  9688  fi
  9689  rm -f core conftest.err conftest.$ac_objext
  9690    test "x$ac_cv_prog_cc_c99" != "xno" && break
  9691  done
  9692  rm -f conftest.$ac_ext
  9693  CC=$ac_save_CC
  9694  
  9695  fi
  9696  # AC_CACHE_VAL
  9697  case "x$ac_cv_prog_cc_c99" in
  9698    x)
  9699      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9700  $as_echo "none needed" >&6; } ;;
  9701    xno)
  9702      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9703  $as_echo "unsupported" >&6; } ;;
  9704    *)
  9705      CC="$CC $ac_cv_prog_cc_c99"
  9706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  9707  $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  9708  esac
  9709  if test "x$ac_cv_prog_cc_c99" != xno; then :
  9710    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  9711  else
  9712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9713  $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9714  if ${ac_cv_prog_cc_c89+:} false; then :
  9715    $as_echo_n "(cached) " >&6
  9716  else
  9717    ac_cv_prog_cc_c89=no
  9718  ac_save_CC=$CC
  9719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9720  /* end confdefs.h.  */
  9721  #include <stdarg.h>
  9722  #include <stdio.h>
  9723  struct stat;
  9724  /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  9725  struct buf { int x; };
  9726  FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9727  static char *e (p, i)
  9728       char **p;
  9729       int i;
  9730  {
  9731    return p[i];
  9732  }
  9733  static char *f (char * (*g) (char **, int), char **p, ...)
  9734  {
  9735    char *s;
  9736    va_list v;
  9737    va_start (v,p);
  9738    s = g (p, va_arg (v,int));
  9739    va_end (v);
  9740    return s;
  9741  }
  9742  
  9743  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  9744     function prototypes and stuff, but not '\xHH' hex character constants.
  9745     These don't provoke an error unfortunately, instead are silently treated
  9746     as 'x'.  The following induces an error, until -std is added to get
  9747     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  9748     array size at least.  It's necessary to write '\x00'==0 to get something
  9749     that's true only with -std.  */
  9750  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9751  
  9752  /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9753     inside strings and character constants.  */
  9754  #define FOO(x) 'x'
  9755  int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9756  
  9757  int test (int i, double x);
  9758  struct s1 {int (*f) (int a);};
  9759  struct s2 {int (*f) (double a);};
  9760  int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9761  int argc;
  9762  char **argv;
  9763  int
  9764  main ()
  9765  {
  9766  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  9767    ;
  9768    return 0;
  9769  }
  9770  _ACEOF
  9771  for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9772  	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9773  do
  9774    CC="$ac_save_CC $ac_arg"
  9775    if ac_fn_c_try_compile "$LINENO"; then :
  9776    ac_cv_prog_cc_c89=$ac_arg
  9777  fi
  9778  rm -f core conftest.err conftest.$ac_objext
  9779    test "x$ac_cv_prog_cc_c89" != "xno" && break
  9780  done
  9781  rm -f conftest.$ac_ext
  9782  CC=$ac_save_CC
  9783  
  9784  fi
  9785  # AC_CACHE_VAL
  9786  case "x$ac_cv_prog_cc_c89" in
  9787    x)
  9788      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9789  $as_echo "none needed" >&6; } ;;
  9790    xno)
  9791      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9792  $as_echo "unsupported" >&6; } ;;
  9793    *)
  9794      CC="$CC $ac_cv_prog_cc_c89"
  9795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9796  $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9797  esac
  9798  if test "x$ac_cv_prog_cc_c89" != xno; then :
  9799    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  9800  else
  9801    ac_cv_prog_cc_stdc=no
  9802  fi
  9803  
  9804  fi
  9805   ;;
  9806  esac
  9807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  9808  $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  9809    if ${ac_cv_prog_cc_stdc+:} false; then :
  9810    $as_echo_n "(cached) " >&6
  9811  fi
  9812  
  9813    case $ac_cv_prog_cc_stdc in #(
  9814    no) :
  9815      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9816  $as_echo "unsupported" >&6; } ;; #(
  9817    '') :
  9818      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9819  $as_echo "none needed" >&6; } ;; #(
  9820    *) :
  9821      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  9822  $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  9823  esac
  9824  
  9825  ac_ext=c
  9826  ac_cpp='$CPP $CPPFLAGS'
  9827  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9828  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9829  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  9831  $as_echo_n "checking how to run the C preprocessor... " >&6; }
  9832  # On Suns, sometimes $CPP names a directory.
  9833  if test -n "$CPP" && test -d "$CPP"; then
  9834    CPP=
  9835  fi
  9836  if test -z "$CPP"; then
  9837    if ${ac_cv_prog_CPP+:} false; then :
  9838    $as_echo_n "(cached) " >&6
  9839  else
  9840        # Double quotes because CPP needs to be expanded
  9841      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  9842      do
  9843        ac_preproc_ok=false
  9844  for ac_c_preproc_warn_flag in '' yes
  9845  do
  9846    # Use a header file that comes with gcc, so configuring glibc
  9847    # with a fresh cross-compiler works.
  9848    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9849    # <limits.h> exists even on freestanding compilers.
  9850    # On the NeXT, cc -E runs the code through the compiler's parser,
  9851    # not just through cpp. "Syntax error" is here to catch this case.
  9852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9853  /* end confdefs.h.  */
  9854  #ifdef __STDC__
  9855  # include <limits.h>
  9856  #else
  9857  # include <assert.h>
  9858  #endif
  9859  		     Syntax error
  9860  _ACEOF
  9861  if ac_fn_c_try_cpp "$LINENO"; then :
  9862  
  9863  else
  9864    # Broken: fails on valid input.
  9865  continue
  9866  fi
  9867  rm -f conftest.err conftest.i conftest.$ac_ext
  9868  
  9869    # OK, works on sane cases.  Now check whether nonexistent headers
  9870    # can be detected and how.
  9871    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9872  /* end confdefs.h.  */
  9873  #include <ac_nonexistent.h>
  9874  _ACEOF
  9875  if ac_fn_c_try_cpp "$LINENO"; then :
  9876    # Broken: success on invalid input.
  9877  continue
  9878  else
  9879    # Passes both tests.
  9880  ac_preproc_ok=:
  9881  break
  9882  fi
  9883  rm -f conftest.err conftest.i conftest.$ac_ext
  9884  
  9885  done
  9886  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9887  rm -f conftest.i conftest.err conftest.$ac_ext
  9888  if $ac_preproc_ok; then :
  9889    break
  9890  fi
  9891  
  9892      done
  9893      ac_cv_prog_CPP=$CPP
  9894  
  9895  fi
  9896    CPP=$ac_cv_prog_CPP
  9897  else
  9898    ac_cv_prog_CPP=$CPP
  9899  fi
  9900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  9901  $as_echo "$CPP" >&6; }
  9902  ac_preproc_ok=false
  9903  for ac_c_preproc_warn_flag in '' yes
  9904  do
  9905    # Use a header file that comes with gcc, so configuring glibc
  9906    # with a fresh cross-compiler works.
  9907    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9908    # <limits.h> exists even on freestanding compilers.
  9909    # On the NeXT, cc -E runs the code through the compiler's parser,
  9910    # not just through cpp. "Syntax error" is here to catch this case.
  9911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9912  /* end confdefs.h.  */
  9913  #ifdef __STDC__
  9914  # include <limits.h>
  9915  #else
  9916  # include <assert.h>
  9917  #endif
  9918  		     Syntax error
  9919  _ACEOF
  9920  if ac_fn_c_try_cpp "$LINENO"; then :
  9921  
  9922  else
  9923    # Broken: fails on valid input.
  9924  continue
  9925  fi
  9926  rm -f conftest.err conftest.i conftest.$ac_ext
  9927  
  9928    # OK, works on sane cases.  Now check whether nonexistent headers
  9929    # can be detected and how.
  9930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9931  /* end confdefs.h.  */
  9932  #include <ac_nonexistent.h>
  9933  _ACEOF
  9934  if ac_fn_c_try_cpp "$LINENO"; then :
  9935    # Broken: success on invalid input.
  9936  continue
  9937  else
  9938    # Passes both tests.
  9939  ac_preproc_ok=:
  9940  break
  9941  fi
  9942  rm -f conftest.err conftest.i conftest.$ac_ext
  9943  
  9944  done
  9945  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9946  rm -f conftest.i conftest.err conftest.$ac_ext
  9947  if $ac_preproc_ok; then :
  9948  
  9949  else
  9950    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9951  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9952  as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  9953  See \`config.log' for more details" "$LINENO" 5; }
  9954  fi
  9955  
  9956  ac_ext=c
  9957  ac_cpp='$CPP $CPPFLAGS'
  9958  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9959  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9960  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9961  
  9962  
  9963  
  9964  # The C compiler on the build system, and associated tests.
  9965  
  9966  if test -n "$CC_FOR_BUILD"; then
  9967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
  9968  $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
  9969  # remove anything that might look like compiler output to our "||" expression
  9970  rm -f conftest* a.out b.out a.exe a_out.exe
  9971  cat >conftest.c <<EOF
  9972  int
  9973  main ()
  9974  {
  9975    return 0;
  9976  }
  9977  EOF
  9978  gmp_compile="$CC_FOR_BUILD conftest.c"
  9979  cc_for_build_works=no
  9980  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
  9981    (eval $gmp_compile) 2>&5
  9982    ac_status=$?
  9983    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9984    test $ac_status = 0; }; then
  9985    if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
  9986      cc_for_build_works=yes
  9987    fi
  9988  fi
  9989  rm -f conftest* a.out b.out a.exe a_out.exe
  9990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
  9991  $as_echo "$cc_for_build_works" >&6; }
  9992  if test "$cc_for_build_works" = yes; then
  9993    :
  9994  else
  9995    as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
  9996  fi
  9997  
  9998  elif test -n "$HOST_CC"; then
  9999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
 10000  $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
 10001  # remove anything that might look like compiler output to our "||" expression
 10002  rm -f conftest* a.out b.out a.exe a_out.exe
 10003  cat >conftest.c <<EOF
 10004  int
 10005  main ()
 10006  {
 10007    return 0;
 10008  }
 10009  EOF
 10010  gmp_compile="$HOST_CC conftest.c"
 10011  cc_for_build_works=no
 10012  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 10013    (eval $gmp_compile) 2>&5
 10014    ac_status=$?
 10015    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10016    test $ac_status = 0; }; then
 10017    if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
 10018      cc_for_build_works=yes
 10019    fi
 10020  fi
 10021  rm -f conftest* a.out b.out a.exe a_out.exe
 10022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
 10023  $as_echo "$cc_for_build_works" >&6; }
 10024  if test "$cc_for_build_works" = yes; then
 10025    CC_FOR_BUILD=$HOST_CC
 10026  else
 10027    as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
 10028  fi
 10029  
 10030  else
 10031    for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
 10032      { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
 10033  $as_echo_n "checking build system compiler $i... " >&6; }
 10034  # remove anything that might look like compiler output to our "||" expression
 10035  rm -f conftest* a.out b.out a.exe a_out.exe
 10036  cat >conftest.c <<EOF
 10037  int
 10038  main ()
 10039  {
 10040    return 0;
 10041  }
 10042  EOF
 10043  gmp_compile="$i conftest.c"
 10044  cc_for_build_works=no
 10045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 10046    (eval $gmp_compile) 2>&5
 10047    ac_status=$?
 10048    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10049    test $ac_status = 0; }; then
 10050    if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
 10051      cc_for_build_works=yes
 10052    fi
 10053  fi
 10054  rm -f conftest* a.out b.out a.exe a_out.exe
 10055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
 10056  $as_echo "$cc_for_build_works" >&6; }
 10057  if test "$cc_for_build_works" = yes; then
 10058    CC_FOR_BUILD=$i
 10059         break
 10060  else
 10061    :
 10062  fi
 10063  
 10064    done
 10065    if test -z "$CC_FOR_BUILD"; then
 10066      as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
 10067    fi
 10068  fi
 10069  
 10070  
 10071  
 10072  
 10073  
 10074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
 10075  $as_echo_n "checking for build system preprocessor... " >&6; }
 10076  if test -z "$CPP_FOR_BUILD"; then
 10077    if ${gmp_cv_prog_cpp_for_build+:} false; then :
 10078    $as_echo_n "(cached) " >&6
 10079  else
 10080    cat >conftest.c <<EOF
 10081  #define FOO BAR
 10082  EOF
 10083    for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
 10084      gmp_compile="$i conftest.c"
 10085      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 10086    (eval $gmp_compile) 2>&5
 10087    ac_status=$?
 10088    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10089    test $ac_status = 0; } >&5 2>&1; then
 10090        gmp_cv_prog_cpp_for_build=$i
 10091        break
 10092      fi
 10093    done
 10094    rm -f conftest* a.out b.out a.exe a_out.exe
 10095    if test -z "$gmp_cv_prog_cpp_for_build"; then
 10096      as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
 10097    fi
 10098  
 10099  fi
 10100  
 10101    CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
 10102  fi
 10103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
 10104  $as_echo "$CPP_FOR_BUILD" >&6; }
 10105  
 10106  
 10107  
 10108  
 10109  
 10110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
 10111  $as_echo_n "checking for build system executable suffix... " >&6; }
 10112  if ${gmp_cv_prog_exeext_for_build+:} false; then :
 10113    $as_echo_n "(cached) " >&6
 10114  else
 10115    cat >conftest.c <<EOF
 10116  int
 10117  main ()
 10118  {
 10119    return 0;
 10120  }
 10121  EOF
 10122  for i in .exe ,ff8 ""; do
 10123    gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
 10124    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 10125    (eval $gmp_compile) 2>&5
 10126    ac_status=$?
 10127    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10128    test $ac_status = 0; }; then
 10129      if (./conftest) 2>&5; then
 10130        gmp_cv_prog_exeext_for_build=$i
 10131        break
 10132      fi
 10133    fi
 10134  done
 10135  rm -f conftest*
 10136  if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
 10137    as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
 10138  fi
 10139  
 10140  fi
 10141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
 10142  $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
 10143  EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
 10144  
 10145  
 10146  
 10147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
 10148  $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
 10149  if ${gmp_cv_c_for_build_ansi+:} false; then :
 10150    $as_echo_n "(cached) " >&6
 10151  else
 10152    cat >conftest.c <<EOF
 10153  int
 10154  main (int argc, char **argv)
 10155  {
 10156    return 0;
 10157  }
 10158  EOF
 10159  gmp_compile="$CC_FOR_BUILD conftest.c"
 10160  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 10161    (eval $gmp_compile) 2>&5
 10162    ac_status=$?
 10163    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10164    test $ac_status = 0; }; then
 10165    gmp_cv_c_for_build_ansi=yes
 10166  else
 10167    gmp_cv_c_for_build_ansi=no
 10168  fi
 10169  rm -f conftest* a.out b.out a.exe a_out.exe
 10170  
 10171  fi
 10172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
 10173  $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
 10174  if test "$gmp_cv_c_for_build_ansi" = yes; then
 10175    U_FOR_BUILD=
 10176  else
 10177    U_FOR_BUILD=_
 10178  
 10179  fi
 10180  
 10181  
 10182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
 10183  $as_echo_n "checking for build system compiler math library... " >&6; }
 10184  if ${gmp_cv_check_libm_for_build+:} false; then :
 10185    $as_echo_n "(cached) " >&6
 10186  else
 10187    cat >conftest.c <<EOF
 10188  #include <math.h>
 10189  int
 10190  main ()
 10191  {
 10192    return 0;
 10193  }
 10194  double d;
 10195  double
 10196  foo ()
 10197  {
 10198    return log (d);
 10199  }
 10200  EOF
 10201  gmp_compile="$CC_FOR_BUILD conftest.c -lm"
 10202  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 10203    (eval $gmp_compile) 2>&5
 10204    ac_status=$?
 10205    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10206    test $ac_status = 0; }; then
 10207    gmp_cv_check_libm_for_build=-lm
 10208  else
 10209    gmp_cv_check_libm_for_build=no
 10210  fi
 10211  rm -f conftest* a.out b.out a.exe a_out.exe
 10212  
 10213  fi
 10214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
 10215  $as_echo "$gmp_cv_check_libm_for_build" >&6; }
 10216  case $gmp_cv_check_libm_for_build in
 10217    yes) LIBM_FOR_BUILD=-lm
 10218   ;;
 10219    no)  LIBM_FOR_BUILD= ;;
 10220    *)   LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
 10221  esac
 10222  
 10223  
 10224  
 10225  # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
 10226  # Using the compiler is a lot easier than figuring out how to invoke the
 10227  # assembler directly.
 10228  #
 10229  test -n "$CCAS" || CCAS="$CC -c"
 10230  
 10231  
 10232  
 10233  # The C++ compiler, if desired.
 10234  want_cxx=no
 10235  if test $enable_cxx != no; then
 10236    test_CXXFLAGS=${CXXFLAGS+set}
 10237    ac_ext=cpp
 10238  ac_cpp='$CXXCPP $CPPFLAGS'
 10239  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 10240  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 10241  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 10242  if test -z "$CXX"; then
 10243    if test -n "$CCC"; then
 10244      CXX=$CCC
 10245    else
 10246      if test -n "$ac_tool_prefix"; then
 10247    for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 10248    do
 10249      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 10250  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 10251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 10252  $as_echo_n "checking for $ac_word... " >&6; }
 10253  if ${ac_cv_prog_CXX+:} false; then :
 10254    $as_echo_n "(cached) " >&6
 10255  else
 10256    if test -n "$CXX"; then
 10257    ac_cv_prog_CXX="$CXX" # Let the user override the test.
 10258  else
 10259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10260  for as_dir in $PATH
 10261  do
 10262    IFS=$as_save_IFS
 10263    test -z "$as_dir" && as_dir=.
 10264      for ac_exec_ext in '' $ac_executable_extensions; do
 10265    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 10266      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 10267      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 10268      break 2
 10269    fi
 10270  done
 10271    done
 10272  IFS=$as_save_IFS
 10273  
 10274  fi
 10275  fi
 10276  CXX=$ac_cv_prog_CXX
 10277  if test -n "$CXX"; then
 10278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 10279  $as_echo "$CXX" >&6; }
 10280  else
 10281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 10282  $as_echo "no" >&6; }
 10283  fi
 10284  
 10285  
 10286      test -n "$CXX" && break
 10287    done
 10288  fi
 10289  if test -z "$CXX"; then
 10290    ac_ct_CXX=$CXX
 10291    for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 10292  do
 10293    # Extract the first word of "$ac_prog", so it can be a program name with args.
 10294  set dummy $ac_prog; ac_word=$2
 10295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 10296  $as_echo_n "checking for $ac_word... " >&6; }
 10297  if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 10298    $as_echo_n "(cached) " >&6
 10299  else
 10300    if test -n "$ac_ct_CXX"; then
 10301    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 10302  else
 10303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10304  for as_dir in $PATH
 10305  do
 10306    IFS=$as_save_IFS
 10307    test -z "$as_dir" && as_dir=.
 10308      for ac_exec_ext in '' $ac_executable_extensions; do
 10309    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 10310      ac_cv_prog_ac_ct_CXX="$ac_prog"
 10311      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 10312      break 2
 10313    fi
 10314  done
 10315    done
 10316  IFS=$as_save_IFS
 10317  
 10318  fi
 10319  fi
 10320  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 10321  if test -n "$ac_ct_CXX"; then
 10322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 10323  $as_echo "$ac_ct_CXX" >&6; }
 10324  else
 10325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 10326  $as_echo "no" >&6; }
 10327  fi
 10328  
 10329  
 10330    test -n "$ac_ct_CXX" && break
 10331  done
 10332  
 10333    if test "x$ac_ct_CXX" = x; then
 10334      CXX="g++"
 10335    else
 10336      case $cross_compiling:$ac_tool_warned in
 10337  yes:)
 10338  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 10339  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 10340  ac_tool_warned=yes ;;
 10341  esac
 10342      CXX=$ac_ct_CXX
 10343    fi
 10344  fi
 10345  
 10346    fi
 10347  fi
 10348  # Provide some information about the compiler.
 10349  $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 10350  set X $ac_compile
 10351  ac_compiler=$2
 10352  for ac_option in --version -v -V -qversion; do
 10353    { { ac_try="$ac_compiler $ac_option >&5"
 10354  case "(($ac_try" in
 10355    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 10356    *) ac_try_echo=$ac_try;;
 10357  esac
 10358  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 10359  $as_echo "$ac_try_echo"; } >&5
 10360    (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 10361    ac_status=$?
 10362    if test -s conftest.err; then
 10363      sed '10a\
 10364  ... rest of stderr output deleted ...
 10365           10q' conftest.err >conftest.er1
 10366      cat conftest.er1 >&5
 10367    fi
 10368    rm -f conftest.er1 conftest.err
 10369    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10370    test $ac_status = 0; }
 10371  done
 10372  
 10373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 10374  $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 10375  if ${ac_cv_cxx_compiler_gnu+:} false; then :
 10376    $as_echo_n "(cached) " >&6
 10377  else
 10378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10379  /* end confdefs.h.  */
 10380  
 10381  int
 10382  main ()
 10383  {
 10384  #ifndef __GNUC__
 10385         choke me
 10386  #endif
 10387  
 10388    ;
 10389    return 0;
 10390  }
 10391  _ACEOF
 10392  if ac_fn_cxx_try_compile "$LINENO"; then :
 10393    ac_compiler_gnu=yes
 10394  else
 10395    ac_compiler_gnu=no
 10396  fi
 10397  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10398  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 10399  
 10400  fi
 10401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 10402  $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 10403  if test $ac_compiler_gnu = yes; then
 10404    GXX=yes
 10405  else
 10406    GXX=
 10407  fi
 10408  ac_test_CXXFLAGS=${CXXFLAGS+set}
 10409  ac_save_CXXFLAGS=$CXXFLAGS
 10410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 10411  $as_echo_n "checking whether $CXX accepts -g... " >&6; }
 10412  if ${ac_cv_prog_cxx_g+:} false; then :
 10413    $as_echo_n "(cached) " >&6
 10414  else
 10415    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 10416     ac_cxx_werror_flag=yes
 10417     ac_cv_prog_cxx_g=no
 10418     CXXFLAGS="-g"
 10419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10420  /* end confdefs.h.  */
 10421  
 10422  int
 10423  main ()
 10424  {
 10425  
 10426    ;
 10427    return 0;
 10428  }
 10429  _ACEOF
 10430  if ac_fn_cxx_try_compile "$LINENO"; then :
 10431    ac_cv_prog_cxx_g=yes
 10432  else
 10433    CXXFLAGS=""
 10434        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10435  /* end confdefs.h.  */
 10436  
 10437  int
 10438  main ()
 10439  {
 10440  
 10441    ;
 10442    return 0;
 10443  }
 10444  _ACEOF
 10445  if ac_fn_cxx_try_compile "$LINENO"; then :
 10446  
 10447  else
 10448    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 10449  	 CXXFLAGS="-g"
 10450  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10451  /* end confdefs.h.  */
 10452  
 10453  int
 10454  main ()
 10455  {
 10456  
 10457    ;
 10458    return 0;
 10459  }
 10460  _ACEOF
 10461  if ac_fn_cxx_try_compile "$LINENO"; then :
 10462    ac_cv_prog_cxx_g=yes
 10463  fi
 10464  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10465  fi
 10466  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10467  fi
 10468  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 10469     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 10470  fi
 10471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 10472  $as_echo "$ac_cv_prog_cxx_g" >&6; }
 10473  if test "$ac_test_CXXFLAGS" = set; then
 10474    CXXFLAGS=$ac_save_CXXFLAGS
 10475  elif test $ac_cv_prog_cxx_g = yes; then
 10476    if test "$GXX" = yes; then
 10477      CXXFLAGS="-g -O2"
 10478    else
 10479      CXXFLAGS="-g"
 10480    fi
 10481  else
 10482    if test "$GXX" = yes; then
 10483      CXXFLAGS="-O2"
 10484    else
 10485      CXXFLAGS=
 10486    fi
 10487  fi
 10488  ac_ext=c
 10489  ac_cpp='$CPP $CPPFLAGS'
 10490  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 10491  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 10492  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 10493  
 10494  
 10495    echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
 10496    cxxflags_ac_prog_cxx=$CXXFLAGS
 10497    cxxflags_list=ac_prog_cxx
 10498  
 10499    # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
 10500    # if AC_PROG_CXX thinks that doesn't work.  $CFLAGS stands a good chance
 10501    # of working, eg. on a GNU system where CC=gcc and CXX=g++.
 10502    #
 10503    if test "$test_CXXFLAGS" != set; then
 10504      cxxflags_cflags=$CFLAGS
 10505      cxxflags_list="cflags $cxxflags_list"
 10506      if test "$ac_prog_cxx_g" = no; then
 10507        cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
 10508      fi
 10509    fi
 10510  
 10511    # See if the C++ compiler works.  If the user specified CXXFLAGS then all
 10512    # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
 10513    # give a fatal error, just leaves CXX set to a default g++.  If on the
 10514    # other hand the user didn't specify CXXFLAGS then we get to try here our
 10515    # $cxxflags_list alternatives.
 10516    #
 10517    # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
 10518    #
 10519    for cxxflags_choice in $cxxflags_list; do
 10520      eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
 10521      { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
 10522  $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
 10523  gmp_prog_cxx_works=yes
 10524  
 10525  # start with a plain "main()", then go on to further checks
 10526  if test "$gmp_prog_cxx_works" = yes; then
 10527    # remove anything that might look like compiler output to our "||" expression
 10528    rm -f conftest* a.out b.out a.exe a_out.exe
 10529    cat >conftest.cc <<EOF
 10530  
 10531  int main (void) { return 0; }
 10532  EOF
 10533    echo "Test compile: " >&5
 10534    gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
 10535    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
 10536    (eval $gmp_cxxcompile) 2>&5
 10537    ac_status=$?
 10538    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10539    test $ac_status = 0; }; then
 10540      if test "$cross_compiling" = no; then
 10541        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
 10542    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 10543    (eval $ac_try) 2>&5
 10544    ac_status=$?
 10545    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10546    test $ac_status = 0; }; }; then :;
 10547        else
 10548          gmp_prog_cxx_works="no, program does not run"
 10549        fi
 10550      fi
 10551    else
 10552      gmp_prog_cxx_works="no"
 10553    fi
 10554    case $gmp_prog_cxx_works in
 10555      no*)
 10556        echo "failed program was:" >&5
 10557        cat conftest.cc >&5
 10558        ;;
 10559    esac
 10560    rm -f conftest* a.out b.out a.exe a_out.exe
 10561  fi
 10562  
 10563  
 10564  if test "$gmp_prog_cxx_works" = yes; then
 10565    # remove anything that might look like compiler output to our "||" expression
 10566    rm -f conftest* a.out b.out a.exe a_out.exe
 10567    cat >conftest.cc <<EOF
 10568  namespace foo { }
 10569  using namespace foo;
 10570  
 10571  int main (void) { return 0; }
 10572  EOF
 10573    echo "Test compile: namespace" >&5
 10574    gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
 10575    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
 10576    (eval $gmp_cxxcompile) 2>&5
 10577    ac_status=$?
 10578    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10579    test $ac_status = 0; }; then
 10580      if test "$cross_compiling" = no; then
 10581        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
 10582    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 10583    (eval $ac_try) 2>&5
 10584    ac_status=$?
 10585    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10586    test $ac_status = 0; }; }; then :;
 10587        else
 10588          gmp_prog_cxx_works="no, namespace, program does not run"
 10589        fi
 10590      fi
 10591    else
 10592      gmp_prog_cxx_works="no, namespace"
 10593    fi
 10594    case $gmp_prog_cxx_works in
 10595      no*)
 10596        echo "failed program was:" >&5
 10597        cat conftest.cc >&5
 10598        ;;
 10599    esac
 10600    rm -f conftest* a.out b.out a.exe a_out.exe
 10601  fi
 10602  
 10603  
 10604  # GMP requires the standard C++ iostream classes
 10605  if test "$gmp_prog_cxx_works" = yes; then
 10606    # remove anything that might look like compiler output to our "||" expression
 10607    rm -f conftest* a.out b.out a.exe a_out.exe
 10608    cat >conftest.cc <<EOF
 10609  /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
 10610      pre-standard iostream.h. */
 10611  #include <iostream>
 10612  
 10613  /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
 10614     mode, since that mode puts cout in the global namespace, not "std".  */
 10615  void someoutput (void) { std::cout << 123; }
 10616  
 10617  int main (void) { return 0; }
 10618  EOF
 10619    echo "Test compile: std iostream" >&5
 10620    gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
 10621    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
 10622    (eval $gmp_cxxcompile) 2>&5
 10623    ac_status=$?
 10624    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10625    test $ac_status = 0; }; then
 10626      if test "$cross_compiling" = no; then
 10627        if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
 10628    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 10629    (eval $ac_try) 2>&5
 10630    ac_status=$?
 10631    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 10632    test $ac_status = 0; }; }; then :;
 10633        else
 10634          gmp_prog_cxx_works="no, std iostream, program does not run"
 10635        fi
 10636      fi
 10637    else
 10638      gmp_prog_cxx_works="no, std iostream"
 10639    fi
 10640    case $gmp_prog_cxx_works in
 10641      no*)
 10642        echo "failed program was:" >&5
 10643        cat conftest.cc >&5
 10644        ;;
 10645    esac
 10646    rm -f conftest* a.out b.out a.exe a_out.exe
 10647  fi
 10648  
 10649  
 10650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
 10651  $as_echo "$gmp_prog_cxx_works" >&6; }
 10652  case $gmp_prog_cxx_works in
 10653    yes)
 10654      want_cxx=yes
 10655        break
 10656      ;;
 10657    *)
 10658  
 10659      ;;
 10660  esac
 10661  
 10662    done
 10663  
 10664    # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
 10665    if test $want_cxx = no && test $enable_cxx = yes; then
 10666      as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5
 10667    fi
 10668  fi
 10669  
 10670   if test $want_cxx = yes; then
 10671    WANT_CXX_TRUE=
 10672    WANT_CXX_FALSE='#'
 10673  else
 10674    WANT_CXX_TRUE='#'
 10675    WANT_CXX_FALSE=
 10676  fi
 10677  
 10678  
 10679  # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
 10680  # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
 10681  # hence execute it unconditionally, and that will fail if there's no C++
 10682  # compiler (and no generic /lib/cpp).
 10683  #
 10684  if test $want_cxx = yes; then
 10685    ac_ext=cpp
 10686  ac_cpp='$CXXCPP $CPPFLAGS'
 10687  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 10688  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 10689  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 10690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 10691  $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 10692  if test -z "$CXXCPP"; then
 10693    if ${ac_cv_prog_CXXCPP+:} false; then :
 10694    $as_echo_n "(cached) " >&6
 10695  else
 10696        # Double quotes because CXXCPP needs to be expanded
 10697      for CXXCPP in "$CXX -E" "/lib/cpp"
 10698      do
 10699        ac_preproc_ok=false
 10700  for ac_cxx_preproc_warn_flag in '' yes
 10701  do
 10702    # Use a header file that comes with gcc, so configuring glibc
 10703    # with a fresh cross-compiler works.
 10704    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10705    # <limits.h> exists even on freestanding compilers.
 10706    # On the NeXT, cc -E runs the code through the compiler's parser,
 10707    # not just through cpp. "Syntax error" is here to catch this case.
 10708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10709  /* end confdefs.h.  */
 10710  #ifdef __STDC__
 10711  # include <limits.h>
 10712  #else
 10713  # include <assert.h>
 10714  #endif
 10715  		     Syntax error
 10716  _ACEOF
 10717  if ac_fn_cxx_try_cpp "$LINENO"; then :
 10718  
 10719  else
 10720    # Broken: fails on valid input.
 10721  continue
 10722  fi
 10723  rm -f conftest.err conftest.i conftest.$ac_ext
 10724  
 10725    # OK, works on sane cases.  Now check whether nonexistent headers
 10726    # can be detected and how.
 10727    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10728  /* end confdefs.h.  */
 10729  #include <ac_nonexistent.h>
 10730  _ACEOF
 10731  if ac_fn_cxx_try_cpp "$LINENO"; then :
 10732    # Broken: success on invalid input.
 10733  continue
 10734  else
 10735    # Passes both tests.
 10736  ac_preproc_ok=:
 10737  break
 10738  fi
 10739  rm -f conftest.err conftest.i conftest.$ac_ext
 10740  
 10741  done
 10742  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 10743  rm -f conftest.i conftest.err conftest.$ac_ext
 10744  if $ac_preproc_ok; then :
 10745    break
 10746  fi
 10747  
 10748      done
 10749      ac_cv_prog_CXXCPP=$CXXCPP
 10750  
 10751  fi
 10752    CXXCPP=$ac_cv_prog_CXXCPP
 10753  else
 10754    ac_cv_prog_CXXCPP=$CXXCPP
 10755  fi
 10756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 10757  $as_echo "$CXXCPP" >&6; }
 10758  ac_preproc_ok=false
 10759  for ac_cxx_preproc_warn_flag in '' yes
 10760  do
 10761    # Use a header file that comes with gcc, so configuring glibc
 10762    # with a fresh cross-compiler works.
 10763    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 10764    # <limits.h> exists even on freestanding compilers.
 10765    # On the NeXT, cc -E runs the code through the compiler's parser,
 10766    # not just through cpp. "Syntax error" is here to catch this case.
 10767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10768  /* end confdefs.h.  */
 10769  #ifdef __STDC__
 10770  # include <limits.h>
 10771  #else
 10772  # include <assert.h>
 10773  #endif
 10774  		     Syntax error
 10775  _ACEOF
 10776  if ac_fn_cxx_try_cpp "$LINENO"; then :
 10777  
 10778  else
 10779    # Broken: fails on valid input.
 10780  continue
 10781  fi
 10782  rm -f conftest.err conftest.i conftest.$ac_ext
 10783  
 10784    # OK, works on sane cases.  Now check whether nonexistent headers
 10785    # can be detected and how.
 10786    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10787  /* end confdefs.h.  */
 10788  #include <ac_nonexistent.h>
 10789  _ACEOF
 10790  if ac_fn_cxx_try_cpp "$LINENO"; then :
 10791    # Broken: success on invalid input.
 10792  continue
 10793  else
 10794    # Passes both tests.
 10795  ac_preproc_ok=:
 10796  break
 10797  fi
 10798  rm -f conftest.err conftest.i conftest.$ac_ext
 10799  
 10800  done
 10801  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 10802  rm -f conftest.i conftest.err conftest.$ac_ext
 10803  if $ac_preproc_ok; then :
 10804  
 10805  else
 10806    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 10807  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 10808  as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 10809  See \`config.log' for more details" "$LINENO" 5; }
 10810  fi
 10811  
 10812  ac_ext=c
 10813  ac_cpp='$CPP $CPPFLAGS'
 10814  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 10815  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 10816  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 10817  
 10818  fi
 10819  
 10820  
 10821  # Path setups for Cray, according to IEEE or CFP.  These must come after
 10822  # deciding the compiler.
 10823  #
 10824  
 10825  
 10826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 10827  $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 10828  if ${ac_cv_path_GREP+:} false; then :
 10829    $as_echo_n "(cached) " >&6
 10830  else
 10831    if test -z "$GREP"; then
 10832    ac_path_GREP_found=false
 10833    # Loop through the user's path and test for each of PROGNAME-LIST
 10834    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10835  for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 10836  do
 10837    IFS=$as_save_IFS
 10838    test -z "$as_dir" && as_dir=.
 10839      for ac_prog in grep ggrep; do
 10840      for ac_exec_ext in '' $ac_executable_extensions; do
 10841        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 10842        as_fn_executable_p "$ac_path_GREP" || continue
 10843  # Check for GNU ac_path_GREP and select it if it is found.
 10844    # Check for GNU $ac_path_GREP
 10845  case `"$ac_path_GREP" --version 2>&1` in
 10846  *GNU*)
 10847    ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 10848  *)
 10849    ac_count=0
 10850    $as_echo_n 0123456789 >"conftest.in"
 10851    while :
 10852    do
 10853      cat "conftest.in" "conftest.in" >"conftest.tmp"
 10854      mv "conftest.tmp" "conftest.in"
 10855      cp "conftest.in" "conftest.nl"
 10856      $as_echo 'GREP' >> "conftest.nl"
 10857      "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 10858      diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 10859      as_fn_arith $ac_count + 1 && ac_count=$as_val
 10860      if test $ac_count -gt ${ac_path_GREP_max-0}; then
 10861        # Best one so far, save it but keep looking for a better one
 10862        ac_cv_path_GREP="$ac_path_GREP"
 10863        ac_path_GREP_max=$ac_count
 10864      fi
 10865      # 10*(2^10) chars as input seems more than enough
 10866      test $ac_count -gt 10 && break
 10867    done
 10868    rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 10869  esac
 10870  
 10871        $ac_path_GREP_found && break 3
 10872      done
 10873    done
 10874    done
 10875  IFS=$as_save_IFS
 10876    if test -z "$ac_cv_path_GREP"; then
 10877      as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 10878    fi
 10879  else
 10880    ac_cv_path_GREP=$GREP
 10881  fi
 10882  
 10883  fi
 10884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 10885  $as_echo "$ac_cv_path_GREP" >&6; }
 10886   GREP="$ac_cv_path_GREP"
 10887  
 10888  
 10889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 10890  $as_echo_n "checking for egrep... " >&6; }
 10891  if ${ac_cv_path_EGREP+:} false; then :
 10892    $as_echo_n "(cached) " >&6
 10893  else
 10894    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 10895     then ac_cv_path_EGREP="$GREP -E"
 10896     else
 10897       if test -z "$EGREP"; then
 10898    ac_path_EGREP_found=false
 10899    # Loop through the user's path and test for each of PROGNAME-LIST
 10900    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 10901  for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 10902  do
 10903    IFS=$as_save_IFS
 10904    test -z "$as_dir" && as_dir=.
 10905      for ac_prog in egrep; do
 10906      for ac_exec_ext in '' $ac_executable_extensions; do
 10907        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 10908        as_fn_executable_p "$ac_path_EGREP" || continue
 10909  # Check for GNU ac_path_EGREP and select it if it is found.
 10910    # Check for GNU $ac_path_EGREP
 10911  case `"$ac_path_EGREP" --version 2>&1` in
 10912  *GNU*)
 10913    ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 10914  *)
 10915    ac_count=0
 10916    $as_echo_n 0123456789 >"conftest.in"
 10917    while :
 10918    do
 10919      cat "conftest.in" "conftest.in" >"conftest.tmp"
 10920      mv "conftest.tmp" "conftest.in"
 10921      cp "conftest.in" "conftest.nl"
 10922      $as_echo 'EGREP' >> "conftest.nl"
 10923      "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 10924      diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 10925      as_fn_arith $ac_count + 1 && ac_count=$as_val
 10926      if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 10927        # Best one so far, save it but keep looking for a better one
 10928        ac_cv_path_EGREP="$ac_path_EGREP"
 10929        ac_path_EGREP_max=$ac_count
 10930      fi
 10931      # 10*(2^10) chars as input seems more than enough
 10932      test $ac_count -gt 10 && break
 10933    done
 10934    rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 10935  esac
 10936  
 10937        $ac_path_EGREP_found && break 3
 10938      done
 10939    done
 10940    done
 10941  IFS=$as_save_IFS
 10942    if test -z "$ac_cv_path_EGREP"; then
 10943      as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 10944    fi
 10945  else
 10946    ac_cv_path_EGREP=$EGREP
 10947  fi
 10948  
 10949     fi
 10950  fi
 10951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 10952  $as_echo "$ac_cv_path_EGREP" >&6; }
 10953   EGREP="$ac_cv_path_EGREP"
 10954  
 10955  
 10956  case $host_cpu in
 10957    c90 | t90)
 10958      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 10959  /* end confdefs.h.  */
 10960  #ifdef _CRAYIEEE
 10961  yes
 10962  #endif
 10963  _ACEOF
 10964  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 10965    $EGREP "yes" >/dev/null 2>&1; then :
 10966    add_path="cray/ieee"
 10967  else
 10968    add_path="cray/cfp"; extra_functions="mulwwc90"
 10969  fi
 10970  rm -f conftest*
 10971  
 10972      ;;
 10973    j90 | sv1)
 10974      add_path="cray/cfp"; extra_functions="mulwwj90"
 10975      ;;
 10976  esac
 10977  
 10978  
 10979  
 10980  if test -z "$MPN_PATH"; then
 10981    path="$add_path $path"
 10982  fi
 10983  
 10984  # For a nail build, also look in "nails" subdirectories.
 10985  #
 10986  if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
 10987    new_path=
 10988    for i in $path; do
 10989      case $i in
 10990      generic) new_path="$new_path $i" ;;
 10991      *)       new_path="$new_path $i/nails $i" ;;
 10992      esac
 10993    done
 10994    path=$new_path
 10995  fi
 10996  
 10997  
 10998  # Put all directories into CPUVEC_list so as to get a full set of
 10999  # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
 11000  # empty because mmx and/or sse2 had to be dropped.
 11001  #
 11002  for i in $fat_path; do
 11003    tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
 11004    CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
 11005  done
 11006  
 11007  
 11008  # If there's any sse2 or mmx in the path, check whether the assembler
 11009  # supports it, and remove if not.
 11010  #
 11011  # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
 11012  # enough assembler.
 11013  #
 11014  case $host in
 11015    i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*)
 11016      if test "$ABI" = 32; then
 11017        case "$path $fat_path" in
 11018          *mmx*)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
 11019  $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
 11020  if ${gmp_cv_asm_x86_mmx+:} false; then :
 11021    $as_echo_n "(cached) " >&6
 11022  else
 11023    cat >conftest.s <<EOF
 11024  	.text
 11025  	movq	%mm0, %mm1
 11026  EOF
 11027  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 11028  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 11029    (eval $gmp_assemble) 2>&5
 11030    ac_status=$?
 11031    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 11032    test $ac_status = 0; }; then
 11033    cat conftest.out >&5
 11034    gmp_cv_asm_x86_mmx=yes
 11035  case $host in
 11036  *-*-solaris*)
 11037    if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
 11038      if grep "0f 6f c1" conftest.out >/dev/null; then
 11039        gmp_cv_asm_x86_mmx=movq-bug
 11040      fi
 11041    else
 11042      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
 11043  $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
 11044    fi
 11045  esac
 11046  else
 11047    cat conftest.out >&5
 11048    echo "configure: failed program was:" >&5
 11049    cat conftest.s >&5
 11050    gmp_cv_asm_x86_mmx=no
 11051  fi
 11052  rm -f conftest*
 11053  
 11054  fi
 11055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
 11056  $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
 11057  
 11058  case $gmp_cv_asm_x86_mmx in
 11059  movq-bug)
 11060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11061  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11062    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
 11063  $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
 11064    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
 11065  $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
 11066    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
 11067  $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
 11068    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
 11069  $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
 11070    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
 11071  $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
 11072    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
 11073  $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
 11074    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
 11075  $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
 11076    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11077  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11078    ;;
 11079  no)
 11080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11081  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
 11083  $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
 11084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
 11085  $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
 11086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
 11087  $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
 11088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
 11089  $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
 11090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
 11091  $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
 11092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11093  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11094    ;;
 11095  esac
 11096  if test "$gmp_cv_asm_x86_mmx" = yes; then
 11097    :
 11098  else
 11099    tmp_path=
 11100  for i in $path; do
 11101    case $i in
 11102      */*mmx*) ;;
 11103      *) tmp_path="$tmp_path $i" ;;
 11104    esac
 11105  done
 11106  path="$tmp_path"
 11107  
 11108  tmp_path=
 11109  for i in $fat_path; do
 11110    case $i in
 11111      */*mmx*) ;;
 11112      *) tmp_path="$tmp_path $i" ;;
 11113    esac
 11114  done
 11115  fat_path="$tmp_path"
 11116  
 11117  
 11118  fi
 11119   ;;
 11120        esac
 11121        case "$path $fat_path" in
 11122          *sse2*)  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
 11123  $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
 11124  if ${gmp_cv_asm_x86_sse2+:} false; then :
 11125    $as_echo_n "(cached) " >&6
 11126  else
 11127    cat >conftest.s <<EOF
 11128  	.text
 11129  	paddq	%mm0, %mm1
 11130  EOF
 11131  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 11132  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 11133    (eval $gmp_assemble) 2>&5
 11134    ac_status=$?
 11135    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 11136    test $ac_status = 0; }; then
 11137    cat conftest.out >&5
 11138    gmp_cv_asm_x86_sse2=yes
 11139  else
 11140    cat conftest.out >&5
 11141    echo "configure: failed program was:" >&5
 11142    cat conftest.s >&5
 11143    gmp_cv_asm_x86_sse2=no
 11144  fi
 11145  rm -f conftest*
 11146  
 11147  
 11148  fi
 11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
 11150  $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
 11151  case $gmp_cv_asm_x86_sse2 in
 11152  yes)
 11153    :
 11154    ;;
 11155  *)
 11156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11157  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11158    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
 11159  $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
 11160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
 11161  $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
 11162    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
 11163  $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
 11164    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
 11165  $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
 11166    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
 11167  $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
 11168    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11169  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11170    tmp_path=
 11171  for i in $path; do
 11172    case $i in
 11173      */sse2) ;;
 11174      *) tmp_path="$tmp_path $i" ;;
 11175    esac
 11176  done
 11177  path="$tmp_path"
 11178  
 11179  tmp_path=
 11180  for i in $fat_path; do
 11181    case $i in
 11182      */sse2) ;;
 11183      *) tmp_path="$tmp_path $i" ;;
 11184    esac
 11185  done
 11186  fat_path="$tmp_path"
 11187  
 11188  
 11189    ;;
 11190  esac
 11191   ;;
 11192        esac
 11193      fi
 11194      case "$path $fat_path" in
 11195        *mulx*)  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about the mulx instruction" >&5
 11196  $as_echo_n "checking if the assembler knows about the mulx instruction... " >&6; }
 11197  if ${gmp_cv_asm_x86_mulx+:} false; then :
 11198    $as_echo_n "(cached) " >&6
 11199  else
 11200    cat >conftest.s <<EOF
 11201  	.text
 11202  	mulx	%r8, %r9, %r10
 11203  EOF
 11204  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 11205  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 11206    (eval $gmp_assemble) 2>&5
 11207    ac_status=$?
 11208    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 11209    test $ac_status = 0; }; then
 11210    cat conftest.out >&5
 11211    gmp_cv_asm_x86_mulx=yes
 11212  else
 11213    cat conftest.out >&5
 11214    echo "configure: failed program was:" >&5
 11215    cat conftest.s >&5
 11216    gmp_cv_asm_x86_mulx=no
 11217  fi
 11218  rm -f conftest*
 11219  
 11220  
 11221  fi
 11222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mulx" >&5
 11223  $as_echo "$gmp_cv_asm_x86_mulx" >&6; }
 11224  case $gmp_cv_asm_x86_mulx in
 11225  yes)
 11226    :
 11227    ;;
 11228  *)
 11229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11230  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
 11232  $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
 11233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has the mulx instruction, but it can't be" >&5
 11234  $as_echo "$as_me: WARNING: | Host CPU has the mulx instruction, but it can't be" >&2;}
 11235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | assembled by" >&5
 11236  $as_echo "$as_me: WARNING: | assembled by" >&2;}
 11237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
 11238  $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
 11239    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5
 11240  $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;}
 11241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
 11242  $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
 11243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11244  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11245    tmp_path=
 11246  for i in $path; do
 11247    case $i in
 11248      */mulx) ;;
 11249      *) tmp_path="$tmp_path $i" ;;
 11250    esac
 11251  done
 11252  path="$tmp_path"
 11253  
 11254  tmp_path=
 11255  for i in $fat_path; do
 11256    case $i in
 11257      */mulx) ;;
 11258      *) tmp_path="$tmp_path $i" ;;
 11259    esac
 11260  done
 11261  fat_path="$tmp_path"
 11262  
 11263  
 11264    ;;
 11265  esac
 11266   ;;
 11267      esac
 11268      case "$path $fat_path" in
 11269        *adx*)   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about the adox instruction" >&5
 11270  $as_echo_n "checking if the assembler knows about the adox instruction... " >&6; }
 11271  if ${gmp_cv_asm_x86_adx+:} false; then :
 11272    $as_echo_n "(cached) " >&6
 11273  else
 11274    cat >conftest.s <<EOF
 11275  	.text
 11276  	adox	%r8, %r9
 11277  	adcx	%r8, %r9
 11278  EOF
 11279  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 11280  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 11281    (eval $gmp_assemble) 2>&5
 11282    ac_status=$?
 11283    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 11284    test $ac_status = 0; }; then
 11285    cat conftest.out >&5
 11286    gmp_cv_asm_x86_adx=yes
 11287  else
 11288    cat conftest.out >&5
 11289    echo "configure: failed program was:" >&5
 11290    cat conftest.s >&5
 11291    gmp_cv_asm_x86_adx=no
 11292  fi
 11293  rm -f conftest*
 11294  
 11295  
 11296  fi
 11297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_adx" >&5
 11298  $as_echo "$gmp_cv_asm_x86_adx" >&6; }
 11299  case $gmp_cv_asm_x86_adx in
 11300  yes)
 11301    :
 11302    ;;
 11303  *)
 11304    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11305  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
 11307  $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
 11308    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has the adcx and adox instructions, but they" >&5
 11309  $as_echo "$as_me: WARNING: | Host CPU has the adcx and adox instructions, but they" >&2;}
 11310    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | can't be assembled by" >&5
 11311  $as_echo "$as_me: WARNING: | can't be assembled by" >&2;}
 11312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&5
 11313  $as_echo "$as_me: WARNING: |     $CCAS $CFLAGS $CPPFLAGS" >&2;}
 11314    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5
 11315  $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;}
 11316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
 11317  $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
 11318    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 11319  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 11320    tmp_path=
 11321  for i in $path; do
 11322    case $i in
 11323      */adx) ;;
 11324      *) tmp_path="$tmp_path $i" ;;
 11325    esac
 11326  done
 11327  path="$tmp_path"
 11328  
 11329  tmp_path=
 11330  for i in $fat_path; do
 11331    case $i in
 11332      */adx) ;;
 11333      *) tmp_path="$tmp_path $i" ;;
 11334    esac
 11335  done
 11336  fat_path="$tmp_path"
 11337  
 11338  
 11339    ;;
 11340  esac
 11341   ;;
 11342      esac
 11343      ;;
 11344  esac
 11345  
 11346  
 11347  if test "$enable_assembly" = "no"; then
 11348    path="generic"
 11349  
 11350  $as_echo "#define NO_ASM 1" >>confdefs.h
 11351  
 11352  #  for abi in $abilist; do
 11353  #    eval unset "path_\$abi"
 11354  #    eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
 11355  #  done
 11356  fi
 11357  
 11358  
 11359  cat >&5 <<EOF
 11360  Decided:
 11361  ABI=$ABI
 11362  CC=$CC
 11363  CFLAGS=$CFLAGS
 11364  CPPFLAGS=$CPPFLAGS
 11365  GMP_LDFLAGS=$GMP_LDFLAGS
 11366  CXX=$CXX
 11367  CXXFLAGS=$CXXFLAGS
 11368  path=$path
 11369  EOF
 11370  echo "using ABI=\"$ABI\""
 11371  echo "      CC=\"$CC\""
 11372  echo "      CFLAGS=\"$CFLAGS\""
 11373  echo "      CPPFLAGS=\"$CPPFLAGS\""
 11374  if test $want_cxx = yes; then
 11375    echo "      CXX=\"$CXX\""
 11376    echo "      CXXFLAGS=\"$CXXFLAGS\""
 11377  fi
 11378  echo "      MPN_PATH=\"$path\""
 11379  
 11380  
 11381  
 11382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
 11383  $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
 11384  if ${cl_cv_as_noexecstack+:} false; then :
 11385    $as_echo_n "(cached) " >&6
 11386  else
 11387      cat > conftest.c <<EOF
 11388  void foo() {}
 11389  EOF
 11390    if { ac_try='${CC} $CFLAGS $CPPFLAGS
 11391                       -S -o conftest.s conftest.c >/dev/null'
 11392    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 11393    (eval $ac_try) 2>&5
 11394    ac_status=$?
 11395    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 11396    test $ac_status = 0; }; } \
 11397       && grep .note.GNU-stack conftest.s >/dev/null \
 11398       && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
 11399                         -c -o conftest.o conftest.s >/dev/null'
 11400    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 11401    (eval $ac_try) 2>&5
 11402    ac_status=$?
 11403    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 11404    test $ac_status = 0; }; }
 11405    then
 11406      cl_cv_as_noexecstack=yes
 11407    else
 11408      cl_cv_as_noexecstack=no
 11409    fi
 11410    rm -f conftest*
 11411  fi
 11412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
 11413  $as_echo "$cl_cv_as_noexecstack" >&6; }
 11414    if test "$cl_cv_as_noexecstack" = yes; then
 11415      ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
 11416    fi
 11417  
 11418  
 11419  
 11420  
 11421  gmp_user_AR=$AR
 11422  if test -n "$ac_tool_prefix"; then
 11423    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 11424  set dummy ${ac_tool_prefix}ar; ac_word=$2
 11425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 11426  $as_echo_n "checking for $ac_word... " >&6; }
 11427  if ${ac_cv_prog_AR+:} false; then :
 11428    $as_echo_n "(cached) " >&6
 11429  else
 11430    if test -n "$AR"; then
 11431    ac_cv_prog_AR="$AR" # Let the user override the test.
 11432  else
 11433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11434  for as_dir in $PATH
 11435  do
 11436    IFS=$as_save_IFS
 11437    test -z "$as_dir" && as_dir=.
 11438      for ac_exec_ext in '' $ac_executable_extensions; do
 11439    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 11440      ac_cv_prog_AR="${ac_tool_prefix}ar"
 11441      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 11442      break 2
 11443    fi
 11444  done
 11445    done
 11446  IFS=$as_save_IFS
 11447  
 11448  fi
 11449  fi
 11450  AR=$ac_cv_prog_AR
 11451  if test -n "$AR"; then
 11452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 11453  $as_echo "$AR" >&6; }
 11454  else
 11455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 11456  $as_echo "no" >&6; }
 11457  fi
 11458  
 11459  
 11460  fi
 11461  if test -z "$ac_cv_prog_AR"; then
 11462    ac_ct_AR=$AR
 11463    # Extract the first word of "ar", so it can be a program name with args.
 11464  set dummy ar; ac_word=$2
 11465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 11466  $as_echo_n "checking for $ac_word... " >&6; }
 11467  if ${ac_cv_prog_ac_ct_AR+:} false; then :
 11468    $as_echo_n "(cached) " >&6
 11469  else
 11470    if test -n "$ac_ct_AR"; then
 11471    ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 11472  else
 11473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11474  for as_dir in $PATH
 11475  do
 11476    IFS=$as_save_IFS
 11477    test -z "$as_dir" && as_dir=.
 11478      for ac_exec_ext in '' $ac_executable_extensions; do
 11479    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 11480      ac_cv_prog_ac_ct_AR="ar"
 11481      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 11482      break 2
 11483    fi
 11484  done
 11485    done
 11486  IFS=$as_save_IFS
 11487  
 11488  fi
 11489  fi
 11490  ac_ct_AR=$ac_cv_prog_ac_ct_AR
 11491  if test -n "$ac_ct_AR"; then
 11492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 11493  $as_echo "$ac_ct_AR" >&6; }
 11494  else
 11495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 11496  $as_echo "no" >&6; }
 11497  fi
 11498  
 11499    if test "x$ac_ct_AR" = x; then
 11500      AR="ar"
 11501    else
 11502      case $cross_compiling:$ac_tool_warned in
 11503  yes:)
 11504  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 11505  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 11506  ac_tool_warned=yes ;;
 11507  esac
 11508      AR=$ac_ct_AR
 11509    fi
 11510  else
 11511    AR="$ac_cv_prog_AR"
 11512  fi
 11513  
 11514  if test -z "$gmp_user_AR"; then
 11515                          eval arflags=\"\$ar${abi1}_flags\"
 11516    test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
 11517    if test -n "$arflags"; then
 11518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
 11519  $as_echo_n "checking for extra ar flags... " >&6; }
 11520      AR="$AR $arflags"
 11521      ac_cv_prog_AR="$AR $arflags"
 11522      ac_cv_prog_ac_ct_AR="$AR $arflags"
 11523      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
 11524  $as_echo "$arflags" >&6; }
 11525    fi
 11526  fi
 11527  if test -z "$AR_FLAGS"; then
 11528    AR_FLAGS=cq
 11529  fi
 11530  
 11531  
 11532  gmp_user_NM=$NM
 11533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 11534  $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 11535  if ${lt_cv_path_NM+:} false; then :
 11536    $as_echo_n "(cached) " >&6
 11537  else
 11538    if test -n "$NM"; then
 11539    # Let the user override the test.
 11540    lt_cv_path_NM=$NM
 11541  else
 11542    lt_nm_to_check=${ac_tool_prefix}nm
 11543    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 11544      lt_nm_to_check="$lt_nm_to_check nm"
 11545    fi
 11546    for lt_tmp_nm in $lt_nm_to_check; do
 11547      lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 11548      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 11549        IFS=$lt_save_ifs
 11550        test -z "$ac_dir" && ac_dir=.
 11551        tmp_nm=$ac_dir/$lt_tmp_nm
 11552        if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 11553  	# Check to see if the nm accepts a BSD-compat flag.
 11554  	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 11555  	#   nm: unknown option "B" ignored
 11556  	# Tru64's nm complains that /dev/null is an invalid object file
 11557  	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 11558  	case $build_os in
 11559  	mingw*) lt_bad_file=conftest.nm/nofile ;;
 11560  	*) lt_bad_file=/dev/null ;;
 11561  	esac
 11562  	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
 11563  	*$lt_bad_file* | *'Invalid file or object type'*)
 11564  	  lt_cv_path_NM="$tmp_nm -B"
 11565  	  break 2
 11566  	  ;;
 11567  	*)
 11568  	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 11569  	  */dev/null*)
 11570  	    lt_cv_path_NM="$tmp_nm -p"
 11571  	    break 2
 11572  	    ;;
 11573  	  *)
 11574  	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 11575  	    continue # so that we can try to find one that supports BSD flags
 11576  	    ;;
 11577  	  esac
 11578  	  ;;
 11579  	esac
 11580        fi
 11581      done
 11582      IFS=$lt_save_ifs
 11583    done
 11584    : ${lt_cv_path_NM=no}
 11585  fi
 11586  fi
 11587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 11588  $as_echo "$lt_cv_path_NM" >&6; }
 11589  if test no != "$lt_cv_path_NM"; then
 11590    NM=$lt_cv_path_NM
 11591  else
 11592    # Didn't find any BSD compatible name lister, look for dumpbin.
 11593    if test -n "$DUMPBIN"; then :
 11594      # Let the user override the test.
 11595    else
 11596      if test -n "$ac_tool_prefix"; then
 11597    for ac_prog in dumpbin "link -dump"
 11598    do
 11599      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 11600  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 11601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 11602  $as_echo_n "checking for $ac_word... " >&6; }
 11603  if ${ac_cv_prog_DUMPBIN+:} false; then :
 11604    $as_echo_n "(cached) " >&6
 11605  else
 11606    if test -n "$DUMPBIN"; then
 11607    ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 11608  else
 11609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11610  for as_dir in $PATH
 11611  do
 11612    IFS=$as_save_IFS
 11613    test -z "$as_dir" && as_dir=.
 11614      for ac_exec_ext in '' $ac_executable_extensions; do
 11615    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 11616      ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 11617      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 11618      break 2
 11619    fi
 11620  done
 11621    done
 11622  IFS=$as_save_IFS
 11623  
 11624  fi
 11625  fi
 11626  DUMPBIN=$ac_cv_prog_DUMPBIN
 11627  if test -n "$DUMPBIN"; then
 11628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 11629  $as_echo "$DUMPBIN" >&6; }
 11630  else
 11631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 11632  $as_echo "no" >&6; }
 11633  fi
 11634  
 11635  
 11636      test -n "$DUMPBIN" && break
 11637    done
 11638  fi
 11639  if test -z "$DUMPBIN"; then
 11640    ac_ct_DUMPBIN=$DUMPBIN
 11641    for ac_prog in dumpbin "link -dump"
 11642  do
 11643    # Extract the first word of "$ac_prog", so it can be a program name with args.
 11644  set dummy $ac_prog; ac_word=$2
 11645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 11646  $as_echo_n "checking for $ac_word... " >&6; }
 11647  if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 11648    $as_echo_n "(cached) " >&6
 11649  else
 11650    if test -n "$ac_ct_DUMPBIN"; then
 11651    ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 11652  else
 11653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11654  for as_dir in $PATH
 11655  do
 11656    IFS=$as_save_IFS
 11657    test -z "$as_dir" && as_dir=.
 11658      for ac_exec_ext in '' $ac_executable_extensions; do
 11659    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 11660      ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 11661      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 11662      break 2
 11663    fi
 11664  done
 11665    done
 11666  IFS=$as_save_IFS
 11667  
 11668  fi
 11669  fi
 11670  ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 11671  if test -n "$ac_ct_DUMPBIN"; then
 11672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 11673  $as_echo "$ac_ct_DUMPBIN" >&6; }
 11674  else
 11675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 11676  $as_echo "no" >&6; }
 11677  fi
 11678  
 11679  
 11680    test -n "$ac_ct_DUMPBIN" && break
 11681  done
 11682  
 11683    if test "x$ac_ct_DUMPBIN" = x; then
 11684      DUMPBIN=":"
 11685    else
 11686      case $cross_compiling:$ac_tool_warned in
 11687  yes:)
 11688  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 11689  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 11690  ac_tool_warned=yes ;;
 11691  esac
 11692      DUMPBIN=$ac_ct_DUMPBIN
 11693    fi
 11694  fi
 11695  
 11696      case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
 11697      *COFF*)
 11698        DUMPBIN="$DUMPBIN -symbols -headers"
 11699        ;;
 11700      *)
 11701        DUMPBIN=:
 11702        ;;
 11703      esac
 11704    fi
 11705  
 11706    if test : != "$DUMPBIN"; then
 11707      NM=$DUMPBIN
 11708    fi
 11709  fi
 11710  test -z "$NM" && NM=nm
 11711  
 11712  
 11713  
 11714  
 11715  
 11716  
 11717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 11718  $as_echo_n "checking the name lister ($NM) interface... " >&6; }
 11719  if ${lt_cv_nm_interface+:} false; then :
 11720    $as_echo_n "(cached) " >&6
 11721  else
 11722    lt_cv_nm_interface="BSD nm"
 11723    echo "int some_variable = 0;" > conftest.$ac_ext
 11724    (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 11725    (eval "$ac_compile" 2>conftest.err)
 11726    cat conftest.err >&5
 11727    (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 11728    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 11729    cat conftest.err >&5
 11730    (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 11731    cat conftest.out >&5
 11732    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 11733      lt_cv_nm_interface="MS dumpbin"
 11734    fi
 11735    rm -f conftest*
 11736  fi
 11737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 11738  $as_echo "$lt_cv_nm_interface" >&6; }
 11739  
 11740  
 11741  # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
 11742  # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found.  In this
 11743  # case run it again to try the native "nm", firstly so that likely locations
 11744  # are searched, secondly so that -B or -p are added if necessary for BSD
 11745  # format.  This is necessary for instance on OSF with "./configure
 11746  # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
 11747  #
 11748  if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
 11749    $as_unset lt_cv_path_NM
 11750    gmp_save_ac_tool_prefix=$ac_tool_prefix
 11751    ac_tool_prefix=
 11752    NM=
 11753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 11754  $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 11755  if ${lt_cv_path_NM+:} false; then :
 11756    $as_echo_n "(cached) " >&6
 11757  else
 11758    if test -n "$NM"; then
 11759    # Let the user override the test.
 11760    lt_cv_path_NM=$NM
 11761  else
 11762    lt_nm_to_check=${ac_tool_prefix}nm
 11763    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 11764      lt_nm_to_check="$lt_nm_to_check nm"
 11765    fi
 11766    for lt_tmp_nm in $lt_nm_to_check; do
 11767      lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 11768      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 11769        IFS=$lt_save_ifs
 11770        test -z "$ac_dir" && ac_dir=.
 11771        tmp_nm=$ac_dir/$lt_tmp_nm
 11772        if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 11773  	# Check to see if the nm accepts a BSD-compat flag.
 11774  	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 11775  	#   nm: unknown option "B" ignored
 11776  	# Tru64's nm complains that /dev/null is an invalid object file
 11777  	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 11778  	case $build_os in
 11779  	mingw*) lt_bad_file=conftest.nm/nofile ;;
 11780  	*) lt_bad_file=/dev/null ;;
 11781  	esac
 11782  	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
 11783  	*$lt_bad_file* | *'Invalid file or object type'*)
 11784  	  lt_cv_path_NM="$tmp_nm -B"
 11785  	  break 2
 11786  	  ;;
 11787  	*)
 11788  	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 11789  	  */dev/null*)
 11790  	    lt_cv_path_NM="$tmp_nm -p"
 11791  	    break 2
 11792  	    ;;
 11793  	  *)
 11794  	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 11795  	    continue # so that we can try to find one that supports BSD flags
 11796  	    ;;
 11797  	  esac
 11798  	  ;;
 11799  	esac
 11800        fi
 11801      done
 11802      IFS=$lt_save_ifs
 11803    done
 11804    : ${lt_cv_path_NM=no}
 11805  fi
 11806  fi
 11807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 11808  $as_echo "$lt_cv_path_NM" >&6; }
 11809  if test no != "$lt_cv_path_NM"; then
 11810    NM=$lt_cv_path_NM
 11811  else
 11812    # Didn't find any BSD compatible name lister, look for dumpbin.
 11813    if test -n "$DUMPBIN"; then :
 11814      # Let the user override the test.
 11815    else
 11816      if test -n "$ac_tool_prefix"; then
 11817    for ac_prog in dumpbin "link -dump"
 11818    do
 11819      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 11820  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 11821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 11822  $as_echo_n "checking for $ac_word... " >&6; }
 11823  if ${ac_cv_prog_DUMPBIN+:} false; then :
 11824    $as_echo_n "(cached) " >&6
 11825  else
 11826    if test -n "$DUMPBIN"; then
 11827    ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 11828  else
 11829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11830  for as_dir in $PATH
 11831  do
 11832    IFS=$as_save_IFS
 11833    test -z "$as_dir" && as_dir=.
 11834      for ac_exec_ext in '' $ac_executable_extensions; do
 11835    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 11836      ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 11837      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 11838      break 2
 11839    fi
 11840  done
 11841    done
 11842  IFS=$as_save_IFS
 11843  
 11844  fi
 11845  fi
 11846  DUMPBIN=$ac_cv_prog_DUMPBIN
 11847  if test -n "$DUMPBIN"; then
 11848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 11849  $as_echo "$DUMPBIN" >&6; }
 11850  else
 11851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 11852  $as_echo "no" >&6; }
 11853  fi
 11854  
 11855  
 11856      test -n "$DUMPBIN" && break
 11857    done
 11858  fi
 11859  if test -z "$DUMPBIN"; then
 11860    ac_ct_DUMPBIN=$DUMPBIN
 11861    for ac_prog in dumpbin "link -dump"
 11862  do
 11863    # Extract the first word of "$ac_prog", so it can be a program name with args.
 11864  set dummy $ac_prog; ac_word=$2
 11865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 11866  $as_echo_n "checking for $ac_word... " >&6; }
 11867  if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 11868    $as_echo_n "(cached) " >&6
 11869  else
 11870    if test -n "$ac_ct_DUMPBIN"; then
 11871    ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 11872  else
 11873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 11874  for as_dir in $PATH
 11875  do
 11876    IFS=$as_save_IFS
 11877    test -z "$as_dir" && as_dir=.
 11878      for ac_exec_ext in '' $ac_executable_extensions; do
 11879    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 11880      ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 11881      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 11882      break 2
 11883    fi
 11884  done
 11885    done
 11886  IFS=$as_save_IFS
 11887  
 11888  fi
 11889  fi
 11890  ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 11891  if test -n "$ac_ct_DUMPBIN"; then
 11892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 11893  $as_echo "$ac_ct_DUMPBIN" >&6; }
 11894  else
 11895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 11896  $as_echo "no" >&6; }
 11897  fi
 11898  
 11899  
 11900    test -n "$ac_ct_DUMPBIN" && break
 11901  done
 11902  
 11903    if test "x$ac_ct_DUMPBIN" = x; then
 11904      DUMPBIN=":"
 11905    else
 11906      case $cross_compiling:$ac_tool_warned in
 11907  yes:)
 11908  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 11909  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 11910  ac_tool_warned=yes ;;
 11911  esac
 11912      DUMPBIN=$ac_ct_DUMPBIN
 11913    fi
 11914  fi
 11915  
 11916      case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
 11917      *COFF*)
 11918        DUMPBIN="$DUMPBIN -symbols -headers"
 11919        ;;
 11920      *)
 11921        DUMPBIN=:
 11922        ;;
 11923      esac
 11924    fi
 11925  
 11926    if test : != "$DUMPBIN"; then
 11927      NM=$DUMPBIN
 11928    fi
 11929  fi
 11930  test -z "$NM" && NM=nm
 11931  
 11932  
 11933  
 11934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 11935  $as_echo_n "checking the name lister ($NM) interface... " >&6; }
 11936  if ${lt_cv_nm_interface+:} false; then :
 11937    $as_echo_n "(cached) " >&6
 11938  else
 11939    lt_cv_nm_interface="BSD nm"
 11940    echo "int some_variable = 0;" > conftest.$ac_ext
 11941    (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 11942    (eval "$ac_compile" 2>conftest.err)
 11943    cat conftest.err >&5
 11944    (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 11945    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 11946    cat conftest.err >&5
 11947    (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 11948    cat conftest.out >&5
 11949    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 11950      lt_cv_nm_interface="MS dumpbin"
 11951    fi
 11952    rm -f conftest*
 11953  fi
 11954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 11955  $as_echo "$lt_cv_nm_interface" >&6; }
 11956  
 11957    ac_tool_prefix=$gmp_save_ac_tool_prefix
 11958  fi
 11959  
 11960  if test -z "$gmp_user_NM"; then
 11961                          eval nmflags=\"\$nm${abi1}_flags\"
 11962    test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
 11963    if test -n "$nmflags"; then
 11964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
 11965  $as_echo_n "checking for extra nm flags... " >&6; }
 11966      NM="$NM $nmflags"
 11967      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
 11968  $as_echo "$nmflags" >&6; }
 11969    fi
 11970  fi
 11971  
 11972  
 11973  case $host in
 11974    # FIXME: On AIX 3 and 4, $libname.a is included in libtool
 11975    # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
 11976    # it impossible to build shared and static libraries simultaneously.
 11977    # Disable shared libraries by default, but let the user override with
 11978    # --enable-shared --disable-static.
 11979    #
 11980    # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
 11981    # and *-*-os2* too, but wait for someone to test this before worrying
 11982    # about it.  If there is a problem then of course libtool is the right
 11983    # place to fix it.
 11984    #
 11985    *-*-aix[34]*)
 11986      if test -z "$enable_shared"; then enable_shared=no; fi ;;
 11987  esac
 11988  
 11989  
 11990  # Configs for Windows DLLs.
 11991  
 11992  enable_win32_dll=yes
 11993  
 11994  case $host in
 11995  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 11996    if test -n "$ac_tool_prefix"; then
 11997    # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 11998  set dummy ${ac_tool_prefix}as; ac_word=$2
 11999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 12000  $as_echo_n "checking for $ac_word... " >&6; }
 12001  if ${ac_cv_prog_AS+:} false; then :
 12002    $as_echo_n "(cached) " >&6
 12003  else
 12004    if test -n "$AS"; then
 12005    ac_cv_prog_AS="$AS" # Let the user override the test.
 12006  else
 12007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12008  for as_dir in $PATH
 12009  do
 12010    IFS=$as_save_IFS
 12011    test -z "$as_dir" && as_dir=.
 12012      for ac_exec_ext in '' $ac_executable_extensions; do
 12013    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 12014      ac_cv_prog_AS="${ac_tool_prefix}as"
 12015      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 12016      break 2
 12017    fi
 12018  done
 12019    done
 12020  IFS=$as_save_IFS
 12021  
 12022  fi
 12023  fi
 12024  AS=$ac_cv_prog_AS
 12025  if test -n "$AS"; then
 12026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 12027  $as_echo "$AS" >&6; }
 12028  else
 12029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12030  $as_echo "no" >&6; }
 12031  fi
 12032  
 12033  
 12034  fi
 12035  if test -z "$ac_cv_prog_AS"; then
 12036    ac_ct_AS=$AS
 12037    # Extract the first word of "as", so it can be a program name with args.
 12038  set dummy as; ac_word=$2
 12039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 12040  $as_echo_n "checking for $ac_word... " >&6; }
 12041  if ${ac_cv_prog_ac_ct_AS+:} false; then :
 12042    $as_echo_n "(cached) " >&6
 12043  else
 12044    if test -n "$ac_ct_AS"; then
 12045    ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 12046  else
 12047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12048  for as_dir in $PATH
 12049  do
 12050    IFS=$as_save_IFS
 12051    test -z "$as_dir" && as_dir=.
 12052      for ac_exec_ext in '' $ac_executable_extensions; do
 12053    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 12054      ac_cv_prog_ac_ct_AS="as"
 12055      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 12056      break 2
 12057    fi
 12058  done
 12059    done
 12060  IFS=$as_save_IFS
 12061  
 12062  fi
 12063  fi
 12064  ac_ct_AS=$ac_cv_prog_ac_ct_AS
 12065  if test -n "$ac_ct_AS"; then
 12066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 12067  $as_echo "$ac_ct_AS" >&6; }
 12068  else
 12069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12070  $as_echo "no" >&6; }
 12071  fi
 12072  
 12073    if test "x$ac_ct_AS" = x; then
 12074      AS="false"
 12075    else
 12076      case $cross_compiling:$ac_tool_warned in
 12077  yes:)
 12078  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 12079  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 12080  ac_tool_warned=yes ;;
 12081  esac
 12082      AS=$ac_ct_AS
 12083    fi
 12084  else
 12085    AS="$ac_cv_prog_AS"
 12086  fi
 12087  
 12088    if test -n "$ac_tool_prefix"; then
 12089    # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 12090  set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 12091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 12092  $as_echo_n "checking for $ac_word... " >&6; }
 12093  if ${ac_cv_prog_DLLTOOL+:} false; then :
 12094    $as_echo_n "(cached) " >&6
 12095  else
 12096    if test -n "$DLLTOOL"; then
 12097    ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 12098  else
 12099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12100  for as_dir in $PATH
 12101  do
 12102    IFS=$as_save_IFS
 12103    test -z "$as_dir" && as_dir=.
 12104      for ac_exec_ext in '' $ac_executable_extensions; do
 12105    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 12106      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 12107      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 12108      break 2
 12109    fi
 12110  done
 12111    done
 12112  IFS=$as_save_IFS
 12113  
 12114  fi
 12115  fi
 12116  DLLTOOL=$ac_cv_prog_DLLTOOL
 12117  if test -n "$DLLTOOL"; then
 12118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 12119  $as_echo "$DLLTOOL" >&6; }
 12120  else
 12121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12122  $as_echo "no" >&6; }
 12123  fi
 12124  
 12125  
 12126  fi
 12127  if test -z "$ac_cv_prog_DLLTOOL"; then
 12128    ac_ct_DLLTOOL=$DLLTOOL
 12129    # Extract the first word of "dlltool", so it can be a program name with args.
 12130  set dummy dlltool; ac_word=$2
 12131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 12132  $as_echo_n "checking for $ac_word... " >&6; }
 12133  if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 12134    $as_echo_n "(cached) " >&6
 12135  else
 12136    if test -n "$ac_ct_DLLTOOL"; then
 12137    ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 12138  else
 12139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12140  for as_dir in $PATH
 12141  do
 12142    IFS=$as_save_IFS
 12143    test -z "$as_dir" && as_dir=.
 12144      for ac_exec_ext in '' $ac_executable_extensions; do
 12145    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 12146      ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 12147      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 12148      break 2
 12149    fi
 12150  done
 12151    done
 12152  IFS=$as_save_IFS
 12153  
 12154  fi
 12155  fi
 12156  ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 12157  if test -n "$ac_ct_DLLTOOL"; then
 12158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 12159  $as_echo "$ac_ct_DLLTOOL" >&6; }
 12160  else
 12161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12162  $as_echo "no" >&6; }
 12163  fi
 12164  
 12165    if test "x$ac_ct_DLLTOOL" = x; then
 12166      DLLTOOL="false"
 12167    else
 12168      case $cross_compiling:$ac_tool_warned in
 12169  yes:)
 12170  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 12171  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 12172  ac_tool_warned=yes ;;
 12173  esac
 12174      DLLTOOL=$ac_ct_DLLTOOL
 12175    fi
 12176  else
 12177    DLLTOOL="$ac_cv_prog_DLLTOOL"
 12178  fi
 12179  
 12180    if test -n "$ac_tool_prefix"; then
 12181    # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 12182  set dummy ${ac_tool_prefix}objdump; ac_word=$2
 12183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 12184  $as_echo_n "checking for $ac_word... " >&6; }
 12185  if ${ac_cv_prog_OBJDUMP+:} false; then :
 12186    $as_echo_n "(cached) " >&6
 12187  else
 12188    if test -n "$OBJDUMP"; then
 12189    ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 12190  else
 12191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12192  for as_dir in $PATH
 12193  do
 12194    IFS=$as_save_IFS
 12195    test -z "$as_dir" && as_dir=.
 12196      for ac_exec_ext in '' $ac_executable_extensions; do
 12197    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 12198      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 12199      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 12200      break 2
 12201    fi
 12202  done
 12203    done
 12204  IFS=$as_save_IFS
 12205  
 12206  fi
 12207  fi
 12208  OBJDUMP=$ac_cv_prog_OBJDUMP
 12209  if test -n "$OBJDUMP"; then
 12210    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 12211  $as_echo "$OBJDUMP" >&6; }
 12212  else
 12213    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12214  $as_echo "no" >&6; }
 12215  fi
 12216  
 12217  
 12218  fi
 12219  if test -z "$ac_cv_prog_OBJDUMP"; then
 12220    ac_ct_OBJDUMP=$OBJDUMP
 12221    # Extract the first word of "objdump", so it can be a program name with args.
 12222  set dummy objdump; ac_word=$2
 12223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 12224  $as_echo_n "checking for $ac_word... " >&6; }
 12225  if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 12226    $as_echo_n "(cached) " >&6
 12227  else
 12228    if test -n "$ac_ct_OBJDUMP"; then
 12229    ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 12230  else
 12231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12232  for as_dir in $PATH
 12233  do
 12234    IFS=$as_save_IFS
 12235    test -z "$as_dir" && as_dir=.
 12236      for ac_exec_ext in '' $ac_executable_extensions; do
 12237    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 12238      ac_cv_prog_ac_ct_OBJDUMP="objdump"
 12239      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 12240      break 2
 12241    fi
 12242  done
 12243    done
 12244  IFS=$as_save_IFS
 12245  
 12246  fi
 12247  fi
 12248  ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 12249  if test -n "$ac_ct_OBJDUMP"; then
 12250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 12251  $as_echo "$ac_ct_OBJDUMP" >&6; }
 12252  else
 12253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12254  $as_echo "no" >&6; }
 12255  fi
 12256  
 12257    if test "x$ac_ct_OBJDUMP" = x; then
 12258      OBJDUMP="false"
 12259    else
 12260      case $cross_compiling:$ac_tool_warned in
 12261  yes:)
 12262  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 12263  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 12264  ac_tool_warned=yes ;;
 12265  esac
 12266      OBJDUMP=$ac_ct_OBJDUMP
 12267    fi
 12268  else
 12269    OBJDUMP="$ac_cv_prog_OBJDUMP"
 12270  fi
 12271  
 12272    ;;
 12273  esac
 12274  
 12275  test -z "$AS" && AS=as
 12276  
 12277  
 12278  
 12279  
 12280  
 12281  test -z "$DLLTOOL" && DLLTOOL=dlltool
 12282  
 12283  
 12284  
 12285  
 12286  
 12287  test -z "$OBJDUMP" && OBJDUMP=objdump
 12288  
 12289  
 12290  
 12291  
 12292  
 12293  
 12294  
 12295  
 12296  LIBGMP_DLL=0
 12297  
 12298  case $host in
 12299    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 12300      # By default, build only static.
 12301      if test -z "$enable_shared"; then
 12302        enable_shared=no
 12303      fi
 12304      # Don't allow both static and DLL.
 12305      if test "$enable_shared" != no && test "$enable_static" != no; then
 12306        as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each.
 12307  Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
 12308      fi
 12309  
 12310      # "-no-undefined" is required when building a DLL, see documentation on
 12311      # AC_LIBTOOL_WIN32_DLL.
 12312      #
 12313      # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
 12314      # libgmpxx functions and variables exported.  This is what libtool did
 12315      # in the past, and it's convenient for us in the test programs.
 12316      #
 12317      # Maybe it'd be prudent to check for --export-all-symbols before using
 12318      # it, but it seems to have been in ld since at least 2000, and there's
 12319      # not really any alternative we want to take up at the moment.
 12320      #
 12321      # "-Wl,output-def" is used to get a .def file for use by MS lib to make
 12322      # a .lib import library, described in the manual.  libgmp-3.dll.def
 12323      # corresponds to the libmp-3.dll.def generated by libtool (as a result
 12324      # of -export-symbols on that library).
 12325      #
 12326      # Incidentally, libtool does generate an import library libgmp.dll.a,
 12327      # but it's "ar" format and cannot be used by the MS linker.  There
 12328      # doesn't seem to be any GNU tool for generating or converting to .lib.
 12329      #
 12330      # FIXME: The .def files produced by -Wl,output-def include isascii,
 12331      # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
 12332      # inline isascii (used in gmp).  It gives an extern inline for
 12333      # __isascii, but for some reason not the plain isascii.
 12334      #
 12335      if test "$enable_shared" = yes; then
 12336        GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
 12337        LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
 12338        LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
 12339        LIBGMP_DLL=1
 12340      fi
 12341      ;;
 12342  esac
 12343  
 12344  
 12345  # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
 12346  # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
 12347  # _AS_LINENO_PREPARE, but not always.
 12348  #
 12349  # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
 12350  # and an empty result.  This only happens when invoked as "sh configure",
 12351  # ie. no path, and can be seen for instance on ia64-*-hpux*.
 12352  #
 12353  # FIXME: Newer libtool should have it's own fix for this.
 12354  #
 12355  if test -z "$CONFIG_SHELL"; then
 12356    CONFIG_SHELL=$SHELL
 12357  fi
 12358  
 12359  # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
 12360  # mingw and cygwin.  Under --disable-cxx this avoids some error messages
 12361  # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
 12362  # Notice that any user-supplied --with-tags setting takes precedence.
 12363  #
 12364  # FIXME: Is this the right way to get this effect?  Very possibly not, but
 12365  # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
 12366  #
 12367  if test "${with_tags+set}" != set; then
 12368    if test $want_cxx = yes; then
 12369      with_tags=CXX
 12370    else
 12371      with_tags=
 12372    fi
 12373  fi
 12374  
 12375  # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
 12376  # AC_PROG_F77, even when F77 is not in the selected with_tags.  This is
 12377  # probably harmless, but it's unsightly and bloats our configure, so pretend
 12378  # AC_PROG_F77 has been expanded already.
 12379  #
 12380  # FIXME: Rumour has it libtool will one day provide a way for a configure.in
 12381  # to say what it wants from among supported languages etc.
 12382  #
 12383  #AC_PROVIDE([AC_PROG_F77])
 12384  
 12385  case `pwd` in
 12386    *\ * | *\	*)
 12387      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 12388  $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 12389  esac
 12390  
 12391  
 12392  
 12393  macro_version='2.4.6'
 12394  macro_revision='2.4.6'
 12395  
 12396  
 12397  
 12398  
 12399  
 12400  
 12401  
 12402  
 12403  
 12404  
 12405  
 12406  
 12407  
 12408  ltmain=$ac_aux_dir/ltmain.sh
 12409  
 12410  # Backslashify metacharacters that are still active within
 12411  # double-quoted strings.
 12412  sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 12413  
 12414  # Same as above, but do not quote variable references.
 12415  double_quote_subst='s/\(["`\\]\)/\\\1/g'
 12416  
 12417  # Sed substitution to delay expansion of an escaped shell variable in a
 12418  # double_quote_subst'ed string.
 12419  delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 12420  
 12421  # Sed substitution to delay expansion of an escaped single quote.
 12422  delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 12423  
 12424  # Sed substitution to avoid accidental globbing in evaled expressions
 12425  no_glob_subst='s/\*/\\\*/g'
 12426  
 12427  ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 12428  ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 12429  ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 12430  
 12431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 12432  $as_echo_n "checking how to print strings... " >&6; }
 12433  # Test print first, because it will be a builtin if present.
 12434  if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 12435     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 12436    ECHO='print -r --'
 12437  elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 12438    ECHO='printf %s\n'
 12439  else
 12440    # Use this function as a fallback that always works.
 12441    func_fallback_echo ()
 12442    {
 12443      eval 'cat <<_LTECHO_EOF
 12444  $1
 12445  _LTECHO_EOF'
 12446    }
 12447    ECHO='func_fallback_echo'
 12448  fi
 12449  
 12450  # func_echo_all arg...
 12451  # Invoke $ECHO with all args, space-separated.
 12452  func_echo_all ()
 12453  {
 12454      $ECHO ""
 12455  }
 12456  
 12457  case $ECHO in
 12458    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 12459  $as_echo "printf" >&6; } ;;
 12460    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 12461  $as_echo "print -r" >&6; } ;;
 12462    *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 12463  $as_echo "cat" >&6; } ;;
 12464  esac
 12465  
 12466  
 12467  
 12468  
 12469  
 12470  
 12471  
 12472  
 12473  
 12474  
 12475  
 12476  
 12477  
 12478  
 12479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 12480  $as_echo_n "checking for a sed that does not truncate output... " >&6; }
 12481  if ${ac_cv_path_SED+:} false; then :
 12482    $as_echo_n "(cached) " >&6
 12483  else
 12484              ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 12485       for ac_i in 1 2 3 4 5 6 7; do
 12486         ac_script="$ac_script$as_nl$ac_script"
 12487       done
 12488       echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 12489       { ac_script=; unset ac_script;}
 12490       if test -z "$SED"; then
 12491    ac_path_SED_found=false
 12492    # Loop through the user's path and test for each of PROGNAME-LIST
 12493    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12494  for as_dir in $PATH
 12495  do
 12496    IFS=$as_save_IFS
 12497    test -z "$as_dir" && as_dir=.
 12498      for ac_prog in sed gsed; do
 12499      for ac_exec_ext in '' $ac_executable_extensions; do
 12500        ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 12501        as_fn_executable_p "$ac_path_SED" || continue
 12502  # Check for GNU ac_path_SED and select it if it is found.
 12503    # Check for GNU $ac_path_SED
 12504  case `"$ac_path_SED" --version 2>&1` in
 12505  *GNU*)
 12506    ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 12507  *)
 12508    ac_count=0
 12509    $as_echo_n 0123456789 >"conftest.in"
 12510    while :
 12511    do
 12512      cat "conftest.in" "conftest.in" >"conftest.tmp"
 12513      mv "conftest.tmp" "conftest.in"
 12514      cp "conftest.in" "conftest.nl"
 12515      $as_echo '' >> "conftest.nl"
 12516      "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 12517      diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 12518      as_fn_arith $ac_count + 1 && ac_count=$as_val
 12519      if test $ac_count -gt ${ac_path_SED_max-0}; then
 12520        # Best one so far, save it but keep looking for a better one
 12521        ac_cv_path_SED="$ac_path_SED"
 12522        ac_path_SED_max=$ac_count
 12523      fi
 12524      # 10*(2^10) chars as input seems more than enough
 12525      test $ac_count -gt 10 && break
 12526    done
 12527    rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 12528  esac
 12529  
 12530        $ac_path_SED_found && break 3
 12531      done
 12532    done
 12533    done
 12534  IFS=$as_save_IFS
 12535    if test -z "$ac_cv_path_SED"; then
 12536      as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 12537    fi
 12538  else
 12539    ac_cv_path_SED=$SED
 12540  fi
 12541  
 12542  fi
 12543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 12544  $as_echo "$ac_cv_path_SED" >&6; }
 12545   SED="$ac_cv_path_SED"
 12546    rm -f conftest.sed
 12547  
 12548  test -z "$SED" && SED=sed
 12549  Xsed="$SED -e 1s/^X//"
 12550  
 12551  
 12552  
 12553  
 12554  
 12555  
 12556  
 12557  
 12558  
 12559  
 12560  
 12561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 12562  $as_echo_n "checking for fgrep... " >&6; }
 12563  if ${ac_cv_path_FGREP+:} false; then :
 12564    $as_echo_n "(cached) " >&6
 12565  else
 12566    if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 12567     then ac_cv_path_FGREP="$GREP -F"
 12568     else
 12569       if test -z "$FGREP"; then
 12570    ac_path_FGREP_found=false
 12571    # Loop through the user's path and test for each of PROGNAME-LIST
 12572    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 12573  for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 12574  do
 12575    IFS=$as_save_IFS
 12576    test -z "$as_dir" && as_dir=.
 12577      for ac_prog in fgrep; do
 12578      for ac_exec_ext in '' $ac_executable_extensions; do
 12579        ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 12580        as_fn_executable_p "$ac_path_FGREP" || continue
 12581  # Check for GNU ac_path_FGREP and select it if it is found.
 12582    # Check for GNU $ac_path_FGREP
 12583  case `"$ac_path_FGREP" --version 2>&1` in
 12584  *GNU*)
 12585    ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 12586  *)
 12587    ac_count=0
 12588    $as_echo_n 0123456789 >"conftest.in"
 12589    while :
 12590    do
 12591      cat "conftest.in" "conftest.in" >"conftest.tmp"
 12592      mv "conftest.tmp" "conftest.in"
 12593      cp "conftest.in" "conftest.nl"
 12594      $as_echo 'FGREP' >> "conftest.nl"
 12595      "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 12596      diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 12597      as_fn_arith $ac_count + 1 && ac_count=$as_val
 12598      if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 12599        # Best one so far, save it but keep looking for a better one
 12600        ac_cv_path_FGREP="$ac_path_FGREP"
 12601        ac_path_FGREP_max=$ac_count
 12602      fi
 12603      # 10*(2^10) chars as input seems more than enough
 12604      test $ac_count -gt 10 && break
 12605    done
 12606    rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 12607  esac
 12608  
 12609        $ac_path_FGREP_found && break 3
 12610      done
 12611    done
 12612    done
 12613  IFS=$as_save_IFS
 12614    if test -z "$ac_cv_path_FGREP"; then
 12615      as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 12616    fi
 12617  else
 12618    ac_cv_path_FGREP=$FGREP
 12619  fi
 12620  
 12621     fi
 12622  fi
 12623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 12624  $as_echo "$ac_cv_path_FGREP" >&6; }
 12625   FGREP="$ac_cv_path_FGREP"
 12626  
 12627  
 12628  test -z "$GREP" && GREP=grep
 12629  
 12630  
 12631  
 12632  
 12633  
 12634  
 12635  
 12636  
 12637  
 12638  
 12639  
 12640  
 12641  
 12642  
 12643  
 12644  
 12645  
 12646  
 12647  
 12648  # Check whether --with-gnu-ld was given.
 12649  if test "${with_gnu_ld+set}" = set; then :
 12650    withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
 12651  else
 12652    with_gnu_ld=no
 12653  fi
 12654  
 12655  ac_prog=ld
 12656  if test yes = "$GCC"; then
 12657    # Check if gcc -print-prog-name=ld gives a path.
 12658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 12659  $as_echo_n "checking for ld used by $CC... " >&6; }
 12660    case $host in
 12661    *-*-mingw*)
 12662      # gcc leaves a trailing carriage return, which upsets mingw
 12663      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 12664    *)
 12665      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 12666    esac
 12667    case $ac_prog in
 12668      # Accept absolute paths.
 12669      [\\/]* | ?:[\\/]*)
 12670        re_direlt='/[^/][^/]*/\.\./'
 12671        # Canonicalize the pathname of ld
 12672        ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 12673        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 12674  	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 12675        done
 12676        test -z "$LD" && LD=$ac_prog
 12677        ;;
 12678    "")
 12679      # If it fails, then pretend we aren't using GCC.
 12680      ac_prog=ld
 12681      ;;
 12682    *)
 12683      # If it is relative, then search for the first ld in PATH.
 12684      with_gnu_ld=unknown
 12685      ;;
 12686    esac
 12687  elif test yes = "$with_gnu_ld"; then
 12688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 12689  $as_echo_n "checking for GNU ld... " >&6; }
 12690  else
 12691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 12692  $as_echo_n "checking for non-GNU ld... " >&6; }
 12693  fi
 12694  if ${lt_cv_path_LD+:} false; then :
 12695    $as_echo_n "(cached) " >&6
 12696  else
 12697    if test -z "$LD"; then
 12698    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 12699    for ac_dir in $PATH; do
 12700      IFS=$lt_save_ifs
 12701      test -z "$ac_dir" && ac_dir=.
 12702      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 12703        lt_cv_path_LD=$ac_dir/$ac_prog
 12704        # Check to see if the program is GNU ld.  I'd rather use --version,
 12705        # but apparently some variants of GNU ld only accept -v.
 12706        # Break only if it was the GNU/non-GNU ld that we prefer.
 12707        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 12708        *GNU* | *'with BFD'*)
 12709  	test no != "$with_gnu_ld" && break
 12710  	;;
 12711        *)
 12712  	test yes != "$with_gnu_ld" && break
 12713  	;;
 12714        esac
 12715      fi
 12716    done
 12717    IFS=$lt_save_ifs
 12718  else
 12719    lt_cv_path_LD=$LD # Let the user override the test with a path.
 12720  fi
 12721  fi
 12722  
 12723  LD=$lt_cv_path_LD
 12724  if test -n "$LD"; then
 12725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 12726  $as_echo "$LD" >&6; }
 12727  else
 12728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 12729  $as_echo "no" >&6; }
 12730  fi
 12731  test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 12732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 12733  $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 12734  if ${lt_cv_prog_gnu_ld+:} false; then :
 12735    $as_echo_n "(cached) " >&6
 12736  else
 12737    # I'd rather use --version here, but apparently some GNU lds only accept -v.
 12738  case `$LD -v 2>&1 </dev/null` in
 12739  *GNU* | *'with BFD'*)
 12740    lt_cv_prog_gnu_ld=yes
 12741    ;;
 12742  *)
 12743    lt_cv_prog_gnu_ld=no
 12744    ;;
 12745  esac
 12746  fi
 12747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 12748  $as_echo "$lt_cv_prog_gnu_ld" >&6; }
 12749  with_gnu_ld=$lt_cv_prog_gnu_ld
 12750  
 12751  
 12752  
 12753  
 12754  
 12755  
 12756  
 12757  
 12758  
 12759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 12760  $as_echo_n "checking whether ln -s works... " >&6; }
 12761  LN_S=$as_ln_s
 12762  if test "$LN_S" = "ln -s"; then
 12763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 12764  $as_echo "yes" >&6; }
 12765  else
 12766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 12767  $as_echo "no, using $LN_S" >&6; }
 12768  fi
 12769  
 12770  # find the maximum length of command line arguments
 12771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 12772  $as_echo_n "checking the maximum length of command line arguments... " >&6; }
 12773  if ${lt_cv_sys_max_cmd_len+:} false; then :
 12774    $as_echo_n "(cached) " >&6
 12775  else
 12776      i=0
 12777    teststring=ABCD
 12778  
 12779    case $build_os in
 12780    msdosdjgpp*)
 12781      # On DJGPP, this test can blow up pretty badly due to problems in libc
 12782      # (any single argument exceeding 2000 bytes causes a buffer overrun
 12783      # during glob expansion).  Even if it were fixed, the result of this
 12784      # check would be larger than it should be.
 12785      lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 12786      ;;
 12787  
 12788    gnu*)
 12789      # Under GNU Hurd, this test is not required because there is
 12790      # no limit to the length of command line arguments.
 12791      # Libtool will interpret -1 as no limit whatsoever
 12792      lt_cv_sys_max_cmd_len=-1;
 12793      ;;
 12794  
 12795    cygwin* | mingw* | cegcc*)
 12796      # On Win9x/ME, this test blows up -- it succeeds, but takes
 12797      # about 5 minutes as the teststring grows exponentially.
 12798      # Worse, since 9x/ME are not pre-emptively multitasking,
 12799      # you end up with a "frozen" computer, even though with patience
 12800      # the test eventually succeeds (with a max line length of 256k).
 12801      # Instead, let's just punt: use the minimum linelength reported by
 12802      # all of the supported platforms: 8192 (on NT/2K/XP).
 12803      lt_cv_sys_max_cmd_len=8192;
 12804      ;;
 12805  
 12806    mint*)
 12807      # On MiNT this can take a long time and run out of memory.
 12808      lt_cv_sys_max_cmd_len=8192;
 12809      ;;
 12810  
 12811    amigaos*)
 12812      # On AmigaOS with pdksh, this test takes hours, literally.
 12813      # So we just punt and use a minimum line length of 8192.
 12814      lt_cv_sys_max_cmd_len=8192;
 12815      ;;
 12816  
 12817    bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
 12818      # This has been around since 386BSD, at least.  Likely further.
 12819      if test -x /sbin/sysctl; then
 12820        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 12821      elif test -x /usr/sbin/sysctl; then
 12822        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 12823      else
 12824        lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 12825      fi
 12826      # And add a safety zone
 12827      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 12828      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 12829      ;;
 12830  
 12831    interix*)
 12832      # We know the value 262144 and hardcode it with a safety zone (like BSD)
 12833      lt_cv_sys_max_cmd_len=196608
 12834      ;;
 12835  
 12836    os2*)
 12837      # The test takes a long time on OS/2.
 12838      lt_cv_sys_max_cmd_len=8192
 12839      ;;
 12840  
 12841    osf*)
 12842      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 12843      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 12844      # nice to cause kernel panics so lets avoid the loop below.
 12845      # First set a reasonable default.
 12846      lt_cv_sys_max_cmd_len=16384
 12847      #
 12848      if test -x /sbin/sysconfig; then
 12849        case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 12850          *1*) lt_cv_sys_max_cmd_len=-1 ;;
 12851        esac
 12852      fi
 12853      ;;
 12854    sco3.2v5*)
 12855      lt_cv_sys_max_cmd_len=102400
 12856      ;;
 12857    sysv5* | sco5v6* | sysv4.2uw2*)
 12858      kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 12859      if test -n "$kargmax"; then
 12860        lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
 12861      else
 12862        lt_cv_sys_max_cmd_len=32768
 12863      fi
 12864      ;;
 12865    *)
 12866      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 12867      if test -n "$lt_cv_sys_max_cmd_len" && \
 12868         test undefined != "$lt_cv_sys_max_cmd_len"; then
 12869        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 12870        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 12871      else
 12872        # Make teststring a little bigger before we do anything with it.
 12873        # a 1K string should be a reasonable start.
 12874        for i in 1 2 3 4 5 6 7 8; do
 12875          teststring=$teststring$teststring
 12876        done
 12877        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 12878        # If test is not a shell built-in, we'll probably end up computing a
 12879        # maximum length that is only half of the actual maximum length, but
 12880        # we can't tell.
 12881        while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 12882  	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 12883  	      test 17 != "$i" # 1/2 MB should be enough
 12884        do
 12885          i=`expr $i + 1`
 12886          teststring=$teststring$teststring
 12887        done
 12888        # Only check the string length outside the loop.
 12889        lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 12890        teststring=
 12891        # Add a significant safety factor because C++ compilers can tack on
 12892        # massive amounts of additional arguments before passing them to the
 12893        # linker.  It appears as though 1/2 is a usable value.
 12894        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 12895      fi
 12896      ;;
 12897    esac
 12898  
 12899  fi
 12900  
 12901  if test -n "$lt_cv_sys_max_cmd_len"; then
 12902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 12903  $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 12904  else
 12905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 12906  $as_echo "none" >&6; }
 12907  fi
 12908  max_cmd_len=$lt_cv_sys_max_cmd_len
 12909  
 12910  
 12911  
 12912  
 12913  
 12914  
 12915  : ${CP="cp -f"}
 12916  : ${MV="mv -f"}
 12917  : ${RM="rm -f"}
 12918  
 12919  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 12920    lt_unset=unset
 12921  else
 12922    lt_unset=false
 12923  fi
 12924  
 12925  
 12926  
 12927  
 12928  
 12929  # test EBCDIC or ASCII
 12930  case `echo X|tr X '\101'` in
 12931   A) # ASCII based system
 12932      # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 12933    lt_SP2NL='tr \040 \012'
 12934    lt_NL2SP='tr \015\012 \040\040'
 12935    ;;
 12936   *) # EBCDIC based system
 12937    lt_SP2NL='tr \100 \n'
 12938    lt_NL2SP='tr \r\n \100\100'
 12939    ;;
 12940  esac
 12941  
 12942  
 12943  
 12944  
 12945  
 12946  
 12947  
 12948  
 12949  
 12950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 12951  $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 12952  if ${lt_cv_to_host_file_cmd+:} false; then :
 12953    $as_echo_n "(cached) " >&6
 12954  else
 12955    case $host in
 12956    *-*-mingw* )
 12957      case $build in
 12958        *-*-mingw* ) # actually msys
 12959          lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 12960          ;;
 12961        *-*-cygwin* )
 12962          lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 12963          ;;
 12964        * ) # otherwise, assume *nix
 12965          lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 12966          ;;
 12967      esac
 12968      ;;
 12969    *-*-cygwin* )
 12970      case $build in
 12971        *-*-mingw* ) # actually msys
 12972          lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 12973          ;;
 12974        *-*-cygwin* )
 12975          lt_cv_to_host_file_cmd=func_convert_file_noop
 12976          ;;
 12977        * ) # otherwise, assume *nix
 12978          lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 12979          ;;
 12980      esac
 12981      ;;
 12982    * ) # unhandled hosts (and "normal" native builds)
 12983      lt_cv_to_host_file_cmd=func_convert_file_noop
 12984      ;;
 12985  esac
 12986  
 12987  fi
 12988  
 12989  to_host_file_cmd=$lt_cv_to_host_file_cmd
 12990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 12991  $as_echo "$lt_cv_to_host_file_cmd" >&6; }
 12992  
 12993  
 12994  
 12995  
 12996  
 12997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 12998  $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 12999  if ${lt_cv_to_tool_file_cmd+:} false; then :
 13000    $as_echo_n "(cached) " >&6
 13001  else
 13002    #assume ordinary cross tools, or native build.
 13003  lt_cv_to_tool_file_cmd=func_convert_file_noop
 13004  case $host in
 13005    *-*-mingw* )
 13006      case $build in
 13007        *-*-mingw* ) # actually msys
 13008          lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 13009          ;;
 13010      esac
 13011      ;;
 13012  esac
 13013  
 13014  fi
 13015  
 13016  to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 13017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 13018  $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 13019  
 13020  
 13021  
 13022  
 13023  
 13024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 13025  $as_echo_n "checking for $LD option to reload object files... " >&6; }
 13026  if ${lt_cv_ld_reload_flag+:} false; then :
 13027    $as_echo_n "(cached) " >&6
 13028  else
 13029    lt_cv_ld_reload_flag='-r'
 13030  fi
 13031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 13032  $as_echo "$lt_cv_ld_reload_flag" >&6; }
 13033  reload_flag=$lt_cv_ld_reload_flag
 13034  case $reload_flag in
 13035  "" | " "*) ;;
 13036  *) reload_flag=" $reload_flag" ;;
 13037  esac
 13038  reload_cmds='$LD$reload_flag -o $output$reload_objs'
 13039  case $host_os in
 13040    cygwin* | mingw* | pw32* | cegcc*)
 13041      if test yes != "$GCC"; then
 13042        reload_cmds=false
 13043      fi
 13044      ;;
 13045    darwin*)
 13046      if test yes = "$GCC"; then
 13047        reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 13048      else
 13049        reload_cmds='$LD$reload_flag -o $output$reload_objs'
 13050      fi
 13051      ;;
 13052  esac
 13053  
 13054  
 13055  
 13056  
 13057  
 13058  
 13059  
 13060  
 13061  
 13062  if test -n "$ac_tool_prefix"; then
 13063    # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 13064  set dummy ${ac_tool_prefix}objdump; ac_word=$2
 13065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13066  $as_echo_n "checking for $ac_word... " >&6; }
 13067  if ${ac_cv_prog_OBJDUMP+:} false; then :
 13068    $as_echo_n "(cached) " >&6
 13069  else
 13070    if test -n "$OBJDUMP"; then
 13071    ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 13072  else
 13073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13074  for as_dir in $PATH
 13075  do
 13076    IFS=$as_save_IFS
 13077    test -z "$as_dir" && as_dir=.
 13078      for ac_exec_ext in '' $ac_executable_extensions; do
 13079    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13080      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 13081      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13082      break 2
 13083    fi
 13084  done
 13085    done
 13086  IFS=$as_save_IFS
 13087  
 13088  fi
 13089  fi
 13090  OBJDUMP=$ac_cv_prog_OBJDUMP
 13091  if test -n "$OBJDUMP"; then
 13092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 13093  $as_echo "$OBJDUMP" >&6; }
 13094  else
 13095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13096  $as_echo "no" >&6; }
 13097  fi
 13098  
 13099  
 13100  fi
 13101  if test -z "$ac_cv_prog_OBJDUMP"; then
 13102    ac_ct_OBJDUMP=$OBJDUMP
 13103    # Extract the first word of "objdump", so it can be a program name with args.
 13104  set dummy objdump; ac_word=$2
 13105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13106  $as_echo_n "checking for $ac_word... " >&6; }
 13107  if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 13108    $as_echo_n "(cached) " >&6
 13109  else
 13110    if test -n "$ac_ct_OBJDUMP"; then
 13111    ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 13112  else
 13113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13114  for as_dir in $PATH
 13115  do
 13116    IFS=$as_save_IFS
 13117    test -z "$as_dir" && as_dir=.
 13118      for ac_exec_ext in '' $ac_executable_extensions; do
 13119    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13120      ac_cv_prog_ac_ct_OBJDUMP="objdump"
 13121      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13122      break 2
 13123    fi
 13124  done
 13125    done
 13126  IFS=$as_save_IFS
 13127  
 13128  fi
 13129  fi
 13130  ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 13131  if test -n "$ac_ct_OBJDUMP"; then
 13132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 13133  $as_echo "$ac_ct_OBJDUMP" >&6; }
 13134  else
 13135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13136  $as_echo "no" >&6; }
 13137  fi
 13138  
 13139    if test "x$ac_ct_OBJDUMP" = x; then
 13140      OBJDUMP="false"
 13141    else
 13142      case $cross_compiling:$ac_tool_warned in
 13143  yes:)
 13144  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 13145  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 13146  ac_tool_warned=yes ;;
 13147  esac
 13148      OBJDUMP=$ac_ct_OBJDUMP
 13149    fi
 13150  else
 13151    OBJDUMP="$ac_cv_prog_OBJDUMP"
 13152  fi
 13153  
 13154  test -z "$OBJDUMP" && OBJDUMP=objdump
 13155  
 13156  
 13157  
 13158  
 13159  
 13160  
 13161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 13162  $as_echo_n "checking how to recognize dependent libraries... " >&6; }
 13163  if ${lt_cv_deplibs_check_method+:} false; then :
 13164    $as_echo_n "(cached) " >&6
 13165  else
 13166    lt_cv_file_magic_cmd='$MAGIC_CMD'
 13167  lt_cv_file_magic_test_file=
 13168  lt_cv_deplibs_check_method='unknown'
 13169  # Need to set the preceding variable on all platforms that support
 13170  # interlibrary dependencies.
 13171  # 'none' -- dependencies not supported.
 13172  # 'unknown' -- same as none, but documents that we really don't know.
 13173  # 'pass_all' -- all dependencies passed with no checks.
 13174  # 'test_compile' -- check by making test program.
 13175  # 'file_magic [[regex]]' -- check by looking for files in library path
 13176  # that responds to the $file_magic_cmd with a given extended regex.
 13177  # If you have 'file' or equivalent on your system and you're not sure
 13178  # whether 'pass_all' will *always* work, you probably want this one.
 13179  
 13180  case $host_os in
 13181  aix[4-9]*)
 13182    lt_cv_deplibs_check_method=pass_all
 13183    ;;
 13184  
 13185  beos*)
 13186    lt_cv_deplibs_check_method=pass_all
 13187    ;;
 13188  
 13189  bsdi[45]*)
 13190    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 13191    lt_cv_file_magic_cmd='/usr/bin/file -L'
 13192    lt_cv_file_magic_test_file=/shlib/libc.so
 13193    ;;
 13194  
 13195  cygwin*)
 13196    # func_win32_libid is a shell function defined in ltmain.sh
 13197    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 13198    lt_cv_file_magic_cmd='func_win32_libid'
 13199    ;;
 13200  
 13201  mingw* | pw32*)
 13202    # Base MSYS/MinGW do not provide the 'file' command needed by
 13203    # func_win32_libid shell function, so use a weaker test based on 'objdump',
 13204    # unless we find 'file', for example because we are cross-compiling.
 13205    if ( file / ) >/dev/null 2>&1; then
 13206      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 13207      lt_cv_file_magic_cmd='func_win32_libid'
 13208    else
 13209      # Keep this pattern in sync with the one in func_win32_libid.
 13210      lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 13211      lt_cv_file_magic_cmd='$OBJDUMP -f'
 13212    fi
 13213    ;;
 13214  
 13215  cegcc*)
 13216    # use the weaker test based on 'objdump'. See mingw*.
 13217    lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 13218    lt_cv_file_magic_cmd='$OBJDUMP -f'
 13219    ;;
 13220  
 13221  darwin* | rhapsody*)
 13222    lt_cv_deplibs_check_method=pass_all
 13223    ;;
 13224  
 13225  freebsd* | dragonfly*)
 13226    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 13227      case $host_cpu in
 13228      i*86 )
 13229        # Not sure whether the presence of OpenBSD here was a mistake.
 13230        # Let's accept both of them until this is cleared up.
 13231        lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 13232        lt_cv_file_magic_cmd=/usr/bin/file
 13233        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 13234        ;;
 13235      esac
 13236    else
 13237      lt_cv_deplibs_check_method=pass_all
 13238    fi
 13239    ;;
 13240  
 13241  haiku*)
 13242    lt_cv_deplibs_check_method=pass_all
 13243    ;;
 13244  
 13245  hpux10.20* | hpux11*)
 13246    lt_cv_file_magic_cmd=/usr/bin/file
 13247    case $host_cpu in
 13248    ia64*)
 13249      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 13250      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 13251      ;;
 13252    hppa*64*)
 13253      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 13254      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 13255      ;;
 13256    *)
 13257      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 13258      lt_cv_file_magic_test_file=/usr/lib/libc.sl
 13259      ;;
 13260    esac
 13261    ;;
 13262  
 13263  interix[3-9]*)
 13264    # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 13265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 13266    ;;
 13267  
 13268  irix5* | irix6* | nonstopux*)
 13269    case $LD in
 13270    *-32|*"-32 ") libmagic=32-bit;;
 13271    *-n32|*"-n32 ") libmagic=N32;;
 13272    *-64|*"-64 ") libmagic=64-bit;;
 13273    *) libmagic=never-match;;
 13274    esac
 13275    lt_cv_deplibs_check_method=pass_all
 13276    ;;
 13277  
 13278  # This must be glibc/ELF.
 13279  linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 13280    lt_cv_deplibs_check_method=pass_all
 13281    ;;
 13282  
 13283  netbsd*)
 13284    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 13285      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 13286    else
 13287      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 13288    fi
 13289    ;;
 13290  
 13291  newos6*)
 13292    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 13293    lt_cv_file_magic_cmd=/usr/bin/file
 13294    lt_cv_file_magic_test_file=/usr/lib/libnls.so
 13295    ;;
 13296  
 13297  *nto* | *qnx*)
 13298    lt_cv_deplibs_check_method=pass_all
 13299    ;;
 13300  
 13301  openbsd* | bitrig*)
 13302    if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 13303      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 13304    else
 13305      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 13306    fi
 13307    ;;
 13308  
 13309  osf3* | osf4* | osf5*)
 13310    lt_cv_deplibs_check_method=pass_all
 13311    ;;
 13312  
 13313  rdos*)
 13314    lt_cv_deplibs_check_method=pass_all
 13315    ;;
 13316  
 13317  solaris*)
 13318    lt_cv_deplibs_check_method=pass_all
 13319    ;;
 13320  
 13321  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 13322    lt_cv_deplibs_check_method=pass_all
 13323    ;;
 13324  
 13325  sysv4 | sysv4.3*)
 13326    case $host_vendor in
 13327    motorola)
 13328      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 13329      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 13330      ;;
 13331    ncr)
 13332      lt_cv_deplibs_check_method=pass_all
 13333      ;;
 13334    sequent)
 13335      lt_cv_file_magic_cmd='/bin/file'
 13336      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 13337      ;;
 13338    sni)
 13339      lt_cv_file_magic_cmd='/bin/file'
 13340      lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 13341      lt_cv_file_magic_test_file=/lib/libc.so
 13342      ;;
 13343    siemens)
 13344      lt_cv_deplibs_check_method=pass_all
 13345      ;;
 13346    pc)
 13347      lt_cv_deplibs_check_method=pass_all
 13348      ;;
 13349    esac
 13350    ;;
 13351  
 13352  tpf*)
 13353    lt_cv_deplibs_check_method=pass_all
 13354    ;;
 13355  os2*)
 13356    lt_cv_deplibs_check_method=pass_all
 13357    ;;
 13358  esac
 13359  
 13360  fi
 13361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 13362  $as_echo "$lt_cv_deplibs_check_method" >&6; }
 13363  
 13364  file_magic_glob=
 13365  want_nocaseglob=no
 13366  if test "$build" = "$host"; then
 13367    case $host_os in
 13368    mingw* | pw32*)
 13369      if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 13370        want_nocaseglob=yes
 13371      else
 13372        file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 13373      fi
 13374      ;;
 13375    esac
 13376  fi
 13377  
 13378  file_magic_cmd=$lt_cv_file_magic_cmd
 13379  deplibs_check_method=$lt_cv_deplibs_check_method
 13380  test -z "$deplibs_check_method" && deplibs_check_method=unknown
 13381  
 13382  
 13383  
 13384  
 13385  
 13386  
 13387  
 13388  
 13389  
 13390  
 13391  
 13392  
 13393  
 13394  
 13395  
 13396  
 13397  
 13398  
 13399  
 13400  
 13401  
 13402  
 13403  if test -n "$ac_tool_prefix"; then
 13404    # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 13405  set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 13406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13407  $as_echo_n "checking for $ac_word... " >&6; }
 13408  if ${ac_cv_prog_DLLTOOL+:} false; then :
 13409    $as_echo_n "(cached) " >&6
 13410  else
 13411    if test -n "$DLLTOOL"; then
 13412    ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 13413  else
 13414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13415  for as_dir in $PATH
 13416  do
 13417    IFS=$as_save_IFS
 13418    test -z "$as_dir" && as_dir=.
 13419      for ac_exec_ext in '' $ac_executable_extensions; do
 13420    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13421      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 13422      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13423      break 2
 13424    fi
 13425  done
 13426    done
 13427  IFS=$as_save_IFS
 13428  
 13429  fi
 13430  fi
 13431  DLLTOOL=$ac_cv_prog_DLLTOOL
 13432  if test -n "$DLLTOOL"; then
 13433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 13434  $as_echo "$DLLTOOL" >&6; }
 13435  else
 13436    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13437  $as_echo "no" >&6; }
 13438  fi
 13439  
 13440  
 13441  fi
 13442  if test -z "$ac_cv_prog_DLLTOOL"; then
 13443    ac_ct_DLLTOOL=$DLLTOOL
 13444    # Extract the first word of "dlltool", so it can be a program name with args.
 13445  set dummy dlltool; ac_word=$2
 13446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13447  $as_echo_n "checking for $ac_word... " >&6; }
 13448  if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 13449    $as_echo_n "(cached) " >&6
 13450  else
 13451    if test -n "$ac_ct_DLLTOOL"; then
 13452    ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 13453  else
 13454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13455  for as_dir in $PATH
 13456  do
 13457    IFS=$as_save_IFS
 13458    test -z "$as_dir" && as_dir=.
 13459      for ac_exec_ext in '' $ac_executable_extensions; do
 13460    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13461      ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 13462      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13463      break 2
 13464    fi
 13465  done
 13466    done
 13467  IFS=$as_save_IFS
 13468  
 13469  fi
 13470  fi
 13471  ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 13472  if test -n "$ac_ct_DLLTOOL"; then
 13473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 13474  $as_echo "$ac_ct_DLLTOOL" >&6; }
 13475  else
 13476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13477  $as_echo "no" >&6; }
 13478  fi
 13479  
 13480    if test "x$ac_ct_DLLTOOL" = x; then
 13481      DLLTOOL="false"
 13482    else
 13483      case $cross_compiling:$ac_tool_warned in
 13484  yes:)
 13485  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 13486  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 13487  ac_tool_warned=yes ;;
 13488  esac
 13489      DLLTOOL=$ac_ct_DLLTOOL
 13490    fi
 13491  else
 13492    DLLTOOL="$ac_cv_prog_DLLTOOL"
 13493  fi
 13494  
 13495  test -z "$DLLTOOL" && DLLTOOL=dlltool
 13496  
 13497  
 13498  
 13499  
 13500  
 13501  
 13502  
 13503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 13504  $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 13505  if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 13506    $as_echo_n "(cached) " >&6
 13507  else
 13508    lt_cv_sharedlib_from_linklib_cmd='unknown'
 13509  
 13510  case $host_os in
 13511  cygwin* | mingw* | pw32* | cegcc*)
 13512    # two different shell functions defined in ltmain.sh;
 13513    # decide which one to use based on capabilities of $DLLTOOL
 13514    case `$DLLTOOL --help 2>&1` in
 13515    *--identify-strict*)
 13516      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 13517      ;;
 13518    *)
 13519      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 13520      ;;
 13521    esac
 13522    ;;
 13523  *)
 13524    # fallback: assume linklib IS sharedlib
 13525    lt_cv_sharedlib_from_linklib_cmd=$ECHO
 13526    ;;
 13527  esac
 13528  
 13529  fi
 13530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 13531  $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 13532  sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 13533  test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 13534  
 13535  
 13536  
 13537  
 13538  
 13539  
 13540  
 13541  if test -n "$ac_tool_prefix"; then
 13542    for ac_prog in ar
 13543    do
 13544      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 13545  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 13546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13547  $as_echo_n "checking for $ac_word... " >&6; }
 13548  if ${ac_cv_prog_AR+:} false; then :
 13549    $as_echo_n "(cached) " >&6
 13550  else
 13551    if test -n "$AR"; then
 13552    ac_cv_prog_AR="$AR" # Let the user override the test.
 13553  else
 13554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13555  for as_dir in $PATH
 13556  do
 13557    IFS=$as_save_IFS
 13558    test -z "$as_dir" && as_dir=.
 13559      for ac_exec_ext in '' $ac_executable_extensions; do
 13560    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13561      ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 13562      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13563      break 2
 13564    fi
 13565  done
 13566    done
 13567  IFS=$as_save_IFS
 13568  
 13569  fi
 13570  fi
 13571  AR=$ac_cv_prog_AR
 13572  if test -n "$AR"; then
 13573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 13574  $as_echo "$AR" >&6; }
 13575  else
 13576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13577  $as_echo "no" >&6; }
 13578  fi
 13579  
 13580  
 13581      test -n "$AR" && break
 13582    done
 13583  fi
 13584  if test -z "$AR"; then
 13585    ac_ct_AR=$AR
 13586    for ac_prog in ar
 13587  do
 13588    # Extract the first word of "$ac_prog", so it can be a program name with args.
 13589  set dummy $ac_prog; ac_word=$2
 13590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13591  $as_echo_n "checking for $ac_word... " >&6; }
 13592  if ${ac_cv_prog_ac_ct_AR+:} false; then :
 13593    $as_echo_n "(cached) " >&6
 13594  else
 13595    if test -n "$ac_ct_AR"; then
 13596    ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 13597  else
 13598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13599  for as_dir in $PATH
 13600  do
 13601    IFS=$as_save_IFS
 13602    test -z "$as_dir" && as_dir=.
 13603      for ac_exec_ext in '' $ac_executable_extensions; do
 13604    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13605      ac_cv_prog_ac_ct_AR="$ac_prog"
 13606      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13607      break 2
 13608    fi
 13609  done
 13610    done
 13611  IFS=$as_save_IFS
 13612  
 13613  fi
 13614  fi
 13615  ac_ct_AR=$ac_cv_prog_ac_ct_AR
 13616  if test -n "$ac_ct_AR"; then
 13617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 13618  $as_echo "$ac_ct_AR" >&6; }
 13619  else
 13620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13621  $as_echo "no" >&6; }
 13622  fi
 13623  
 13624  
 13625    test -n "$ac_ct_AR" && break
 13626  done
 13627  
 13628    if test "x$ac_ct_AR" = x; then
 13629      AR="false"
 13630    else
 13631      case $cross_compiling:$ac_tool_warned in
 13632  yes:)
 13633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 13634  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 13635  ac_tool_warned=yes ;;
 13636  esac
 13637      AR=$ac_ct_AR
 13638    fi
 13639  fi
 13640  
 13641  : ${AR=ar}
 13642  : ${AR_FLAGS=cru}
 13643  
 13644  
 13645  
 13646  
 13647  
 13648  
 13649  
 13650  
 13651  
 13652  
 13653  
 13654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 13655  $as_echo_n "checking for archiver @FILE support... " >&6; }
 13656  if ${lt_cv_ar_at_file+:} false; then :
 13657    $as_echo_n "(cached) " >&6
 13658  else
 13659    lt_cv_ar_at_file=no
 13660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 13661  /* end confdefs.h.  */
 13662  
 13663  int
 13664  main ()
 13665  {
 13666  
 13667    ;
 13668    return 0;
 13669  }
 13670  _ACEOF
 13671  if ac_fn_c_try_compile "$LINENO"; then :
 13672    echo conftest.$ac_objext > conftest.lst
 13673        lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 13674        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 13675    (eval $lt_ar_try) 2>&5
 13676    ac_status=$?
 13677    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 13678    test $ac_status = 0; }
 13679        if test 0 -eq "$ac_status"; then
 13680  	# Ensure the archiver fails upon bogus file names.
 13681  	rm -f conftest.$ac_objext libconftest.a
 13682  	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 13683    (eval $lt_ar_try) 2>&5
 13684    ac_status=$?
 13685    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 13686    test $ac_status = 0; }
 13687  	if test 0 -ne "$ac_status"; then
 13688            lt_cv_ar_at_file=@
 13689          fi
 13690        fi
 13691        rm -f conftest.* libconftest.a
 13692  
 13693  fi
 13694  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 13695  
 13696  fi
 13697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 13698  $as_echo "$lt_cv_ar_at_file" >&6; }
 13699  
 13700  if test no = "$lt_cv_ar_at_file"; then
 13701    archiver_list_spec=
 13702  else
 13703    archiver_list_spec=$lt_cv_ar_at_file
 13704  fi
 13705  
 13706  
 13707  
 13708  
 13709  
 13710  
 13711  
 13712  if test -n "$ac_tool_prefix"; then
 13713    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 13714  set dummy ${ac_tool_prefix}strip; ac_word=$2
 13715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13716  $as_echo_n "checking for $ac_word... " >&6; }
 13717  if ${ac_cv_prog_STRIP+:} false; then :
 13718    $as_echo_n "(cached) " >&6
 13719  else
 13720    if test -n "$STRIP"; then
 13721    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 13722  else
 13723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13724  for as_dir in $PATH
 13725  do
 13726    IFS=$as_save_IFS
 13727    test -z "$as_dir" && as_dir=.
 13728      for ac_exec_ext in '' $ac_executable_extensions; do
 13729    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13730      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 13731      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13732      break 2
 13733    fi
 13734  done
 13735    done
 13736  IFS=$as_save_IFS
 13737  
 13738  fi
 13739  fi
 13740  STRIP=$ac_cv_prog_STRIP
 13741  if test -n "$STRIP"; then
 13742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 13743  $as_echo "$STRIP" >&6; }
 13744  else
 13745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13746  $as_echo "no" >&6; }
 13747  fi
 13748  
 13749  
 13750  fi
 13751  if test -z "$ac_cv_prog_STRIP"; then
 13752    ac_ct_STRIP=$STRIP
 13753    # Extract the first word of "strip", so it can be a program name with args.
 13754  set dummy strip; ac_word=$2
 13755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13756  $as_echo_n "checking for $ac_word... " >&6; }
 13757  if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 13758    $as_echo_n "(cached) " >&6
 13759  else
 13760    if test -n "$ac_ct_STRIP"; then
 13761    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 13762  else
 13763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13764  for as_dir in $PATH
 13765  do
 13766    IFS=$as_save_IFS
 13767    test -z "$as_dir" && as_dir=.
 13768      for ac_exec_ext in '' $ac_executable_extensions; do
 13769    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13770      ac_cv_prog_ac_ct_STRIP="strip"
 13771      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13772      break 2
 13773    fi
 13774  done
 13775    done
 13776  IFS=$as_save_IFS
 13777  
 13778  fi
 13779  fi
 13780  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 13781  if test -n "$ac_ct_STRIP"; then
 13782    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 13783  $as_echo "$ac_ct_STRIP" >&6; }
 13784  else
 13785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13786  $as_echo "no" >&6; }
 13787  fi
 13788  
 13789    if test "x$ac_ct_STRIP" = x; then
 13790      STRIP=":"
 13791    else
 13792      case $cross_compiling:$ac_tool_warned in
 13793  yes:)
 13794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 13795  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 13796  ac_tool_warned=yes ;;
 13797  esac
 13798      STRIP=$ac_ct_STRIP
 13799    fi
 13800  else
 13801    STRIP="$ac_cv_prog_STRIP"
 13802  fi
 13803  
 13804  test -z "$STRIP" && STRIP=:
 13805  
 13806  
 13807  
 13808  
 13809  
 13810  
 13811  if test -n "$ac_tool_prefix"; then
 13812    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 13813  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 13814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13815  $as_echo_n "checking for $ac_word... " >&6; }
 13816  if ${ac_cv_prog_RANLIB+:} false; then :
 13817    $as_echo_n "(cached) " >&6
 13818  else
 13819    if test -n "$RANLIB"; then
 13820    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 13821  else
 13822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13823  for as_dir in $PATH
 13824  do
 13825    IFS=$as_save_IFS
 13826    test -z "$as_dir" && as_dir=.
 13827      for ac_exec_ext in '' $ac_executable_extensions; do
 13828    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13829      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 13830      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13831      break 2
 13832    fi
 13833  done
 13834    done
 13835  IFS=$as_save_IFS
 13836  
 13837  fi
 13838  fi
 13839  RANLIB=$ac_cv_prog_RANLIB
 13840  if test -n "$RANLIB"; then
 13841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 13842  $as_echo "$RANLIB" >&6; }
 13843  else
 13844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13845  $as_echo "no" >&6; }
 13846  fi
 13847  
 13848  
 13849  fi
 13850  if test -z "$ac_cv_prog_RANLIB"; then
 13851    ac_ct_RANLIB=$RANLIB
 13852    # Extract the first word of "ranlib", so it can be a program name with args.
 13853  set dummy ranlib; ac_word=$2
 13854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 13855  $as_echo_n "checking for $ac_word... " >&6; }
 13856  if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 13857    $as_echo_n "(cached) " >&6
 13858  else
 13859    if test -n "$ac_ct_RANLIB"; then
 13860    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 13861  else
 13862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 13863  for as_dir in $PATH
 13864  do
 13865    IFS=$as_save_IFS
 13866    test -z "$as_dir" && as_dir=.
 13867      for ac_exec_ext in '' $ac_executable_extensions; do
 13868    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 13869      ac_cv_prog_ac_ct_RANLIB="ranlib"
 13870      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 13871      break 2
 13872    fi
 13873  done
 13874    done
 13875  IFS=$as_save_IFS
 13876  
 13877  fi
 13878  fi
 13879  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 13880  if test -n "$ac_ct_RANLIB"; then
 13881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 13882  $as_echo "$ac_ct_RANLIB" >&6; }
 13883  else
 13884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 13885  $as_echo "no" >&6; }
 13886  fi
 13887  
 13888    if test "x$ac_ct_RANLIB" = x; then
 13889      RANLIB=":"
 13890    else
 13891      case $cross_compiling:$ac_tool_warned in
 13892  yes:)
 13893  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 13894  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 13895  ac_tool_warned=yes ;;
 13896  esac
 13897      RANLIB=$ac_ct_RANLIB
 13898    fi
 13899  else
 13900    RANLIB="$ac_cv_prog_RANLIB"
 13901  fi
 13902  
 13903  test -z "$RANLIB" && RANLIB=:
 13904  
 13905  
 13906  
 13907  
 13908  
 13909  
 13910  # Determine commands to create old-style static archives.
 13911  old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 13912  old_postinstall_cmds='chmod 644 $oldlib'
 13913  old_postuninstall_cmds=
 13914  
 13915  if test -n "$RANLIB"; then
 13916    case $host_os in
 13917    bitrig* | openbsd*)
 13918      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 13919      ;;
 13920    *)
 13921      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 13922      ;;
 13923    esac
 13924    old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 13925  fi
 13926  
 13927  case $host_os in
 13928    darwin*)
 13929      lock_old_archive_extraction=yes ;;
 13930    *)
 13931      lock_old_archive_extraction=no ;;
 13932  esac
 13933  
 13934  
 13935  
 13936  
 13937  
 13938  
 13939  
 13940  
 13941  
 13942  
 13943  
 13944  
 13945  
 13946  
 13947  
 13948  
 13949  
 13950  
 13951  
 13952  
 13953  
 13954  
 13955  
 13956  
 13957  
 13958  
 13959  
 13960  
 13961  
 13962  
 13963  
 13964  
 13965  
 13966  
 13967  
 13968  
 13969  
 13970  
 13971  
 13972  # If no C compiler was specified, use CC.
 13973  LTCC=${LTCC-"$CC"}
 13974  
 13975  # If no C compiler flags were specified, use CFLAGS.
 13976  LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 13977  
 13978  # Allow CC to be a program name with arguments.
 13979  compiler=$CC
 13980  
 13981  
 13982  # Check for command to grab the raw symbol name followed by C symbol from nm.
 13983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 13984  $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 13985  if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 13986    $as_echo_n "(cached) " >&6
 13987  else
 13988  
 13989  # These are sane defaults that work on at least a few old systems.
 13990  # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 13991  
 13992  # Character class describing NM global symbol codes.
 13993  symcode='[BCDEGRST]'
 13994  
 13995  # Regexp to match symbols that can be accessed directly from C.
 13996  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 13997  
 13998  # Define system-specific variables.
 13999  case $host_os in
 14000  aix*)
 14001    symcode='[BCDT]'
 14002    ;;
 14003  cygwin* | mingw* | pw32* | cegcc*)
 14004    symcode='[ABCDGISTW]'
 14005    ;;
 14006  hpux*)
 14007    if test ia64 = "$host_cpu"; then
 14008      symcode='[ABCDEGRST]'
 14009    fi
 14010    ;;
 14011  irix* | nonstopux*)
 14012    symcode='[BCDEGRST]'
 14013    ;;
 14014  osf*)
 14015    symcode='[BCDEGQRST]'
 14016    ;;
 14017  solaris*)
 14018    symcode='[BDRT]'
 14019    ;;
 14020  sco3.2v5*)
 14021    symcode='[DT]'
 14022    ;;
 14023  sysv4.2uw2*)
 14024    symcode='[DT]'
 14025    ;;
 14026  sysv5* | sco5v6* | unixware* | OpenUNIX*)
 14027    symcode='[ABDT]'
 14028    ;;
 14029  sysv4)
 14030    symcode='[DFNSTU]'
 14031    ;;
 14032  esac
 14033  
 14034  # If we're using GNU nm, then use its standard symbol codes.
 14035  case `$NM -V 2>&1` in
 14036  *GNU* | *'with BFD'*)
 14037    symcode='[ABCDGIRSTW]' ;;
 14038  esac
 14039  
 14040  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 14041    # Gets list of data symbols to import.
 14042    lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
 14043    # Adjust the below global symbol transforms to fixup imported variables.
 14044    lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 14045    lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 14046    lt_c_name_lib_hook="\
 14047    -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 14048    -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 14049  else
 14050    # Disable hooks by default.
 14051    lt_cv_sys_global_symbol_to_import=
 14052    lt_cdecl_hook=
 14053    lt_c_name_hook=
 14054    lt_c_name_lib_hook=
 14055  fi
 14056  
 14057  # Transform an extracted symbol line into a proper C declaration.
 14058  # Some systems (esp. on ia64) link data and code symbols differently,
 14059  # so use this general approach.
 14060  lt_cv_sys_global_symbol_to_cdecl="sed -n"\
 14061  $lt_cdecl_hook\
 14062  " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 14063  " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 14064  
 14065  # Transform an extracted symbol line into symbol name and symbol address
 14066  lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
 14067  $lt_c_name_hook\
 14068  " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 14069  " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 14070  
 14071  # Transform an extracted symbol line into symbol name with lib prefix and
 14072  # symbol address.
 14073  lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
 14074  $lt_c_name_lib_hook\
 14075  " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 14076  " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 14077  " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 14078  
 14079  # Handle CRLF in mingw tool chain
 14080  opt_cr=
 14081  case $build_os in
 14082  mingw*)
 14083    opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 14084    ;;
 14085  esac
 14086  
 14087  # Try without a prefix underscore, then with it.
 14088  for ac_symprfx in "" "_"; do
 14089  
 14090    # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 14091    symxfrm="\\1 $ac_symprfx\\2 \\2"
 14092  
 14093    # Write the raw and C identifiers.
 14094    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 14095      # Fake it for dumpbin and say T for any non-static function,
 14096      # D for any global variable and I for any imported variable.
 14097      # Also find C++ and __fastcall symbols from MSVC++,
 14098      # which start with @ or ?.
 14099      lt_cv_sys_global_symbol_pipe="$AWK '"\
 14100  "     {last_section=section; section=\$ 3};"\
 14101  "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 14102  "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 14103  "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 14104  "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 14105  "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
 14106  "     \$ 0!~/External *\|/{next};"\
 14107  "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 14108  "     {if(hide[section]) next};"\
 14109  "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 14110  "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 14111  "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 14112  "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 14113  "     ' prfx=^$ac_symprfx"
 14114    else
 14115      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 14116    fi
 14117    lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 14118  
 14119    # Check to see that the pipe works correctly.
 14120    pipe_works=no
 14121  
 14122    rm -f conftest*
 14123    cat > conftest.$ac_ext <<_LT_EOF
 14124  #ifdef __cplusplus
 14125  extern "C" {
 14126  #endif
 14127  char nm_test_var;
 14128  void nm_test_func(void);
 14129  void nm_test_func(void){}
 14130  #ifdef __cplusplus
 14131  }
 14132  #endif
 14133  int main(){nm_test_var='a';nm_test_func();return(0);}
 14134  _LT_EOF
 14135  
 14136    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 14137    (eval $ac_compile) 2>&5
 14138    ac_status=$?
 14139    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14140    test $ac_status = 0; }; then
 14141      # Now try to grab the symbols.
 14142      nlist=conftest.nm
 14143      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 14144    (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 14145    ac_status=$?
 14146    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14147    test $ac_status = 0; } && test -s "$nlist"; then
 14148        # Try sorting and uniquifying the output.
 14149        if sort "$nlist" | uniq > "$nlist"T; then
 14150  	mv -f "$nlist"T "$nlist"
 14151        else
 14152  	rm -f "$nlist"T
 14153        fi
 14154  
 14155        # Make sure that we snagged all the symbols we need.
 14156        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 14157  	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 14158  	  cat <<_LT_EOF > conftest.$ac_ext
 14159  /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 14160  #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 14161  /* DATA imports from DLLs on WIN32 can't be const, because runtime
 14162     relocations are performed -- see ld's documentation on pseudo-relocs.  */
 14163  # define LT_DLSYM_CONST
 14164  #elif defined __osf__
 14165  /* This system does not cope well with relocations in const data.  */
 14166  # define LT_DLSYM_CONST
 14167  #else
 14168  # define LT_DLSYM_CONST const
 14169  #endif
 14170  
 14171  #ifdef __cplusplus
 14172  extern "C" {
 14173  #endif
 14174  
 14175  _LT_EOF
 14176  	  # Now generate the symbol file.
 14177  	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 14178  
 14179  	  cat <<_LT_EOF >> conftest.$ac_ext
 14180  
 14181  /* The mapping between symbol names and symbols.  */
 14182  LT_DLSYM_CONST struct {
 14183    const char *name;
 14184    void       *address;
 14185  }
 14186  lt__PROGRAM__LTX_preloaded_symbols[] =
 14187  {
 14188    { "@PROGRAM@", (void *) 0 },
 14189  _LT_EOF
 14190  	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 14191  	  cat <<\_LT_EOF >> conftest.$ac_ext
 14192    {0, (void *) 0}
 14193  };
 14194  
 14195  /* This works around a problem in FreeBSD linker */
 14196  #ifdef FREEBSD_WORKAROUND
 14197  static const void *lt_preloaded_setup() {
 14198    return lt__PROGRAM__LTX_preloaded_symbols;
 14199  }
 14200  #endif
 14201  
 14202  #ifdef __cplusplus
 14203  }
 14204  #endif
 14205  _LT_EOF
 14206  	  # Now try linking the two files.
 14207  	  mv conftest.$ac_objext conftstm.$ac_objext
 14208  	  lt_globsym_save_LIBS=$LIBS
 14209  	  lt_globsym_save_CFLAGS=$CFLAGS
 14210  	  LIBS=conftstm.$ac_objext
 14211  	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 14212  	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 14213    (eval $ac_link) 2>&5
 14214    ac_status=$?
 14215    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14216    test $ac_status = 0; } && test -s conftest$ac_exeext; then
 14217  	    pipe_works=yes
 14218  	  fi
 14219  	  LIBS=$lt_globsym_save_LIBS
 14220  	  CFLAGS=$lt_globsym_save_CFLAGS
 14221  	else
 14222  	  echo "cannot find nm_test_func in $nlist" >&5
 14223  	fi
 14224        else
 14225  	echo "cannot find nm_test_var in $nlist" >&5
 14226        fi
 14227      else
 14228        echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 14229      fi
 14230    else
 14231      echo "$progname: failed program was:" >&5
 14232      cat conftest.$ac_ext >&5
 14233    fi
 14234    rm -rf conftest* conftst*
 14235  
 14236    # Do not use the global_symbol_pipe unless it works.
 14237    if test yes = "$pipe_works"; then
 14238      break
 14239    else
 14240      lt_cv_sys_global_symbol_pipe=
 14241    fi
 14242  done
 14243  
 14244  fi
 14245  
 14246  if test -z "$lt_cv_sys_global_symbol_pipe"; then
 14247    lt_cv_sys_global_symbol_to_cdecl=
 14248  fi
 14249  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 14250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 14251  $as_echo "failed" >&6; }
 14252  else
 14253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 14254  $as_echo "ok" >&6; }
 14255  fi
 14256  
 14257  # Response file support.
 14258  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 14259    nm_file_list_spec='@'
 14260  elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 14261    nm_file_list_spec='@'
 14262  fi
 14263  
 14264  
 14265  
 14266  
 14267  
 14268  
 14269  
 14270  
 14271  
 14272  
 14273  
 14274  
 14275  
 14276  
 14277  
 14278  
 14279  
 14280  
 14281  
 14282  
 14283  
 14284  
 14285  
 14286  
 14287  
 14288  
 14289  
 14290  
 14291  
 14292  
 14293  
 14294  
 14295  
 14296  
 14297  
 14298  
 14299  
 14300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 14301  $as_echo_n "checking for sysroot... " >&6; }
 14302  
 14303  # Check whether --with-sysroot was given.
 14304  if test "${with_sysroot+set}" = set; then :
 14305    withval=$with_sysroot;
 14306  else
 14307    with_sysroot=no
 14308  fi
 14309  
 14310  
 14311  lt_sysroot=
 14312  case $with_sysroot in #(
 14313   yes)
 14314     if test yes = "$GCC"; then
 14315       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 14316     fi
 14317     ;; #(
 14318   /*)
 14319     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 14320     ;; #(
 14321   no|'')
 14322     ;; #(
 14323   *)
 14324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
 14325  $as_echo "$with_sysroot" >&6; }
 14326     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 14327     ;;
 14328  esac
 14329  
 14330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 14331  $as_echo "${lt_sysroot:-no}" >&6; }
 14332  
 14333  
 14334  
 14335  
 14336  
 14337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
 14338  $as_echo_n "checking for a working dd... " >&6; }
 14339  if ${ac_cv_path_lt_DD+:} false; then :
 14340    $as_echo_n "(cached) " >&6
 14341  else
 14342    printf 0123456789abcdef0123456789abcdef >conftest.i
 14343  cat conftest.i conftest.i >conftest2.i
 14344  : ${lt_DD:=$DD}
 14345  if test -z "$lt_DD"; then
 14346    ac_path_lt_DD_found=false
 14347    # Loop through the user's path and test for each of PROGNAME-LIST
 14348    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14349  for as_dir in $PATH
 14350  do
 14351    IFS=$as_save_IFS
 14352    test -z "$as_dir" && as_dir=.
 14353      for ac_prog in dd; do
 14354      for ac_exec_ext in '' $ac_executable_extensions; do
 14355        ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
 14356        as_fn_executable_p "$ac_path_lt_DD" || continue
 14357  if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 14358    cmp -s conftest.i conftest.out \
 14359    && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 14360  fi
 14361        $ac_path_lt_DD_found && break 3
 14362      done
 14363    done
 14364    done
 14365  IFS=$as_save_IFS
 14366    if test -z "$ac_cv_path_lt_DD"; then
 14367      :
 14368    fi
 14369  else
 14370    ac_cv_path_lt_DD=$lt_DD
 14371  fi
 14372  
 14373  rm -f conftest.i conftest2.i conftest.out
 14374  fi
 14375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
 14376  $as_echo "$ac_cv_path_lt_DD" >&6; }
 14377  
 14378  
 14379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
 14380  $as_echo_n "checking how to truncate binary pipes... " >&6; }
 14381  if ${lt_cv_truncate_bin+:} false; then :
 14382    $as_echo_n "(cached) " >&6
 14383  else
 14384    printf 0123456789abcdef0123456789abcdef >conftest.i
 14385  cat conftest.i conftest.i >conftest2.i
 14386  lt_cv_truncate_bin=
 14387  if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 14388    cmp -s conftest.i conftest.out \
 14389    && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 14390  fi
 14391  rm -f conftest.i conftest2.i conftest.out
 14392  test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
 14393  fi
 14394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
 14395  $as_echo "$lt_cv_truncate_bin" >&6; }
 14396  
 14397  
 14398  
 14399  
 14400  
 14401  
 14402  
 14403  # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 14404  func_cc_basename ()
 14405  {
 14406      for cc_temp in $*""; do
 14407        case $cc_temp in
 14408          compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 14409          distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 14410          \-*) ;;
 14411          *) break;;
 14412        esac
 14413      done
 14414      func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 14415  }
 14416  
 14417  # Check whether --enable-libtool-lock was given.
 14418  if test "${enable_libtool_lock+set}" = set; then :
 14419    enableval=$enable_libtool_lock;
 14420  fi
 14421  
 14422  test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 14423  
 14424  # Some flags need to be propagated to the compiler or linker for good
 14425  # libtool support.
 14426  case $host in
 14427  ia64-*-hpux*)
 14428    # Find out what ABI is being produced by ac_compile, and set mode
 14429    # options accordingly.
 14430    echo 'int i;' > conftest.$ac_ext
 14431    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 14432    (eval $ac_compile) 2>&5
 14433    ac_status=$?
 14434    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14435    test $ac_status = 0; }; then
 14436      case `/usr/bin/file conftest.$ac_objext` in
 14437        *ELF-32*)
 14438  	HPUX_IA64_MODE=32
 14439  	;;
 14440        *ELF-64*)
 14441  	HPUX_IA64_MODE=64
 14442  	;;
 14443      esac
 14444    fi
 14445    rm -rf conftest*
 14446    ;;
 14447  *-*-irix6*)
 14448    # Find out what ABI is being produced by ac_compile, and set linker
 14449    # options accordingly.
 14450    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 14451    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 14452    (eval $ac_compile) 2>&5
 14453    ac_status=$?
 14454    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14455    test $ac_status = 0; }; then
 14456      if test yes = "$lt_cv_prog_gnu_ld"; then
 14457        case `/usr/bin/file conftest.$ac_objext` in
 14458  	*32-bit*)
 14459  	  LD="${LD-ld} -melf32bsmip"
 14460  	  ;;
 14461  	*N32*)
 14462  	  LD="${LD-ld} -melf32bmipn32"
 14463  	  ;;
 14464  	*64-bit*)
 14465  	  LD="${LD-ld} -melf64bmip"
 14466  	;;
 14467        esac
 14468      else
 14469        case `/usr/bin/file conftest.$ac_objext` in
 14470  	*32-bit*)
 14471  	  LD="${LD-ld} -32"
 14472  	  ;;
 14473  	*N32*)
 14474  	  LD="${LD-ld} -n32"
 14475  	  ;;
 14476  	*64-bit*)
 14477  	  LD="${LD-ld} -64"
 14478  	  ;;
 14479        esac
 14480      fi
 14481    fi
 14482    rm -rf conftest*
 14483    ;;
 14484  
 14485  mips64*-*linux*)
 14486    # Find out what ABI is being produced by ac_compile, and set linker
 14487    # options accordingly.
 14488    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 14489    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 14490    (eval $ac_compile) 2>&5
 14491    ac_status=$?
 14492    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14493    test $ac_status = 0; }; then
 14494      emul=elf
 14495      case `/usr/bin/file conftest.$ac_objext` in
 14496        *32-bit*)
 14497  	emul="${emul}32"
 14498  	;;
 14499        *64-bit*)
 14500  	emul="${emul}64"
 14501  	;;
 14502      esac
 14503      case `/usr/bin/file conftest.$ac_objext` in
 14504        *MSB*)
 14505  	emul="${emul}btsmip"
 14506  	;;
 14507        *LSB*)
 14508  	emul="${emul}ltsmip"
 14509  	;;
 14510      esac
 14511      case `/usr/bin/file conftest.$ac_objext` in
 14512        *N32*)
 14513  	emul="${emul}n32"
 14514  	;;
 14515      esac
 14516      LD="${LD-ld} -m $emul"
 14517    fi
 14518    rm -rf conftest*
 14519    ;;
 14520  
 14521  x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 14522  s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 14523    # Find out what ABI is being produced by ac_compile, and set linker
 14524    # options accordingly.  Note that the listed cases only cover the
 14525    # situations where additional linker options are needed (such as when
 14526    # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 14527    # vice versa); the common cases where no linker options are needed do
 14528    # not appear in the list.
 14529    echo 'int i;' > conftest.$ac_ext
 14530    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 14531    (eval $ac_compile) 2>&5
 14532    ac_status=$?
 14533    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14534    test $ac_status = 0; }; then
 14535      case `/usr/bin/file conftest.o` in
 14536        *32-bit*)
 14537  	case $host in
 14538  	  x86_64-*kfreebsd*-gnu)
 14539  	    LD="${LD-ld} -m elf_i386_fbsd"
 14540  	    ;;
 14541  	  x86_64-*linux*)
 14542  	    case `/usr/bin/file conftest.o` in
 14543  	      *x86-64*)
 14544  		LD="${LD-ld} -m elf32_x86_64"
 14545  		;;
 14546  	      *)
 14547  		LD="${LD-ld} -m elf_i386"
 14548  		;;
 14549  	    esac
 14550  	    ;;
 14551  	  powerpc64le-*linux*)
 14552  	    LD="${LD-ld} -m elf32lppclinux"
 14553  	    ;;
 14554  	  powerpc64-*linux*)
 14555  	    LD="${LD-ld} -m elf32ppclinux"
 14556  	    ;;
 14557  	  s390x-*linux*)
 14558  	    LD="${LD-ld} -m elf_s390"
 14559  	    ;;
 14560  	  sparc64-*linux*)
 14561  	    LD="${LD-ld} -m elf32_sparc"
 14562  	    ;;
 14563  	esac
 14564  	;;
 14565        *64-bit*)
 14566  	case $host in
 14567  	  x86_64-*kfreebsd*-gnu)
 14568  	    LD="${LD-ld} -m elf_x86_64_fbsd"
 14569  	    ;;
 14570  	  x86_64-*linux*)
 14571  	    LD="${LD-ld} -m elf_x86_64"
 14572  	    ;;
 14573  	  powerpcle-*linux*)
 14574  	    LD="${LD-ld} -m elf64lppc"
 14575  	    ;;
 14576  	  powerpc-*linux*)
 14577  	    LD="${LD-ld} -m elf64ppc"
 14578  	    ;;
 14579  	  s390*-*linux*|s390*-*tpf*)
 14580  	    LD="${LD-ld} -m elf64_s390"
 14581  	    ;;
 14582  	  sparc*-*linux*)
 14583  	    LD="${LD-ld} -m elf64_sparc"
 14584  	    ;;
 14585  	esac
 14586  	;;
 14587      esac
 14588    fi
 14589    rm -rf conftest*
 14590    ;;
 14591  
 14592  *-*-sco3.2v5*)
 14593    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 14594    SAVE_CFLAGS=$CFLAGS
 14595    CFLAGS="$CFLAGS -belf"
 14596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 14597  $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 14598  if ${lt_cv_cc_needs_belf+:} false; then :
 14599    $as_echo_n "(cached) " >&6
 14600  else
 14601    ac_ext=c
 14602  ac_cpp='$CPP $CPPFLAGS'
 14603  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 14604  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 14605  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 14606  
 14607       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 14608  /* end confdefs.h.  */
 14609  
 14610  int
 14611  main ()
 14612  {
 14613  
 14614    ;
 14615    return 0;
 14616  }
 14617  _ACEOF
 14618  if ac_fn_c_try_link "$LINENO"; then :
 14619    lt_cv_cc_needs_belf=yes
 14620  else
 14621    lt_cv_cc_needs_belf=no
 14622  fi
 14623  rm -f core conftest.err conftest.$ac_objext \
 14624      conftest$ac_exeext conftest.$ac_ext
 14625       ac_ext=c
 14626  ac_cpp='$CPP $CPPFLAGS'
 14627  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 14628  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 14629  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 14630  
 14631  fi
 14632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 14633  $as_echo "$lt_cv_cc_needs_belf" >&6; }
 14634    if test yes != "$lt_cv_cc_needs_belf"; then
 14635      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 14636      CFLAGS=$SAVE_CFLAGS
 14637    fi
 14638    ;;
 14639  *-*solaris*)
 14640    # Find out what ABI is being produced by ac_compile, and set linker
 14641    # options accordingly.
 14642    echo 'int i;' > conftest.$ac_ext
 14643    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 14644    (eval $ac_compile) 2>&5
 14645    ac_status=$?
 14646    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 14647    test $ac_status = 0; }; then
 14648      case `/usr/bin/file conftest.o` in
 14649      *64-bit*)
 14650        case $lt_cv_prog_gnu_ld in
 14651        yes*)
 14652          case $host in
 14653          i?86-*-solaris*|x86_64-*-solaris*)
 14654            LD="${LD-ld} -m elf_x86_64"
 14655            ;;
 14656          sparc*-*-solaris*)
 14657            LD="${LD-ld} -m elf64_sparc"
 14658            ;;
 14659          esac
 14660          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 14661          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 14662            LD=${LD-ld}_sol2
 14663          fi
 14664          ;;
 14665        *)
 14666  	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 14667  	  LD="${LD-ld} -64"
 14668  	fi
 14669  	;;
 14670        esac
 14671        ;;
 14672      esac
 14673    fi
 14674    rm -rf conftest*
 14675    ;;
 14676  esac
 14677  
 14678  need_locks=$enable_libtool_lock
 14679  
 14680  if test -n "$ac_tool_prefix"; then
 14681    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 14682  set dummy ${ac_tool_prefix}mt; ac_word=$2
 14683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14684  $as_echo_n "checking for $ac_word... " >&6; }
 14685  if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 14686    $as_echo_n "(cached) " >&6
 14687  else
 14688    if test -n "$MANIFEST_TOOL"; then
 14689    ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 14690  else
 14691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14692  for as_dir in $PATH
 14693  do
 14694    IFS=$as_save_IFS
 14695    test -z "$as_dir" && as_dir=.
 14696      for ac_exec_ext in '' $ac_executable_extensions; do
 14697    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 14698      ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 14699      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 14700      break 2
 14701    fi
 14702  done
 14703    done
 14704  IFS=$as_save_IFS
 14705  
 14706  fi
 14707  fi
 14708  MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 14709  if test -n "$MANIFEST_TOOL"; then
 14710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 14711  $as_echo "$MANIFEST_TOOL" >&6; }
 14712  else
 14713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 14714  $as_echo "no" >&6; }
 14715  fi
 14716  
 14717  
 14718  fi
 14719  if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 14720    ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 14721    # Extract the first word of "mt", so it can be a program name with args.
 14722  set dummy mt; ac_word=$2
 14723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14724  $as_echo_n "checking for $ac_word... " >&6; }
 14725  if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 14726    $as_echo_n "(cached) " >&6
 14727  else
 14728    if test -n "$ac_ct_MANIFEST_TOOL"; then
 14729    ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 14730  else
 14731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14732  for as_dir in $PATH
 14733  do
 14734    IFS=$as_save_IFS
 14735    test -z "$as_dir" && as_dir=.
 14736      for ac_exec_ext in '' $ac_executable_extensions; do
 14737    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 14738      ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 14739      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 14740      break 2
 14741    fi
 14742  done
 14743    done
 14744  IFS=$as_save_IFS
 14745  
 14746  fi
 14747  fi
 14748  ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 14749  if test -n "$ac_ct_MANIFEST_TOOL"; then
 14750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 14751  $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 14752  else
 14753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 14754  $as_echo "no" >&6; }
 14755  fi
 14756  
 14757    if test "x$ac_ct_MANIFEST_TOOL" = x; then
 14758      MANIFEST_TOOL=":"
 14759    else
 14760      case $cross_compiling:$ac_tool_warned in
 14761  yes:)
 14762  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 14763  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 14764  ac_tool_warned=yes ;;
 14765  esac
 14766      MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 14767    fi
 14768  else
 14769    MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 14770  fi
 14771  
 14772  test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 14773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 14774  $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 14775  if ${lt_cv_path_mainfest_tool+:} false; then :
 14776    $as_echo_n "(cached) " >&6
 14777  else
 14778    lt_cv_path_mainfest_tool=no
 14779    echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 14780    $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 14781    cat conftest.err >&5
 14782    if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 14783      lt_cv_path_mainfest_tool=yes
 14784    fi
 14785    rm -f conftest*
 14786  fi
 14787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 14788  $as_echo "$lt_cv_path_mainfest_tool" >&6; }
 14789  if test yes != "$lt_cv_path_mainfest_tool"; then
 14790    MANIFEST_TOOL=:
 14791  fi
 14792  
 14793  
 14794  
 14795  
 14796  
 14797  
 14798    case $host_os in
 14799      rhapsody* | darwin*)
 14800      if test -n "$ac_tool_prefix"; then
 14801    # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 14802  set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 14803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14804  $as_echo_n "checking for $ac_word... " >&6; }
 14805  if ${ac_cv_prog_DSYMUTIL+:} false; then :
 14806    $as_echo_n "(cached) " >&6
 14807  else
 14808    if test -n "$DSYMUTIL"; then
 14809    ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 14810  else
 14811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14812  for as_dir in $PATH
 14813  do
 14814    IFS=$as_save_IFS
 14815    test -z "$as_dir" && as_dir=.
 14816      for ac_exec_ext in '' $ac_executable_extensions; do
 14817    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 14818      ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 14819      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 14820      break 2
 14821    fi
 14822  done
 14823    done
 14824  IFS=$as_save_IFS
 14825  
 14826  fi
 14827  fi
 14828  DSYMUTIL=$ac_cv_prog_DSYMUTIL
 14829  if test -n "$DSYMUTIL"; then
 14830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 14831  $as_echo "$DSYMUTIL" >&6; }
 14832  else
 14833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 14834  $as_echo "no" >&6; }
 14835  fi
 14836  
 14837  
 14838  fi
 14839  if test -z "$ac_cv_prog_DSYMUTIL"; then
 14840    ac_ct_DSYMUTIL=$DSYMUTIL
 14841    # Extract the first word of "dsymutil", so it can be a program name with args.
 14842  set dummy dsymutil; ac_word=$2
 14843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14844  $as_echo_n "checking for $ac_word... " >&6; }
 14845  if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 14846    $as_echo_n "(cached) " >&6
 14847  else
 14848    if test -n "$ac_ct_DSYMUTIL"; then
 14849    ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 14850  else
 14851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14852  for as_dir in $PATH
 14853  do
 14854    IFS=$as_save_IFS
 14855    test -z "$as_dir" && as_dir=.
 14856      for ac_exec_ext in '' $ac_executable_extensions; do
 14857    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 14858      ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 14859      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 14860      break 2
 14861    fi
 14862  done
 14863    done
 14864  IFS=$as_save_IFS
 14865  
 14866  fi
 14867  fi
 14868  ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 14869  if test -n "$ac_ct_DSYMUTIL"; then
 14870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 14871  $as_echo "$ac_ct_DSYMUTIL" >&6; }
 14872  else
 14873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 14874  $as_echo "no" >&6; }
 14875  fi
 14876  
 14877    if test "x$ac_ct_DSYMUTIL" = x; then
 14878      DSYMUTIL=":"
 14879    else
 14880      case $cross_compiling:$ac_tool_warned in
 14881  yes:)
 14882  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 14883  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 14884  ac_tool_warned=yes ;;
 14885  esac
 14886      DSYMUTIL=$ac_ct_DSYMUTIL
 14887    fi
 14888  else
 14889    DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 14890  fi
 14891  
 14892      if test -n "$ac_tool_prefix"; then
 14893    # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 14894  set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 14895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14896  $as_echo_n "checking for $ac_word... " >&6; }
 14897  if ${ac_cv_prog_NMEDIT+:} false; then :
 14898    $as_echo_n "(cached) " >&6
 14899  else
 14900    if test -n "$NMEDIT"; then
 14901    ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 14902  else
 14903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14904  for as_dir in $PATH
 14905  do
 14906    IFS=$as_save_IFS
 14907    test -z "$as_dir" && as_dir=.
 14908      for ac_exec_ext in '' $ac_executable_extensions; do
 14909    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 14910      ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 14911      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 14912      break 2
 14913    fi
 14914  done
 14915    done
 14916  IFS=$as_save_IFS
 14917  
 14918  fi
 14919  fi
 14920  NMEDIT=$ac_cv_prog_NMEDIT
 14921  if test -n "$NMEDIT"; then
 14922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 14923  $as_echo "$NMEDIT" >&6; }
 14924  else
 14925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 14926  $as_echo "no" >&6; }
 14927  fi
 14928  
 14929  
 14930  fi
 14931  if test -z "$ac_cv_prog_NMEDIT"; then
 14932    ac_ct_NMEDIT=$NMEDIT
 14933    # Extract the first word of "nmedit", so it can be a program name with args.
 14934  set dummy nmedit; ac_word=$2
 14935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14936  $as_echo_n "checking for $ac_word... " >&6; }
 14937  if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 14938    $as_echo_n "(cached) " >&6
 14939  else
 14940    if test -n "$ac_ct_NMEDIT"; then
 14941    ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 14942  else
 14943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14944  for as_dir in $PATH
 14945  do
 14946    IFS=$as_save_IFS
 14947    test -z "$as_dir" && as_dir=.
 14948      for ac_exec_ext in '' $ac_executable_extensions; do
 14949    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 14950      ac_cv_prog_ac_ct_NMEDIT="nmedit"
 14951      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 14952      break 2
 14953    fi
 14954  done
 14955    done
 14956  IFS=$as_save_IFS
 14957  
 14958  fi
 14959  fi
 14960  ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 14961  if test -n "$ac_ct_NMEDIT"; then
 14962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 14963  $as_echo "$ac_ct_NMEDIT" >&6; }
 14964  else
 14965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 14966  $as_echo "no" >&6; }
 14967  fi
 14968  
 14969    if test "x$ac_ct_NMEDIT" = x; then
 14970      NMEDIT=":"
 14971    else
 14972      case $cross_compiling:$ac_tool_warned in
 14973  yes:)
 14974  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 14975  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 14976  ac_tool_warned=yes ;;
 14977  esac
 14978      NMEDIT=$ac_ct_NMEDIT
 14979    fi
 14980  else
 14981    NMEDIT="$ac_cv_prog_NMEDIT"
 14982  fi
 14983  
 14984      if test -n "$ac_tool_prefix"; then
 14985    # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 14986  set dummy ${ac_tool_prefix}lipo; ac_word=$2
 14987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 14988  $as_echo_n "checking for $ac_word... " >&6; }
 14989  if ${ac_cv_prog_LIPO+:} false; then :
 14990    $as_echo_n "(cached) " >&6
 14991  else
 14992    if test -n "$LIPO"; then
 14993    ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 14994  else
 14995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 14996  for as_dir in $PATH
 14997  do
 14998    IFS=$as_save_IFS
 14999    test -z "$as_dir" && as_dir=.
 15000      for ac_exec_ext in '' $ac_executable_extensions; do
 15001    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 15002      ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 15003      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 15004      break 2
 15005    fi
 15006  done
 15007    done
 15008  IFS=$as_save_IFS
 15009  
 15010  fi
 15011  fi
 15012  LIPO=$ac_cv_prog_LIPO
 15013  if test -n "$LIPO"; then
 15014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 15015  $as_echo "$LIPO" >&6; }
 15016  else
 15017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15018  $as_echo "no" >&6; }
 15019  fi
 15020  
 15021  
 15022  fi
 15023  if test -z "$ac_cv_prog_LIPO"; then
 15024    ac_ct_LIPO=$LIPO
 15025    # Extract the first word of "lipo", so it can be a program name with args.
 15026  set dummy lipo; ac_word=$2
 15027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 15028  $as_echo_n "checking for $ac_word... " >&6; }
 15029  if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 15030    $as_echo_n "(cached) " >&6
 15031  else
 15032    if test -n "$ac_ct_LIPO"; then
 15033    ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 15034  else
 15035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15036  for as_dir in $PATH
 15037  do
 15038    IFS=$as_save_IFS
 15039    test -z "$as_dir" && as_dir=.
 15040      for ac_exec_ext in '' $ac_executable_extensions; do
 15041    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 15042      ac_cv_prog_ac_ct_LIPO="lipo"
 15043      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 15044      break 2
 15045    fi
 15046  done
 15047    done
 15048  IFS=$as_save_IFS
 15049  
 15050  fi
 15051  fi
 15052  ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 15053  if test -n "$ac_ct_LIPO"; then
 15054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 15055  $as_echo "$ac_ct_LIPO" >&6; }
 15056  else
 15057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15058  $as_echo "no" >&6; }
 15059  fi
 15060  
 15061    if test "x$ac_ct_LIPO" = x; then
 15062      LIPO=":"
 15063    else
 15064      case $cross_compiling:$ac_tool_warned in
 15065  yes:)
 15066  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 15067  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 15068  ac_tool_warned=yes ;;
 15069  esac
 15070      LIPO=$ac_ct_LIPO
 15071    fi
 15072  else
 15073    LIPO="$ac_cv_prog_LIPO"
 15074  fi
 15075  
 15076      if test -n "$ac_tool_prefix"; then
 15077    # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 15078  set dummy ${ac_tool_prefix}otool; ac_word=$2
 15079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 15080  $as_echo_n "checking for $ac_word... " >&6; }
 15081  if ${ac_cv_prog_OTOOL+:} false; then :
 15082    $as_echo_n "(cached) " >&6
 15083  else
 15084    if test -n "$OTOOL"; then
 15085    ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 15086  else
 15087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15088  for as_dir in $PATH
 15089  do
 15090    IFS=$as_save_IFS
 15091    test -z "$as_dir" && as_dir=.
 15092      for ac_exec_ext in '' $ac_executable_extensions; do
 15093    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 15094      ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 15095      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 15096      break 2
 15097    fi
 15098  done
 15099    done
 15100  IFS=$as_save_IFS
 15101  
 15102  fi
 15103  fi
 15104  OTOOL=$ac_cv_prog_OTOOL
 15105  if test -n "$OTOOL"; then
 15106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 15107  $as_echo "$OTOOL" >&6; }
 15108  else
 15109    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15110  $as_echo "no" >&6; }
 15111  fi
 15112  
 15113  
 15114  fi
 15115  if test -z "$ac_cv_prog_OTOOL"; then
 15116    ac_ct_OTOOL=$OTOOL
 15117    # Extract the first word of "otool", so it can be a program name with args.
 15118  set dummy otool; ac_word=$2
 15119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 15120  $as_echo_n "checking for $ac_word... " >&6; }
 15121  if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 15122    $as_echo_n "(cached) " >&6
 15123  else
 15124    if test -n "$ac_ct_OTOOL"; then
 15125    ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 15126  else
 15127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15128  for as_dir in $PATH
 15129  do
 15130    IFS=$as_save_IFS
 15131    test -z "$as_dir" && as_dir=.
 15132      for ac_exec_ext in '' $ac_executable_extensions; do
 15133    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 15134      ac_cv_prog_ac_ct_OTOOL="otool"
 15135      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 15136      break 2
 15137    fi
 15138  done
 15139    done
 15140  IFS=$as_save_IFS
 15141  
 15142  fi
 15143  fi
 15144  ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 15145  if test -n "$ac_ct_OTOOL"; then
 15146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 15147  $as_echo "$ac_ct_OTOOL" >&6; }
 15148  else
 15149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15150  $as_echo "no" >&6; }
 15151  fi
 15152  
 15153    if test "x$ac_ct_OTOOL" = x; then
 15154      OTOOL=":"
 15155    else
 15156      case $cross_compiling:$ac_tool_warned in
 15157  yes:)
 15158  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 15159  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 15160  ac_tool_warned=yes ;;
 15161  esac
 15162      OTOOL=$ac_ct_OTOOL
 15163    fi
 15164  else
 15165    OTOOL="$ac_cv_prog_OTOOL"
 15166  fi
 15167  
 15168      if test -n "$ac_tool_prefix"; then
 15169    # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 15170  set dummy ${ac_tool_prefix}otool64; ac_word=$2
 15171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 15172  $as_echo_n "checking for $ac_word... " >&6; }
 15173  if ${ac_cv_prog_OTOOL64+:} false; then :
 15174    $as_echo_n "(cached) " >&6
 15175  else
 15176    if test -n "$OTOOL64"; then
 15177    ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 15178  else
 15179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15180  for as_dir in $PATH
 15181  do
 15182    IFS=$as_save_IFS
 15183    test -z "$as_dir" && as_dir=.
 15184      for ac_exec_ext in '' $ac_executable_extensions; do
 15185    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 15186      ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 15187      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 15188      break 2
 15189    fi
 15190  done
 15191    done
 15192  IFS=$as_save_IFS
 15193  
 15194  fi
 15195  fi
 15196  OTOOL64=$ac_cv_prog_OTOOL64
 15197  if test -n "$OTOOL64"; then
 15198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 15199  $as_echo "$OTOOL64" >&6; }
 15200  else
 15201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15202  $as_echo "no" >&6; }
 15203  fi
 15204  
 15205  
 15206  fi
 15207  if test -z "$ac_cv_prog_OTOOL64"; then
 15208    ac_ct_OTOOL64=$OTOOL64
 15209    # Extract the first word of "otool64", so it can be a program name with args.
 15210  set dummy otool64; ac_word=$2
 15211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 15212  $as_echo_n "checking for $ac_word... " >&6; }
 15213  if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 15214    $as_echo_n "(cached) " >&6
 15215  else
 15216    if test -n "$ac_ct_OTOOL64"; then
 15217    ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 15218  else
 15219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 15220  for as_dir in $PATH
 15221  do
 15222    IFS=$as_save_IFS
 15223    test -z "$as_dir" && as_dir=.
 15224      for ac_exec_ext in '' $ac_executable_extensions; do
 15225    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 15226      ac_cv_prog_ac_ct_OTOOL64="otool64"
 15227      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 15228      break 2
 15229    fi
 15230  done
 15231    done
 15232  IFS=$as_save_IFS
 15233  
 15234  fi
 15235  fi
 15236  ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 15237  if test -n "$ac_ct_OTOOL64"; then
 15238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 15239  $as_echo "$ac_ct_OTOOL64" >&6; }
 15240  else
 15241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15242  $as_echo "no" >&6; }
 15243  fi
 15244  
 15245    if test "x$ac_ct_OTOOL64" = x; then
 15246      OTOOL64=":"
 15247    else
 15248      case $cross_compiling:$ac_tool_warned in
 15249  yes:)
 15250  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 15251  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 15252  ac_tool_warned=yes ;;
 15253  esac
 15254      OTOOL64=$ac_ct_OTOOL64
 15255    fi
 15256  else
 15257    OTOOL64="$ac_cv_prog_OTOOL64"
 15258  fi
 15259  
 15260  
 15261  
 15262  
 15263  
 15264  
 15265  
 15266  
 15267  
 15268  
 15269  
 15270  
 15271  
 15272  
 15273  
 15274  
 15275  
 15276  
 15277  
 15278  
 15279  
 15280  
 15281  
 15282  
 15283  
 15284  
 15285  
 15286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 15287  $as_echo_n "checking for -single_module linker flag... " >&6; }
 15288  if ${lt_cv_apple_cc_single_mod+:} false; then :
 15289    $as_echo_n "(cached) " >&6
 15290  else
 15291    lt_cv_apple_cc_single_mod=no
 15292        if test -z "$LT_MULTI_MODULE"; then
 15293  	# By default we will add the -single_module flag. You can override
 15294  	# by either setting the environment variable LT_MULTI_MODULE
 15295  	# non-empty at configure time, or by adding -multi_module to the
 15296  	# link flags.
 15297  	rm -rf libconftest.dylib*
 15298  	echo "int foo(void){return 1;}" > conftest.c
 15299  	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 15300  -dynamiclib -Wl,-single_module conftest.c" >&5
 15301  	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 15302  	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 15303          _lt_result=$?
 15304  	# If there is a non-empty error log, and "single_module"
 15305  	# appears in it, assume the flag caused a linker warning
 15306          if test -s conftest.err && $GREP single_module conftest.err; then
 15307  	  cat conftest.err >&5
 15308  	# Otherwise, if the output was created with a 0 exit code from
 15309  	# the compiler, it worked.
 15310  	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 15311  	  lt_cv_apple_cc_single_mod=yes
 15312  	else
 15313  	  cat conftest.err >&5
 15314  	fi
 15315  	rm -rf libconftest.dylib*
 15316  	rm -f conftest.*
 15317        fi
 15318  fi
 15319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 15320  $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 15321  
 15322      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 15323  $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 15324  if ${lt_cv_ld_exported_symbols_list+:} false; then :
 15325    $as_echo_n "(cached) " >&6
 15326  else
 15327    lt_cv_ld_exported_symbols_list=no
 15328        save_LDFLAGS=$LDFLAGS
 15329        echo "_main" > conftest.sym
 15330        LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 15331        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 15332  /* end confdefs.h.  */
 15333  
 15334  int
 15335  main ()
 15336  {
 15337  
 15338    ;
 15339    return 0;
 15340  }
 15341  _ACEOF
 15342  if ac_fn_c_try_link "$LINENO"; then :
 15343    lt_cv_ld_exported_symbols_list=yes
 15344  else
 15345    lt_cv_ld_exported_symbols_list=no
 15346  fi
 15347  rm -f core conftest.err conftest.$ac_objext \
 15348      conftest$ac_exeext conftest.$ac_ext
 15349  	LDFLAGS=$save_LDFLAGS
 15350  
 15351  fi
 15352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 15353  $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 15354  
 15355      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 15356  $as_echo_n "checking for -force_load linker flag... " >&6; }
 15357  if ${lt_cv_ld_force_load+:} false; then :
 15358    $as_echo_n "(cached) " >&6
 15359  else
 15360    lt_cv_ld_force_load=no
 15361        cat > conftest.c << _LT_EOF
 15362  int forced_loaded() { return 2;}
 15363  _LT_EOF
 15364        echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 15365        $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 15366        echo "$AR cru libconftest.a conftest.o" >&5
 15367        $AR cru libconftest.a conftest.o 2>&5
 15368        echo "$RANLIB libconftest.a" >&5
 15369        $RANLIB libconftest.a 2>&5
 15370        cat > conftest.c << _LT_EOF
 15371  int main() { return 0;}
 15372  _LT_EOF
 15373        echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 15374        $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 15375        _lt_result=$?
 15376        if test -s conftest.err && $GREP force_load conftest.err; then
 15377  	cat conftest.err >&5
 15378        elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
 15379  	lt_cv_ld_force_load=yes
 15380        else
 15381  	cat conftest.err >&5
 15382        fi
 15383          rm -f conftest.err libconftest.a conftest conftest.c
 15384          rm -rf conftest.dSYM
 15385  
 15386  fi
 15387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 15388  $as_echo "$lt_cv_ld_force_load" >&6; }
 15389      case $host_os in
 15390      rhapsody* | darwin1.[012])
 15391        _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 15392      darwin1.*)
 15393        _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 15394      darwin*) # darwin 5.x on
 15395        # if running on 10.5 or later, the deployment target defaults
 15396        # to the OS version, if on x86, and 10.4, the deployment
 15397        # target defaults to 10.4. Don't you love it?
 15398        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 15399  	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 15400  	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 15401  	10.[012][,.]*)
 15402  	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 15403  	10.*)
 15404  	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 15405        esac
 15406      ;;
 15407    esac
 15408      if test yes = "$lt_cv_apple_cc_single_mod"; then
 15409        _lt_dar_single_mod='$single_module'
 15410      fi
 15411      if test yes = "$lt_cv_ld_exported_symbols_list"; then
 15412        _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
 15413      else
 15414        _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 15415      fi
 15416      if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 15417        _lt_dsymutil='~$DSYMUTIL $lib || :'
 15418      else
 15419        _lt_dsymutil=
 15420      fi
 15421      ;;
 15422    esac
 15423  
 15424  # func_munge_path_list VARIABLE PATH
 15425  # -----------------------------------
 15426  # VARIABLE is name of variable containing _space_ separated list of
 15427  # directories to be munged by the contents of PATH, which is string
 15428  # having a format:
 15429  # "DIR[:DIR]:"
 15430  #       string "DIR[ DIR]" will be prepended to VARIABLE
 15431  # ":DIR[:DIR]"
 15432  #       string "DIR[ DIR]" will be appended to VARIABLE
 15433  # "DIRP[:DIRP]::[DIRA:]DIRA"
 15434  #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 15435  #       "DIRA[ DIRA]" will be appended to VARIABLE
 15436  # "DIR[:DIR]"
 15437  #       VARIABLE will be replaced by "DIR[ DIR]"
 15438  func_munge_path_list ()
 15439  {
 15440      case x$2 in
 15441      x)
 15442          ;;
 15443      *:)
 15444          eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
 15445          ;;
 15446      x:*)
 15447          eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
 15448          ;;
 15449      *::*)
 15450          eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 15451          eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
 15452          ;;
 15453      *)
 15454          eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
 15455          ;;
 15456      esac
 15457  }
 15458  
 15459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 15460  $as_echo_n "checking for ANSI C header files... " >&6; }
 15461  if ${ac_cv_header_stdc+:} false; then :
 15462    $as_echo_n "(cached) " >&6
 15463  else
 15464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 15465  /* end confdefs.h.  */
 15466  #include <stdlib.h>
 15467  #include <stdarg.h>
 15468  #include <string.h>
 15469  #include <float.h>
 15470  
 15471  int
 15472  main ()
 15473  {
 15474  
 15475    ;
 15476    return 0;
 15477  }
 15478  _ACEOF
 15479  if ac_fn_c_try_compile "$LINENO"; then :
 15480    ac_cv_header_stdc=yes
 15481  else
 15482    ac_cv_header_stdc=no
 15483  fi
 15484  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 15485  
 15486  if test $ac_cv_header_stdc = yes; then
 15487    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 15488    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 15489  /* end confdefs.h.  */
 15490  #include <string.h>
 15491  
 15492  _ACEOF
 15493  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 15494    $EGREP "memchr" >/dev/null 2>&1; then :
 15495  
 15496  else
 15497    ac_cv_header_stdc=no
 15498  fi
 15499  rm -f conftest*
 15500  
 15501  fi
 15502  
 15503  if test $ac_cv_header_stdc = yes; then
 15504    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 15505    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 15506  /* end confdefs.h.  */
 15507  #include <stdlib.h>
 15508  
 15509  _ACEOF
 15510  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 15511    $EGREP "free" >/dev/null 2>&1; then :
 15512  
 15513  else
 15514    ac_cv_header_stdc=no
 15515  fi
 15516  rm -f conftest*
 15517  
 15518  fi
 15519  
 15520  if test $ac_cv_header_stdc = yes; then
 15521    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 15522    if test "$cross_compiling" = yes; then :
 15523    :
 15524  else
 15525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 15526  /* end confdefs.h.  */
 15527  #include <ctype.h>
 15528  #include <stdlib.h>
 15529  #if ((' ' & 0x0FF) == 0x020)
 15530  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 15531  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 15532  #else
 15533  # define ISLOWER(c) \
 15534  		   (('a' <= (c) && (c) <= 'i') \
 15535  		     || ('j' <= (c) && (c) <= 'r') \
 15536  		     || ('s' <= (c) && (c) <= 'z'))
 15537  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 15538  #endif
 15539  
 15540  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 15541  int
 15542  main ()
 15543  {
 15544    int i;
 15545    for (i = 0; i < 256; i++)
 15546      if (XOR (islower (i), ISLOWER (i))
 15547  	|| toupper (i) != TOUPPER (i))
 15548        return 2;
 15549    return 0;
 15550  }
 15551  _ACEOF
 15552  if ac_fn_c_try_run "$LINENO"; then :
 15553  
 15554  else
 15555    ac_cv_header_stdc=no
 15556  fi
 15557  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 15558    conftest.$ac_objext conftest.beam conftest.$ac_ext
 15559  fi
 15560  
 15561  fi
 15562  fi
 15563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 15564  $as_echo "$ac_cv_header_stdc" >&6; }
 15565  if test $ac_cv_header_stdc = yes; then
 15566  
 15567  $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 15568  
 15569  fi
 15570  
 15571  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 15572  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 15573  		  inttypes.h stdint.h unistd.h
 15574  do :
 15575    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 15576  ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 15577  "
 15578  if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 15579    cat >>confdefs.h <<_ACEOF
 15580  #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 15581  _ACEOF
 15582  
 15583  fi
 15584  
 15585  done
 15586  
 15587  
 15588  for ac_header in dlfcn.h
 15589  do :
 15590    ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 15591  "
 15592  if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 15593    cat >>confdefs.h <<_ACEOF
 15594  #define HAVE_DLFCN_H 1
 15595  _ACEOF
 15596  
 15597  fi
 15598  
 15599  done
 15600  
 15601  
 15602  
 15603  
 15604  func_stripname_cnf ()
 15605  {
 15606    case $2 in
 15607    .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
 15608    *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
 15609    esac
 15610  } # func_stripname_cnf
 15611  
 15612  
 15613  
 15614  
 15615  
 15616  # Set options
 15617  
 15618  
 15619  
 15620          enable_dlopen=no
 15621  
 15622  
 15623  
 15624              # Check whether --enable-shared was given.
 15625  if test "${enable_shared+set}" = set; then :
 15626    enableval=$enable_shared; p=${PACKAGE-default}
 15627      case $enableval in
 15628      yes) enable_shared=yes ;;
 15629      no) enable_shared=no ;;
 15630      *)
 15631        enable_shared=no
 15632        # Look at the argument we got.  We use all the common list separators.
 15633        lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 15634        for pkg in $enableval; do
 15635  	IFS=$lt_save_ifs
 15636  	if test "X$pkg" = "X$p"; then
 15637  	  enable_shared=yes
 15638  	fi
 15639        done
 15640        IFS=$lt_save_ifs
 15641        ;;
 15642      esac
 15643  else
 15644    enable_shared=yes
 15645  fi
 15646  
 15647  
 15648  
 15649  
 15650  
 15651  
 15652  
 15653  
 15654  
 15655    # Check whether --enable-static was given.
 15656  if test "${enable_static+set}" = set; then :
 15657    enableval=$enable_static; p=${PACKAGE-default}
 15658      case $enableval in
 15659      yes) enable_static=yes ;;
 15660      no) enable_static=no ;;
 15661      *)
 15662       enable_static=no
 15663        # Look at the argument we got.  We use all the common list separators.
 15664        lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 15665        for pkg in $enableval; do
 15666  	IFS=$lt_save_ifs
 15667  	if test "X$pkg" = "X$p"; then
 15668  	  enable_static=yes
 15669  	fi
 15670        done
 15671        IFS=$lt_save_ifs
 15672        ;;
 15673      esac
 15674  else
 15675    enable_static=yes
 15676  fi
 15677  
 15678  
 15679  
 15680  
 15681  
 15682  
 15683  
 15684  
 15685  
 15686  
 15687  # Check whether --with-pic was given.
 15688  if test "${with_pic+set}" = set; then :
 15689    withval=$with_pic; lt_p=${PACKAGE-default}
 15690      case $withval in
 15691      yes|no) pic_mode=$withval ;;
 15692      *)
 15693        pic_mode=default
 15694        # Look at the argument we got.  We use all the common list separators.
 15695        lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 15696        for lt_pkg in $withval; do
 15697  	IFS=$lt_save_ifs
 15698  	if test "X$lt_pkg" = "X$lt_p"; then
 15699  	  pic_mode=yes
 15700  	fi
 15701        done
 15702        IFS=$lt_save_ifs
 15703        ;;
 15704      esac
 15705  else
 15706    pic_mode=default
 15707  fi
 15708  
 15709  
 15710  
 15711  
 15712  
 15713  
 15714  
 15715  
 15716    # Check whether --enable-fast-install was given.
 15717  if test "${enable_fast_install+set}" = set; then :
 15718    enableval=$enable_fast_install; p=${PACKAGE-default}
 15719      case $enableval in
 15720      yes) enable_fast_install=yes ;;
 15721      no) enable_fast_install=no ;;
 15722      *)
 15723        enable_fast_install=no
 15724        # Look at the argument we got.  We use all the common list separators.
 15725        lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 15726        for pkg in $enableval; do
 15727  	IFS=$lt_save_ifs
 15728  	if test "X$pkg" = "X$p"; then
 15729  	  enable_fast_install=yes
 15730  	fi
 15731        done
 15732        IFS=$lt_save_ifs
 15733        ;;
 15734      esac
 15735  else
 15736    enable_fast_install=yes
 15737  fi
 15738  
 15739  
 15740  
 15741  
 15742  
 15743  
 15744  
 15745  
 15746    shared_archive_member_spec=
 15747  case $host,$enable_shared in
 15748  power*-*-aix[5-9]*,yes)
 15749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
 15750  $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
 15751  
 15752  # Check whether --with-aix-soname was given.
 15753  if test "${with_aix_soname+set}" = set; then :
 15754    withval=$with_aix_soname; case $withval in
 15755      aix|svr4|both)
 15756        ;;
 15757      *)
 15758        as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
 15759        ;;
 15760      esac
 15761      lt_cv_with_aix_soname=$with_aix_soname
 15762  else
 15763    if ${lt_cv_with_aix_soname+:} false; then :
 15764    $as_echo_n "(cached) " >&6
 15765  else
 15766    lt_cv_with_aix_soname=aix
 15767  fi
 15768  
 15769      with_aix_soname=$lt_cv_with_aix_soname
 15770  fi
 15771  
 15772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
 15773  $as_echo "$with_aix_soname" >&6; }
 15774    if test aix != "$with_aix_soname"; then
 15775      # For the AIX way of multilib, we name the shared archive member
 15776      # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
 15777      # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
 15778      # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
 15779      # the AIX toolchain works better with OBJECT_MODE set (default 32).
 15780      if test 64 = "${OBJECT_MODE-32}"; then
 15781        shared_archive_member_spec=shr_64
 15782      else
 15783        shared_archive_member_spec=shr
 15784      fi
 15785    fi
 15786    ;;
 15787  *)
 15788    with_aix_soname=aix
 15789    ;;
 15790  esac
 15791  
 15792  
 15793  
 15794  
 15795  
 15796  
 15797  
 15798  
 15799  
 15800  
 15801  # This can be used to rebuild libtool when needed
 15802  LIBTOOL_DEPS=$ltmain
 15803  
 15804  # Always use our own libtool.
 15805  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 15806  
 15807  
 15808  
 15809  
 15810  
 15811  
 15812  
 15813  
 15814  
 15815  
 15816  
 15817  
 15818  
 15819  
 15820  
 15821  
 15822  
 15823  
 15824  
 15825  
 15826  
 15827  
 15828  
 15829  
 15830  
 15831  
 15832  
 15833  
 15834  
 15835  
 15836  test -z "$LN_S" && LN_S="ln -s"
 15837  
 15838  
 15839  
 15840  
 15841  
 15842  
 15843  
 15844  
 15845  
 15846  
 15847  
 15848  
 15849  
 15850  
 15851  if test -n "${ZSH_VERSION+set}"; then
 15852     setopt NO_GLOB_SUBST
 15853  fi
 15854  
 15855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 15856  $as_echo_n "checking for objdir... " >&6; }
 15857  if ${lt_cv_objdir+:} false; then :
 15858    $as_echo_n "(cached) " >&6
 15859  else
 15860    rm -f .libs 2>/dev/null
 15861  mkdir .libs 2>/dev/null
 15862  if test -d .libs; then
 15863    lt_cv_objdir=.libs
 15864  else
 15865    # MS-DOS does not allow filenames that begin with a dot.
 15866    lt_cv_objdir=_libs
 15867  fi
 15868  rmdir .libs 2>/dev/null
 15869  fi
 15870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 15871  $as_echo "$lt_cv_objdir" >&6; }
 15872  objdir=$lt_cv_objdir
 15873  
 15874  
 15875  
 15876  
 15877  
 15878  cat >>confdefs.h <<_ACEOF
 15879  #define LT_OBJDIR "$lt_cv_objdir/"
 15880  _ACEOF
 15881  
 15882  
 15883  
 15884  
 15885  case $host_os in
 15886  aix3*)
 15887    # AIX sometimes has problems with the GCC collect2 program.  For some
 15888    # reason, if we set the COLLECT_NAMES environment variable, the problems
 15889    # vanish in a puff of smoke.
 15890    if test set != "${COLLECT_NAMES+set}"; then
 15891      COLLECT_NAMES=
 15892      export COLLECT_NAMES
 15893    fi
 15894    ;;
 15895  esac
 15896  
 15897  # Global variables:
 15898  ofile=libtool
 15899  can_build_shared=yes
 15900  
 15901  # All known linkers require a '.a' archive for static linking (except MSVC,
 15902  # which needs '.lib').
 15903  libext=a
 15904  
 15905  with_gnu_ld=$lt_cv_prog_gnu_ld
 15906  
 15907  old_CC=$CC
 15908  old_CFLAGS=$CFLAGS
 15909  
 15910  # Set sane defaults for various variables
 15911  test -z "$CC" && CC=cc
 15912  test -z "$LTCC" && LTCC=$CC
 15913  test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 15914  test -z "$LD" && LD=ld
 15915  test -z "$ac_objext" && ac_objext=o
 15916  
 15917  func_cc_basename $compiler
 15918  cc_basename=$func_cc_basename_result
 15919  
 15920  
 15921  # Only perform the check for file, if the check method requires it
 15922  test -z "$MAGIC_CMD" && MAGIC_CMD=file
 15923  case $deplibs_check_method in
 15924  file_magic*)
 15925    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 15926      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 15927  $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 15928  if ${lt_cv_path_MAGIC_CMD+:} false; then :
 15929    $as_echo_n "(cached) " >&6
 15930  else
 15931    case $MAGIC_CMD in
 15932  [\\/*] |  ?:[\\/]*)
 15933    lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 15934    ;;
 15935  *)
 15936    lt_save_MAGIC_CMD=$MAGIC_CMD
 15937    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 15938    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 15939    for ac_dir in $ac_dummy; do
 15940      IFS=$lt_save_ifs
 15941      test -z "$ac_dir" && ac_dir=.
 15942      if test -f "$ac_dir/${ac_tool_prefix}file"; then
 15943        lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
 15944        if test -n "$file_magic_test_file"; then
 15945  	case $deplibs_check_method in
 15946  	"file_magic "*)
 15947  	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 15948  	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 15949  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 15950  	    $EGREP "$file_magic_regex" > /dev/null; then
 15951  	    :
 15952  	  else
 15953  	    cat <<_LT_EOF 1>&2
 15954  
 15955  *** Warning: the command libtool uses to detect shared libraries,
 15956  *** $file_magic_cmd, produces output that libtool cannot recognize.
 15957  *** The result is that libtool may fail to recognize shared libraries
 15958  *** as such.  This will affect the creation of libtool libraries that
 15959  *** depend on shared libraries, but programs linked with such libtool
 15960  *** libraries will work regardless of this problem.  Nevertheless, you
 15961  *** may want to report the problem to your system manager and/or to
 15962  *** bug-libtool@gnu.org
 15963  
 15964  _LT_EOF
 15965  	  fi ;;
 15966  	esac
 15967        fi
 15968        break
 15969      fi
 15970    done
 15971    IFS=$lt_save_ifs
 15972    MAGIC_CMD=$lt_save_MAGIC_CMD
 15973    ;;
 15974  esac
 15975  fi
 15976  
 15977  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 15978  if test -n "$MAGIC_CMD"; then
 15979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 15980  $as_echo "$MAGIC_CMD" >&6; }
 15981  else
 15982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 15983  $as_echo "no" >&6; }
 15984  fi
 15985  
 15986  
 15987  
 15988  
 15989  
 15990  if test -z "$lt_cv_path_MAGIC_CMD"; then
 15991    if test -n "$ac_tool_prefix"; then
 15992      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 15993  $as_echo_n "checking for file... " >&6; }
 15994  if ${lt_cv_path_MAGIC_CMD+:} false; then :
 15995    $as_echo_n "(cached) " >&6
 15996  else
 15997    case $MAGIC_CMD in
 15998  [\\/*] |  ?:[\\/]*)
 15999    lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 16000    ;;
 16001  *)
 16002    lt_save_MAGIC_CMD=$MAGIC_CMD
 16003    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 16004    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 16005    for ac_dir in $ac_dummy; do
 16006      IFS=$lt_save_ifs
 16007      test -z "$ac_dir" && ac_dir=.
 16008      if test -f "$ac_dir/file"; then
 16009        lt_cv_path_MAGIC_CMD=$ac_dir/"file"
 16010        if test -n "$file_magic_test_file"; then
 16011  	case $deplibs_check_method in
 16012  	"file_magic "*)
 16013  	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 16014  	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 16015  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 16016  	    $EGREP "$file_magic_regex" > /dev/null; then
 16017  	    :
 16018  	  else
 16019  	    cat <<_LT_EOF 1>&2
 16020  
 16021  *** Warning: the command libtool uses to detect shared libraries,
 16022  *** $file_magic_cmd, produces output that libtool cannot recognize.
 16023  *** The result is that libtool may fail to recognize shared libraries
 16024  *** as such.  This will affect the creation of libtool libraries that
 16025  *** depend on shared libraries, but programs linked with such libtool
 16026  *** libraries will work regardless of this problem.  Nevertheless, you
 16027  *** may want to report the problem to your system manager and/or to
 16028  *** bug-libtool@gnu.org
 16029  
 16030  _LT_EOF
 16031  	  fi ;;
 16032  	esac
 16033        fi
 16034        break
 16035      fi
 16036    done
 16037    IFS=$lt_save_ifs
 16038    MAGIC_CMD=$lt_save_MAGIC_CMD
 16039    ;;
 16040  esac
 16041  fi
 16042  
 16043  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 16044  if test -n "$MAGIC_CMD"; then
 16045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 16046  $as_echo "$MAGIC_CMD" >&6; }
 16047  else
 16048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 16049  $as_echo "no" >&6; }
 16050  fi
 16051  
 16052  
 16053    else
 16054      MAGIC_CMD=:
 16055    fi
 16056  fi
 16057  
 16058    fi
 16059    ;;
 16060  esac
 16061  
 16062  # Use C for the default configuration in the libtool script
 16063  
 16064  lt_save_CC=$CC
 16065  ac_ext=c
 16066  ac_cpp='$CPP $CPPFLAGS'
 16067  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 16068  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 16069  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 16070  
 16071  
 16072  # Source file extension for C test sources.
 16073  ac_ext=c
 16074  
 16075  # Object file extension for compiled C test sources.
 16076  objext=o
 16077  objext=$objext
 16078  
 16079  # Code to be used in simple compile tests
 16080  lt_simple_compile_test_code="int some_variable = 0;"
 16081  
 16082  # Code to be used in simple link tests
 16083  lt_simple_link_test_code='int main(){return(0);}'
 16084  
 16085  
 16086  
 16087  
 16088  
 16089  
 16090  
 16091  # If no C compiler was specified, use CC.
 16092  LTCC=${LTCC-"$CC"}
 16093  
 16094  # If no C compiler flags were specified, use CFLAGS.
 16095  LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 16096  
 16097  # Allow CC to be a program name with arguments.
 16098  compiler=$CC
 16099  
 16100  # Save the default compiler, since it gets overwritten when the other
 16101  # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 16102  compiler_DEFAULT=$CC
 16103  
 16104  # save warnings/boilerplate of simple test code
 16105  ac_outfile=conftest.$ac_objext
 16106  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 16107  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 16108  _lt_compiler_boilerplate=`cat conftest.err`
 16109  $RM conftest*
 16110  
 16111  ac_outfile=conftest.$ac_objext
 16112  echo "$lt_simple_link_test_code" >conftest.$ac_ext
 16113  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 16114  _lt_linker_boilerplate=`cat conftest.err`
 16115  $RM -r conftest*
 16116  
 16117  
 16118  if test -n "$compiler"; then
 16119  
 16120  lt_prog_compiler_no_builtin_flag=
 16121  
 16122  if test yes = "$GCC"; then
 16123    case $cc_basename in
 16124    nvcc*)
 16125      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 16126    *)
 16127      lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 16128    esac
 16129  
 16130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 16131  $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 16132  if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 16133    $as_echo_n "(cached) " >&6
 16134  else
 16135    lt_cv_prog_compiler_rtti_exceptions=no
 16136     ac_outfile=conftest.$ac_objext
 16137     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 16138     lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
 16139     # Insert the option either (1) after the last *FLAGS variable, or
 16140     # (2) before a word containing "conftest.", or (3) at the end.
 16141     # Note that $ac_compile itself does not contain backslashes and begins
 16142     # with a dollar sign (not a hyphen), so the echo should work correctly.
 16143     # The option is referenced via a variable to avoid confusing sed.
 16144     lt_compile=`echo "$ac_compile" | $SED \
 16145     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 16146     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 16147     -e 's:$: $lt_compiler_flag:'`
 16148     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 16149     (eval "$lt_compile" 2>conftest.err)
 16150     ac_status=$?
 16151     cat conftest.err >&5
 16152     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16153     if (exit $ac_status) && test -s "$ac_outfile"; then
 16154       # The compiler can only warn and ignore the option if not recognized
 16155       # So say no if there are warnings other than the usual output.
 16156       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 16157       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 16158       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 16159         lt_cv_prog_compiler_rtti_exceptions=yes
 16160       fi
 16161     fi
 16162     $RM conftest*
 16163  
 16164  fi
 16165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 16166  $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 16167  
 16168  if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
 16169      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 16170  else
 16171      :
 16172  fi
 16173  
 16174  fi
 16175  
 16176  
 16177  
 16178  
 16179  
 16180  
 16181    lt_prog_compiler_wl=
 16182  lt_prog_compiler_pic=
 16183  lt_prog_compiler_static=
 16184  
 16185  
 16186    if test yes = "$GCC"; then
 16187      lt_prog_compiler_wl='-Wl,'
 16188      lt_prog_compiler_static='-static'
 16189  
 16190      case $host_os in
 16191        aix*)
 16192        # All AIX code is PIC.
 16193        if test ia64 = "$host_cpu"; then
 16194  	# AIX 5 now supports IA64 processor
 16195  	lt_prog_compiler_static='-Bstatic'
 16196        fi
 16197        lt_prog_compiler_pic='-fPIC'
 16198        ;;
 16199  
 16200      amigaos*)
 16201        case $host_cpu in
 16202        powerpc)
 16203              # see comment about AmigaOS4 .so support
 16204              lt_prog_compiler_pic='-fPIC'
 16205          ;;
 16206        m68k)
 16207              # FIXME: we need at least 68020 code to build shared libraries, but
 16208              # adding the '-m68020' flag to GCC prevents building anything better,
 16209              # like '-m68040'.
 16210              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 16211          ;;
 16212        esac
 16213        ;;
 16214  
 16215      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 16216        # PIC is the default for these OSes.
 16217        ;;
 16218  
 16219      mingw* | cygwin* | pw32* | os2* | cegcc*)
 16220        # This hack is so that the source file can tell whether it is being
 16221        # built for inclusion in a dll (and should export symbols for example).
 16222        # Although the cygwin gcc ignores -fPIC, still need this for old-style
 16223        # (--disable-auto-import) libraries
 16224        lt_prog_compiler_pic='-DDLL_EXPORT'
 16225        case $host_os in
 16226        os2*)
 16227  	lt_prog_compiler_static='$wl-static'
 16228  	;;
 16229        esac
 16230        ;;
 16231  
 16232      darwin* | rhapsody*)
 16233        # PIC is the default on this platform
 16234        # Common symbols not allowed in MH_DYLIB files
 16235        lt_prog_compiler_pic='-fno-common'
 16236        ;;
 16237  
 16238      haiku*)
 16239        # PIC is the default for Haiku.
 16240        # The "-static" flag exists, but is broken.
 16241        lt_prog_compiler_static=
 16242        ;;
 16243  
 16244      hpux*)
 16245        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 16246        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 16247        # sets the default TLS model and affects inlining.
 16248        case $host_cpu in
 16249        hppa*64*)
 16250  	# +Z the default
 16251  	;;
 16252        *)
 16253  	lt_prog_compiler_pic='-fPIC'
 16254  	;;
 16255        esac
 16256        ;;
 16257  
 16258      interix[3-9]*)
 16259        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 16260        # Instead, we relocate shared libraries at runtime.
 16261        ;;
 16262  
 16263      msdosdjgpp*)
 16264        # Just because we use GCC doesn't mean we suddenly get shared libraries
 16265        # on systems that don't support them.
 16266        lt_prog_compiler_can_build_shared=no
 16267        enable_shared=no
 16268        ;;
 16269  
 16270      *nto* | *qnx*)
 16271        # QNX uses GNU C++, but need to define -shared option too, otherwise
 16272        # it will coredump.
 16273        lt_prog_compiler_pic='-fPIC -shared'
 16274        ;;
 16275  
 16276      sysv4*MP*)
 16277        if test -d /usr/nec; then
 16278  	lt_prog_compiler_pic=-Kconform_pic
 16279        fi
 16280        ;;
 16281  
 16282      *)
 16283        lt_prog_compiler_pic='-fPIC'
 16284        ;;
 16285      esac
 16286  
 16287      case $cc_basename in
 16288      nvcc*) # Cuda Compiler Driver 2.2
 16289        lt_prog_compiler_wl='-Xlinker '
 16290        if test -n "$lt_prog_compiler_pic"; then
 16291          lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 16292        fi
 16293        ;;
 16294      esac
 16295    else
 16296      # PORTME Check for flag to pass linker flags through the system compiler.
 16297      case $host_os in
 16298      aix*)
 16299        lt_prog_compiler_wl='-Wl,'
 16300        if test ia64 = "$host_cpu"; then
 16301  	# AIX 5 now supports IA64 processor
 16302  	lt_prog_compiler_static='-Bstatic'
 16303        else
 16304  	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 16305        fi
 16306        ;;
 16307  
 16308      darwin* | rhapsody*)
 16309        # PIC is the default on this platform
 16310        # Common symbols not allowed in MH_DYLIB files
 16311        lt_prog_compiler_pic='-fno-common'
 16312        case $cc_basename in
 16313        nagfor*)
 16314          # NAG Fortran compiler
 16315          lt_prog_compiler_wl='-Wl,-Wl,,'
 16316          lt_prog_compiler_pic='-PIC'
 16317          lt_prog_compiler_static='-Bstatic'
 16318          ;;
 16319        esac
 16320        ;;
 16321  
 16322      mingw* | cygwin* | pw32* | os2* | cegcc*)
 16323        # This hack is so that the source file can tell whether it is being
 16324        # built for inclusion in a dll (and should export symbols for example).
 16325        lt_prog_compiler_pic='-DDLL_EXPORT'
 16326        case $host_os in
 16327        os2*)
 16328  	lt_prog_compiler_static='$wl-static'
 16329  	;;
 16330        esac
 16331        ;;
 16332  
 16333      hpux9* | hpux10* | hpux11*)
 16334        lt_prog_compiler_wl='-Wl,'
 16335        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 16336        # not for PA HP-UX.
 16337        case $host_cpu in
 16338        hppa*64*|ia64*)
 16339  	# +Z the default
 16340  	;;
 16341        *)
 16342  	lt_prog_compiler_pic='+Z'
 16343  	;;
 16344        esac
 16345        # Is there a better lt_prog_compiler_static that works with the bundled CC?
 16346        lt_prog_compiler_static='$wl-a ${wl}archive'
 16347        ;;
 16348  
 16349      irix5* | irix6* | nonstopux*)
 16350        lt_prog_compiler_wl='-Wl,'
 16351        # PIC (with -KPIC) is the default.
 16352        lt_prog_compiler_static='-non_shared'
 16353        ;;
 16354  
 16355      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 16356        case $cc_basename in
 16357        # old Intel for x86_64, which still supported -KPIC.
 16358        ecc*)
 16359  	lt_prog_compiler_wl='-Wl,'
 16360  	lt_prog_compiler_pic='-KPIC'
 16361  	lt_prog_compiler_static='-static'
 16362          ;;
 16363        # icc used to be incompatible with GCC.
 16364        # ICC 10 doesn't accept -KPIC any more.
 16365        icc* | ifort*)
 16366  	lt_prog_compiler_wl='-Wl,'
 16367  	lt_prog_compiler_pic='-fPIC'
 16368  	lt_prog_compiler_static='-static'
 16369          ;;
 16370        # Lahey Fortran 8.1.
 16371        lf95*)
 16372  	lt_prog_compiler_wl='-Wl,'
 16373  	lt_prog_compiler_pic='--shared'
 16374  	lt_prog_compiler_static='--static'
 16375  	;;
 16376        nagfor*)
 16377  	# NAG Fortran compiler
 16378  	lt_prog_compiler_wl='-Wl,-Wl,,'
 16379  	lt_prog_compiler_pic='-PIC'
 16380  	lt_prog_compiler_static='-Bstatic'
 16381  	;;
 16382        tcc*)
 16383  	# Fabrice Bellard et al's Tiny C Compiler
 16384  	lt_prog_compiler_wl='-Wl,'
 16385  	lt_prog_compiler_pic='-fPIC'
 16386  	lt_prog_compiler_static='-static'
 16387  	;;
 16388        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 16389          # Portland Group compilers (*not* the Pentium gcc compiler,
 16390  	# which looks to be a dead project)
 16391  	lt_prog_compiler_wl='-Wl,'
 16392  	lt_prog_compiler_pic='-fpic'
 16393  	lt_prog_compiler_static='-Bstatic'
 16394          ;;
 16395        ccc*)
 16396          lt_prog_compiler_wl='-Wl,'
 16397          # All Alpha code is PIC.
 16398          lt_prog_compiler_static='-non_shared'
 16399          ;;
 16400        xl* | bgxl* | bgf* | mpixl*)
 16401  	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 16402  	lt_prog_compiler_wl='-Wl,'
 16403  	lt_prog_compiler_pic='-qpic'
 16404  	lt_prog_compiler_static='-qstaticlink'
 16405  	;;
 16406        *)
 16407  	case `$CC -V 2>&1 | sed 5q` in
 16408  	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 16409  	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
 16410  	  lt_prog_compiler_pic='-KPIC'
 16411  	  lt_prog_compiler_static='-Bstatic'
 16412  	  lt_prog_compiler_wl=''
 16413  	  ;;
 16414  	*Sun\ F* | *Sun*Fortran*)
 16415  	  lt_prog_compiler_pic='-KPIC'
 16416  	  lt_prog_compiler_static='-Bstatic'
 16417  	  lt_prog_compiler_wl='-Qoption ld '
 16418  	  ;;
 16419  	*Sun\ C*)
 16420  	  # Sun C 5.9
 16421  	  lt_prog_compiler_pic='-KPIC'
 16422  	  lt_prog_compiler_static='-Bstatic'
 16423  	  lt_prog_compiler_wl='-Wl,'
 16424  	  ;;
 16425          *Intel*\ [CF]*Compiler*)
 16426  	  lt_prog_compiler_wl='-Wl,'
 16427  	  lt_prog_compiler_pic='-fPIC'
 16428  	  lt_prog_compiler_static='-static'
 16429  	  ;;
 16430  	*Portland\ Group*)
 16431  	  lt_prog_compiler_wl='-Wl,'
 16432  	  lt_prog_compiler_pic='-fpic'
 16433  	  lt_prog_compiler_static='-Bstatic'
 16434  	  ;;
 16435  	esac
 16436  	;;
 16437        esac
 16438        ;;
 16439  
 16440      newsos6)
 16441        lt_prog_compiler_pic='-KPIC'
 16442        lt_prog_compiler_static='-Bstatic'
 16443        ;;
 16444  
 16445      *nto* | *qnx*)
 16446        # QNX uses GNU C++, but need to define -shared option too, otherwise
 16447        # it will coredump.
 16448        lt_prog_compiler_pic='-fPIC -shared'
 16449        ;;
 16450  
 16451      osf3* | osf4* | osf5*)
 16452        lt_prog_compiler_wl='-Wl,'
 16453        # All OSF/1 code is PIC.
 16454        lt_prog_compiler_static='-non_shared'
 16455        ;;
 16456  
 16457      rdos*)
 16458        lt_prog_compiler_static='-non_shared'
 16459        ;;
 16460  
 16461      solaris*)
 16462        lt_prog_compiler_pic='-KPIC'
 16463        lt_prog_compiler_static='-Bstatic'
 16464        case $cc_basename in
 16465        f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 16466  	lt_prog_compiler_wl='-Qoption ld ';;
 16467        *)
 16468  	lt_prog_compiler_wl='-Wl,';;
 16469        esac
 16470        ;;
 16471  
 16472      sunos4*)
 16473        lt_prog_compiler_wl='-Qoption ld '
 16474        lt_prog_compiler_pic='-PIC'
 16475        lt_prog_compiler_static='-Bstatic'
 16476        ;;
 16477  
 16478      sysv4 | sysv4.2uw2* | sysv4.3*)
 16479        lt_prog_compiler_wl='-Wl,'
 16480        lt_prog_compiler_pic='-KPIC'
 16481        lt_prog_compiler_static='-Bstatic'
 16482        ;;
 16483  
 16484      sysv4*MP*)
 16485        if test -d /usr/nec; then
 16486  	lt_prog_compiler_pic='-Kconform_pic'
 16487  	lt_prog_compiler_static='-Bstatic'
 16488        fi
 16489        ;;
 16490  
 16491      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 16492        lt_prog_compiler_wl='-Wl,'
 16493        lt_prog_compiler_pic='-KPIC'
 16494        lt_prog_compiler_static='-Bstatic'
 16495        ;;
 16496  
 16497      unicos*)
 16498        lt_prog_compiler_wl='-Wl,'
 16499        lt_prog_compiler_can_build_shared=no
 16500        ;;
 16501  
 16502      uts4*)
 16503        lt_prog_compiler_pic='-pic'
 16504        lt_prog_compiler_static='-Bstatic'
 16505        ;;
 16506  
 16507      *)
 16508        lt_prog_compiler_can_build_shared=no
 16509        ;;
 16510      esac
 16511    fi
 16512  
 16513  case $host_os in
 16514    # For platforms that do not support PIC, -DPIC is meaningless:
 16515    *djgpp*)
 16516      lt_prog_compiler_pic=
 16517      ;;
 16518    *)
 16519      lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 16520      ;;
 16521  esac
 16522  
 16523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 16524  $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 16525  if ${lt_cv_prog_compiler_pic+:} false; then :
 16526    $as_echo_n "(cached) " >&6
 16527  else
 16528    lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 16529  fi
 16530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 16531  $as_echo "$lt_cv_prog_compiler_pic" >&6; }
 16532  lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 16533  
 16534  #
 16535  # Check to make sure the PIC flag actually works.
 16536  #
 16537  if test -n "$lt_prog_compiler_pic"; then
 16538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 16539  $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 16540  if ${lt_cv_prog_compiler_pic_works+:} false; then :
 16541    $as_echo_n "(cached) " >&6
 16542  else
 16543    lt_cv_prog_compiler_pic_works=no
 16544     ac_outfile=conftest.$ac_objext
 16545     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 16546     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
 16547     # Insert the option either (1) after the last *FLAGS variable, or
 16548     # (2) before a word containing "conftest.", or (3) at the end.
 16549     # Note that $ac_compile itself does not contain backslashes and begins
 16550     # with a dollar sign (not a hyphen), so the echo should work correctly.
 16551     # The option is referenced via a variable to avoid confusing sed.
 16552     lt_compile=`echo "$ac_compile" | $SED \
 16553     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 16554     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 16555     -e 's:$: $lt_compiler_flag:'`
 16556     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 16557     (eval "$lt_compile" 2>conftest.err)
 16558     ac_status=$?
 16559     cat conftest.err >&5
 16560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16561     if (exit $ac_status) && test -s "$ac_outfile"; then
 16562       # The compiler can only warn and ignore the option if not recognized
 16563       # So say no if there are warnings other than the usual output.
 16564       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 16565       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 16566       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 16567         lt_cv_prog_compiler_pic_works=yes
 16568       fi
 16569     fi
 16570     $RM conftest*
 16571  
 16572  fi
 16573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 16574  $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 16575  
 16576  if test yes = "$lt_cv_prog_compiler_pic_works"; then
 16577      case $lt_prog_compiler_pic in
 16578       "" | " "*) ;;
 16579       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 16580       esac
 16581  else
 16582      lt_prog_compiler_pic=
 16583       lt_prog_compiler_can_build_shared=no
 16584  fi
 16585  
 16586  fi
 16587  
 16588  
 16589  
 16590  
 16591  
 16592  
 16593  
 16594  
 16595  
 16596  
 16597  
 16598  #
 16599  # Check to make sure the static flag actually works.
 16600  #
 16601  wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 16602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 16603  $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 16604  if ${lt_cv_prog_compiler_static_works+:} false; then :
 16605    $as_echo_n "(cached) " >&6
 16606  else
 16607    lt_cv_prog_compiler_static_works=no
 16608     save_LDFLAGS=$LDFLAGS
 16609     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 16610     echo "$lt_simple_link_test_code" > conftest.$ac_ext
 16611     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 16612       # The linker can only warn and ignore the option if not recognized
 16613       # So say no if there are warnings
 16614       if test -s conftest.err; then
 16615         # Append any errors to the config.log.
 16616         cat conftest.err 1>&5
 16617         $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 16618         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 16619         if diff conftest.exp conftest.er2 >/dev/null; then
 16620           lt_cv_prog_compiler_static_works=yes
 16621         fi
 16622       else
 16623         lt_cv_prog_compiler_static_works=yes
 16624       fi
 16625     fi
 16626     $RM -r conftest*
 16627     LDFLAGS=$save_LDFLAGS
 16628  
 16629  fi
 16630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 16631  $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 16632  
 16633  if test yes = "$lt_cv_prog_compiler_static_works"; then
 16634      :
 16635  else
 16636      lt_prog_compiler_static=
 16637  fi
 16638  
 16639  
 16640  
 16641  
 16642  
 16643  
 16644  
 16645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 16646  $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 16647  if ${lt_cv_prog_compiler_c_o+:} false; then :
 16648    $as_echo_n "(cached) " >&6
 16649  else
 16650    lt_cv_prog_compiler_c_o=no
 16651     $RM -r conftest 2>/dev/null
 16652     mkdir conftest
 16653     cd conftest
 16654     mkdir out
 16655     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 16656  
 16657     lt_compiler_flag="-o out/conftest2.$ac_objext"
 16658     # Insert the option either (1) after the last *FLAGS variable, or
 16659     # (2) before a word containing "conftest.", or (3) at the end.
 16660     # Note that $ac_compile itself does not contain backslashes and begins
 16661     # with a dollar sign (not a hyphen), so the echo should work correctly.
 16662     lt_compile=`echo "$ac_compile" | $SED \
 16663     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 16664     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 16665     -e 's:$: $lt_compiler_flag:'`
 16666     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 16667     (eval "$lt_compile" 2>out/conftest.err)
 16668     ac_status=$?
 16669     cat out/conftest.err >&5
 16670     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16671     if (exit $ac_status) && test -s out/conftest2.$ac_objext
 16672     then
 16673       # The compiler can only warn and ignore the option if not recognized
 16674       # So say no if there are warnings
 16675       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 16676       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 16677       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 16678         lt_cv_prog_compiler_c_o=yes
 16679       fi
 16680     fi
 16681     chmod u+w . 2>&5
 16682     $RM conftest*
 16683     # SGI C++ compiler will create directory out/ii_files/ for
 16684     # template instantiation
 16685     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 16686     $RM out/* && rmdir out
 16687     cd ..
 16688     $RM -r conftest
 16689     $RM conftest*
 16690  
 16691  fi
 16692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 16693  $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 16694  
 16695  
 16696  
 16697  
 16698  
 16699  
 16700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 16701  $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 16702  if ${lt_cv_prog_compiler_c_o+:} false; then :
 16703    $as_echo_n "(cached) " >&6
 16704  else
 16705    lt_cv_prog_compiler_c_o=no
 16706     $RM -r conftest 2>/dev/null
 16707     mkdir conftest
 16708     cd conftest
 16709     mkdir out
 16710     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 16711  
 16712     lt_compiler_flag="-o out/conftest2.$ac_objext"
 16713     # Insert the option either (1) after the last *FLAGS variable, or
 16714     # (2) before a word containing "conftest.", or (3) at the end.
 16715     # Note that $ac_compile itself does not contain backslashes and begins
 16716     # with a dollar sign (not a hyphen), so the echo should work correctly.
 16717     lt_compile=`echo "$ac_compile" | $SED \
 16718     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 16719     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 16720     -e 's:$: $lt_compiler_flag:'`
 16721     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 16722     (eval "$lt_compile" 2>out/conftest.err)
 16723     ac_status=$?
 16724     cat out/conftest.err >&5
 16725     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16726     if (exit $ac_status) && test -s out/conftest2.$ac_objext
 16727     then
 16728       # The compiler can only warn and ignore the option if not recognized
 16729       # So say no if there are warnings
 16730       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 16731       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 16732       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 16733         lt_cv_prog_compiler_c_o=yes
 16734       fi
 16735     fi
 16736     chmod u+w . 2>&5
 16737     $RM conftest*
 16738     # SGI C++ compiler will create directory out/ii_files/ for
 16739     # template instantiation
 16740     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 16741     $RM out/* && rmdir out
 16742     cd ..
 16743     $RM -r conftest
 16744     $RM conftest*
 16745  
 16746  fi
 16747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 16748  $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 16749  
 16750  
 16751  
 16752  
 16753  hard_links=nottested
 16754  if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
 16755    # do not overwrite the value of need_locks provided by the user
 16756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 16757  $as_echo_n "checking if we can lock with hard links... " >&6; }
 16758    hard_links=yes
 16759    $RM conftest*
 16760    ln conftest.a conftest.b 2>/dev/null && hard_links=no
 16761    touch conftest.a
 16762    ln conftest.a conftest.b 2>&5 || hard_links=no
 16763    ln conftest.a conftest.b 2>/dev/null && hard_links=no
 16764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 16765  $as_echo "$hard_links" >&6; }
 16766    if test no = "$hard_links"; then
 16767      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 16768  $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
 16769      need_locks=warn
 16770    fi
 16771  else
 16772    need_locks=no
 16773  fi
 16774  
 16775  
 16776  
 16777  
 16778  
 16779  
 16780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 16781  $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 16782  
 16783    runpath_var=
 16784    allow_undefined_flag=
 16785    always_export_symbols=no
 16786    archive_cmds=
 16787    archive_expsym_cmds=
 16788    compiler_needs_object=no
 16789    enable_shared_with_static_runtimes=no
 16790    export_dynamic_flag_spec=
 16791    export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 16792    hardcode_automatic=no
 16793    hardcode_direct=no
 16794    hardcode_direct_absolute=no
 16795    hardcode_libdir_flag_spec=
 16796    hardcode_libdir_separator=
 16797    hardcode_minus_L=no
 16798    hardcode_shlibpath_var=unsupported
 16799    inherit_rpath=no
 16800    link_all_deplibs=unknown
 16801    module_cmds=
 16802    module_expsym_cmds=
 16803    old_archive_from_new_cmds=
 16804    old_archive_from_expsyms_cmds=
 16805    thread_safe_flag_spec=
 16806    whole_archive_flag_spec=
 16807    # include_expsyms should be a list of space-separated symbols to be *always*
 16808    # included in the symbol list
 16809    include_expsyms=
 16810    # exclude_expsyms can be an extended regexp of symbols to exclude
 16811    # it will be wrapped by ' (' and ')$', so one must not match beginning or
 16812    # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 16813    # as well as any symbol that contains 'd'.
 16814    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 16815    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 16816    # platforms (ab)use it in PIC code, but their linkers get confused if
 16817    # the symbol is explicitly referenced.  Since portable code cannot
 16818    # rely on this symbol name, it's probably fine to never include it in
 16819    # preloaded symbol tables.
 16820    # Exclude shared library initialization/finalization symbols.
 16821    extract_expsyms_cmds=
 16822  
 16823    case $host_os in
 16824    cygwin* | mingw* | pw32* | cegcc*)
 16825      # FIXME: the MSVC++ port hasn't been tested in a loooong time
 16826      # When not using gcc, we currently assume that we are using
 16827      # Microsoft Visual C++.
 16828      if test yes != "$GCC"; then
 16829        with_gnu_ld=no
 16830      fi
 16831      ;;
 16832    interix*)
 16833      # we just hope/assume this is gcc and not c89 (= MSVC++)
 16834      with_gnu_ld=yes
 16835      ;;
 16836    openbsd* | bitrig*)
 16837      with_gnu_ld=no
 16838      ;;
 16839    esac
 16840  
 16841    ld_shlibs=yes
 16842  
 16843    # On some targets, GNU ld is compatible enough with the native linker
 16844    # that we're better off using the native interface for both.
 16845    lt_use_gnu_ld_interface=no
 16846    if test yes = "$with_gnu_ld"; then
 16847      case $host_os in
 16848        aix*)
 16849  	# The AIX port of GNU ld has always aspired to compatibility
 16850  	# with the native linker.  However, as the warning in the GNU ld
 16851  	# block says, versions before 2.19.5* couldn't really create working
 16852  	# shared libraries, regardless of the interface used.
 16853  	case `$LD -v 2>&1` in
 16854  	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 16855  	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 16856  	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 16857  	  *)
 16858  	    lt_use_gnu_ld_interface=yes
 16859  	    ;;
 16860  	esac
 16861  	;;
 16862        *)
 16863  	lt_use_gnu_ld_interface=yes
 16864  	;;
 16865      esac
 16866    fi
 16867  
 16868    if test yes = "$lt_use_gnu_ld_interface"; then
 16869      # If archive_cmds runs LD, not CC, wlarc should be empty
 16870      wlarc='$wl'
 16871  
 16872      # Set some defaults for GNU ld with shared library support. These
 16873      # are reset later if shared libraries are not supported. Putting them
 16874      # here allows them to be overridden if necessary.
 16875      runpath_var=LD_RUN_PATH
 16876      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 16877      export_dynamic_flag_spec='$wl--export-dynamic'
 16878      # ancient GNU ld didn't support --whole-archive et. al.
 16879      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 16880        whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 16881      else
 16882        whole_archive_flag_spec=
 16883      fi
 16884      supports_anon_versioning=no
 16885      case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
 16886        *GNU\ gold*) supports_anon_versioning=yes ;;
 16887        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 16888        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 16889        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 16890        *\ 2.11.*) ;; # other 2.11 versions
 16891        *) supports_anon_versioning=yes ;;
 16892      esac
 16893  
 16894      # See if GNU ld supports shared libraries.
 16895      case $host_os in
 16896      aix[3-9]*)
 16897        # On AIX/PPC, the GNU linker is very broken
 16898        if test ia64 != "$host_cpu"; then
 16899  	ld_shlibs=no
 16900  	cat <<_LT_EOF 1>&2
 16901  
 16902  *** Warning: the GNU linker, at least up to release 2.19, is reported
 16903  *** to be unable to reliably create shared libraries on AIX.
 16904  *** Therefore, libtool is disabling shared libraries support.  If you
 16905  *** really care for shared libraries, you may want to install binutils
 16906  *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 16907  *** You will then need to restart the configuration process.
 16908  
 16909  _LT_EOF
 16910        fi
 16911        ;;
 16912  
 16913      amigaos*)
 16914        case $host_cpu in
 16915        powerpc)
 16916              # see comment about AmigaOS4 .so support
 16917              archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 16918              archive_expsym_cmds=''
 16919          ;;
 16920        m68k)
 16921              archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 16922              hardcode_libdir_flag_spec='-L$libdir'
 16923              hardcode_minus_L=yes
 16924          ;;
 16925        esac
 16926        ;;
 16927  
 16928      beos*)
 16929        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 16930  	allow_undefined_flag=unsupported
 16931  	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 16932  	# support --undefined.  This deserves some investigation.  FIXME
 16933  	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 16934        else
 16935  	ld_shlibs=no
 16936        fi
 16937        ;;
 16938  
 16939      cygwin* | mingw* | pw32* | cegcc*)
 16940        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 16941        # as there is no search path for DLLs.
 16942        hardcode_libdir_flag_spec='-L$libdir'
 16943        export_dynamic_flag_spec='$wl--export-all-symbols'
 16944        allow_undefined_flag=unsupported
 16945        always_export_symbols=no
 16946        enable_shared_with_static_runtimes=yes
 16947        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 16948        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 16949  
 16950        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 16951          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 16952  	# If the export-symbols file already is a .def file, use it as
 16953  	# is; otherwise, prepend EXPORTS...
 16954  	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 16955            cp $export_symbols $output_objdir/$soname.def;
 16956          else
 16957            echo EXPORTS > $output_objdir/$soname.def;
 16958            cat $export_symbols >> $output_objdir/$soname.def;
 16959          fi~
 16960          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 16961        else
 16962  	ld_shlibs=no
 16963        fi
 16964        ;;
 16965  
 16966      haiku*)
 16967        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 16968        link_all_deplibs=yes
 16969        ;;
 16970  
 16971      os2*)
 16972        hardcode_libdir_flag_spec='-L$libdir'
 16973        hardcode_minus_L=yes
 16974        allow_undefined_flag=unsupported
 16975        shrext_cmds=.dll
 16976        archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 16977  	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 16978  	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 16979  	$ECHO EXPORTS >> $output_objdir/$libname.def~
 16980  	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 16981  	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 16982  	emximp -o $lib $output_objdir/$libname.def'
 16983        archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 16984  	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 16985  	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 16986  	$ECHO EXPORTS >> $output_objdir/$libname.def~
 16987  	prefix_cmds="$SED"~
 16988  	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 16989  	  prefix_cmds="$prefix_cmds -e 1d";
 16990  	fi~
 16991  	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 16992  	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 16993  	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 16994  	emximp -o $lib $output_objdir/$libname.def'
 16995        old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 16996        enable_shared_with_static_runtimes=yes
 16997        ;;
 16998  
 16999      interix[3-9]*)
 17000        hardcode_direct=no
 17001        hardcode_shlibpath_var=no
 17002        hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 17003        export_dynamic_flag_spec='$wl-E'
 17004        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 17005        # Instead, shared libraries are loaded at an image base (0x10000000 by
 17006        # default) and relocated if they conflict, which is a slow very memory
 17007        # consuming and fragmenting process.  To avoid this, we pick a random,
 17008        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 17009        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 17010        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 17011        archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 17012        ;;
 17013  
 17014      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 17015        tmp_diet=no
 17016        if test linux-dietlibc = "$host_os"; then
 17017  	case $cc_basename in
 17018  	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
 17019  	esac
 17020        fi
 17021        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 17022  	 && test no = "$tmp_diet"
 17023        then
 17024  	tmp_addflag=' $pic_flag'
 17025  	tmp_sharedflag='-shared'
 17026  	case $cc_basename,$host_cpu in
 17027          pgcc*)				# Portland Group C compiler
 17028  	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
 17029  	  tmp_addflag=' $pic_flag'
 17030  	  ;;
 17031  	pgf77* | pgf90* | pgf95* | pgfortran*)
 17032  					# Portland Group f77 and f90 compilers
 17033  	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
 17034  	  tmp_addflag=' $pic_flag -Mnomain' ;;
 17035  	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
 17036  	  tmp_addflag=' -i_dynamic' ;;
 17037  	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
 17038  	  tmp_addflag=' -i_dynamic -nofor_main' ;;
 17039  	ifc* | ifort*)			# Intel Fortran compiler
 17040  	  tmp_addflag=' -nofor_main' ;;
 17041  	lf95*)				# Lahey Fortran 8.1
 17042  	  whole_archive_flag_spec=
 17043  	  tmp_sharedflag='--shared' ;;
 17044          nagfor*)                        # NAGFOR 5.3
 17045            tmp_sharedflag='-Wl,-shared' ;;
 17046  	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 17047  	  tmp_sharedflag='-qmkshrobj'
 17048  	  tmp_addflag= ;;
 17049  	nvcc*)	# Cuda Compiler Driver 2.2
 17050  	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
 17051  	  compiler_needs_object=yes
 17052  	  ;;
 17053  	esac
 17054  	case `$CC -V 2>&1 | sed 5q` in
 17055  	*Sun\ C*)			# Sun C 5.9
 17056  	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
 17057  	  compiler_needs_object=yes
 17058  	  tmp_sharedflag='-G' ;;
 17059  	*Sun\ F*)			# Sun Fortran 8.3
 17060  	  tmp_sharedflag='-G' ;;
 17061  	esac
 17062  	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 17063  
 17064          if test yes = "$supports_anon_versioning"; then
 17065            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 17066              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 17067              echo "local: *; };" >> $output_objdir/$libname.ver~
 17068              $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 17069          fi
 17070  
 17071  	case $cc_basename in
 17072  	tcc*)
 17073  	  export_dynamic_flag_spec='-rdynamic'
 17074  	  ;;
 17075  	xlf* | bgf* | bgxlf* | mpixlf*)
 17076  	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 17077  	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 17078  	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 17079  	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 17080  	  if test yes = "$supports_anon_versioning"; then
 17081  	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 17082                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 17083                echo "local: *; };" >> $output_objdir/$libname.ver~
 17084                $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 17085  	  fi
 17086  	  ;;
 17087  	esac
 17088        else
 17089          ld_shlibs=no
 17090        fi
 17091        ;;
 17092  
 17093      netbsd*)
 17094        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 17095  	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 17096  	wlarc=
 17097        else
 17098  	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 17099  	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 17100        fi
 17101        ;;
 17102  
 17103      solaris*)
 17104        if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 17105  	ld_shlibs=no
 17106  	cat <<_LT_EOF 1>&2
 17107  
 17108  *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 17109  *** create shared libraries on Solaris systems.  Therefore, libtool
 17110  *** is disabling shared libraries support.  We urge you to upgrade GNU
 17111  *** binutils to release 2.9.1 or newer.  Another option is to modify
 17112  *** your PATH or compiler configuration so that the native linker is
 17113  *** used, and then restart.
 17114  
 17115  _LT_EOF
 17116        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 17117  	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 17118  	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 17119        else
 17120  	ld_shlibs=no
 17121        fi
 17122        ;;
 17123  
 17124      sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 17125        case `$LD -v 2>&1` in
 17126          *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 17127  	ld_shlibs=no
 17128  	cat <<_LT_EOF 1>&2
 17129  
 17130  *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 17131  *** reliably create shared libraries on SCO systems.  Therefore, libtool
 17132  *** is disabling shared libraries support.  We urge you to upgrade GNU
 17133  *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 17134  *** your PATH or compiler configuration so that the native linker is
 17135  *** used, and then restart.
 17136  
 17137  _LT_EOF
 17138  	;;
 17139  	*)
 17140  	  # For security reasons, it is highly recommended that you always
 17141  	  # use absolute paths for naming shared libraries, and exclude the
 17142  	  # DT_RUNPATH tag from executables and libraries.  But doing so
 17143  	  # requires that you compile everything twice, which is a pain.
 17144  	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 17145  	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 17146  	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 17147  	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 17148  	  else
 17149  	    ld_shlibs=no
 17150  	  fi
 17151  	;;
 17152        esac
 17153        ;;
 17154  
 17155      sunos4*)
 17156        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 17157        wlarc=
 17158        hardcode_direct=yes
 17159        hardcode_shlibpath_var=no
 17160        ;;
 17161  
 17162      *)
 17163        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 17164  	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 17165  	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 17166        else
 17167  	ld_shlibs=no
 17168        fi
 17169        ;;
 17170      esac
 17171  
 17172      if test no = "$ld_shlibs"; then
 17173        runpath_var=
 17174        hardcode_libdir_flag_spec=
 17175        export_dynamic_flag_spec=
 17176        whole_archive_flag_spec=
 17177      fi
 17178    else
 17179      # PORTME fill in a description of your system's linker (not GNU ld)
 17180      case $host_os in
 17181      aix3*)
 17182        allow_undefined_flag=unsupported
 17183        always_export_symbols=yes
 17184        archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 17185        # Note: this linker hardcodes the directories in LIBPATH if there
 17186        # are no directories specified by -L.
 17187        hardcode_minus_L=yes
 17188        if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 17189  	# Neither direct hardcoding nor static linking is supported with a
 17190  	# broken collect2.
 17191  	hardcode_direct=unsupported
 17192        fi
 17193        ;;
 17194  
 17195      aix[4-9]*)
 17196        if test ia64 = "$host_cpu"; then
 17197  	# On IA64, the linker does run time linking by default, so we don't
 17198  	# have to do anything special.
 17199  	aix_use_runtimelinking=no
 17200  	exp_sym_flag='-Bexport'
 17201  	no_entry_flag=
 17202        else
 17203  	# If we're using GNU nm, then we don't want the "-C" option.
 17204  	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
 17205  	# Without the "-l" option, or with the "-B" option, AIX nm treats
 17206  	# weak defined symbols like other global defined symbols, whereas
 17207  	# GNU nm marks them as "W".
 17208  	# While the 'weak' keyword is ignored in the Export File, we need
 17209  	# it in the Import File for the 'aix-soname' feature, so we have
 17210  	# to replace the "-B" option with "-P" for AIX nm.
 17211  	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 17212  	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 17213  	else
 17214  	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 17215  	fi
 17216  	aix_use_runtimelinking=no
 17217  
 17218  	# Test if we are trying to use run time linking or normal
 17219  	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
 17220  	# have runtime linking enabled, and use it for executables.
 17221  	# For shared libraries, we enable/disable runtime linking
 17222  	# depending on the kind of the shared library created -
 17223  	# when "with_aix_soname,aix_use_runtimelinking" is:
 17224  	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 17225  	# "aix,yes"  lib.so          shared, rtl:yes, for executables
 17226  	#            lib.a           static archive
 17227  	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
 17228  	#            lib.a(lib.so.V) shared, rtl:no,  for executables
 17229  	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 17230  	#            lib.a(lib.so.V) shared, rtl:no
 17231  	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 17232  	#            lib.a           static archive
 17233  	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 17234  	  for ld_flag in $LDFLAGS; do
 17235  	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 17236  	    aix_use_runtimelinking=yes
 17237  	    break
 17238  	  fi
 17239  	  done
 17240  	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 17241  	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
 17242  	    # so we don't have lib.a shared libs to link our executables.
 17243  	    # We have to force runtime linking in this case.
 17244  	    aix_use_runtimelinking=yes
 17245  	    LDFLAGS="$LDFLAGS -Wl,-brtl"
 17246  	  fi
 17247  	  ;;
 17248  	esac
 17249  
 17250  	exp_sym_flag='-bexport'
 17251  	no_entry_flag='-bnoentry'
 17252        fi
 17253  
 17254        # When large executables or shared objects are built, AIX ld can
 17255        # have problems creating the table of contents.  If linking a library
 17256        # or program results in "error TOC overflow" add -mminimal-toc to
 17257        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 17258        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 17259  
 17260        archive_cmds=''
 17261        hardcode_direct=yes
 17262        hardcode_direct_absolute=yes
 17263        hardcode_libdir_separator=':'
 17264        link_all_deplibs=yes
 17265        file_list_spec='$wl-f,'
 17266        case $with_aix_soname,$aix_use_runtimelinking in
 17267        aix,*) ;; # traditional, no import file
 17268        svr4,* | *,yes) # use import file
 17269  	# The Import File defines what to hardcode.
 17270  	hardcode_direct=no
 17271  	hardcode_direct_absolute=no
 17272  	;;
 17273        esac
 17274  
 17275        if test yes = "$GCC"; then
 17276  	case $host_os in aix4.[012]|aix4.[012].*)
 17277  	# We only want to do this on AIX 4.2 and lower, the check
 17278  	# below for broken collect2 doesn't work under 4.3+
 17279  	  collect2name=`$CC -print-prog-name=collect2`
 17280  	  if test -f "$collect2name" &&
 17281  	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 17282  	  then
 17283  	  # We have reworked collect2
 17284  	  :
 17285  	  else
 17286  	  # We have old collect2
 17287  	  hardcode_direct=unsupported
 17288  	  # It fails to find uninstalled libraries when the uninstalled
 17289  	  # path is not listed in the libpath.  Setting hardcode_minus_L
 17290  	  # to unsupported forces relinking
 17291  	  hardcode_minus_L=yes
 17292  	  hardcode_libdir_flag_spec='-L$libdir'
 17293  	  hardcode_libdir_separator=
 17294  	  fi
 17295  	  ;;
 17296  	esac
 17297  	shared_flag='-shared'
 17298  	if test yes = "$aix_use_runtimelinking"; then
 17299  	  shared_flag="$shared_flag "'$wl-G'
 17300  	fi
 17301  	# Need to ensure runtime linking is disabled for the traditional
 17302  	# shared library, or the linker may eventually find shared libraries
 17303  	# /with/ Import File - we do not want to mix them.
 17304  	shared_flag_aix='-shared'
 17305  	shared_flag_svr4='-shared $wl-G'
 17306        else
 17307  	# not using gcc
 17308  	if test ia64 = "$host_cpu"; then
 17309  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 17310  	# chokes on -Wl,-G. The following line is correct:
 17311  	  shared_flag='-G'
 17312  	else
 17313  	  if test yes = "$aix_use_runtimelinking"; then
 17314  	    shared_flag='$wl-G'
 17315  	  else
 17316  	    shared_flag='$wl-bM:SRE'
 17317  	  fi
 17318  	  shared_flag_aix='$wl-bM:SRE'
 17319  	  shared_flag_svr4='$wl-G'
 17320  	fi
 17321        fi
 17322  
 17323        export_dynamic_flag_spec='$wl-bexpall'
 17324        # It seems that -bexpall does not export symbols beginning with
 17325        # underscore (_), so it is better to generate a list of symbols to export.
 17326        always_export_symbols=yes
 17327        if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 17328  	# Warning - without using the other runtime loading flags (-brtl),
 17329  	# -berok will link without error, but may produce a broken library.
 17330  	allow_undefined_flag='-berok'
 17331          # Determine the default libpath from the value encoded in an
 17332          # empty executable.
 17333          if test set = "${lt_cv_aix_libpath+set}"; then
 17334    aix_libpath=$lt_cv_aix_libpath
 17335  else
 17336    if ${lt_cv_aix_libpath_+:} false; then :
 17337    $as_echo_n "(cached) " >&6
 17338  else
 17339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 17340  /* end confdefs.h.  */
 17341  
 17342  int
 17343  main ()
 17344  {
 17345  
 17346    ;
 17347    return 0;
 17348  }
 17349  _ACEOF
 17350  if ac_fn_c_try_link "$LINENO"; then :
 17351  
 17352    lt_aix_libpath_sed='
 17353        /Import File Strings/,/^$/ {
 17354  	  /^0/ {
 17355  	      s/^0  *\([^ ]*\) *$/\1/
 17356  	      p
 17357  	  }
 17358        }'
 17359    lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 17360    # Check for a 64-bit object if we didn't find anything.
 17361    if test -z "$lt_cv_aix_libpath_"; then
 17362      lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 17363    fi
 17364  fi
 17365  rm -f core conftest.err conftest.$ac_objext \
 17366      conftest$ac_exeext conftest.$ac_ext
 17367    if test -z "$lt_cv_aix_libpath_"; then
 17368      lt_cv_aix_libpath_=/usr/lib:/lib
 17369    fi
 17370  
 17371  fi
 17372  
 17373    aix_libpath=$lt_cv_aix_libpath_
 17374  fi
 17375  
 17376          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 17377          archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 17378        else
 17379  	if test ia64 = "$host_cpu"; then
 17380  	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
 17381  	  allow_undefined_flag="-z nodefs"
 17382  	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
 17383  	else
 17384  	 # Determine the default libpath from the value encoded in an
 17385  	 # empty executable.
 17386  	 if test set = "${lt_cv_aix_libpath+set}"; then
 17387    aix_libpath=$lt_cv_aix_libpath
 17388  else
 17389    if ${lt_cv_aix_libpath_+:} false; then :
 17390    $as_echo_n "(cached) " >&6
 17391  else
 17392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 17393  /* end confdefs.h.  */
 17394  
 17395  int
 17396  main ()
 17397  {
 17398  
 17399    ;
 17400    return 0;
 17401  }
 17402  _ACEOF
 17403  if ac_fn_c_try_link "$LINENO"; then :
 17404  
 17405    lt_aix_libpath_sed='
 17406        /Import File Strings/,/^$/ {
 17407  	  /^0/ {
 17408  	      s/^0  *\([^ ]*\) *$/\1/
 17409  	      p
 17410  	  }
 17411        }'
 17412    lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 17413    # Check for a 64-bit object if we didn't find anything.
 17414    if test -z "$lt_cv_aix_libpath_"; then
 17415      lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 17416    fi
 17417  fi
 17418  rm -f core conftest.err conftest.$ac_objext \
 17419      conftest$ac_exeext conftest.$ac_ext
 17420    if test -z "$lt_cv_aix_libpath_"; then
 17421      lt_cv_aix_libpath_=/usr/lib:/lib
 17422    fi
 17423  
 17424  fi
 17425  
 17426    aix_libpath=$lt_cv_aix_libpath_
 17427  fi
 17428  
 17429  	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 17430  	  # Warning - without using the other run time loading flags,
 17431  	  # -berok will link without error, but may produce a broken library.
 17432  	  no_undefined_flag=' $wl-bernotok'
 17433  	  allow_undefined_flag=' $wl-berok'
 17434  	  if test yes = "$with_gnu_ld"; then
 17435  	    # We only use this code for GNU lds that support --whole-archive.
 17436  	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
 17437  	  else
 17438  	    # Exported symbols can be pulled into shared objects from archives
 17439  	    whole_archive_flag_spec='$convenience'
 17440  	  fi
 17441  	  archive_cmds_need_lc=yes
 17442  	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 17443  	  # -brtl affects multiple linker settings, -berok does not and is overridden later
 17444  	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
 17445  	  if test svr4 != "$with_aix_soname"; then
 17446  	    # This is similar to how AIX traditionally builds its shared libraries.
 17447  	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 17448  	  fi
 17449  	  if test aix != "$with_aix_soname"; then
 17450  	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 17451  	  else
 17452  	    # used by -dlpreopen to get the symbols
 17453  	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 17454  	  fi
 17455  	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
 17456  	fi
 17457        fi
 17458        ;;
 17459  
 17460      amigaos*)
 17461        case $host_cpu in
 17462        powerpc)
 17463              # see comment about AmigaOS4 .so support
 17464              archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 17465              archive_expsym_cmds=''
 17466          ;;
 17467        m68k)
 17468              archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 17469              hardcode_libdir_flag_spec='-L$libdir'
 17470              hardcode_minus_L=yes
 17471          ;;
 17472        esac
 17473        ;;
 17474  
 17475      bsdi[45]*)
 17476        export_dynamic_flag_spec=-rdynamic
 17477        ;;
 17478  
 17479      cygwin* | mingw* | pw32* | cegcc*)
 17480        # When not using gcc, we currently assume that we are using
 17481        # Microsoft Visual C++.
 17482        # hardcode_libdir_flag_spec is actually meaningless, as there is
 17483        # no search path for DLLs.
 17484        case $cc_basename in
 17485        cl*)
 17486  	# Native MSVC
 17487  	hardcode_libdir_flag_spec=' '
 17488  	allow_undefined_flag=unsupported
 17489  	always_export_symbols=yes
 17490  	file_list_spec='@'
 17491  	# Tell ltmain to make .lib files, not .a files.
 17492  	libext=lib
 17493  	# Tell ltmain to make .dll files, not .so files.
 17494  	shrext_cmds=.dll
 17495  	# FIXME: Setting linknames here is a bad hack.
 17496  	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 17497  	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 17498              cp "$export_symbols" "$output_objdir/$soname.def";
 17499              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 17500            else
 17501              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 17502            fi~
 17503            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 17504            linknames='
 17505  	# The linker will not automatically build a static lib if we build a DLL.
 17506  	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 17507  	enable_shared_with_static_runtimes=yes
 17508  	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 17509  	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 17510  	# Don't use ranlib
 17511  	old_postinstall_cmds='chmod 644 $oldlib'
 17512  	postlink_cmds='lt_outputfile="@OUTPUT@"~
 17513            lt_tool_outputfile="@TOOL_OUTPUT@"~
 17514            case $lt_outputfile in
 17515              *.exe|*.EXE) ;;
 17516              *)
 17517                lt_outputfile=$lt_outputfile.exe
 17518                lt_tool_outputfile=$lt_tool_outputfile.exe
 17519                ;;
 17520            esac~
 17521            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 17522              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 17523              $RM "$lt_outputfile.manifest";
 17524            fi'
 17525  	;;
 17526        *)
 17527  	# Assume MSVC wrapper
 17528  	hardcode_libdir_flag_spec=' '
 17529  	allow_undefined_flag=unsupported
 17530  	# Tell ltmain to make .lib files, not .a files.
 17531  	libext=lib
 17532  	# Tell ltmain to make .dll files, not .so files.
 17533  	shrext_cmds=.dll
 17534  	# FIXME: Setting linknames here is a bad hack.
 17535  	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 17536  	# The linker will automatically build a .lib file if we build a DLL.
 17537  	old_archive_from_new_cmds='true'
 17538  	# FIXME: Should let the user specify the lib program.
 17539  	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 17540  	enable_shared_with_static_runtimes=yes
 17541  	;;
 17542        esac
 17543        ;;
 17544  
 17545      darwin* | rhapsody*)
 17546  
 17547  
 17548    archive_cmds_need_lc=no
 17549    hardcode_direct=no
 17550    hardcode_automatic=yes
 17551    hardcode_shlibpath_var=unsupported
 17552    if test yes = "$lt_cv_ld_force_load"; then
 17553      whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 17554  
 17555    else
 17556      whole_archive_flag_spec=''
 17557    fi
 17558    link_all_deplibs=yes
 17559    allow_undefined_flag=$_lt_dar_allow_undefined
 17560    case $cc_basename in
 17561       ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 17562       *) _lt_dar_can_shared=$GCC ;;
 17563    esac
 17564    if test yes = "$_lt_dar_can_shared"; then
 17565      output_verbose_link_cmd=func_echo_all
 17566      archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
 17567      module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 17568      archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
 17569      module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
 17570  
 17571    else
 17572    ld_shlibs=no
 17573    fi
 17574  
 17575        ;;
 17576  
 17577      dgux*)
 17578        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17579        hardcode_libdir_flag_spec='-L$libdir'
 17580        hardcode_shlibpath_var=no
 17581        ;;
 17582  
 17583      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 17584      # support.  Future versions do this automatically, but an explicit c++rt0.o
 17585      # does not break anything, and helps significantly (at the cost of a little
 17586      # extra space).
 17587      freebsd2.2*)
 17588        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 17589        hardcode_libdir_flag_spec='-R$libdir'
 17590        hardcode_direct=yes
 17591        hardcode_shlibpath_var=no
 17592        ;;
 17593  
 17594      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 17595      freebsd2.*)
 17596        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 17597        hardcode_direct=yes
 17598        hardcode_minus_L=yes
 17599        hardcode_shlibpath_var=no
 17600        ;;
 17601  
 17602      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 17603      freebsd* | dragonfly*)
 17604        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 17605        hardcode_libdir_flag_spec='-R$libdir'
 17606        hardcode_direct=yes
 17607        hardcode_shlibpath_var=no
 17608        ;;
 17609  
 17610      hpux9*)
 17611        if test yes = "$GCC"; then
 17612  	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 17613        else
 17614  	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 17615        fi
 17616        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 17617        hardcode_libdir_separator=:
 17618        hardcode_direct=yes
 17619  
 17620        # hardcode_minus_L: Not really in the search PATH,
 17621        # but as the default location of the library.
 17622        hardcode_minus_L=yes
 17623        export_dynamic_flag_spec='$wl-E'
 17624        ;;
 17625  
 17626      hpux10*)
 17627        if test yes,no = "$GCC,$with_gnu_ld"; then
 17628  	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 17629        else
 17630  	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 17631        fi
 17632        if test no = "$with_gnu_ld"; then
 17633  	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 17634  	hardcode_libdir_separator=:
 17635  	hardcode_direct=yes
 17636  	hardcode_direct_absolute=yes
 17637  	export_dynamic_flag_spec='$wl-E'
 17638  	# hardcode_minus_L: Not really in the search PATH,
 17639  	# but as the default location of the library.
 17640  	hardcode_minus_L=yes
 17641        fi
 17642        ;;
 17643  
 17644      hpux11*)
 17645        if test yes,no = "$GCC,$with_gnu_ld"; then
 17646  	case $host_cpu in
 17647  	hppa*64*)
 17648  	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 17649  	  ;;
 17650  	ia64*)
 17651  	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 17652  	  ;;
 17653  	*)
 17654  	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 17655  	  ;;
 17656  	esac
 17657        else
 17658  	case $host_cpu in
 17659  	hppa*64*)
 17660  	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 17661  	  ;;
 17662  	ia64*)
 17663  	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 17664  	  ;;
 17665  	*)
 17666  
 17667  	  # Older versions of the 11.00 compiler do not understand -b yet
 17668  	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 17669  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 17670  $as_echo_n "checking if $CC understands -b... " >&6; }
 17671  if ${lt_cv_prog_compiler__b+:} false; then :
 17672    $as_echo_n "(cached) " >&6
 17673  else
 17674    lt_cv_prog_compiler__b=no
 17675     save_LDFLAGS=$LDFLAGS
 17676     LDFLAGS="$LDFLAGS -b"
 17677     echo "$lt_simple_link_test_code" > conftest.$ac_ext
 17678     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 17679       # The linker can only warn and ignore the option if not recognized
 17680       # So say no if there are warnings
 17681       if test -s conftest.err; then
 17682         # Append any errors to the config.log.
 17683         cat conftest.err 1>&5
 17684         $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 17685         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 17686         if diff conftest.exp conftest.er2 >/dev/null; then
 17687           lt_cv_prog_compiler__b=yes
 17688         fi
 17689       else
 17690         lt_cv_prog_compiler__b=yes
 17691       fi
 17692     fi
 17693     $RM -r conftest*
 17694     LDFLAGS=$save_LDFLAGS
 17695  
 17696  fi
 17697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 17698  $as_echo "$lt_cv_prog_compiler__b" >&6; }
 17699  
 17700  if test yes = "$lt_cv_prog_compiler__b"; then
 17701      archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 17702  else
 17703      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 17704  fi
 17705  
 17706  	  ;;
 17707  	esac
 17708        fi
 17709        if test no = "$with_gnu_ld"; then
 17710  	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
 17711  	hardcode_libdir_separator=:
 17712  
 17713  	case $host_cpu in
 17714  	hppa*64*|ia64*)
 17715  	  hardcode_direct=no
 17716  	  hardcode_shlibpath_var=no
 17717  	  ;;
 17718  	*)
 17719  	  hardcode_direct=yes
 17720  	  hardcode_direct_absolute=yes
 17721  	  export_dynamic_flag_spec='$wl-E'
 17722  
 17723  	  # hardcode_minus_L: Not really in the search PATH,
 17724  	  # but as the default location of the library.
 17725  	  hardcode_minus_L=yes
 17726  	  ;;
 17727  	esac
 17728        fi
 17729        ;;
 17730  
 17731      irix5* | irix6* | nonstopux*)
 17732        if test yes = "$GCC"; then
 17733  	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 17734  	# Try to use the -exported_symbol ld option, if it does not
 17735  	# work, assume that -exports_file does not work either and
 17736  	# implicitly export all symbols.
 17737  	# This should be the same for all languages, so no per-tag cache variable.
 17738  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 17739  $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 17740  if ${lt_cv_irix_exported_symbol+:} false; then :
 17741    $as_echo_n "(cached) " >&6
 17742  else
 17743    save_LDFLAGS=$LDFLAGS
 17744  	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 17745  	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 17746  /* end confdefs.h.  */
 17747  int foo (void) { return 0; }
 17748  _ACEOF
 17749  if ac_fn_c_try_link "$LINENO"; then :
 17750    lt_cv_irix_exported_symbol=yes
 17751  else
 17752    lt_cv_irix_exported_symbol=no
 17753  fi
 17754  rm -f core conftest.err conftest.$ac_objext \
 17755      conftest$ac_exeext conftest.$ac_ext
 17756             LDFLAGS=$save_LDFLAGS
 17757  fi
 17758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 17759  $as_echo "$lt_cv_irix_exported_symbol" >&6; }
 17760  	if test yes = "$lt_cv_irix_exported_symbol"; then
 17761            archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
 17762  	fi
 17763        else
 17764  	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 17765  	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
 17766        fi
 17767        archive_cmds_need_lc='no'
 17768        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 17769        hardcode_libdir_separator=:
 17770        inherit_rpath=yes
 17771        link_all_deplibs=yes
 17772        ;;
 17773  
 17774      linux*)
 17775        case $cc_basename in
 17776        tcc*)
 17777  	# Fabrice Bellard et al's Tiny C Compiler
 17778  	ld_shlibs=yes
 17779  	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 17780  	;;
 17781        esac
 17782        ;;
 17783  
 17784      netbsd*)
 17785        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 17786  	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 17787        else
 17788  	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 17789        fi
 17790        hardcode_libdir_flag_spec='-R$libdir'
 17791        hardcode_direct=yes
 17792        hardcode_shlibpath_var=no
 17793        ;;
 17794  
 17795      newsos6)
 17796        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17797        hardcode_direct=yes
 17798        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 17799        hardcode_libdir_separator=:
 17800        hardcode_shlibpath_var=no
 17801        ;;
 17802  
 17803      *nto* | *qnx*)
 17804        ;;
 17805  
 17806      openbsd* | bitrig*)
 17807        if test -f /usr/libexec/ld.so; then
 17808  	hardcode_direct=yes
 17809  	hardcode_shlibpath_var=no
 17810  	hardcode_direct_absolute=yes
 17811  	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 17812  	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 17813  	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 17814  	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 17815  	  export_dynamic_flag_spec='$wl-E'
 17816  	else
 17817  	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 17818  	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 17819  	fi
 17820        else
 17821  	ld_shlibs=no
 17822        fi
 17823        ;;
 17824  
 17825      os2*)
 17826        hardcode_libdir_flag_spec='-L$libdir'
 17827        hardcode_minus_L=yes
 17828        allow_undefined_flag=unsupported
 17829        shrext_cmds=.dll
 17830        archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 17831  	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 17832  	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 17833  	$ECHO EXPORTS >> $output_objdir/$libname.def~
 17834  	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 17835  	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 17836  	emximp -o $lib $output_objdir/$libname.def'
 17837        archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 17838  	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 17839  	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 17840  	$ECHO EXPORTS >> $output_objdir/$libname.def~
 17841  	prefix_cmds="$SED"~
 17842  	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 17843  	  prefix_cmds="$prefix_cmds -e 1d";
 17844  	fi~
 17845  	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 17846  	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 17847  	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 17848  	emximp -o $lib $output_objdir/$libname.def'
 17849        old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 17850        enable_shared_with_static_runtimes=yes
 17851        ;;
 17852  
 17853      osf3*)
 17854        if test yes = "$GCC"; then
 17855  	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 17856  	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 17857        else
 17858  	allow_undefined_flag=' -expect_unresolved \*'
 17859  	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 17860        fi
 17861        archive_cmds_need_lc='no'
 17862        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 17863        hardcode_libdir_separator=:
 17864        ;;
 17865  
 17866      osf4* | osf5*)	# as osf3* with the addition of -msym flag
 17867        if test yes = "$GCC"; then
 17868  	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 17869  	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 17870  	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 17871        else
 17872  	allow_undefined_flag=' -expect_unresolved \*'
 17873  	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 17874  	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 17875            $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
 17876  
 17877  	# Both c and cxx compiler support -rpath directly
 17878  	hardcode_libdir_flag_spec='-rpath $libdir'
 17879        fi
 17880        archive_cmds_need_lc='no'
 17881        hardcode_libdir_separator=:
 17882        ;;
 17883  
 17884      solaris*)
 17885        no_undefined_flag=' -z defs'
 17886        if test yes = "$GCC"; then
 17887  	wlarc='$wl'
 17888  	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 17889  	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 17890            $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 17891        else
 17892  	case `$CC -V 2>&1` in
 17893  	*"Compilers 5.0"*)
 17894  	  wlarc=''
 17895  	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17896  	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 17897              $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 17898  	  ;;
 17899  	*)
 17900  	  wlarc='$wl'
 17901  	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 17902  	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 17903              $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 17904  	  ;;
 17905  	esac
 17906        fi
 17907        hardcode_libdir_flag_spec='-R$libdir'
 17908        hardcode_shlibpath_var=no
 17909        case $host_os in
 17910        solaris2.[0-5] | solaris2.[0-5].*) ;;
 17911        *)
 17912  	# The compiler driver will combine and reorder linker options,
 17913  	# but understands '-z linker_flag'.  GCC discards it without '$wl',
 17914  	# but is careful enough not to reorder.
 17915  	# Supported since Solaris 2.6 (maybe 2.5.1?)
 17916  	if test yes = "$GCC"; then
 17917  	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 17918  	else
 17919  	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 17920  	fi
 17921  	;;
 17922        esac
 17923        link_all_deplibs=yes
 17924        ;;
 17925  
 17926      sunos4*)
 17927        if test sequent = "$host_vendor"; then
 17928  	# Use $CC to link under sequent, because it throws in some extra .o
 17929  	# files that make .init and .fini sections work.
 17930  	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 17931        else
 17932  	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 17933        fi
 17934        hardcode_libdir_flag_spec='-L$libdir'
 17935        hardcode_direct=yes
 17936        hardcode_minus_L=yes
 17937        hardcode_shlibpath_var=no
 17938        ;;
 17939  
 17940      sysv4)
 17941        case $host_vendor in
 17942  	sni)
 17943  	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17944  	  hardcode_direct=yes # is this really true???
 17945  	;;
 17946  	siemens)
 17947  	  ## LD is ld it makes a PLAMLIB
 17948  	  ## CC just makes a GrossModule.
 17949  	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 17950  	  reload_cmds='$CC -r -o $output$reload_objs'
 17951  	  hardcode_direct=no
 17952          ;;
 17953  	motorola)
 17954  	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17955  	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 17956  	;;
 17957        esac
 17958        runpath_var='LD_RUN_PATH'
 17959        hardcode_shlibpath_var=no
 17960        ;;
 17961  
 17962      sysv4.3*)
 17963        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17964        hardcode_shlibpath_var=no
 17965        export_dynamic_flag_spec='-Bexport'
 17966        ;;
 17967  
 17968      sysv4*MP*)
 17969        if test -d /usr/nec; then
 17970  	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 17971  	hardcode_shlibpath_var=no
 17972  	runpath_var=LD_RUN_PATH
 17973  	hardcode_runpath_var=yes
 17974  	ld_shlibs=yes
 17975        fi
 17976        ;;
 17977  
 17978      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 17979        no_undefined_flag='$wl-z,text'
 17980        archive_cmds_need_lc=no
 17981        hardcode_shlibpath_var=no
 17982        runpath_var='LD_RUN_PATH'
 17983  
 17984        if test yes = "$GCC"; then
 17985  	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 17986  	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 17987        else
 17988  	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 17989  	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 17990        fi
 17991        ;;
 17992  
 17993      sysv5* | sco3.2v5* | sco5v6*)
 17994        # Note: We CANNOT use -z defs as we might desire, because we do not
 17995        # link with -lc, and that would cause any symbols used from libc to
 17996        # always be unresolved, which means just about no library would
 17997        # ever link correctly.  If we're not using GNU ld we use -z text
 17998        # though, which does catch some bad symbols but isn't as heavy-handed
 17999        # as -z defs.
 18000        no_undefined_flag='$wl-z,text'
 18001        allow_undefined_flag='$wl-z,nodefs'
 18002        archive_cmds_need_lc=no
 18003        hardcode_shlibpath_var=no
 18004        hardcode_libdir_flag_spec='$wl-R,$libdir'
 18005        hardcode_libdir_separator=':'
 18006        link_all_deplibs=yes
 18007        export_dynamic_flag_spec='$wl-Bexport'
 18008        runpath_var='LD_RUN_PATH'
 18009  
 18010        if test yes = "$GCC"; then
 18011  	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 18012  	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 18013        else
 18014  	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 18015  	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 18016        fi
 18017        ;;
 18018  
 18019      uts4*)
 18020        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 18021        hardcode_libdir_flag_spec='-L$libdir'
 18022        hardcode_shlibpath_var=no
 18023        ;;
 18024  
 18025      *)
 18026        ld_shlibs=no
 18027        ;;
 18028      esac
 18029  
 18030      if test sni = "$host_vendor"; then
 18031        case $host in
 18032        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 18033  	export_dynamic_flag_spec='$wl-Blargedynsym'
 18034  	;;
 18035        esac
 18036      fi
 18037    fi
 18038  
 18039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 18040  $as_echo "$ld_shlibs" >&6; }
 18041  test no = "$ld_shlibs" && can_build_shared=no
 18042  
 18043  with_gnu_ld=$with_gnu_ld
 18044  
 18045  
 18046  
 18047  
 18048  
 18049  
 18050  
 18051  
 18052  
 18053  
 18054  
 18055  
 18056  
 18057  
 18058  
 18059  #
 18060  # Do we need to explicitly link libc?
 18061  #
 18062  case "x$archive_cmds_need_lc" in
 18063  x|xyes)
 18064    # Assume -lc should be added
 18065    archive_cmds_need_lc=yes
 18066  
 18067    if test yes,yes = "$GCC,$enable_shared"; then
 18068      case $archive_cmds in
 18069      *'~'*)
 18070        # FIXME: we may have to deal with multi-command sequences.
 18071        ;;
 18072      '$CC '*)
 18073        # Test whether the compiler implicitly links with -lc since on some
 18074        # systems, -lgcc has to come before -lc. If gcc already passes -lc
 18075        # to ld, don't add -lc before -lgcc.
 18076        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 18077  $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 18078  if ${lt_cv_archive_cmds_need_lc+:} false; then :
 18079    $as_echo_n "(cached) " >&6
 18080  else
 18081    $RM conftest*
 18082  	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 18083  
 18084  	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 18085    (eval $ac_compile) 2>&5
 18086    ac_status=$?
 18087    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18088    test $ac_status = 0; } 2>conftest.err; then
 18089  	  soname=conftest
 18090  	  lib=conftest
 18091  	  libobjs=conftest.$ac_objext
 18092  	  deplibs=
 18093  	  wl=$lt_prog_compiler_wl
 18094  	  pic_flag=$lt_prog_compiler_pic
 18095  	  compiler_flags=-v
 18096  	  linker_flags=-v
 18097  	  verstring=
 18098  	  output_objdir=.
 18099  	  libname=conftest
 18100  	  lt_save_allow_undefined_flag=$allow_undefined_flag
 18101  	  allow_undefined_flag=
 18102  	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 18103    (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 18104    ac_status=$?
 18105    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18106    test $ac_status = 0; }
 18107  	  then
 18108  	    lt_cv_archive_cmds_need_lc=no
 18109  	  else
 18110  	    lt_cv_archive_cmds_need_lc=yes
 18111  	  fi
 18112  	  allow_undefined_flag=$lt_save_allow_undefined_flag
 18113  	else
 18114  	  cat conftest.err 1>&5
 18115  	fi
 18116  	$RM conftest*
 18117  
 18118  fi
 18119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 18120  $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 18121        archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 18122        ;;
 18123      esac
 18124    fi
 18125    ;;
 18126  esac
 18127  
 18128  
 18129  
 18130  
 18131  
 18132  
 18133  
 18134  
 18135  
 18136  
 18137  
 18138  
 18139  
 18140  
 18141  
 18142  
 18143  
 18144  
 18145  
 18146  
 18147  
 18148  
 18149  
 18150  
 18151  
 18152  
 18153  
 18154  
 18155  
 18156  
 18157  
 18158  
 18159  
 18160  
 18161  
 18162  
 18163  
 18164  
 18165  
 18166  
 18167  
 18168  
 18169  
 18170  
 18171  
 18172  
 18173  
 18174  
 18175  
 18176  
 18177  
 18178  
 18179  
 18180  
 18181  
 18182  
 18183  
 18184  
 18185  
 18186  
 18187  
 18188  
 18189  
 18190  
 18191  
 18192  
 18193  
 18194  
 18195  
 18196  
 18197  
 18198  
 18199  
 18200  
 18201  
 18202  
 18203  
 18204  
 18205  
 18206  
 18207  
 18208  
 18209  
 18210  
 18211  
 18212  
 18213  
 18214  
 18215  
 18216  
 18217  
 18218  
 18219  
 18220  
 18221  
 18222  
 18223  
 18224  
 18225  
 18226  
 18227  
 18228  
 18229  
 18230  
 18231  
 18232  
 18233  
 18234  
 18235  
 18236  
 18237  
 18238  
 18239  
 18240  
 18241  
 18242  
 18243  
 18244  
 18245  
 18246  
 18247  
 18248  
 18249  
 18250  
 18251  
 18252  
 18253  
 18254  
 18255  
 18256  
 18257  
 18258  
 18259  
 18260  
 18261  
 18262  
 18263  
 18264  
 18265  
 18266  
 18267  
 18268  
 18269  
 18270  
 18271  
 18272  
 18273  
 18274  
 18275  
 18276  
 18277  
 18278  
 18279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 18280  $as_echo_n "checking dynamic linker characteristics... " >&6; }
 18281  
 18282  if test yes = "$GCC"; then
 18283    case $host_os in
 18284      darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 18285      *) lt_awk_arg='/^libraries:/' ;;
 18286    esac
 18287    case $host_os in
 18288      mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
 18289      *) lt_sed_strip_eq='s|=/|/|g' ;;
 18290    esac
 18291    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 18292    case $lt_search_path_spec in
 18293    *\;*)
 18294      # if the path contains ";" then we assume it to be the separator
 18295      # otherwise default to the standard path separator (i.e. ":") - it is
 18296      # assumed that no part of a normal pathname contains ";" but that should
 18297      # okay in the real world where ";" in dirpaths is itself problematic.
 18298      lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 18299      ;;
 18300    *)
 18301      lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 18302      ;;
 18303    esac
 18304    # Ok, now we have the path, separated by spaces, we can step through it
 18305    # and add multilib dir if necessary...
 18306    lt_tmp_lt_search_path_spec=
 18307    lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 18308    # ...but if some path component already ends with the multilib dir we assume
 18309    # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 18310    case "$lt_multi_os_dir; $lt_search_path_spec " in
 18311    "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 18312      lt_multi_os_dir=
 18313      ;;
 18314    esac
 18315    for lt_sys_path in $lt_search_path_spec; do
 18316      if test -d "$lt_sys_path$lt_multi_os_dir"; then
 18317        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 18318      elif test -n "$lt_multi_os_dir"; then
 18319        test -d "$lt_sys_path" && \
 18320  	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 18321      fi
 18322    done
 18323    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 18324  BEGIN {RS = " "; FS = "/|\n";} {
 18325    lt_foo = "";
 18326    lt_count = 0;
 18327    for (lt_i = NF; lt_i > 0; lt_i--) {
 18328      if ($lt_i != "" && $lt_i != ".") {
 18329        if ($lt_i == "..") {
 18330          lt_count++;
 18331        } else {
 18332          if (lt_count == 0) {
 18333            lt_foo = "/" $lt_i lt_foo;
 18334          } else {
 18335            lt_count--;
 18336          }
 18337        }
 18338      }
 18339    }
 18340    if (lt_foo != "") { lt_freq[lt_foo]++; }
 18341    if (lt_freq[lt_foo] == 1) { print lt_foo; }
 18342  }'`
 18343    # AWK program above erroneously prepends '/' to C:/dos/paths
 18344    # for these hosts.
 18345    case $host_os in
 18346      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 18347        $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
 18348    esac
 18349    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 18350  else
 18351    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 18352  fi
 18353  library_names_spec=
 18354  libname_spec='lib$name'
 18355  soname_spec=
 18356  shrext_cmds=.so
 18357  postinstall_cmds=
 18358  postuninstall_cmds=
 18359  finish_cmds=
 18360  finish_eval=
 18361  shlibpath_var=
 18362  shlibpath_overrides_runpath=unknown
 18363  version_type=none
 18364  dynamic_linker="$host_os ld.so"
 18365  sys_lib_dlsearch_path_spec="/lib /usr/lib"
 18366  need_lib_prefix=unknown
 18367  hardcode_into_libs=no
 18368  
 18369  # when you set need_version to no, make sure it does not cause -set_version
 18370  # flags to be left without arguments
 18371  need_version=unknown
 18372  
 18373  
 18374  
 18375  case $host_os in
 18376  aix3*)
 18377    version_type=linux # correct to gnu/linux during the next big refactor
 18378    library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 18379    shlibpath_var=LIBPATH
 18380  
 18381    # AIX 3 has no versioning support, so we append a major version to the name.
 18382    soname_spec='$libname$release$shared_ext$major'
 18383    ;;
 18384  
 18385  aix[4-9]*)
 18386    version_type=linux # correct to gnu/linux during the next big refactor
 18387    need_lib_prefix=no
 18388    need_version=no
 18389    hardcode_into_libs=yes
 18390    if test ia64 = "$host_cpu"; then
 18391      # AIX 5 supports IA64
 18392      library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 18393      shlibpath_var=LD_LIBRARY_PATH
 18394    else
 18395      # With GCC up to 2.95.x, collect2 would create an import file
 18396      # for dependence libraries.  The import file would start with
 18397      # the line '#! .'.  This would cause the generated library to
 18398      # depend on '.', always an invalid library.  This was fixed in
 18399      # development snapshots of GCC prior to 3.0.
 18400      case $host_os in
 18401        aix4 | aix4.[01] | aix4.[01].*)
 18402        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 18403  	   echo ' yes '
 18404  	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 18405  	:
 18406        else
 18407  	can_build_shared=no
 18408        fi
 18409        ;;
 18410      esac
 18411      # Using Import Files as archive members, it is possible to support
 18412      # filename-based versioning of shared library archives on AIX. While
 18413      # this would work for both with and without runtime linking, it will
 18414      # prevent static linking of such archives. So we do filename-based
 18415      # shared library versioning with .so extension only, which is used
 18416      # when both runtime linking and shared linking is enabled.
 18417      # Unfortunately, runtime linking may impact performance, so we do
 18418      # not want this to be the default eventually. Also, we use the
 18419      # versioned .so libs for executables only if there is the -brtl
 18420      # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 18421      # To allow for filename-based versioning support, we need to create
 18422      # libNAME.so.V as an archive file, containing:
 18423      # *) an Import File, referring to the versioned filename of the
 18424      #    archive as well as the shared archive member, telling the
 18425      #    bitwidth (32 or 64) of that shared object, and providing the
 18426      #    list of exported symbols of that shared object, eventually
 18427      #    decorated with the 'weak' keyword
 18428      # *) the shared object with the F_LOADONLY flag set, to really avoid
 18429      #    it being seen by the linker.
 18430      # At run time we better use the real file rather than another symlink,
 18431      # but for link time we create the symlink libNAME.so -> libNAME.so.V
 18432  
 18433      case $with_aix_soname,$aix_use_runtimelinking in
 18434      # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 18435      # soname into executable. Probably we can add versioning support to
 18436      # collect2, so additional links can be useful in future.
 18437      aix,yes) # traditional libtool
 18438        dynamic_linker='AIX unversionable lib.so'
 18439        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 18440        # instead of lib<name>.a to let people know that these are not
 18441        # typical AIX shared libraries.
 18442        library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18443        ;;
 18444      aix,no) # traditional AIX only
 18445        dynamic_linker='AIX lib.a(lib.so.V)'
 18446        # We preserve .a as extension for shared libraries through AIX4.2
 18447        # and later when we are not doing run time linking.
 18448        library_names_spec='$libname$release.a $libname.a'
 18449        soname_spec='$libname$release$shared_ext$major'
 18450        ;;
 18451      svr4,*) # full svr4 only
 18452        dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
 18453        library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 18454        # We do not specify a path in Import Files, so LIBPATH fires.
 18455        shlibpath_overrides_runpath=yes
 18456        ;;
 18457      *,yes) # both, prefer svr4
 18458        dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
 18459        library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 18460        # unpreferred sharedlib libNAME.a needs extra handling
 18461        postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 18462        postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 18463        # We do not specify a path in Import Files, so LIBPATH fires.
 18464        shlibpath_overrides_runpath=yes
 18465        ;;
 18466      *,no) # both, prefer aix
 18467        dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
 18468        library_names_spec='$libname$release.a $libname.a'
 18469        soname_spec='$libname$release$shared_ext$major'
 18470        # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 18471        postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 18472        postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 18473        ;;
 18474      esac
 18475      shlibpath_var=LIBPATH
 18476    fi
 18477    ;;
 18478  
 18479  amigaos*)
 18480    case $host_cpu in
 18481    powerpc)
 18482      # Since July 2007 AmigaOS4 officially supports .so libraries.
 18483      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 18484      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18485      ;;
 18486    m68k)
 18487      library_names_spec='$libname.ixlibrary $libname.a'
 18488      # Create ${libname}_ixlibrary.a entries in /sys/libs.
 18489      finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 18490      ;;
 18491    esac
 18492    ;;
 18493  
 18494  beos*)
 18495    library_names_spec='$libname$shared_ext'
 18496    dynamic_linker="$host_os ld.so"
 18497    shlibpath_var=LIBRARY_PATH
 18498    ;;
 18499  
 18500  bsdi[45]*)
 18501    version_type=linux # correct to gnu/linux during the next big refactor
 18502    need_version=no
 18503    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18504    soname_spec='$libname$release$shared_ext$major'
 18505    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 18506    shlibpath_var=LD_LIBRARY_PATH
 18507    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 18508    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 18509    # the default ld.so.conf also contains /usr/contrib/lib and
 18510    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 18511    # libtool to hard-code these into programs
 18512    ;;
 18513  
 18514  cygwin* | mingw* | pw32* | cegcc*)
 18515    version_type=windows
 18516    shrext_cmds=.dll
 18517    need_version=no
 18518    need_lib_prefix=no
 18519  
 18520    case $GCC,$cc_basename in
 18521    yes,*)
 18522      # gcc
 18523      library_names_spec='$libname.dll.a'
 18524      # DLL is installed to $(libdir)/../bin by postinstall_cmds
 18525      postinstall_cmds='base_file=`basename \$file`~
 18526        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 18527        dldir=$destdir/`dirname \$dlpath`~
 18528        test -d \$dldir || mkdir -p \$dldir~
 18529        $install_prog $dir/$dlname \$dldir/$dlname~
 18530        chmod a+x \$dldir/$dlname~
 18531        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 18532          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 18533        fi'
 18534      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 18535        dlpath=$dir/\$dldll~
 18536         $RM \$dlpath'
 18537      shlibpath_overrides_runpath=yes
 18538  
 18539      case $host_os in
 18540      cygwin*)
 18541        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 18542        soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 18543  
 18544        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 18545        ;;
 18546      mingw* | cegcc*)
 18547        # MinGW DLLs use traditional 'lib' prefix
 18548        soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 18549        ;;
 18550      pw32*)
 18551        # pw32 DLLs use 'pw' prefix rather than 'lib'
 18552        library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 18553        ;;
 18554      esac
 18555      dynamic_linker='Win32 ld.exe'
 18556      ;;
 18557  
 18558    *,cl*)
 18559      # Native MSVC
 18560      libname_spec='$name'
 18561      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 18562      library_names_spec='$libname.dll.lib'
 18563  
 18564      case $build_os in
 18565      mingw*)
 18566        sys_lib_search_path_spec=
 18567        lt_save_ifs=$IFS
 18568        IFS=';'
 18569        for lt_path in $LIB
 18570        do
 18571          IFS=$lt_save_ifs
 18572          # Let DOS variable expansion print the short 8.3 style file name.
 18573          lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 18574          sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 18575        done
 18576        IFS=$lt_save_ifs
 18577        # Convert to MSYS style.
 18578        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 18579        ;;
 18580      cygwin*)
 18581        # Convert to unix form, then to dos form, then back to unix form
 18582        # but this time dos style (no spaces!) so that the unix form looks
 18583        # like /cygdrive/c/PROGRA~1:/cygdr...
 18584        sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 18585        sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 18586        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 18587        ;;
 18588      *)
 18589        sys_lib_search_path_spec=$LIB
 18590        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 18591          # It is most probably a Windows format PATH.
 18592          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 18593        else
 18594          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 18595        fi
 18596        # FIXME: find the short name or the path components, as spaces are
 18597        # common. (e.g. "Program Files" -> "PROGRA~1")
 18598        ;;
 18599      esac
 18600  
 18601      # DLL is installed to $(libdir)/../bin by postinstall_cmds
 18602      postinstall_cmds='base_file=`basename \$file`~
 18603        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 18604        dldir=$destdir/`dirname \$dlpath`~
 18605        test -d \$dldir || mkdir -p \$dldir~
 18606        $install_prog $dir/$dlname \$dldir/$dlname'
 18607      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 18608        dlpath=$dir/\$dldll~
 18609         $RM \$dlpath'
 18610      shlibpath_overrides_runpath=yes
 18611      dynamic_linker='Win32 link.exe'
 18612      ;;
 18613  
 18614    *)
 18615      # Assume MSVC wrapper
 18616      library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
 18617      dynamic_linker='Win32 ld.exe'
 18618      ;;
 18619    esac
 18620    # FIXME: first we should search . and the directory the executable is in
 18621    shlibpath_var=PATH
 18622    ;;
 18623  
 18624  darwin* | rhapsody*)
 18625    dynamic_linker="$host_os dyld"
 18626    version_type=darwin
 18627    need_lib_prefix=no
 18628    need_version=no
 18629    library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 18630    soname_spec='$libname$release$major$shared_ext'
 18631    shlibpath_overrides_runpath=yes
 18632    shlibpath_var=DYLD_LIBRARY_PATH
 18633    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 18634  
 18635    sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 18636    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 18637    ;;
 18638  
 18639  dgux*)
 18640    version_type=linux # correct to gnu/linux during the next big refactor
 18641    need_lib_prefix=no
 18642    need_version=no
 18643    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18644    soname_spec='$libname$release$shared_ext$major'
 18645    shlibpath_var=LD_LIBRARY_PATH
 18646    ;;
 18647  
 18648  freebsd* | dragonfly*)
 18649    # DragonFly does not have aout.  When/if they implement a new
 18650    # versioning mechanism, adjust this.
 18651    if test -x /usr/bin/objformat; then
 18652      objformat=`/usr/bin/objformat`
 18653    else
 18654      case $host_os in
 18655      freebsd[23].*) objformat=aout ;;
 18656      *) objformat=elf ;;
 18657      esac
 18658    fi
 18659    version_type=freebsd-$objformat
 18660    case $version_type in
 18661      freebsd-elf*)
 18662        library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18663        soname_spec='$libname$release$shared_ext$major'
 18664        need_version=no
 18665        need_lib_prefix=no
 18666        ;;
 18667      freebsd-*)
 18668        library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 18669        need_version=yes
 18670        ;;
 18671    esac
 18672    shlibpath_var=LD_LIBRARY_PATH
 18673    case $host_os in
 18674    freebsd2.*)
 18675      shlibpath_overrides_runpath=yes
 18676      ;;
 18677    freebsd3.[01]* | freebsdelf3.[01]*)
 18678      shlibpath_overrides_runpath=yes
 18679      hardcode_into_libs=yes
 18680      ;;
 18681    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 18682    freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 18683      shlibpath_overrides_runpath=no
 18684      hardcode_into_libs=yes
 18685      ;;
 18686    *) # from 4.6 on, and DragonFly
 18687      shlibpath_overrides_runpath=yes
 18688      hardcode_into_libs=yes
 18689      ;;
 18690    esac
 18691    ;;
 18692  
 18693  haiku*)
 18694    version_type=linux # correct to gnu/linux during the next big refactor
 18695    need_lib_prefix=no
 18696    need_version=no
 18697    dynamic_linker="$host_os runtime_loader"
 18698    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18699    soname_spec='$libname$release$shared_ext$major'
 18700    shlibpath_var=LIBRARY_PATH
 18701    shlibpath_overrides_runpath=no
 18702    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 18703    hardcode_into_libs=yes
 18704    ;;
 18705  
 18706  hpux9* | hpux10* | hpux11*)
 18707    # Give a soname corresponding to the major version so that dld.sl refuses to
 18708    # link against other versions.
 18709    version_type=sunos
 18710    need_lib_prefix=no
 18711    need_version=no
 18712    case $host_cpu in
 18713    ia64*)
 18714      shrext_cmds='.so'
 18715      hardcode_into_libs=yes
 18716      dynamic_linker="$host_os dld.so"
 18717      shlibpath_var=LD_LIBRARY_PATH
 18718      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 18719      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18720      soname_spec='$libname$release$shared_ext$major'
 18721      if test 32 = "$HPUX_IA64_MODE"; then
 18722        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 18723        sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 18724      else
 18725        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 18726        sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 18727      fi
 18728      ;;
 18729    hppa*64*)
 18730      shrext_cmds='.sl'
 18731      hardcode_into_libs=yes
 18732      dynamic_linker="$host_os dld.sl"
 18733      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 18734      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 18735      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18736      soname_spec='$libname$release$shared_ext$major'
 18737      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 18738      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 18739      ;;
 18740    *)
 18741      shrext_cmds='.sl'
 18742      dynamic_linker="$host_os dld.sl"
 18743      shlibpath_var=SHLIB_PATH
 18744      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 18745      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18746      soname_spec='$libname$release$shared_ext$major'
 18747      ;;
 18748    esac
 18749    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 18750    postinstall_cmds='chmod 555 $lib'
 18751    # or fails outright, so override atomically:
 18752    install_override_mode=555
 18753    ;;
 18754  
 18755  interix[3-9]*)
 18756    version_type=linux # correct to gnu/linux during the next big refactor
 18757    need_lib_prefix=no
 18758    need_version=no
 18759    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18760    soname_spec='$libname$release$shared_ext$major'
 18761    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 18762    shlibpath_var=LD_LIBRARY_PATH
 18763    shlibpath_overrides_runpath=no
 18764    hardcode_into_libs=yes
 18765    ;;
 18766  
 18767  irix5* | irix6* | nonstopux*)
 18768    case $host_os in
 18769      nonstopux*) version_type=nonstopux ;;
 18770      *)
 18771  	if test yes = "$lt_cv_prog_gnu_ld"; then
 18772  		version_type=linux # correct to gnu/linux during the next big refactor
 18773  	else
 18774  		version_type=irix
 18775  	fi ;;
 18776    esac
 18777    need_lib_prefix=no
 18778    need_version=no
 18779    soname_spec='$libname$release$shared_ext$major'
 18780    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 18781    case $host_os in
 18782    irix5* | nonstopux*)
 18783      libsuff= shlibsuff=
 18784      ;;
 18785    *)
 18786      case $LD in # libtool.m4 will add one of these switches to LD
 18787      *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 18788        libsuff= shlibsuff= libmagic=32-bit;;
 18789      *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 18790        libsuff=32 shlibsuff=N32 libmagic=N32;;
 18791      *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 18792        libsuff=64 shlibsuff=64 libmagic=64-bit;;
 18793      *) libsuff= shlibsuff= libmagic=never-match;;
 18794      esac
 18795      ;;
 18796    esac
 18797    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 18798    shlibpath_overrides_runpath=no
 18799    sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 18800    sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 18801    hardcode_into_libs=yes
 18802    ;;
 18803  
 18804  # No shared lib support for Linux oldld, aout, or coff.
 18805  linux*oldld* | linux*aout* | linux*coff*)
 18806    dynamic_linker=no
 18807    ;;
 18808  
 18809  linux*android*)
 18810    version_type=none # Android doesn't support versioned libraries.
 18811    need_lib_prefix=no
 18812    need_version=no
 18813    library_names_spec='$libname$release$shared_ext'
 18814    soname_spec='$libname$release$shared_ext'
 18815    finish_cmds=
 18816    shlibpath_var=LD_LIBRARY_PATH
 18817    shlibpath_overrides_runpath=yes
 18818  
 18819    # This implies no fast_install, which is unacceptable.
 18820    # Some rework will be needed to allow for fast_install
 18821    # before this can be enabled.
 18822    hardcode_into_libs=yes
 18823  
 18824    dynamic_linker='Android linker'
 18825    # Don't embed -rpath directories since the linker doesn't support them.
 18826    hardcode_libdir_flag_spec='-L$libdir'
 18827    ;;
 18828  
 18829  # This must be glibc/ELF.
 18830  linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 18831    version_type=linux # correct to gnu/linux during the next big refactor
 18832    need_lib_prefix=no
 18833    need_version=no
 18834    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18835    soname_spec='$libname$release$shared_ext$major'
 18836    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 18837    shlibpath_var=LD_LIBRARY_PATH
 18838    shlibpath_overrides_runpath=no
 18839  
 18840    # Some binutils ld are patched to set DT_RUNPATH
 18841    if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 18842    $as_echo_n "(cached) " >&6
 18843  else
 18844    lt_cv_shlibpath_overrides_runpath=no
 18845      save_LDFLAGS=$LDFLAGS
 18846      save_libdir=$libdir
 18847      eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 18848  	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 18849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 18850  /* end confdefs.h.  */
 18851  
 18852  int
 18853  main ()
 18854  {
 18855  
 18856    ;
 18857    return 0;
 18858  }
 18859  _ACEOF
 18860  if ac_fn_c_try_link "$LINENO"; then :
 18861    if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 18862    lt_cv_shlibpath_overrides_runpath=yes
 18863  fi
 18864  fi
 18865  rm -f core conftest.err conftest.$ac_objext \
 18866      conftest$ac_exeext conftest.$ac_ext
 18867      LDFLAGS=$save_LDFLAGS
 18868      libdir=$save_libdir
 18869  
 18870  fi
 18871  
 18872    shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 18873  
 18874    # This implies no fast_install, which is unacceptable.
 18875    # Some rework will be needed to allow for fast_install
 18876    # before this can be enabled.
 18877    hardcode_into_libs=yes
 18878  
 18879    # Ideally, we could use ldconfig to report *all* directores which are
 18880    # searched for libraries, however this is still not possible.  Aside from not
 18881    # being certain /sbin/ldconfig is available, command
 18882    # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 18883    # even though it is searched at run-time.  Try to do the best guess by
 18884    # appending ld.so.conf contents (and includes) to the search path.
 18885    if test -f /etc/ld.so.conf; then
 18886      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 18887      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 18888    fi
 18889  
 18890    # We used to test for /lib/ld.so.1 and disable shared libraries on
 18891    # powerpc, because MkLinux only supported shared libraries with the
 18892    # GNU dynamic linker.  Since this was broken with cross compilers,
 18893    # most powerpc-linux boxes support dynamic linking these days and
 18894    # people can always --disable-shared, the test was removed, and we
 18895    # assume the GNU/Linux dynamic linker is in use.
 18896    dynamic_linker='GNU/Linux ld.so'
 18897    ;;
 18898  
 18899  netbsd*)
 18900    version_type=sunos
 18901    need_lib_prefix=no
 18902    need_version=no
 18903    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 18904      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 18905      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 18906      dynamic_linker='NetBSD (a.out) ld.so'
 18907    else
 18908      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18909      soname_spec='$libname$release$shared_ext$major'
 18910      dynamic_linker='NetBSD ld.elf_so'
 18911    fi
 18912    shlibpath_var=LD_LIBRARY_PATH
 18913    shlibpath_overrides_runpath=yes
 18914    hardcode_into_libs=yes
 18915    ;;
 18916  
 18917  newsos6)
 18918    version_type=linux # correct to gnu/linux during the next big refactor
 18919    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18920    shlibpath_var=LD_LIBRARY_PATH
 18921    shlibpath_overrides_runpath=yes
 18922    ;;
 18923  
 18924  *nto* | *qnx*)
 18925    version_type=qnx
 18926    need_lib_prefix=no
 18927    need_version=no
 18928    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18929    soname_spec='$libname$release$shared_ext$major'
 18930    shlibpath_var=LD_LIBRARY_PATH
 18931    shlibpath_overrides_runpath=no
 18932    hardcode_into_libs=yes
 18933    dynamic_linker='ldqnx.so'
 18934    ;;
 18935  
 18936  openbsd* | bitrig*)
 18937    version_type=sunos
 18938    sys_lib_dlsearch_path_spec=/usr/lib
 18939    need_lib_prefix=no
 18940    if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 18941      need_version=no
 18942    else
 18943      need_version=yes
 18944    fi
 18945    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 18946    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 18947    shlibpath_var=LD_LIBRARY_PATH
 18948    shlibpath_overrides_runpath=yes
 18949    ;;
 18950  
 18951  os2*)
 18952    libname_spec='$name'
 18953    version_type=windows
 18954    shrext_cmds=.dll
 18955    need_version=no
 18956    need_lib_prefix=no
 18957    # OS/2 can only load a DLL with a base name of 8 characters or less.
 18958    soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 18959      v=$($ECHO $release$versuffix | tr -d .-);
 18960      n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 18961      $ECHO $n$v`$shared_ext'
 18962    library_names_spec='${libname}_dll.$libext'
 18963    dynamic_linker='OS/2 ld.exe'
 18964    shlibpath_var=BEGINLIBPATH
 18965    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 18966    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 18967    postinstall_cmds='base_file=`basename \$file`~
 18968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 18969      dldir=$destdir/`dirname \$dlpath`~
 18970      test -d \$dldir || mkdir -p \$dldir~
 18971      $install_prog $dir/$dlname \$dldir/$dlname~
 18972      chmod a+x \$dldir/$dlname~
 18973      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 18974        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 18975      fi'
 18976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 18977      dlpath=$dir/\$dldll~
 18978      $RM \$dlpath'
 18979    ;;
 18980  
 18981  osf3* | osf4* | osf5*)
 18982    version_type=osf
 18983    need_lib_prefix=no
 18984    need_version=no
 18985    soname_spec='$libname$release$shared_ext$major'
 18986    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 18987    shlibpath_var=LD_LIBRARY_PATH
 18988    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 18989    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 18990    ;;
 18991  
 18992  rdos*)
 18993    dynamic_linker=no
 18994    ;;
 18995  
 18996  solaris*)
 18997    version_type=linux # correct to gnu/linux during the next big refactor
 18998    need_lib_prefix=no
 18999    need_version=no
 19000    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 19001    soname_spec='$libname$release$shared_ext$major'
 19002    shlibpath_var=LD_LIBRARY_PATH
 19003    shlibpath_overrides_runpath=yes
 19004    hardcode_into_libs=yes
 19005    # ldd complains unless libraries are executable
 19006    postinstall_cmds='chmod +x $lib'
 19007    ;;
 19008  
 19009  sunos4*)
 19010    version_type=sunos
 19011    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 19012    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 19013    shlibpath_var=LD_LIBRARY_PATH
 19014    shlibpath_overrides_runpath=yes
 19015    if test yes = "$with_gnu_ld"; then
 19016      need_lib_prefix=no
 19017    fi
 19018    need_version=yes
 19019    ;;
 19020  
 19021  sysv4 | sysv4.3*)
 19022    version_type=linux # correct to gnu/linux during the next big refactor
 19023    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 19024    soname_spec='$libname$release$shared_ext$major'
 19025    shlibpath_var=LD_LIBRARY_PATH
 19026    case $host_vendor in
 19027      sni)
 19028        shlibpath_overrides_runpath=no
 19029        need_lib_prefix=no
 19030        runpath_var=LD_RUN_PATH
 19031        ;;
 19032      siemens)
 19033        need_lib_prefix=no
 19034        ;;
 19035      motorola)
 19036        need_lib_prefix=no
 19037        need_version=no
 19038        shlibpath_overrides_runpath=no
 19039        sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 19040        ;;
 19041    esac
 19042    ;;
 19043  
 19044  sysv4*MP*)
 19045    if test -d /usr/nec; then
 19046      version_type=linux # correct to gnu/linux during the next big refactor
 19047      library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 19048      soname_spec='$libname$shared_ext.$major'
 19049      shlibpath_var=LD_LIBRARY_PATH
 19050    fi
 19051    ;;
 19052  
 19053  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 19054    version_type=sco
 19055    need_lib_prefix=no
 19056    need_version=no
 19057    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 19058    soname_spec='$libname$release$shared_ext$major'
 19059    shlibpath_var=LD_LIBRARY_PATH
 19060    shlibpath_overrides_runpath=yes
 19061    hardcode_into_libs=yes
 19062    if test yes = "$with_gnu_ld"; then
 19063      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 19064    else
 19065      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 19066      case $host_os in
 19067        sco3.2v5*)
 19068          sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 19069  	;;
 19070      esac
 19071    fi
 19072    sys_lib_dlsearch_path_spec='/usr/lib'
 19073    ;;
 19074  
 19075  tpf*)
 19076    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 19077    version_type=linux # correct to gnu/linux during the next big refactor
 19078    need_lib_prefix=no
 19079    need_version=no
 19080    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 19081    shlibpath_var=LD_LIBRARY_PATH
 19082    shlibpath_overrides_runpath=no
 19083    hardcode_into_libs=yes
 19084    ;;
 19085  
 19086  uts4*)
 19087    version_type=linux # correct to gnu/linux during the next big refactor
 19088    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 19089    soname_spec='$libname$release$shared_ext$major'
 19090    shlibpath_var=LD_LIBRARY_PATH
 19091    ;;
 19092  
 19093  *)
 19094    dynamic_linker=no
 19095    ;;
 19096  esac
 19097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 19098  $as_echo "$dynamic_linker" >&6; }
 19099  test no = "$dynamic_linker" && can_build_shared=no
 19100  
 19101  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 19102  if test yes = "$GCC"; then
 19103    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 19104  fi
 19105  
 19106  if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 19107    sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 19108  fi
 19109  
 19110  if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 19111    sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 19112  fi
 19113  
 19114  # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 19115  configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 19116  
 19117  # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 19118  func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 19119  
 19120  # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 19121  configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 19122  
 19123  
 19124  
 19125  
 19126  
 19127  
 19128  
 19129  
 19130  
 19131  
 19132  
 19133  
 19134  
 19135  
 19136  
 19137  
 19138  
 19139  
 19140  
 19141  
 19142  
 19143  
 19144  
 19145  
 19146  
 19147  
 19148  
 19149  
 19150  
 19151  
 19152  
 19153  
 19154  
 19155  
 19156  
 19157  
 19158  
 19159  
 19160  
 19161  
 19162  
 19163  
 19164  
 19165  
 19166  
 19167  
 19168  
 19169  
 19170  
 19171  
 19172  
 19173  
 19174  
 19175  
 19176  
 19177  
 19178  
 19179  
 19180  
 19181  
 19182  
 19183  
 19184  
 19185  
 19186  
 19187  
 19188  
 19189  
 19190  
 19191  
 19192  
 19193  
 19194  
 19195  
 19196  
 19197  
 19198  
 19199  
 19200  
 19201  
 19202  
 19203  
 19204  
 19205  
 19206  
 19207  
 19208  
 19209  
 19210  
 19211  
 19212  
 19213  
 19214  
 19215  
 19216  
 19217  
 19218  
 19219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 19220  $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 19221  hardcode_action=
 19222  if test -n "$hardcode_libdir_flag_spec" ||
 19223     test -n "$runpath_var" ||
 19224     test yes = "$hardcode_automatic"; then
 19225  
 19226    # We can hardcode non-existent directories.
 19227    if test no != "$hardcode_direct" &&
 19228       # If the only mechanism to avoid hardcoding is shlibpath_var, we
 19229       # have to relink, otherwise we might link with an installed library
 19230       # when we should be linking with a yet-to-be-installed one
 19231       ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
 19232       test no != "$hardcode_minus_L"; then
 19233      # Linking always hardcodes the temporary library directory.
 19234      hardcode_action=relink
 19235    else
 19236      # We can link without hardcoding, and we can hardcode nonexisting dirs.
 19237      hardcode_action=immediate
 19238    fi
 19239  else
 19240    # We cannot hardcode anything, or else we can only hardcode existing
 19241    # directories.
 19242    hardcode_action=unsupported
 19243  fi
 19244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 19245  $as_echo "$hardcode_action" >&6; }
 19246  
 19247  if test relink = "$hardcode_action" ||
 19248     test yes = "$inherit_rpath"; then
 19249    # Fast installation is not supported
 19250    enable_fast_install=no
 19251  elif test yes = "$shlibpath_overrides_runpath" ||
 19252       test no = "$enable_shared"; then
 19253    # Fast installation is not necessary
 19254    enable_fast_install=needless
 19255  fi
 19256  
 19257  
 19258  
 19259  
 19260  
 19261  
 19262    if test yes != "$enable_dlopen"; then
 19263    enable_dlopen=unknown
 19264    enable_dlopen_self=unknown
 19265    enable_dlopen_self_static=unknown
 19266  else
 19267    lt_cv_dlopen=no
 19268    lt_cv_dlopen_libs=
 19269  
 19270    case $host_os in
 19271    beos*)
 19272      lt_cv_dlopen=load_add_on
 19273      lt_cv_dlopen_libs=
 19274      lt_cv_dlopen_self=yes
 19275      ;;
 19276  
 19277    mingw* | pw32* | cegcc*)
 19278      lt_cv_dlopen=LoadLibrary
 19279      lt_cv_dlopen_libs=
 19280      ;;
 19281  
 19282    cygwin*)
 19283      lt_cv_dlopen=dlopen
 19284      lt_cv_dlopen_libs=
 19285      ;;
 19286  
 19287    darwin*)
 19288      # if libdl is installed we need to link against it
 19289      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 19290  $as_echo_n "checking for dlopen in -ldl... " >&6; }
 19291  if ${ac_cv_lib_dl_dlopen+:} false; then :
 19292    $as_echo_n "(cached) " >&6
 19293  else
 19294    ac_check_lib_save_LIBS=$LIBS
 19295  LIBS="-ldl  $LIBS"
 19296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19297  /* end confdefs.h.  */
 19298  
 19299  /* Override any GCC internal prototype to avoid an error.
 19300     Use char because int might match the return type of a GCC
 19301     builtin and then its argument prototype would still apply.  */
 19302  #ifdef __cplusplus
 19303  extern "C"
 19304  #endif
 19305  char dlopen ();
 19306  int
 19307  main ()
 19308  {
 19309  return dlopen ();
 19310    ;
 19311    return 0;
 19312  }
 19313  _ACEOF
 19314  if ac_fn_c_try_link "$LINENO"; then :
 19315    ac_cv_lib_dl_dlopen=yes
 19316  else
 19317    ac_cv_lib_dl_dlopen=no
 19318  fi
 19319  rm -f core conftest.err conftest.$ac_objext \
 19320      conftest$ac_exeext conftest.$ac_ext
 19321  LIBS=$ac_check_lib_save_LIBS
 19322  fi
 19323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 19324  $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 19325  if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 19326    lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 19327  else
 19328  
 19329      lt_cv_dlopen=dyld
 19330      lt_cv_dlopen_libs=
 19331      lt_cv_dlopen_self=yes
 19332  
 19333  fi
 19334  
 19335      ;;
 19336  
 19337    tpf*)
 19338      # Don't try to run any link tests for TPF.  We know it's impossible
 19339      # because TPF is a cross-compiler, and we know how we open DSOs.
 19340      lt_cv_dlopen=dlopen
 19341      lt_cv_dlopen_libs=
 19342      lt_cv_dlopen_self=no
 19343      ;;
 19344  
 19345    *)
 19346      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 19347  if test "x$ac_cv_func_shl_load" = xyes; then :
 19348    lt_cv_dlopen=shl_load
 19349  else
 19350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 19351  $as_echo_n "checking for shl_load in -ldld... " >&6; }
 19352  if ${ac_cv_lib_dld_shl_load+:} false; then :
 19353    $as_echo_n "(cached) " >&6
 19354  else
 19355    ac_check_lib_save_LIBS=$LIBS
 19356  LIBS="-ldld  $LIBS"
 19357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19358  /* end confdefs.h.  */
 19359  
 19360  /* Override any GCC internal prototype to avoid an error.
 19361     Use char because int might match the return type of a GCC
 19362     builtin and then its argument prototype would still apply.  */
 19363  #ifdef __cplusplus
 19364  extern "C"
 19365  #endif
 19366  char shl_load ();
 19367  int
 19368  main ()
 19369  {
 19370  return shl_load ();
 19371    ;
 19372    return 0;
 19373  }
 19374  _ACEOF
 19375  if ac_fn_c_try_link "$LINENO"; then :
 19376    ac_cv_lib_dld_shl_load=yes
 19377  else
 19378    ac_cv_lib_dld_shl_load=no
 19379  fi
 19380  rm -f core conftest.err conftest.$ac_objext \
 19381      conftest$ac_exeext conftest.$ac_ext
 19382  LIBS=$ac_check_lib_save_LIBS
 19383  fi
 19384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 19385  $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 19386  if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 19387    lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
 19388  else
 19389    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 19390  if test "x$ac_cv_func_dlopen" = xyes; then :
 19391    lt_cv_dlopen=dlopen
 19392  else
 19393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 19394  $as_echo_n "checking for dlopen in -ldl... " >&6; }
 19395  if ${ac_cv_lib_dl_dlopen+:} false; then :
 19396    $as_echo_n "(cached) " >&6
 19397  else
 19398    ac_check_lib_save_LIBS=$LIBS
 19399  LIBS="-ldl  $LIBS"
 19400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19401  /* end confdefs.h.  */
 19402  
 19403  /* Override any GCC internal prototype to avoid an error.
 19404     Use char because int might match the return type of a GCC
 19405     builtin and then its argument prototype would still apply.  */
 19406  #ifdef __cplusplus
 19407  extern "C"
 19408  #endif
 19409  char dlopen ();
 19410  int
 19411  main ()
 19412  {
 19413  return dlopen ();
 19414    ;
 19415    return 0;
 19416  }
 19417  _ACEOF
 19418  if ac_fn_c_try_link "$LINENO"; then :
 19419    ac_cv_lib_dl_dlopen=yes
 19420  else
 19421    ac_cv_lib_dl_dlopen=no
 19422  fi
 19423  rm -f core conftest.err conftest.$ac_objext \
 19424      conftest$ac_exeext conftest.$ac_ext
 19425  LIBS=$ac_check_lib_save_LIBS
 19426  fi
 19427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 19428  $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 19429  if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 19430    lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
 19431  else
 19432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 19433  $as_echo_n "checking for dlopen in -lsvld... " >&6; }
 19434  if ${ac_cv_lib_svld_dlopen+:} false; then :
 19435    $as_echo_n "(cached) " >&6
 19436  else
 19437    ac_check_lib_save_LIBS=$LIBS
 19438  LIBS="-lsvld  $LIBS"
 19439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19440  /* end confdefs.h.  */
 19441  
 19442  /* Override any GCC internal prototype to avoid an error.
 19443     Use char because int might match the return type of a GCC
 19444     builtin and then its argument prototype would still apply.  */
 19445  #ifdef __cplusplus
 19446  extern "C"
 19447  #endif
 19448  char dlopen ();
 19449  int
 19450  main ()
 19451  {
 19452  return dlopen ();
 19453    ;
 19454    return 0;
 19455  }
 19456  _ACEOF
 19457  if ac_fn_c_try_link "$LINENO"; then :
 19458    ac_cv_lib_svld_dlopen=yes
 19459  else
 19460    ac_cv_lib_svld_dlopen=no
 19461  fi
 19462  rm -f core conftest.err conftest.$ac_objext \
 19463      conftest$ac_exeext conftest.$ac_ext
 19464  LIBS=$ac_check_lib_save_LIBS
 19465  fi
 19466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 19467  $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 19468  if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 19469    lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
 19470  else
 19471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 19472  $as_echo_n "checking for dld_link in -ldld... " >&6; }
 19473  if ${ac_cv_lib_dld_dld_link+:} false; then :
 19474    $as_echo_n "(cached) " >&6
 19475  else
 19476    ac_check_lib_save_LIBS=$LIBS
 19477  LIBS="-ldld  $LIBS"
 19478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19479  /* end confdefs.h.  */
 19480  
 19481  /* Override any GCC internal prototype to avoid an error.
 19482     Use char because int might match the return type of a GCC
 19483     builtin and then its argument prototype would still apply.  */
 19484  #ifdef __cplusplus
 19485  extern "C"
 19486  #endif
 19487  char dld_link ();
 19488  int
 19489  main ()
 19490  {
 19491  return dld_link ();
 19492    ;
 19493    return 0;
 19494  }
 19495  _ACEOF
 19496  if ac_fn_c_try_link "$LINENO"; then :
 19497    ac_cv_lib_dld_dld_link=yes
 19498  else
 19499    ac_cv_lib_dld_dld_link=no
 19500  fi
 19501  rm -f core conftest.err conftest.$ac_objext \
 19502      conftest$ac_exeext conftest.$ac_ext
 19503  LIBS=$ac_check_lib_save_LIBS
 19504  fi
 19505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 19506  $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 19507  if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 19508    lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
 19509  fi
 19510  
 19511  
 19512  fi
 19513  
 19514  
 19515  fi
 19516  
 19517  
 19518  fi
 19519  
 19520  
 19521  fi
 19522  
 19523  
 19524  fi
 19525  
 19526      ;;
 19527    esac
 19528  
 19529    if test no = "$lt_cv_dlopen"; then
 19530      enable_dlopen=no
 19531    else
 19532      enable_dlopen=yes
 19533    fi
 19534  
 19535    case $lt_cv_dlopen in
 19536    dlopen)
 19537      save_CPPFLAGS=$CPPFLAGS
 19538      test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 19539  
 19540      save_LDFLAGS=$LDFLAGS
 19541      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 19542  
 19543      save_LIBS=$LIBS
 19544      LIBS="$lt_cv_dlopen_libs $LIBS"
 19545  
 19546      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 19547  $as_echo_n "checking whether a program can dlopen itself... " >&6; }
 19548  if ${lt_cv_dlopen_self+:} false; then :
 19549    $as_echo_n "(cached) " >&6
 19550  else
 19551    	  if test yes = "$cross_compiling"; then :
 19552    lt_cv_dlopen_self=cross
 19553  else
 19554    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 19555    lt_status=$lt_dlunknown
 19556    cat > conftest.$ac_ext <<_LT_EOF
 19557  #line $LINENO "configure"
 19558  #include "confdefs.h"
 19559  
 19560  #if HAVE_DLFCN_H
 19561  #include <dlfcn.h>
 19562  #endif
 19563  
 19564  #include <stdio.h>
 19565  
 19566  #ifdef RTLD_GLOBAL
 19567  #  define LT_DLGLOBAL		RTLD_GLOBAL
 19568  #else
 19569  #  ifdef DL_GLOBAL
 19570  #    define LT_DLGLOBAL		DL_GLOBAL
 19571  #  else
 19572  #    define LT_DLGLOBAL		0
 19573  #  endif
 19574  #endif
 19575  
 19576  /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 19577     find out it does not work in some platform. */
 19578  #ifndef LT_DLLAZY_OR_NOW
 19579  #  ifdef RTLD_LAZY
 19580  #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 19581  #  else
 19582  #    ifdef DL_LAZY
 19583  #      define LT_DLLAZY_OR_NOW		DL_LAZY
 19584  #    else
 19585  #      ifdef RTLD_NOW
 19586  #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 19587  #      else
 19588  #        ifdef DL_NOW
 19589  #          define LT_DLLAZY_OR_NOW	DL_NOW
 19590  #        else
 19591  #          define LT_DLLAZY_OR_NOW	0
 19592  #        endif
 19593  #      endif
 19594  #    endif
 19595  #  endif
 19596  #endif
 19597  
 19598  /* When -fvisibility=hidden is used, assume the code has been annotated
 19599     correspondingly for the symbols needed.  */
 19600  #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 19601  int fnord () __attribute__((visibility("default")));
 19602  #endif
 19603  
 19604  int fnord () { return 42; }
 19605  int main ()
 19606  {
 19607    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 19608    int status = $lt_dlunknown;
 19609  
 19610    if (self)
 19611      {
 19612        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 19613        else
 19614          {
 19615  	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 19616            else puts (dlerror ());
 19617  	}
 19618        /* dlclose (self); */
 19619      }
 19620    else
 19621      puts (dlerror ());
 19622  
 19623    return status;
 19624  }
 19625  _LT_EOF
 19626    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 19627    (eval $ac_link) 2>&5
 19628    ac_status=$?
 19629    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 19630    test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 19631      (./conftest; exit; ) >&5 2>/dev/null
 19632      lt_status=$?
 19633      case x$lt_status in
 19634        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 19635        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 19636        x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 19637      esac
 19638    else :
 19639      # compilation failed
 19640      lt_cv_dlopen_self=no
 19641    fi
 19642  fi
 19643  rm -fr conftest*
 19644  
 19645  
 19646  fi
 19647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 19648  $as_echo "$lt_cv_dlopen_self" >&6; }
 19649  
 19650      if test yes = "$lt_cv_dlopen_self"; then
 19651        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 19652        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 19653  $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 19654  if ${lt_cv_dlopen_self_static+:} false; then :
 19655    $as_echo_n "(cached) " >&6
 19656  else
 19657    	  if test yes = "$cross_compiling"; then :
 19658    lt_cv_dlopen_self_static=cross
 19659  else
 19660    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 19661    lt_status=$lt_dlunknown
 19662    cat > conftest.$ac_ext <<_LT_EOF
 19663  #line $LINENO "configure"
 19664  #include "confdefs.h"
 19665  
 19666  #if HAVE_DLFCN_H
 19667  #include <dlfcn.h>
 19668  #endif
 19669  
 19670  #include <stdio.h>
 19671  
 19672  #ifdef RTLD_GLOBAL
 19673  #  define LT_DLGLOBAL		RTLD_GLOBAL
 19674  #else
 19675  #  ifdef DL_GLOBAL
 19676  #    define LT_DLGLOBAL		DL_GLOBAL
 19677  #  else
 19678  #    define LT_DLGLOBAL		0
 19679  #  endif
 19680  #endif
 19681  
 19682  /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 19683     find out it does not work in some platform. */
 19684  #ifndef LT_DLLAZY_OR_NOW
 19685  #  ifdef RTLD_LAZY
 19686  #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 19687  #  else
 19688  #    ifdef DL_LAZY
 19689  #      define LT_DLLAZY_OR_NOW		DL_LAZY
 19690  #    else
 19691  #      ifdef RTLD_NOW
 19692  #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 19693  #      else
 19694  #        ifdef DL_NOW
 19695  #          define LT_DLLAZY_OR_NOW	DL_NOW
 19696  #        else
 19697  #          define LT_DLLAZY_OR_NOW	0
 19698  #        endif
 19699  #      endif
 19700  #    endif
 19701  #  endif
 19702  #endif
 19703  
 19704  /* When -fvisibility=hidden is used, assume the code has been annotated
 19705     correspondingly for the symbols needed.  */
 19706  #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 19707  int fnord () __attribute__((visibility("default")));
 19708  #endif
 19709  
 19710  int fnord () { return 42; }
 19711  int main ()
 19712  {
 19713    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 19714    int status = $lt_dlunknown;
 19715  
 19716    if (self)
 19717      {
 19718        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 19719        else
 19720          {
 19721  	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 19722            else puts (dlerror ());
 19723  	}
 19724        /* dlclose (self); */
 19725      }
 19726    else
 19727      puts (dlerror ());
 19728  
 19729    return status;
 19730  }
 19731  _LT_EOF
 19732    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 19733    (eval $ac_link) 2>&5
 19734    ac_status=$?
 19735    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 19736    test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
 19737      (./conftest; exit; ) >&5 2>/dev/null
 19738      lt_status=$?
 19739      case x$lt_status in
 19740        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 19741        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 19742        x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 19743      esac
 19744    else :
 19745      # compilation failed
 19746      lt_cv_dlopen_self_static=no
 19747    fi
 19748  fi
 19749  rm -fr conftest*
 19750  
 19751  
 19752  fi
 19753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 19754  $as_echo "$lt_cv_dlopen_self_static" >&6; }
 19755      fi
 19756  
 19757      CPPFLAGS=$save_CPPFLAGS
 19758      LDFLAGS=$save_LDFLAGS
 19759      LIBS=$save_LIBS
 19760      ;;
 19761    esac
 19762  
 19763    case $lt_cv_dlopen_self in
 19764    yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 19765    *) enable_dlopen_self=unknown ;;
 19766    esac
 19767  
 19768    case $lt_cv_dlopen_self_static in
 19769    yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 19770    *) enable_dlopen_self_static=unknown ;;
 19771    esac
 19772  fi
 19773  
 19774  
 19775  
 19776  
 19777  
 19778  
 19779  
 19780  
 19781  
 19782  
 19783  
 19784  
 19785  
 19786  
 19787  
 19788  
 19789  
 19790  striplib=
 19791  old_striplib=
 19792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 19793  $as_echo_n "checking whether stripping libraries is possible... " >&6; }
 19794  if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 19795    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 19796    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 19797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 19798  $as_echo "yes" >&6; }
 19799  else
 19800  # FIXME - insert some real tests, host_os isn't really good enough
 19801    case $host_os in
 19802    darwin*)
 19803      if test -n "$STRIP"; then
 19804        striplib="$STRIP -x"
 19805        old_striplib="$STRIP -S"
 19806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 19807  $as_echo "yes" >&6; }
 19808      else
 19809        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 19810  $as_echo "no" >&6; }
 19811      fi
 19812      ;;
 19813    *)
 19814      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 19815  $as_echo "no" >&6; }
 19816      ;;
 19817    esac
 19818  fi
 19819  
 19820  
 19821  
 19822  
 19823  
 19824  
 19825  
 19826  
 19827  
 19828  
 19829  
 19830  
 19831    # Report what library types will actually be built
 19832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 19833  $as_echo_n "checking if libtool supports shared libraries... " >&6; }
 19834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 19835  $as_echo "$can_build_shared" >&6; }
 19836  
 19837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 19838  $as_echo_n "checking whether to build shared libraries... " >&6; }
 19839    test no = "$can_build_shared" && enable_shared=no
 19840  
 19841    # On AIX, shared libraries and static libraries use the same namespace, and
 19842    # are all built from PIC.
 19843    case $host_os in
 19844    aix3*)
 19845      test yes = "$enable_shared" && enable_static=no
 19846      if test -n "$RANLIB"; then
 19847        archive_cmds="$archive_cmds~\$RANLIB \$lib"
 19848        postinstall_cmds='$RANLIB $lib'
 19849      fi
 19850      ;;
 19851  
 19852    aix[4-9]*)
 19853      if test ia64 != "$host_cpu"; then
 19854        case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 19855        yes,aix,yes) ;;			# shared object as lib.so file only
 19856        yes,svr4,*) ;;			# shared object as lib.so archive member only
 19857        yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 19858        esac
 19859      fi
 19860      ;;
 19861    esac
 19862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 19863  $as_echo "$enable_shared" >&6; }
 19864  
 19865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 19866  $as_echo_n "checking whether to build static libraries... " >&6; }
 19867    # Make sure either enable_shared or enable_static is yes.
 19868    test yes = "$enable_shared" || enable_static=yes
 19869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 19870  $as_echo "$enable_static" >&6; }
 19871  
 19872  
 19873  
 19874  
 19875  fi
 19876  ac_ext=c
 19877  ac_cpp='$CPP $CPPFLAGS'
 19878  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 19879  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 19880  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 19881  
 19882  CC=$lt_save_CC
 19883  
 19884        if test -n "$CXX" && ( test no != "$CXX" &&
 19885      ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 19886      (test g++ != "$CXX"))); then
 19887    ac_ext=cpp
 19888  ac_cpp='$CXXCPP $CPPFLAGS'
 19889  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 19890  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 19891  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 19892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 19893  $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 19894  if test -z "$CXXCPP"; then
 19895    if ${ac_cv_prog_CXXCPP+:} false; then :
 19896    $as_echo_n "(cached) " >&6
 19897  else
 19898        # Double quotes because CXXCPP needs to be expanded
 19899      for CXXCPP in "$CXX -E" "/lib/cpp"
 19900      do
 19901        ac_preproc_ok=false
 19902  for ac_cxx_preproc_warn_flag in '' yes
 19903  do
 19904    # Use a header file that comes with gcc, so configuring glibc
 19905    # with a fresh cross-compiler works.
 19906    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 19907    # <limits.h> exists even on freestanding compilers.
 19908    # On the NeXT, cc -E runs the code through the compiler's parser,
 19909    # not just through cpp. "Syntax error" is here to catch this case.
 19910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19911  /* end confdefs.h.  */
 19912  #ifdef __STDC__
 19913  # include <limits.h>
 19914  #else
 19915  # include <assert.h>
 19916  #endif
 19917  		     Syntax error
 19918  _ACEOF
 19919  if ac_fn_cxx_try_cpp "$LINENO"; then :
 19920  
 19921  else
 19922    # Broken: fails on valid input.
 19923  continue
 19924  fi
 19925  rm -f conftest.err conftest.i conftest.$ac_ext
 19926  
 19927    # OK, works on sane cases.  Now check whether nonexistent headers
 19928    # can be detected and how.
 19929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19930  /* end confdefs.h.  */
 19931  #include <ac_nonexistent.h>
 19932  _ACEOF
 19933  if ac_fn_cxx_try_cpp "$LINENO"; then :
 19934    # Broken: success on invalid input.
 19935  continue
 19936  else
 19937    # Passes both tests.
 19938  ac_preproc_ok=:
 19939  break
 19940  fi
 19941  rm -f conftest.err conftest.i conftest.$ac_ext
 19942  
 19943  done
 19944  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 19945  rm -f conftest.i conftest.err conftest.$ac_ext
 19946  if $ac_preproc_ok; then :
 19947    break
 19948  fi
 19949  
 19950      done
 19951      ac_cv_prog_CXXCPP=$CXXCPP
 19952  
 19953  fi
 19954    CXXCPP=$ac_cv_prog_CXXCPP
 19955  else
 19956    ac_cv_prog_CXXCPP=$CXXCPP
 19957  fi
 19958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 19959  $as_echo "$CXXCPP" >&6; }
 19960  ac_preproc_ok=false
 19961  for ac_cxx_preproc_warn_flag in '' yes
 19962  do
 19963    # Use a header file that comes with gcc, so configuring glibc
 19964    # with a fresh cross-compiler works.
 19965    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 19966    # <limits.h> exists even on freestanding compilers.
 19967    # On the NeXT, cc -E runs the code through the compiler's parser,
 19968    # not just through cpp. "Syntax error" is here to catch this case.
 19969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19970  /* end confdefs.h.  */
 19971  #ifdef __STDC__
 19972  # include <limits.h>
 19973  #else
 19974  # include <assert.h>
 19975  #endif
 19976  		     Syntax error
 19977  _ACEOF
 19978  if ac_fn_cxx_try_cpp "$LINENO"; then :
 19979  
 19980  else
 19981    # Broken: fails on valid input.
 19982  continue
 19983  fi
 19984  rm -f conftest.err conftest.i conftest.$ac_ext
 19985  
 19986    # OK, works on sane cases.  Now check whether nonexistent headers
 19987    # can be detected and how.
 19988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19989  /* end confdefs.h.  */
 19990  #include <ac_nonexistent.h>
 19991  _ACEOF
 19992  if ac_fn_cxx_try_cpp "$LINENO"; then :
 19993    # Broken: success on invalid input.
 19994  continue
 19995  else
 19996    # Passes both tests.
 19997  ac_preproc_ok=:
 19998  break
 19999  fi
 20000  rm -f conftest.err conftest.i conftest.$ac_ext
 20001  
 20002  done
 20003  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 20004  rm -f conftest.i conftest.err conftest.$ac_ext
 20005  if $ac_preproc_ok; then :
 20006  
 20007  else
 20008    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 20009  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 20010  as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 20011  See \`config.log' for more details" "$LINENO" 5; }
 20012  fi
 20013  
 20014  ac_ext=c
 20015  ac_cpp='$CPP $CPPFLAGS'
 20016  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 20017  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 20018  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 20019  
 20020  else
 20021    _lt_caught_CXX_error=yes
 20022  fi
 20023  
 20024  ac_ext=cpp
 20025  ac_cpp='$CXXCPP $CPPFLAGS'
 20026  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 20027  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 20028  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 20029  
 20030  archive_cmds_need_lc_CXX=no
 20031  allow_undefined_flag_CXX=
 20032  always_export_symbols_CXX=no
 20033  archive_expsym_cmds_CXX=
 20034  compiler_needs_object_CXX=no
 20035  export_dynamic_flag_spec_CXX=
 20036  hardcode_direct_CXX=no
 20037  hardcode_direct_absolute_CXX=no
 20038  hardcode_libdir_flag_spec_CXX=
 20039  hardcode_libdir_separator_CXX=
 20040  hardcode_minus_L_CXX=no
 20041  hardcode_shlibpath_var_CXX=unsupported
 20042  hardcode_automatic_CXX=no
 20043  inherit_rpath_CXX=no
 20044  module_cmds_CXX=
 20045  module_expsym_cmds_CXX=
 20046  link_all_deplibs_CXX=unknown
 20047  old_archive_cmds_CXX=$old_archive_cmds
 20048  reload_flag_CXX=$reload_flag
 20049  reload_cmds_CXX=$reload_cmds
 20050  no_undefined_flag_CXX=
 20051  whole_archive_flag_spec_CXX=
 20052  enable_shared_with_static_runtimes_CXX=no
 20053  
 20054  # Source file extension for C++ test sources.
 20055  ac_ext=cpp
 20056  
 20057  # Object file extension for compiled C++ test sources.
 20058  objext=o
 20059  objext_CXX=$objext
 20060  
 20061  # No sense in running all these tests if we already determined that
 20062  # the CXX compiler isn't working.  Some variables (like enable_shared)
 20063  # are currently assumed to apply to all compilers on this platform,
 20064  # and will be corrupted by setting them based on a non-working compiler.
 20065  if test yes != "$_lt_caught_CXX_error"; then
 20066    # Code to be used in simple compile tests
 20067    lt_simple_compile_test_code="int some_variable = 0;"
 20068  
 20069    # Code to be used in simple link tests
 20070    lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 20071  
 20072    # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 20073  
 20074  
 20075  
 20076  
 20077  
 20078  
 20079  # If no C compiler was specified, use CC.
 20080  LTCC=${LTCC-"$CC"}
 20081  
 20082  # If no C compiler flags were specified, use CFLAGS.
 20083  LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 20084  
 20085  # Allow CC to be a program name with arguments.
 20086  compiler=$CC
 20087  
 20088  
 20089    # save warnings/boilerplate of simple test code
 20090    ac_outfile=conftest.$ac_objext
 20091  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 20092  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 20093  _lt_compiler_boilerplate=`cat conftest.err`
 20094  $RM conftest*
 20095  
 20096    ac_outfile=conftest.$ac_objext
 20097  echo "$lt_simple_link_test_code" >conftest.$ac_ext
 20098  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 20099  _lt_linker_boilerplate=`cat conftest.err`
 20100  $RM -r conftest*
 20101  
 20102  
 20103    # Allow CC to be a program name with arguments.
 20104    lt_save_CC=$CC
 20105    lt_save_CFLAGS=$CFLAGS
 20106    lt_save_LD=$LD
 20107    lt_save_GCC=$GCC
 20108    GCC=$GXX
 20109    lt_save_with_gnu_ld=$with_gnu_ld
 20110    lt_save_path_LD=$lt_cv_path_LD
 20111    if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 20112      lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 20113    else
 20114      $as_unset lt_cv_prog_gnu_ld
 20115    fi
 20116    if test -n "${lt_cv_path_LDCXX+set}"; then
 20117      lt_cv_path_LD=$lt_cv_path_LDCXX
 20118    else
 20119      $as_unset lt_cv_path_LD
 20120    fi
 20121    test -z "${LDCXX+set}" || LD=$LDCXX
 20122    CC=${CXX-"c++"}
 20123    CFLAGS=$CXXFLAGS
 20124    compiler=$CC
 20125    compiler_CXX=$CC
 20126    func_cc_basename $compiler
 20127  cc_basename=$func_cc_basename_result
 20128  
 20129  
 20130    if test -n "$compiler"; then
 20131      # We don't want -fno-exception when compiling C++ code, so set the
 20132      # no_builtin_flag separately
 20133      if test yes = "$GXX"; then
 20134        lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 20135      else
 20136        lt_prog_compiler_no_builtin_flag_CXX=
 20137      fi
 20138  
 20139      if test yes = "$GXX"; then
 20140        # Set up default GNU C++ configuration
 20141  
 20142  
 20143  
 20144  # Check whether --with-gnu-ld was given.
 20145  if test "${with_gnu_ld+set}" = set; then :
 20146    withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
 20147  else
 20148    with_gnu_ld=no
 20149  fi
 20150  
 20151  ac_prog=ld
 20152  if test yes = "$GCC"; then
 20153    # Check if gcc -print-prog-name=ld gives a path.
 20154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 20155  $as_echo_n "checking for ld used by $CC... " >&6; }
 20156    case $host in
 20157    *-*-mingw*)
 20158      # gcc leaves a trailing carriage return, which upsets mingw
 20159      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 20160    *)
 20161      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 20162    esac
 20163    case $ac_prog in
 20164      # Accept absolute paths.
 20165      [\\/]* | ?:[\\/]*)
 20166        re_direlt='/[^/][^/]*/\.\./'
 20167        # Canonicalize the pathname of ld
 20168        ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 20169        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 20170  	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 20171        done
 20172        test -z "$LD" && LD=$ac_prog
 20173        ;;
 20174    "")
 20175      # If it fails, then pretend we aren't using GCC.
 20176      ac_prog=ld
 20177      ;;
 20178    *)
 20179      # If it is relative, then search for the first ld in PATH.
 20180      with_gnu_ld=unknown
 20181      ;;
 20182    esac
 20183  elif test yes = "$with_gnu_ld"; then
 20184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 20185  $as_echo_n "checking for GNU ld... " >&6; }
 20186  else
 20187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 20188  $as_echo_n "checking for non-GNU ld... " >&6; }
 20189  fi
 20190  if ${lt_cv_path_LD+:} false; then :
 20191    $as_echo_n "(cached) " >&6
 20192  else
 20193    if test -z "$LD"; then
 20194    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 20195    for ac_dir in $PATH; do
 20196      IFS=$lt_save_ifs
 20197      test -z "$ac_dir" && ac_dir=.
 20198      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 20199        lt_cv_path_LD=$ac_dir/$ac_prog
 20200        # Check to see if the program is GNU ld.  I'd rather use --version,
 20201        # but apparently some variants of GNU ld only accept -v.
 20202        # Break only if it was the GNU/non-GNU ld that we prefer.
 20203        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 20204        *GNU* | *'with BFD'*)
 20205  	test no != "$with_gnu_ld" && break
 20206  	;;
 20207        *)
 20208  	test yes != "$with_gnu_ld" && break
 20209  	;;
 20210        esac
 20211      fi
 20212    done
 20213    IFS=$lt_save_ifs
 20214  else
 20215    lt_cv_path_LD=$LD # Let the user override the test with a path.
 20216  fi
 20217  fi
 20218  
 20219  LD=$lt_cv_path_LD
 20220  if test -n "$LD"; then
 20221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 20222  $as_echo "$LD" >&6; }
 20223  else
 20224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 20225  $as_echo "no" >&6; }
 20226  fi
 20227  test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 20228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 20229  $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 20230  if ${lt_cv_prog_gnu_ld+:} false; then :
 20231    $as_echo_n "(cached) " >&6
 20232  else
 20233    # I'd rather use --version here, but apparently some GNU lds only accept -v.
 20234  case `$LD -v 2>&1 </dev/null` in
 20235  *GNU* | *'with BFD'*)
 20236    lt_cv_prog_gnu_ld=yes
 20237    ;;
 20238  *)
 20239    lt_cv_prog_gnu_ld=no
 20240    ;;
 20241  esac
 20242  fi
 20243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 20244  $as_echo "$lt_cv_prog_gnu_ld" >&6; }
 20245  with_gnu_ld=$lt_cv_prog_gnu_ld
 20246  
 20247  
 20248  
 20249  
 20250  
 20251  
 20252  
 20253        # Check if GNU C++ uses GNU ld as the underlying linker, since the
 20254        # archiving commands below assume that GNU ld is being used.
 20255        if test yes = "$with_gnu_ld"; then
 20256          archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 20257          archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 20258  
 20259          hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 20260          export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 20261  
 20262          # If archive_cmds runs LD, not CC, wlarc should be empty
 20263          # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 20264          #     investigate it a little bit more. (MM)
 20265          wlarc='$wl'
 20266  
 20267          # ancient GNU ld didn't support --whole-archive et. al.
 20268          if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 20269  	  $GREP 'no-whole-archive' > /dev/null; then
 20270            whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 20271          else
 20272            whole_archive_flag_spec_CXX=
 20273          fi
 20274        else
 20275          with_gnu_ld=no
 20276          wlarc=
 20277  
 20278          # A generic and very simple default shared library creation
 20279          # command for GNU C++ for the case where it uses the native
 20280          # linker, instead of GNU ld.  If possible, this setting should
 20281          # overridden to take advantage of the native linker features on
 20282          # the platform it is being used on.
 20283          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 20284        fi
 20285  
 20286        # Commands to make compiler produce verbose output that lists
 20287        # what "hidden" libraries, object files and flags are used when
 20288        # linking a shared library.
 20289        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 20290  
 20291      else
 20292        GXX=no
 20293        with_gnu_ld=no
 20294        wlarc=
 20295      fi
 20296  
 20297      # PORTME: fill in a description of your system's C++ link characteristics
 20298      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 20299  $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 20300      ld_shlibs_CXX=yes
 20301      case $host_os in
 20302        aix3*)
 20303          # FIXME: insert proper C++ library support
 20304          ld_shlibs_CXX=no
 20305          ;;
 20306        aix[4-9]*)
 20307          if test ia64 = "$host_cpu"; then
 20308            # On IA64, the linker does run time linking by default, so we don't
 20309            # have to do anything special.
 20310            aix_use_runtimelinking=no
 20311            exp_sym_flag='-Bexport'
 20312            no_entry_flag=
 20313          else
 20314            aix_use_runtimelinking=no
 20315  
 20316            # Test if we are trying to use run time linking or normal
 20317            # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 20318            # have runtime linking enabled, and use it for executables.
 20319            # For shared libraries, we enable/disable runtime linking
 20320            # depending on the kind of the shared library created -
 20321            # when "with_aix_soname,aix_use_runtimelinking" is:
 20322            # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 20323            # "aix,yes"  lib.so          shared, rtl:yes, for executables
 20324            #            lib.a           static archive
 20325            # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 20326            #            lib.a(lib.so.V) shared, rtl:no,  for executables
 20327            # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 20328            #            lib.a(lib.so.V) shared, rtl:no
 20329            # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 20330            #            lib.a           static archive
 20331            case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 20332  	    for ld_flag in $LDFLAGS; do
 20333  	      case $ld_flag in
 20334  	      *-brtl*)
 20335  	        aix_use_runtimelinking=yes
 20336  	        break
 20337  	        ;;
 20338  	      esac
 20339  	    done
 20340  	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 20341  	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
 20342  	      # so we don't have lib.a shared libs to link our executables.
 20343  	      # We have to force runtime linking in this case.
 20344  	      aix_use_runtimelinking=yes
 20345  	      LDFLAGS="$LDFLAGS -Wl,-brtl"
 20346  	    fi
 20347  	    ;;
 20348            esac
 20349  
 20350            exp_sym_flag='-bexport'
 20351            no_entry_flag='-bnoentry'
 20352          fi
 20353  
 20354          # When large executables or shared objects are built, AIX ld can
 20355          # have problems creating the table of contents.  If linking a library
 20356          # or program results in "error TOC overflow" add -mminimal-toc to
 20357          # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 20358          # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 20359  
 20360          archive_cmds_CXX=''
 20361          hardcode_direct_CXX=yes
 20362          hardcode_direct_absolute_CXX=yes
 20363          hardcode_libdir_separator_CXX=':'
 20364          link_all_deplibs_CXX=yes
 20365          file_list_spec_CXX='$wl-f,'
 20366          case $with_aix_soname,$aix_use_runtimelinking in
 20367          aix,*) ;;	# no import file
 20368          svr4,* | *,yes) # use import file
 20369            # The Import File defines what to hardcode.
 20370            hardcode_direct_CXX=no
 20371            hardcode_direct_absolute_CXX=no
 20372            ;;
 20373          esac
 20374  
 20375          if test yes = "$GXX"; then
 20376            case $host_os in aix4.[012]|aix4.[012].*)
 20377            # We only want to do this on AIX 4.2 and lower, the check
 20378            # below for broken collect2 doesn't work under 4.3+
 20379  	  collect2name=`$CC -print-prog-name=collect2`
 20380  	  if test -f "$collect2name" &&
 20381  	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 20382  	  then
 20383  	    # We have reworked collect2
 20384  	    :
 20385  	  else
 20386  	    # We have old collect2
 20387  	    hardcode_direct_CXX=unsupported
 20388  	    # It fails to find uninstalled libraries when the uninstalled
 20389  	    # path is not listed in the libpath.  Setting hardcode_minus_L
 20390  	    # to unsupported forces relinking
 20391  	    hardcode_minus_L_CXX=yes
 20392  	    hardcode_libdir_flag_spec_CXX='-L$libdir'
 20393  	    hardcode_libdir_separator_CXX=
 20394  	  fi
 20395            esac
 20396            shared_flag='-shared'
 20397  	  if test yes = "$aix_use_runtimelinking"; then
 20398  	    shared_flag=$shared_flag' $wl-G'
 20399  	  fi
 20400  	  # Need to ensure runtime linking is disabled for the traditional
 20401  	  # shared library, or the linker may eventually find shared libraries
 20402  	  # /with/ Import File - we do not want to mix them.
 20403  	  shared_flag_aix='-shared'
 20404  	  shared_flag_svr4='-shared $wl-G'
 20405          else
 20406            # not using gcc
 20407            if test ia64 = "$host_cpu"; then
 20408  	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 20409  	  # chokes on -Wl,-G. The following line is correct:
 20410  	  shared_flag='-G'
 20411            else
 20412  	    if test yes = "$aix_use_runtimelinking"; then
 20413  	      shared_flag='$wl-G'
 20414  	    else
 20415  	      shared_flag='$wl-bM:SRE'
 20416  	    fi
 20417  	    shared_flag_aix='$wl-bM:SRE'
 20418  	    shared_flag_svr4='$wl-G'
 20419            fi
 20420          fi
 20421  
 20422          export_dynamic_flag_spec_CXX='$wl-bexpall'
 20423          # It seems that -bexpall does not export symbols beginning with
 20424          # underscore (_), so it is better to generate a list of symbols to
 20425  	# export.
 20426          always_export_symbols_CXX=yes
 20427  	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 20428            # Warning - without using the other runtime loading flags (-brtl),
 20429            # -berok will link without error, but may produce a broken library.
 20430            # The "-G" linker flag allows undefined symbols.
 20431            no_undefined_flag_CXX='-bernotok'
 20432            # Determine the default libpath from the value encoded in an empty
 20433            # executable.
 20434            if test set = "${lt_cv_aix_libpath+set}"; then
 20435    aix_libpath=$lt_cv_aix_libpath
 20436  else
 20437    if ${lt_cv_aix_libpath__CXX+:} false; then :
 20438    $as_echo_n "(cached) " >&6
 20439  else
 20440    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 20441  /* end confdefs.h.  */
 20442  
 20443  int
 20444  main ()
 20445  {
 20446  
 20447    ;
 20448    return 0;
 20449  }
 20450  _ACEOF
 20451  if ac_fn_cxx_try_link "$LINENO"; then :
 20452  
 20453    lt_aix_libpath_sed='
 20454        /Import File Strings/,/^$/ {
 20455  	  /^0/ {
 20456  	      s/^0  *\([^ ]*\) *$/\1/
 20457  	      p
 20458  	  }
 20459        }'
 20460    lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 20461    # Check for a 64-bit object if we didn't find anything.
 20462    if test -z "$lt_cv_aix_libpath__CXX"; then
 20463      lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 20464    fi
 20465  fi
 20466  rm -f core conftest.err conftest.$ac_objext \
 20467      conftest$ac_exeext conftest.$ac_ext
 20468    if test -z "$lt_cv_aix_libpath__CXX"; then
 20469      lt_cv_aix_libpath__CXX=/usr/lib:/lib
 20470    fi
 20471  
 20472  fi
 20473  
 20474    aix_libpath=$lt_cv_aix_libpath__CXX
 20475  fi
 20476  
 20477            hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
 20478  
 20479            archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 20480          else
 20481            if test ia64 = "$host_cpu"; then
 20482  	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
 20483  	    allow_undefined_flag_CXX="-z nodefs"
 20484  	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
 20485            else
 20486  	    # Determine the default libpath from the value encoded in an
 20487  	    # empty executable.
 20488  	    if test set = "${lt_cv_aix_libpath+set}"; then
 20489    aix_libpath=$lt_cv_aix_libpath
 20490  else
 20491    if ${lt_cv_aix_libpath__CXX+:} false; then :
 20492    $as_echo_n "(cached) " >&6
 20493  else
 20494    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 20495  /* end confdefs.h.  */
 20496  
 20497  int
 20498  main ()
 20499  {
 20500  
 20501    ;
 20502    return 0;
 20503  }
 20504  _ACEOF
 20505  if ac_fn_cxx_try_link "$LINENO"; then :
 20506  
 20507    lt_aix_libpath_sed='
 20508        /Import File Strings/,/^$/ {
 20509  	  /^0/ {
 20510  	      s/^0  *\([^ ]*\) *$/\1/
 20511  	      p
 20512  	  }
 20513        }'
 20514    lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 20515    # Check for a 64-bit object if we didn't find anything.
 20516    if test -z "$lt_cv_aix_libpath__CXX"; then
 20517      lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 20518    fi
 20519  fi
 20520  rm -f core conftest.err conftest.$ac_objext \
 20521      conftest$ac_exeext conftest.$ac_ext
 20522    if test -z "$lt_cv_aix_libpath__CXX"; then
 20523      lt_cv_aix_libpath__CXX=/usr/lib:/lib
 20524    fi
 20525  
 20526  fi
 20527  
 20528    aix_libpath=$lt_cv_aix_libpath__CXX
 20529  fi
 20530  
 20531  	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
 20532  	    # Warning - without using the other run time loading flags,
 20533  	    # -berok will link without error, but may produce a broken library.
 20534  	    no_undefined_flag_CXX=' $wl-bernotok'
 20535  	    allow_undefined_flag_CXX=' $wl-berok'
 20536  	    if test yes = "$with_gnu_ld"; then
 20537  	      # We only use this code for GNU lds that support --whole-archive.
 20538  	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
 20539  	    else
 20540  	      # Exported symbols can be pulled into shared objects from archives
 20541  	      whole_archive_flag_spec_CXX='$convenience'
 20542  	    fi
 20543  	    archive_cmds_need_lc_CXX=yes
 20544  	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 20545  	    # -brtl affects multiple linker settings, -berok does not and is overridden later
 20546  	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
 20547  	    if test svr4 != "$with_aix_soname"; then
 20548  	      # This is similar to how AIX traditionally builds its shared
 20549  	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
 20550  	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 20551  	    fi
 20552  	    if test aix != "$with_aix_soname"; then
 20553  	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 20554  	    else
 20555  	      # used by -dlpreopen to get the symbols
 20556  	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 20557  	    fi
 20558  	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
 20559            fi
 20560          fi
 20561          ;;
 20562  
 20563        beos*)
 20564  	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 20565  	  allow_undefined_flag_CXX=unsupported
 20566  	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 20567  	  # support --undefined.  This deserves some investigation.  FIXME
 20568  	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 20569  	else
 20570  	  ld_shlibs_CXX=no
 20571  	fi
 20572  	;;
 20573  
 20574        chorus*)
 20575          case $cc_basename in
 20576            *)
 20577  	  # FIXME: insert proper C++ library support
 20578  	  ld_shlibs_CXX=no
 20579  	  ;;
 20580          esac
 20581          ;;
 20582  
 20583        cygwin* | mingw* | pw32* | cegcc*)
 20584  	case $GXX,$cc_basename in
 20585  	,cl* | no,cl*)
 20586  	  # Native MSVC
 20587  	  # hardcode_libdir_flag_spec is actually meaningless, as there is
 20588  	  # no search path for DLLs.
 20589  	  hardcode_libdir_flag_spec_CXX=' '
 20590  	  allow_undefined_flag_CXX=unsupported
 20591  	  always_export_symbols_CXX=yes
 20592  	  file_list_spec_CXX='@'
 20593  	  # Tell ltmain to make .lib files, not .a files.
 20594  	  libext=lib
 20595  	  # Tell ltmain to make .dll files, not .so files.
 20596  	  shrext_cmds=.dll
 20597  	  # FIXME: Setting linknames here is a bad hack.
 20598  	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 20599  	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 20600                cp "$export_symbols" "$output_objdir/$soname.def";
 20601                echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 20602              else
 20603                $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 20604              fi~
 20605              $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 20606              linknames='
 20607  	  # The linker will not automatically build a static lib if we build a DLL.
 20608  	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 20609  	  enable_shared_with_static_runtimes_CXX=yes
 20610  	  # Don't use ranlib
 20611  	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
 20612  	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 20613              lt_tool_outputfile="@TOOL_OUTPUT@"~
 20614              case $lt_outputfile in
 20615                *.exe|*.EXE) ;;
 20616                *)
 20617                  lt_outputfile=$lt_outputfile.exe
 20618                  lt_tool_outputfile=$lt_tool_outputfile.exe
 20619                  ;;
 20620              esac~
 20621              func_to_tool_file "$lt_outputfile"~
 20622              if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 20623                $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 20624                $RM "$lt_outputfile.manifest";
 20625              fi'
 20626  	  ;;
 20627  	*)
 20628  	  # g++
 20629  	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 20630  	  # as there is no search path for DLLs.
 20631  	  hardcode_libdir_flag_spec_CXX='-L$libdir'
 20632  	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
 20633  	  allow_undefined_flag_CXX=unsupported
 20634  	  always_export_symbols_CXX=no
 20635  	  enable_shared_with_static_runtimes_CXX=yes
 20636  
 20637  	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 20638  	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 20639  	    # If the export-symbols file already is a .def file, use it as
 20640  	    # is; otherwise, prepend EXPORTS...
 20641  	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 20642                cp $export_symbols $output_objdir/$soname.def;
 20643              else
 20644                echo EXPORTS > $output_objdir/$soname.def;
 20645                cat $export_symbols >> $output_objdir/$soname.def;
 20646              fi~
 20647              $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 20648  	  else
 20649  	    ld_shlibs_CXX=no
 20650  	  fi
 20651  	  ;;
 20652  	esac
 20653  	;;
 20654        darwin* | rhapsody*)
 20655  
 20656  
 20657    archive_cmds_need_lc_CXX=no
 20658    hardcode_direct_CXX=no
 20659    hardcode_automatic_CXX=yes
 20660    hardcode_shlibpath_var_CXX=unsupported
 20661    if test yes = "$lt_cv_ld_force_load"; then
 20662      whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 20663  
 20664    else
 20665      whole_archive_flag_spec_CXX=''
 20666    fi
 20667    link_all_deplibs_CXX=yes
 20668    allow_undefined_flag_CXX=$_lt_dar_allow_undefined
 20669    case $cc_basename in
 20670       ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 20671       *) _lt_dar_can_shared=$GCC ;;
 20672    esac
 20673    if test yes = "$_lt_dar_can_shared"; then
 20674      output_verbose_link_cmd=func_echo_all
 20675      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
 20676      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 20677      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
 20678      module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
 20679         if test yes != "$lt_cv_apple_cc_single_mod"; then
 20680        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
 20681        archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
 20682      fi
 20683  
 20684    else
 20685    ld_shlibs_CXX=no
 20686    fi
 20687  
 20688  	;;
 20689  
 20690        os2*)
 20691  	hardcode_libdir_flag_spec_CXX='-L$libdir'
 20692  	hardcode_minus_L_CXX=yes
 20693  	allow_undefined_flag_CXX=unsupported
 20694  	shrext_cmds=.dll
 20695  	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 20696  	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 20697  	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 20698  	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 20699  	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 20700  	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 20701  	  emximp -o $lib $output_objdir/$libname.def'
 20702  	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 20703  	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 20704  	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 20705  	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 20706  	  prefix_cmds="$SED"~
 20707  	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
 20708  	    prefix_cmds="$prefix_cmds -e 1d";
 20709  	  fi~
 20710  	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 20711  	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 20712  	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 20713  	  emximp -o $lib $output_objdir/$libname.def'
 20714  	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 20715  	enable_shared_with_static_runtimes_CXX=yes
 20716  	;;
 20717  
 20718        dgux*)
 20719          case $cc_basename in
 20720            ec++*)
 20721  	    # FIXME: insert proper C++ library support
 20722  	    ld_shlibs_CXX=no
 20723  	    ;;
 20724            ghcx*)
 20725  	    # Green Hills C++ Compiler
 20726  	    # FIXME: insert proper C++ library support
 20727  	    ld_shlibs_CXX=no
 20728  	    ;;
 20729            *)
 20730  	    # FIXME: insert proper C++ library support
 20731  	    ld_shlibs_CXX=no
 20732  	    ;;
 20733          esac
 20734          ;;
 20735  
 20736        freebsd2.*)
 20737          # C++ shared libraries reported to be fairly broken before
 20738  	# switch to ELF
 20739          ld_shlibs_CXX=no
 20740          ;;
 20741  
 20742        freebsd-elf*)
 20743          archive_cmds_need_lc_CXX=no
 20744          ;;
 20745  
 20746        freebsd* | dragonfly*)
 20747          # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 20748          # conventions
 20749          ld_shlibs_CXX=yes
 20750          ;;
 20751  
 20752        haiku*)
 20753          archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 20754          link_all_deplibs_CXX=yes
 20755          ;;
 20756  
 20757        hpux9*)
 20758          hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
 20759          hardcode_libdir_separator_CXX=:
 20760          export_dynamic_flag_spec_CXX='$wl-E'
 20761          hardcode_direct_CXX=yes
 20762          hardcode_minus_L_CXX=yes # Not in the search PATH,
 20763  				             # but as the default
 20764  				             # location of the library.
 20765  
 20766          case $cc_basename in
 20767            CC*)
 20768              # FIXME: insert proper C++ library support
 20769              ld_shlibs_CXX=no
 20770              ;;
 20771            aCC*)
 20772              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 20773              # Commands to make compiler produce verbose output that lists
 20774              # what "hidden" libraries, object files and flags are used when
 20775              # linking a shared library.
 20776              #
 20777              # There doesn't appear to be a way to prevent this compiler from
 20778              # explicitly linking system object files so we need to strip them
 20779              # from the output so that they don't get included in the library
 20780              # dependencies.
 20781              output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 20782              ;;
 20783            *)
 20784              if test yes = "$GXX"; then
 20785                archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 20786              else
 20787                # FIXME: insert proper C++ library support
 20788                ld_shlibs_CXX=no
 20789              fi
 20790              ;;
 20791          esac
 20792          ;;
 20793  
 20794        hpux10*|hpux11*)
 20795          if test no = "$with_gnu_ld"; then
 20796  	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
 20797  	  hardcode_libdir_separator_CXX=:
 20798  
 20799            case $host_cpu in
 20800              hppa*64*|ia64*)
 20801                ;;
 20802              *)
 20803  	      export_dynamic_flag_spec_CXX='$wl-E'
 20804                ;;
 20805            esac
 20806          fi
 20807          case $host_cpu in
 20808            hppa*64*|ia64*)
 20809              hardcode_direct_CXX=no
 20810              hardcode_shlibpath_var_CXX=no
 20811              ;;
 20812            *)
 20813              hardcode_direct_CXX=yes
 20814              hardcode_direct_absolute_CXX=yes
 20815              hardcode_minus_L_CXX=yes # Not in the search PATH,
 20816  					         # but as the default
 20817  					         # location of the library.
 20818              ;;
 20819          esac
 20820  
 20821          case $cc_basename in
 20822            CC*)
 20823  	    # FIXME: insert proper C++ library support
 20824  	    ld_shlibs_CXX=no
 20825  	    ;;
 20826            aCC*)
 20827  	    case $host_cpu in
 20828  	      hppa*64*)
 20829  	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 20830  	        ;;
 20831  	      ia64*)
 20832  	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 20833  	        ;;
 20834  	      *)
 20835  	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 20836  	        ;;
 20837  	    esac
 20838  	    # Commands to make compiler produce verbose output that lists
 20839  	    # what "hidden" libraries, object files and flags are used when
 20840  	    # linking a shared library.
 20841  	    #
 20842  	    # There doesn't appear to be a way to prevent this compiler from
 20843  	    # explicitly linking system object files so we need to strip them
 20844  	    # from the output so that they don't get included in the library
 20845  	    # dependencies.
 20846  	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 20847  	    ;;
 20848            *)
 20849  	    if test yes = "$GXX"; then
 20850  	      if test no = "$with_gnu_ld"; then
 20851  	        case $host_cpu in
 20852  	          hppa*64*)
 20853  	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 20854  	            ;;
 20855  	          ia64*)
 20856  	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 20857  	            ;;
 20858  	          *)
 20859  	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 20860  	            ;;
 20861  	        esac
 20862  	      fi
 20863  	    else
 20864  	      # FIXME: insert proper C++ library support
 20865  	      ld_shlibs_CXX=no
 20866  	    fi
 20867  	    ;;
 20868          esac
 20869          ;;
 20870  
 20871        interix[3-9]*)
 20872  	hardcode_direct_CXX=no
 20873  	hardcode_shlibpath_var_CXX=no
 20874  	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 20875  	export_dynamic_flag_spec_CXX='$wl-E'
 20876  	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 20877  	# Instead, shared libraries are loaded at an image base (0x10000000 by
 20878  	# default) and relocated if they conflict, which is a slow very memory
 20879  	# consuming and fragmenting process.  To avoid this, we pick a random,
 20880  	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 20881  	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 20882  	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 20883  	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 20884  	;;
 20885        irix5* | irix6*)
 20886          case $cc_basename in
 20887            CC*)
 20888  	    # SGI C++
 20889  	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 20890  
 20891  	    # Archives containing C++ object files must be created using
 20892  	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 20893  	    # necessary to make sure instantiated templates are included
 20894  	    # in the archive.
 20895  	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 20896  	    ;;
 20897            *)
 20898  	    if test yes = "$GXX"; then
 20899  	      if test no = "$with_gnu_ld"; then
 20900  	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 20901  	      else
 20902  	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
 20903  	      fi
 20904  	    fi
 20905  	    link_all_deplibs_CXX=yes
 20906  	    ;;
 20907          esac
 20908          hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 20909          hardcode_libdir_separator_CXX=:
 20910          inherit_rpath_CXX=yes
 20911          ;;
 20912  
 20913        linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 20914          case $cc_basename in
 20915            KCC*)
 20916  	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 20917  
 20918  	    # KCC will only create a shared library if the output file
 20919  	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 20920  	    # to its proper name (with version) after linking.
 20921  	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 20922  	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
 20923  	    # Commands to make compiler produce verbose output that lists
 20924  	    # what "hidden" libraries, object files and flags are used when
 20925  	    # linking a shared library.
 20926  	    #
 20927  	    # There doesn't appear to be a way to prevent this compiler from
 20928  	    # explicitly linking system object files so we need to strip them
 20929  	    # from the output so that they don't get included in the library
 20930  	    # dependencies.
 20931  	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 20932  
 20933  	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 20934  	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 20935  
 20936  	    # Archives containing C++ object files must be created using
 20937  	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 20938  	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 20939  	    ;;
 20940  	  icpc* | ecpc* )
 20941  	    # Intel C++
 20942  	    with_gnu_ld=yes
 20943  	    # version 8.0 and above of icpc choke on multiply defined symbols
 20944  	    # if we add $predep_objects and $postdep_objects, however 7.1 and
 20945  	    # earlier do not add the objects themselves.
 20946  	    case `$CC -V 2>&1` in
 20947  	      *"Version 7."*)
 20948  	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 20949  		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 20950  		;;
 20951  	      *)  # Version 8.0 or newer
 20952  	        tmp_idyn=
 20953  	        case $host_cpu in
 20954  		  ia64*) tmp_idyn=' -i_dynamic';;
 20955  		esac
 20956  	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 20957  		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 20958  		;;
 20959  	    esac
 20960  	    archive_cmds_need_lc_CXX=no
 20961  	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 20962  	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 20963  	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
 20964  	    ;;
 20965            pgCC* | pgcpp*)
 20966              # Portland Group C++ compiler
 20967  	    case `$CC -V` in
 20968  	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 20969  	      prelink_cmds_CXX='tpldir=Template.dir~
 20970                 rm -rf $tpldir~
 20971                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 20972                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 20973  	      old_archive_cmds_CXX='tpldir=Template.dir~
 20974                  rm -rf $tpldir~
 20975                  $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 20976                  $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 20977                  $RANLIB $oldlib'
 20978  	      archive_cmds_CXX='tpldir=Template.dir~
 20979                  rm -rf $tpldir~
 20980                  $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 20981                  $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 20982  	      archive_expsym_cmds_CXX='tpldir=Template.dir~
 20983                  rm -rf $tpldir~
 20984                  $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 20985                  $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 20986  	      ;;
 20987  	    *) # Version 6 and above use weak symbols
 20988  	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 20989  	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 20990  	      ;;
 20991  	    esac
 20992  
 20993  	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
 20994  	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 20995  	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
 20996              ;;
 20997  	  cxx*)
 20998  	    # Compaq C++
 20999  	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 21000  	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
 21001  
 21002  	    runpath_var=LD_RUN_PATH
 21003  	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 21004  	    hardcode_libdir_separator_CXX=:
 21005  
 21006  	    # Commands to make compiler produce verbose output that lists
 21007  	    # what "hidden" libraries, object files and flags are used when
 21008  	    # linking a shared library.
 21009  	    #
 21010  	    # There doesn't appear to be a way to prevent this compiler from
 21011  	    # explicitly linking system object files so we need to strip them
 21012  	    # from the output so that they don't get included in the library
 21013  	    # dependencies.
 21014  	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 21015  	    ;;
 21016  	  xl* | mpixl* | bgxl*)
 21017  	    # IBM XL 8.0 on PPC, with GNU ld
 21018  	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 21019  	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 21020  	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 21021  	    if test yes = "$supports_anon_versioning"; then
 21022  	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 21023                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 21024                  echo "local: *; };" >> $output_objdir/$libname.ver~
 21025                  $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 21026  	    fi
 21027  	    ;;
 21028  	  *)
 21029  	    case `$CC -V 2>&1 | sed 5q` in
 21030  	    *Sun\ C*)
 21031  	      # Sun C++ 5.9
 21032  	      no_undefined_flag_CXX=' -zdefs'
 21033  	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 21034  	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
 21035  	      hardcode_libdir_flag_spec_CXX='-R$libdir'
 21036  	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
 21037  	      compiler_needs_object_CXX=yes
 21038  
 21039  	      # Not sure whether something based on
 21040  	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 21041  	      # would be better.
 21042  	      output_verbose_link_cmd='func_echo_all'
 21043  
 21044  	      # Archives containing C++ object files must be created using
 21045  	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 21046  	      # necessary to make sure instantiated templates are included
 21047  	      # in the archive.
 21048  	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 21049  	      ;;
 21050  	    esac
 21051  	    ;;
 21052  	esac
 21053  	;;
 21054  
 21055        lynxos*)
 21056          # FIXME: insert proper C++ library support
 21057  	ld_shlibs_CXX=no
 21058  	;;
 21059  
 21060        m88k*)
 21061          # FIXME: insert proper C++ library support
 21062          ld_shlibs_CXX=no
 21063  	;;
 21064  
 21065        mvs*)
 21066          case $cc_basename in
 21067            cxx*)
 21068  	    # FIXME: insert proper C++ library support
 21069  	    ld_shlibs_CXX=no
 21070  	    ;;
 21071  	  *)
 21072  	    # FIXME: insert proper C++ library support
 21073  	    ld_shlibs_CXX=no
 21074  	    ;;
 21075  	esac
 21076  	;;
 21077  
 21078        netbsd*)
 21079          if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 21080  	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 21081  	  wlarc=
 21082  	  hardcode_libdir_flag_spec_CXX='-R$libdir'
 21083  	  hardcode_direct_CXX=yes
 21084  	  hardcode_shlibpath_var_CXX=no
 21085  	fi
 21086  	# Workaround some broken pre-1.5 toolchains
 21087  	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 21088  	;;
 21089  
 21090        *nto* | *qnx*)
 21091          ld_shlibs_CXX=yes
 21092  	;;
 21093  
 21094        openbsd* | bitrig*)
 21095  	if test -f /usr/libexec/ld.so; then
 21096  	  hardcode_direct_CXX=yes
 21097  	  hardcode_shlibpath_var_CXX=no
 21098  	  hardcode_direct_absolute_CXX=yes
 21099  	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 21100  	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 21101  	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 21102  	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
 21103  	    export_dynamic_flag_spec_CXX='$wl-E'
 21104  	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 21105  	  fi
 21106  	  output_verbose_link_cmd=func_echo_all
 21107  	else
 21108  	  ld_shlibs_CXX=no
 21109  	fi
 21110  	;;
 21111  
 21112        osf3* | osf4* | osf5*)
 21113          case $cc_basename in
 21114            KCC*)
 21115  	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 21116  
 21117  	    # KCC will only create a shared library if the output file
 21118  	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 21119  	    # to its proper name (with version) after linking.
 21120  	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 21121  
 21122  	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 21123  	    hardcode_libdir_separator_CXX=:
 21124  
 21125  	    # Archives containing C++ object files must be created using
 21126  	    # the KAI C++ compiler.
 21127  	    case $host in
 21128  	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 21129  	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 21130  	    esac
 21131  	    ;;
 21132            RCC*)
 21133  	    # Rational C++ 2.4.1
 21134  	    # FIXME: insert proper C++ library support
 21135  	    ld_shlibs_CXX=no
 21136  	    ;;
 21137            cxx*)
 21138  	    case $host in
 21139  	      osf3*)
 21140  	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
 21141  	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 21142  	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 21143  		;;
 21144  	      *)
 21145  	        allow_undefined_flag_CXX=' -expect_unresolved \*'
 21146  	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 21147  	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 21148                    echo "-hidden">> $lib.exp~
 21149                    $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
 21150                    $RM $lib.exp'
 21151  	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 21152  		;;
 21153  	    esac
 21154  
 21155  	    hardcode_libdir_separator_CXX=:
 21156  
 21157  	    # Commands to make compiler produce verbose output that lists
 21158  	    # what "hidden" libraries, object files and flags are used when
 21159  	    # linking a shared library.
 21160  	    #
 21161  	    # There doesn't appear to be a way to prevent this compiler from
 21162  	    # explicitly linking system object files so we need to strip them
 21163  	    # from the output so that they don't get included in the library
 21164  	    # dependencies.
 21165  	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 21166  	    ;;
 21167  	  *)
 21168  	    if test yes,no = "$GXX,$with_gnu_ld"; then
 21169  	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
 21170  	      case $host in
 21171  	        osf3*)
 21172  	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 21173  		  ;;
 21174  	        *)
 21175  	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 21176  		  ;;
 21177  	      esac
 21178  
 21179  	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 21180  	      hardcode_libdir_separator_CXX=:
 21181  
 21182  	      # Commands to make compiler produce verbose output that lists
 21183  	      # what "hidden" libraries, object files and flags are used when
 21184  	      # linking a shared library.
 21185  	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 21186  
 21187  	    else
 21188  	      # FIXME: insert proper C++ library support
 21189  	      ld_shlibs_CXX=no
 21190  	    fi
 21191  	    ;;
 21192          esac
 21193          ;;
 21194  
 21195        psos*)
 21196          # FIXME: insert proper C++ library support
 21197          ld_shlibs_CXX=no
 21198          ;;
 21199  
 21200        sunos4*)
 21201          case $cc_basename in
 21202            CC*)
 21203  	    # Sun C++ 4.x
 21204  	    # FIXME: insert proper C++ library support
 21205  	    ld_shlibs_CXX=no
 21206  	    ;;
 21207            lcc*)
 21208  	    # Lucid
 21209  	    # FIXME: insert proper C++ library support
 21210  	    ld_shlibs_CXX=no
 21211  	    ;;
 21212            *)
 21213  	    # FIXME: insert proper C++ library support
 21214  	    ld_shlibs_CXX=no
 21215  	    ;;
 21216          esac
 21217          ;;
 21218  
 21219        solaris*)
 21220          case $cc_basename in
 21221            CC* | sunCC*)
 21222  	    # Sun C++ 4.2, 5.x and Centerline C++
 21223              archive_cmds_need_lc_CXX=yes
 21224  	    no_undefined_flag_CXX=' -zdefs'
 21225  	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 21226  	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 21227                $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 21228  
 21229  	    hardcode_libdir_flag_spec_CXX='-R$libdir'
 21230  	    hardcode_shlibpath_var_CXX=no
 21231  	    case $host_os in
 21232  	      solaris2.[0-5] | solaris2.[0-5].*) ;;
 21233  	      *)
 21234  		# The compiler driver will combine and reorder linker options,
 21235  		# but understands '-z linker_flag'.
 21236  	        # Supported since Solaris 2.6 (maybe 2.5.1?)
 21237  		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 21238  	        ;;
 21239  	    esac
 21240  	    link_all_deplibs_CXX=yes
 21241  
 21242  	    output_verbose_link_cmd='func_echo_all'
 21243  
 21244  	    # Archives containing C++ object files must be created using
 21245  	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 21246  	    # necessary to make sure instantiated templates are included
 21247  	    # in the archive.
 21248  	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 21249  	    ;;
 21250            gcx*)
 21251  	    # Green Hills C++ Compiler
 21252  	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 21253  
 21254  	    # The C++ compiler must be used to create the archive.
 21255  	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 21256  	    ;;
 21257            *)
 21258  	    # GNU C++ compiler with Solaris linker
 21259  	    if test yes,no = "$GXX,$with_gnu_ld"; then
 21260  	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
 21261  	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 21262  	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 21263  	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 21264                    $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 21265  
 21266  	        # Commands to make compiler produce verbose output that lists
 21267  	        # what "hidden" libraries, object files and flags are used when
 21268  	        # linking a shared library.
 21269  	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 21270  	      else
 21271  	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
 21272  	        # platform.
 21273  	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 21274  	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 21275                    $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 21276  
 21277  	        # Commands to make compiler produce verbose output that lists
 21278  	        # what "hidden" libraries, object files and flags are used when
 21279  	        # linking a shared library.
 21280  	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 21281  	      fi
 21282  
 21283  	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
 21284  	      case $host_os in
 21285  		solaris2.[0-5] | solaris2.[0-5].*) ;;
 21286  		*)
 21287  		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 21288  		  ;;
 21289  	      esac
 21290  	    fi
 21291  	    ;;
 21292          esac
 21293          ;;
 21294  
 21295      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 21296        no_undefined_flag_CXX='$wl-z,text'
 21297        archive_cmds_need_lc_CXX=no
 21298        hardcode_shlibpath_var_CXX=no
 21299        runpath_var='LD_RUN_PATH'
 21300  
 21301        case $cc_basename in
 21302          CC*)
 21303  	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21304  	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21305  	  ;;
 21306  	*)
 21307  	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21308  	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21309  	  ;;
 21310        esac
 21311        ;;
 21312  
 21313        sysv5* | sco3.2v5* | sco5v6*)
 21314  	# Note: We CANNOT use -z defs as we might desire, because we do not
 21315  	# link with -lc, and that would cause any symbols used from libc to
 21316  	# always be unresolved, which means just about no library would
 21317  	# ever link correctly.  If we're not using GNU ld we use -z text
 21318  	# though, which does catch some bad symbols but isn't as heavy-handed
 21319  	# as -z defs.
 21320  	no_undefined_flag_CXX='$wl-z,text'
 21321  	allow_undefined_flag_CXX='$wl-z,nodefs'
 21322  	archive_cmds_need_lc_CXX=no
 21323  	hardcode_shlibpath_var_CXX=no
 21324  	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
 21325  	hardcode_libdir_separator_CXX=':'
 21326  	link_all_deplibs_CXX=yes
 21327  	export_dynamic_flag_spec_CXX='$wl-Bexport'
 21328  	runpath_var='LD_RUN_PATH'
 21329  
 21330  	case $cc_basename in
 21331            CC*)
 21332  	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21333  	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21334  	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 21335                '"$old_archive_cmds_CXX"
 21336  	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 21337                '"$reload_cmds_CXX"
 21338  	    ;;
 21339  	  *)
 21340  	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21341  	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 21342  	    ;;
 21343  	esac
 21344        ;;
 21345  
 21346        tandem*)
 21347          case $cc_basename in
 21348            NCC*)
 21349  	    # NonStop-UX NCC 3.20
 21350  	    # FIXME: insert proper C++ library support
 21351  	    ld_shlibs_CXX=no
 21352  	    ;;
 21353            *)
 21354  	    # FIXME: insert proper C++ library support
 21355  	    ld_shlibs_CXX=no
 21356  	    ;;
 21357          esac
 21358          ;;
 21359  
 21360        vxworks*)
 21361          # FIXME: insert proper C++ library support
 21362          ld_shlibs_CXX=no
 21363          ;;
 21364  
 21365        *)
 21366          # FIXME: insert proper C++ library support
 21367          ld_shlibs_CXX=no
 21368          ;;
 21369      esac
 21370  
 21371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 21372  $as_echo "$ld_shlibs_CXX" >&6; }
 21373      test no = "$ld_shlibs_CXX" && can_build_shared=no
 21374  
 21375      GCC_CXX=$GXX
 21376      LD_CXX=$LD
 21377  
 21378      ## CAVEAT EMPTOR:
 21379      ## There is no encapsulation within the following macros, do not change
 21380      ## the running order or otherwise move them around unless you know exactly
 21381      ## what you are doing...
 21382      # Dependencies to place before and after the object being linked:
 21383  predep_objects_CXX=
 21384  postdep_objects_CXX=
 21385  predeps_CXX=
 21386  postdeps_CXX=
 21387  compiler_lib_search_path_CXX=
 21388  
 21389  cat > conftest.$ac_ext <<_LT_EOF
 21390  class Foo
 21391  {
 21392  public:
 21393    Foo (void) { a = 0; }
 21394  private:
 21395    int a;
 21396  };
 21397  _LT_EOF
 21398  
 21399  
 21400  _lt_libdeps_save_CFLAGS=$CFLAGS
 21401  case "$CC $CFLAGS " in #(
 21402  *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 21403  *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 21404  *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 21405  esac
 21406  
 21407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 21408    (eval $ac_compile) 2>&5
 21409    ac_status=$?
 21410    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 21411    test $ac_status = 0; }; then
 21412    # Parse the compiler output and extract the necessary
 21413    # objects, libraries and library flags.
 21414  
 21415    # Sentinel used to keep track of whether or not we are before
 21416    # the conftest object file.
 21417    pre_test_object_deps_done=no
 21418  
 21419    for p in `eval "$output_verbose_link_cmd"`; do
 21420      case $prev$p in
 21421  
 21422      -L* | -R* | -l*)
 21423         # Some compilers place space between "-{L,R}" and the path.
 21424         # Remove the space.
 21425         if test x-L = "$p" ||
 21426            test x-R = "$p"; then
 21427  	 prev=$p
 21428  	 continue
 21429         fi
 21430  
 21431         # Expand the sysroot to ease extracting the directories later.
 21432         if test -z "$prev"; then
 21433           case $p in
 21434           -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 21435           -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 21436           -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 21437           esac
 21438         fi
 21439         case $p in
 21440         =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 21441         esac
 21442         if test no = "$pre_test_object_deps_done"; then
 21443  	 case $prev in
 21444  	 -L | -R)
 21445  	   # Internal compiler library paths should come after those
 21446  	   # provided the user.  The postdeps already come after the
 21447  	   # user supplied libs so there is no need to process them.
 21448  	   if test -z "$compiler_lib_search_path_CXX"; then
 21449  	     compiler_lib_search_path_CXX=$prev$p
 21450  	   else
 21451  	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
 21452  	   fi
 21453  	   ;;
 21454  	 # The "-l" case would never come before the object being
 21455  	 # linked, so don't bother handling this case.
 21456  	 esac
 21457         else
 21458  	 if test -z "$postdeps_CXX"; then
 21459  	   postdeps_CXX=$prev$p
 21460  	 else
 21461  	   postdeps_CXX="${postdeps_CXX} $prev$p"
 21462  	 fi
 21463         fi
 21464         prev=
 21465         ;;
 21466  
 21467      *.lto.$objext) ;; # Ignore GCC LTO objects
 21468      *.$objext)
 21469         # This assumes that the test object file only shows up
 21470         # once in the compiler output.
 21471         if test "$p" = "conftest.$objext"; then
 21472  	 pre_test_object_deps_done=yes
 21473  	 continue
 21474         fi
 21475  
 21476         if test no = "$pre_test_object_deps_done"; then
 21477  	 if test -z "$predep_objects_CXX"; then
 21478  	   predep_objects_CXX=$p
 21479  	 else
 21480  	   predep_objects_CXX="$predep_objects_CXX $p"
 21481  	 fi
 21482         else
 21483  	 if test -z "$postdep_objects_CXX"; then
 21484  	   postdep_objects_CXX=$p
 21485  	 else
 21486  	   postdep_objects_CXX="$postdep_objects_CXX $p"
 21487  	 fi
 21488         fi
 21489         ;;
 21490  
 21491      *) ;; # Ignore the rest.
 21492  
 21493      esac
 21494    done
 21495  
 21496    # Clean up.
 21497    rm -f a.out a.exe
 21498  else
 21499    echo "libtool.m4: error: problem compiling CXX test program"
 21500  fi
 21501  
 21502  $RM -f confest.$objext
 21503  CFLAGS=$_lt_libdeps_save_CFLAGS
 21504  
 21505  # PORTME: override above test on systems where it is broken
 21506  case $host_os in
 21507  interix[3-9]*)
 21508    # Interix 3.5 installs completely hosed .la files for C++, so rather than
 21509    # hack all around it, let's just trust "g++" to DTRT.
 21510    predep_objects_CXX=
 21511    postdep_objects_CXX=
 21512    postdeps_CXX=
 21513    ;;
 21514  esac
 21515  
 21516  
 21517  case " $postdeps_CXX " in
 21518  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
 21519  esac
 21520   compiler_lib_search_dirs_CXX=
 21521  if test -n "${compiler_lib_search_path_CXX}"; then
 21522   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
 21523  fi
 21524  
 21525  
 21526  
 21527  
 21528  
 21529  
 21530  
 21531  
 21532  
 21533  
 21534  
 21535  
 21536  
 21537  
 21538  
 21539  
 21540  
 21541  
 21542  
 21543  
 21544  
 21545  
 21546  
 21547  
 21548  
 21549  
 21550  
 21551  
 21552  
 21553  
 21554  
 21555      lt_prog_compiler_wl_CXX=
 21556  lt_prog_compiler_pic_CXX=
 21557  lt_prog_compiler_static_CXX=
 21558  
 21559  
 21560    # C++ specific cases for pic, static, wl, etc.
 21561    if test yes = "$GXX"; then
 21562      lt_prog_compiler_wl_CXX='-Wl,'
 21563      lt_prog_compiler_static_CXX='-static'
 21564  
 21565      case $host_os in
 21566      aix*)
 21567        # All AIX code is PIC.
 21568        if test ia64 = "$host_cpu"; then
 21569  	# AIX 5 now supports IA64 processor
 21570  	lt_prog_compiler_static_CXX='-Bstatic'
 21571        fi
 21572        lt_prog_compiler_pic_CXX='-fPIC'
 21573        ;;
 21574  
 21575      amigaos*)
 21576        case $host_cpu in
 21577        powerpc)
 21578              # see comment about AmigaOS4 .so support
 21579              lt_prog_compiler_pic_CXX='-fPIC'
 21580          ;;
 21581        m68k)
 21582              # FIXME: we need at least 68020 code to build shared libraries, but
 21583              # adding the '-m68020' flag to GCC prevents building anything better,
 21584              # like '-m68040'.
 21585              lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 21586          ;;
 21587        esac
 21588        ;;
 21589  
 21590      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 21591        # PIC is the default for these OSes.
 21592        ;;
 21593      mingw* | cygwin* | os2* | pw32* | cegcc*)
 21594        # This hack is so that the source file can tell whether it is being
 21595        # built for inclusion in a dll (and should export symbols for example).
 21596        # Although the cygwin gcc ignores -fPIC, still need this for old-style
 21597        # (--disable-auto-import) libraries
 21598        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 21599        case $host_os in
 21600        os2*)
 21601  	lt_prog_compiler_static_CXX='$wl-static'
 21602  	;;
 21603        esac
 21604        ;;
 21605      darwin* | rhapsody*)
 21606        # PIC is the default on this platform
 21607        # Common symbols not allowed in MH_DYLIB files
 21608        lt_prog_compiler_pic_CXX='-fno-common'
 21609        ;;
 21610      *djgpp*)
 21611        # DJGPP does not support shared libraries at all
 21612        lt_prog_compiler_pic_CXX=
 21613        ;;
 21614      haiku*)
 21615        # PIC is the default for Haiku.
 21616        # The "-static" flag exists, but is broken.
 21617        lt_prog_compiler_static_CXX=
 21618        ;;
 21619      interix[3-9]*)
 21620        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 21621        # Instead, we relocate shared libraries at runtime.
 21622        ;;
 21623      sysv4*MP*)
 21624        if test -d /usr/nec; then
 21625  	lt_prog_compiler_pic_CXX=-Kconform_pic
 21626        fi
 21627        ;;
 21628      hpux*)
 21629        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 21630        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 21631        # sets the default TLS model and affects inlining.
 21632        case $host_cpu in
 21633        hppa*64*)
 21634  	;;
 21635        *)
 21636  	lt_prog_compiler_pic_CXX='-fPIC'
 21637  	;;
 21638        esac
 21639        ;;
 21640      *qnx* | *nto*)
 21641        # QNX uses GNU C++, but need to define -shared option too, otherwise
 21642        # it will coredump.
 21643        lt_prog_compiler_pic_CXX='-fPIC -shared'
 21644        ;;
 21645      *)
 21646        lt_prog_compiler_pic_CXX='-fPIC'
 21647        ;;
 21648      esac
 21649    else
 21650      case $host_os in
 21651        aix[4-9]*)
 21652  	# All AIX code is PIC.
 21653  	if test ia64 = "$host_cpu"; then
 21654  	  # AIX 5 now supports IA64 processor
 21655  	  lt_prog_compiler_static_CXX='-Bstatic'
 21656  	else
 21657  	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 21658  	fi
 21659  	;;
 21660        chorus*)
 21661  	case $cc_basename in
 21662  	cxch68*)
 21663  	  # Green Hills C++ Compiler
 21664  	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 21665  	  ;;
 21666  	esac
 21667  	;;
 21668        mingw* | cygwin* | os2* | pw32* | cegcc*)
 21669  	# This hack is so that the source file can tell whether it is being
 21670  	# built for inclusion in a dll (and should export symbols for example).
 21671  	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 21672  	;;
 21673        dgux*)
 21674  	case $cc_basename in
 21675  	  ec++*)
 21676  	    lt_prog_compiler_pic_CXX='-KPIC'
 21677  	    ;;
 21678  	  ghcx*)
 21679  	    # Green Hills C++ Compiler
 21680  	    lt_prog_compiler_pic_CXX='-pic'
 21681  	    ;;
 21682  	  *)
 21683  	    ;;
 21684  	esac
 21685  	;;
 21686        freebsd* | dragonfly*)
 21687  	# FreeBSD uses GNU C++
 21688  	;;
 21689        hpux9* | hpux10* | hpux11*)
 21690  	case $cc_basename in
 21691  	  CC*)
 21692  	    lt_prog_compiler_wl_CXX='-Wl,'
 21693  	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
 21694  	    if test ia64 != "$host_cpu"; then
 21695  	      lt_prog_compiler_pic_CXX='+Z'
 21696  	    fi
 21697  	    ;;
 21698  	  aCC*)
 21699  	    lt_prog_compiler_wl_CXX='-Wl,'
 21700  	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
 21701  	    case $host_cpu in
 21702  	    hppa*64*|ia64*)
 21703  	      # +Z the default
 21704  	      ;;
 21705  	    *)
 21706  	      lt_prog_compiler_pic_CXX='+Z'
 21707  	      ;;
 21708  	    esac
 21709  	    ;;
 21710  	  *)
 21711  	    ;;
 21712  	esac
 21713  	;;
 21714        interix*)
 21715  	# This is c89, which is MS Visual C++ (no shared libs)
 21716  	# Anyone wants to do a port?
 21717  	;;
 21718        irix5* | irix6* | nonstopux*)
 21719  	case $cc_basename in
 21720  	  CC*)
 21721  	    lt_prog_compiler_wl_CXX='-Wl,'
 21722  	    lt_prog_compiler_static_CXX='-non_shared'
 21723  	    # CC pic flag -KPIC is the default.
 21724  	    ;;
 21725  	  *)
 21726  	    ;;
 21727  	esac
 21728  	;;
 21729        linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 21730  	case $cc_basename in
 21731  	  KCC*)
 21732  	    # KAI C++ Compiler
 21733  	    lt_prog_compiler_wl_CXX='--backend -Wl,'
 21734  	    lt_prog_compiler_pic_CXX='-fPIC'
 21735  	    ;;
 21736  	  ecpc* )
 21737  	    # old Intel C++ for x86_64, which still supported -KPIC.
 21738  	    lt_prog_compiler_wl_CXX='-Wl,'
 21739  	    lt_prog_compiler_pic_CXX='-KPIC'
 21740  	    lt_prog_compiler_static_CXX='-static'
 21741  	    ;;
 21742  	  icpc* )
 21743  	    # Intel C++, used to be incompatible with GCC.
 21744  	    # ICC 10 doesn't accept -KPIC any more.
 21745  	    lt_prog_compiler_wl_CXX='-Wl,'
 21746  	    lt_prog_compiler_pic_CXX='-fPIC'
 21747  	    lt_prog_compiler_static_CXX='-static'
 21748  	    ;;
 21749  	  pgCC* | pgcpp*)
 21750  	    # Portland Group C++ compiler
 21751  	    lt_prog_compiler_wl_CXX='-Wl,'
 21752  	    lt_prog_compiler_pic_CXX='-fpic'
 21753  	    lt_prog_compiler_static_CXX='-Bstatic'
 21754  	    ;;
 21755  	  cxx*)
 21756  	    # Compaq C++
 21757  	    # Make sure the PIC flag is empty.  It appears that all Alpha
 21758  	    # Linux and Compaq Tru64 Unix objects are PIC.
 21759  	    lt_prog_compiler_pic_CXX=
 21760  	    lt_prog_compiler_static_CXX='-non_shared'
 21761  	    ;;
 21762  	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 21763  	    # IBM XL 8.0, 9.0 on PPC and BlueGene
 21764  	    lt_prog_compiler_wl_CXX='-Wl,'
 21765  	    lt_prog_compiler_pic_CXX='-qpic'
 21766  	    lt_prog_compiler_static_CXX='-qstaticlink'
 21767  	    ;;
 21768  	  *)
 21769  	    case `$CC -V 2>&1 | sed 5q` in
 21770  	    *Sun\ C*)
 21771  	      # Sun C++ 5.9
 21772  	      lt_prog_compiler_pic_CXX='-KPIC'
 21773  	      lt_prog_compiler_static_CXX='-Bstatic'
 21774  	      lt_prog_compiler_wl_CXX='-Qoption ld '
 21775  	      ;;
 21776  	    esac
 21777  	    ;;
 21778  	esac
 21779  	;;
 21780        lynxos*)
 21781  	;;
 21782        m88k*)
 21783  	;;
 21784        mvs*)
 21785  	case $cc_basename in
 21786  	  cxx*)
 21787  	    lt_prog_compiler_pic_CXX='-W c,exportall'
 21788  	    ;;
 21789  	  *)
 21790  	    ;;
 21791  	esac
 21792  	;;
 21793        netbsd*)
 21794  	;;
 21795        *qnx* | *nto*)
 21796          # QNX uses GNU C++, but need to define -shared option too, otherwise
 21797          # it will coredump.
 21798          lt_prog_compiler_pic_CXX='-fPIC -shared'
 21799          ;;
 21800        osf3* | osf4* | osf5*)
 21801  	case $cc_basename in
 21802  	  KCC*)
 21803  	    lt_prog_compiler_wl_CXX='--backend -Wl,'
 21804  	    ;;
 21805  	  RCC*)
 21806  	    # Rational C++ 2.4.1
 21807  	    lt_prog_compiler_pic_CXX='-pic'
 21808  	    ;;
 21809  	  cxx*)
 21810  	    # Digital/Compaq C++
 21811  	    lt_prog_compiler_wl_CXX='-Wl,'
 21812  	    # Make sure the PIC flag is empty.  It appears that all Alpha
 21813  	    # Linux and Compaq Tru64 Unix objects are PIC.
 21814  	    lt_prog_compiler_pic_CXX=
 21815  	    lt_prog_compiler_static_CXX='-non_shared'
 21816  	    ;;
 21817  	  *)
 21818  	    ;;
 21819  	esac
 21820  	;;
 21821        psos*)
 21822  	;;
 21823        solaris*)
 21824  	case $cc_basename in
 21825  	  CC* | sunCC*)
 21826  	    # Sun C++ 4.2, 5.x and Centerline C++
 21827  	    lt_prog_compiler_pic_CXX='-KPIC'
 21828  	    lt_prog_compiler_static_CXX='-Bstatic'
 21829  	    lt_prog_compiler_wl_CXX='-Qoption ld '
 21830  	    ;;
 21831  	  gcx*)
 21832  	    # Green Hills C++ Compiler
 21833  	    lt_prog_compiler_pic_CXX='-PIC'
 21834  	    ;;
 21835  	  *)
 21836  	    ;;
 21837  	esac
 21838  	;;
 21839        sunos4*)
 21840  	case $cc_basename in
 21841  	  CC*)
 21842  	    # Sun C++ 4.x
 21843  	    lt_prog_compiler_pic_CXX='-pic'
 21844  	    lt_prog_compiler_static_CXX='-Bstatic'
 21845  	    ;;
 21846  	  lcc*)
 21847  	    # Lucid
 21848  	    lt_prog_compiler_pic_CXX='-pic'
 21849  	    ;;
 21850  	  *)
 21851  	    ;;
 21852  	esac
 21853  	;;
 21854        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 21855  	case $cc_basename in
 21856  	  CC*)
 21857  	    lt_prog_compiler_wl_CXX='-Wl,'
 21858  	    lt_prog_compiler_pic_CXX='-KPIC'
 21859  	    lt_prog_compiler_static_CXX='-Bstatic'
 21860  	    ;;
 21861  	esac
 21862  	;;
 21863        tandem*)
 21864  	case $cc_basename in
 21865  	  NCC*)
 21866  	    # NonStop-UX NCC 3.20
 21867  	    lt_prog_compiler_pic_CXX='-KPIC'
 21868  	    ;;
 21869  	  *)
 21870  	    ;;
 21871  	esac
 21872  	;;
 21873        vxworks*)
 21874  	;;
 21875        *)
 21876  	lt_prog_compiler_can_build_shared_CXX=no
 21877  	;;
 21878      esac
 21879    fi
 21880  
 21881  case $host_os in
 21882    # For platforms that do not support PIC, -DPIC is meaningless:
 21883    *djgpp*)
 21884      lt_prog_compiler_pic_CXX=
 21885      ;;
 21886    *)
 21887      lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 21888      ;;
 21889  esac
 21890  
 21891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 21892  $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 21893  if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 21894    $as_echo_n "(cached) " >&6
 21895  else
 21896    lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 21897  fi
 21898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 21899  $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 21900  lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 21901  
 21902  #
 21903  # Check to make sure the PIC flag actually works.
 21904  #
 21905  if test -n "$lt_prog_compiler_pic_CXX"; then
 21906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 21907  $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 21908  if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 21909    $as_echo_n "(cached) " >&6
 21910  else
 21911    lt_cv_prog_compiler_pic_works_CXX=no
 21912     ac_outfile=conftest.$ac_objext
 21913     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 21914     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
 21915     # Insert the option either (1) after the last *FLAGS variable, or
 21916     # (2) before a word containing "conftest.", or (3) at the end.
 21917     # Note that $ac_compile itself does not contain backslashes and begins
 21918     # with a dollar sign (not a hyphen), so the echo should work correctly.
 21919     # The option is referenced via a variable to avoid confusing sed.
 21920     lt_compile=`echo "$ac_compile" | $SED \
 21921     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 21922     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 21923     -e 's:$: $lt_compiler_flag:'`
 21924     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 21925     (eval "$lt_compile" 2>conftest.err)
 21926     ac_status=$?
 21927     cat conftest.err >&5
 21928     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 21929     if (exit $ac_status) && test -s "$ac_outfile"; then
 21930       # The compiler can only warn and ignore the option if not recognized
 21931       # So say no if there are warnings other than the usual output.
 21932       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 21933       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 21934       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 21935         lt_cv_prog_compiler_pic_works_CXX=yes
 21936       fi
 21937     fi
 21938     $RM conftest*
 21939  
 21940  fi
 21941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 21942  $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 21943  
 21944  if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
 21945      case $lt_prog_compiler_pic_CXX in
 21946       "" | " "*) ;;
 21947       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 21948       esac
 21949  else
 21950      lt_prog_compiler_pic_CXX=
 21951       lt_prog_compiler_can_build_shared_CXX=no
 21952  fi
 21953  
 21954  fi
 21955  
 21956  
 21957  
 21958  
 21959  
 21960  #
 21961  # Check to make sure the static flag actually works.
 21962  #
 21963  wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 21964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 21965  $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 21966  if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 21967    $as_echo_n "(cached) " >&6
 21968  else
 21969    lt_cv_prog_compiler_static_works_CXX=no
 21970     save_LDFLAGS=$LDFLAGS
 21971     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 21972     echo "$lt_simple_link_test_code" > conftest.$ac_ext
 21973     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 21974       # The linker can only warn and ignore the option if not recognized
 21975       # So say no if there are warnings
 21976       if test -s conftest.err; then
 21977         # Append any errors to the config.log.
 21978         cat conftest.err 1>&5
 21979         $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 21980         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 21981         if diff conftest.exp conftest.er2 >/dev/null; then
 21982           lt_cv_prog_compiler_static_works_CXX=yes
 21983         fi
 21984       else
 21985         lt_cv_prog_compiler_static_works_CXX=yes
 21986       fi
 21987     fi
 21988     $RM -r conftest*
 21989     LDFLAGS=$save_LDFLAGS
 21990  
 21991  fi
 21992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 21993  $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 21994  
 21995  if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
 21996      :
 21997  else
 21998      lt_prog_compiler_static_CXX=
 21999  fi
 22000  
 22001  
 22002  
 22003  
 22004      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 22005  $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 22006  if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 22007    $as_echo_n "(cached) " >&6
 22008  else
 22009    lt_cv_prog_compiler_c_o_CXX=no
 22010     $RM -r conftest 2>/dev/null
 22011     mkdir conftest
 22012     cd conftest
 22013     mkdir out
 22014     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 22015  
 22016     lt_compiler_flag="-o out/conftest2.$ac_objext"
 22017     # Insert the option either (1) after the last *FLAGS variable, or
 22018     # (2) before a word containing "conftest.", or (3) at the end.
 22019     # Note that $ac_compile itself does not contain backslashes and begins
 22020     # with a dollar sign (not a hyphen), so the echo should work correctly.
 22021     lt_compile=`echo "$ac_compile" | $SED \
 22022     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 22023     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 22024     -e 's:$: $lt_compiler_flag:'`
 22025     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 22026     (eval "$lt_compile" 2>out/conftest.err)
 22027     ac_status=$?
 22028     cat out/conftest.err >&5
 22029     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 22030     if (exit $ac_status) && test -s out/conftest2.$ac_objext
 22031     then
 22032       # The compiler can only warn and ignore the option if not recognized
 22033       # So say no if there are warnings
 22034       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 22035       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 22036       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 22037         lt_cv_prog_compiler_c_o_CXX=yes
 22038       fi
 22039     fi
 22040     chmod u+w . 2>&5
 22041     $RM conftest*
 22042     # SGI C++ compiler will create directory out/ii_files/ for
 22043     # template instantiation
 22044     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 22045     $RM out/* && rmdir out
 22046     cd ..
 22047     $RM -r conftest
 22048     $RM conftest*
 22049  
 22050  fi
 22051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 22052  $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 22053  
 22054  
 22055  
 22056      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 22057  $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 22058  if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 22059    $as_echo_n "(cached) " >&6
 22060  else
 22061    lt_cv_prog_compiler_c_o_CXX=no
 22062     $RM -r conftest 2>/dev/null
 22063     mkdir conftest
 22064     cd conftest
 22065     mkdir out
 22066     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 22067  
 22068     lt_compiler_flag="-o out/conftest2.$ac_objext"
 22069     # Insert the option either (1) after the last *FLAGS variable, or
 22070     # (2) before a word containing "conftest.", or (3) at the end.
 22071     # Note that $ac_compile itself does not contain backslashes and begins
 22072     # with a dollar sign (not a hyphen), so the echo should work correctly.
 22073     lt_compile=`echo "$ac_compile" | $SED \
 22074     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 22075     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 22076     -e 's:$: $lt_compiler_flag:'`
 22077     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 22078     (eval "$lt_compile" 2>out/conftest.err)
 22079     ac_status=$?
 22080     cat out/conftest.err >&5
 22081     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 22082     if (exit $ac_status) && test -s out/conftest2.$ac_objext
 22083     then
 22084       # The compiler can only warn and ignore the option if not recognized
 22085       # So say no if there are warnings
 22086       $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 22087       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 22088       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 22089         lt_cv_prog_compiler_c_o_CXX=yes
 22090       fi
 22091     fi
 22092     chmod u+w . 2>&5
 22093     $RM conftest*
 22094     # SGI C++ compiler will create directory out/ii_files/ for
 22095     # template instantiation
 22096     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 22097     $RM out/* && rmdir out
 22098     cd ..
 22099     $RM -r conftest
 22100     $RM conftest*
 22101  
 22102  fi
 22103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 22104  $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 22105  
 22106  
 22107  
 22108  
 22109  hard_links=nottested
 22110  if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
 22111    # do not overwrite the value of need_locks provided by the user
 22112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 22113  $as_echo_n "checking if we can lock with hard links... " >&6; }
 22114    hard_links=yes
 22115    $RM conftest*
 22116    ln conftest.a conftest.b 2>/dev/null && hard_links=no
 22117    touch conftest.a
 22118    ln conftest.a conftest.b 2>&5 || hard_links=no
 22119    ln conftest.a conftest.b 2>/dev/null && hard_links=no
 22120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 22121  $as_echo "$hard_links" >&6; }
 22122    if test no = "$hard_links"; then
 22123      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 22124  $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
 22125      need_locks=warn
 22126    fi
 22127  else
 22128    need_locks=no
 22129  fi
 22130  
 22131  
 22132  
 22133      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 22134  $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 22135  
 22136    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 22137    exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 22138    case $host_os in
 22139    aix[4-9]*)
 22140      # If we're using GNU nm, then we don't want the "-C" option.
 22141      # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 22142      # Without the "-l" option, or with the "-B" option, AIX nm treats
 22143      # weak defined symbols like other global defined symbols, whereas
 22144      # GNU nm marks them as "W".
 22145      # While the 'weak' keyword is ignored in the Export File, we need
 22146      # it in the Import File for the 'aix-soname' feature, so we have
 22147      # to replace the "-B" option with "-P" for AIX nm.
 22148      if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 22149        export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 22150      else
 22151        export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 22152      fi
 22153      ;;
 22154    pw32*)
 22155      export_symbols_cmds_CXX=$ltdll_cmds
 22156      ;;
 22157    cygwin* | mingw* | cegcc*)
 22158      case $cc_basename in
 22159      cl*)
 22160        exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 22161        ;;
 22162      *)
 22163        export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 22164        exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 22165        ;;
 22166      esac
 22167      ;;
 22168    *)
 22169      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 22170      ;;
 22171    esac
 22172  
 22173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 22174  $as_echo "$ld_shlibs_CXX" >&6; }
 22175  test no = "$ld_shlibs_CXX" && can_build_shared=no
 22176  
 22177  with_gnu_ld_CXX=$with_gnu_ld
 22178  
 22179  
 22180  
 22181  
 22182  
 22183  
 22184  #
 22185  # Do we need to explicitly link libc?
 22186  #
 22187  case "x$archive_cmds_need_lc_CXX" in
 22188  x|xyes)
 22189    # Assume -lc should be added
 22190    archive_cmds_need_lc_CXX=yes
 22191  
 22192    if test yes,yes = "$GCC,$enable_shared"; then
 22193      case $archive_cmds_CXX in
 22194      *'~'*)
 22195        # FIXME: we may have to deal with multi-command sequences.
 22196        ;;
 22197      '$CC '*)
 22198        # Test whether the compiler implicitly links with -lc since on some
 22199        # systems, -lgcc has to come before -lc. If gcc already passes -lc
 22200        # to ld, don't add -lc before -lgcc.
 22201        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 22202  $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 22203  if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 22204    $as_echo_n "(cached) " >&6
 22205  else
 22206    $RM conftest*
 22207  	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 22208  
 22209  	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 22210    (eval $ac_compile) 2>&5
 22211    ac_status=$?
 22212    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22213    test $ac_status = 0; } 2>conftest.err; then
 22214  	  soname=conftest
 22215  	  lib=conftest
 22216  	  libobjs=conftest.$ac_objext
 22217  	  deplibs=
 22218  	  wl=$lt_prog_compiler_wl_CXX
 22219  	  pic_flag=$lt_prog_compiler_pic_CXX
 22220  	  compiler_flags=-v
 22221  	  linker_flags=-v
 22222  	  verstring=
 22223  	  output_objdir=.
 22224  	  libname=conftest
 22225  	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 22226  	  allow_undefined_flag_CXX=
 22227  	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 22228    (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 22229    ac_status=$?
 22230    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22231    test $ac_status = 0; }
 22232  	  then
 22233  	    lt_cv_archive_cmds_need_lc_CXX=no
 22234  	  else
 22235  	    lt_cv_archive_cmds_need_lc_CXX=yes
 22236  	  fi
 22237  	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 22238  	else
 22239  	  cat conftest.err 1>&5
 22240  	fi
 22241  	$RM conftest*
 22242  
 22243  fi
 22244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 22245  $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 22246        archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 22247        ;;
 22248      esac
 22249    fi
 22250    ;;
 22251  esac
 22252  
 22253  
 22254  
 22255  
 22256  
 22257  
 22258  
 22259  
 22260  
 22261  
 22262  
 22263  
 22264  
 22265  
 22266  
 22267  
 22268  
 22269  
 22270  
 22271  
 22272  
 22273  
 22274  
 22275  
 22276  
 22277  
 22278  
 22279  
 22280  
 22281  
 22282  
 22283  
 22284  
 22285  
 22286  
 22287  
 22288  
 22289  
 22290  
 22291  
 22292  
 22293  
 22294  
 22295  
 22296  
 22297  
 22298  
 22299  
 22300  
 22301  
 22302  
 22303  
 22304  
 22305  
 22306  
 22307  
 22308  
 22309  
 22310  
 22311  
 22312  
 22313  
 22314      { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 22315  $as_echo_n "checking dynamic linker characteristics... " >&6; }
 22316  
 22317  library_names_spec=
 22318  libname_spec='lib$name'
 22319  soname_spec=
 22320  shrext_cmds=.so
 22321  postinstall_cmds=
 22322  postuninstall_cmds=
 22323  finish_cmds=
 22324  finish_eval=
 22325  shlibpath_var=
 22326  shlibpath_overrides_runpath=unknown
 22327  version_type=none
 22328  dynamic_linker="$host_os ld.so"
 22329  sys_lib_dlsearch_path_spec="/lib /usr/lib"
 22330  need_lib_prefix=unknown
 22331  hardcode_into_libs=no
 22332  
 22333  # when you set need_version to no, make sure it does not cause -set_version
 22334  # flags to be left without arguments
 22335  need_version=unknown
 22336  
 22337  
 22338  
 22339  case $host_os in
 22340  aix3*)
 22341    version_type=linux # correct to gnu/linux during the next big refactor
 22342    library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 22343    shlibpath_var=LIBPATH
 22344  
 22345    # AIX 3 has no versioning support, so we append a major version to the name.
 22346    soname_spec='$libname$release$shared_ext$major'
 22347    ;;
 22348  
 22349  aix[4-9]*)
 22350    version_type=linux # correct to gnu/linux during the next big refactor
 22351    need_lib_prefix=no
 22352    need_version=no
 22353    hardcode_into_libs=yes
 22354    if test ia64 = "$host_cpu"; then
 22355      # AIX 5 supports IA64
 22356      library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 22357      shlibpath_var=LD_LIBRARY_PATH
 22358    else
 22359      # With GCC up to 2.95.x, collect2 would create an import file
 22360      # for dependence libraries.  The import file would start with
 22361      # the line '#! .'.  This would cause the generated library to
 22362      # depend on '.', always an invalid library.  This was fixed in
 22363      # development snapshots of GCC prior to 3.0.
 22364      case $host_os in
 22365        aix4 | aix4.[01] | aix4.[01].*)
 22366        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 22367  	   echo ' yes '
 22368  	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 22369  	:
 22370        else
 22371  	can_build_shared=no
 22372        fi
 22373        ;;
 22374      esac
 22375      # Using Import Files as archive members, it is possible to support
 22376      # filename-based versioning of shared library archives on AIX. While
 22377      # this would work for both with and without runtime linking, it will
 22378      # prevent static linking of such archives. So we do filename-based
 22379      # shared library versioning with .so extension only, which is used
 22380      # when both runtime linking and shared linking is enabled.
 22381      # Unfortunately, runtime linking may impact performance, so we do
 22382      # not want this to be the default eventually. Also, we use the
 22383      # versioned .so libs for executables only if there is the -brtl
 22384      # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 22385      # To allow for filename-based versioning support, we need to create
 22386      # libNAME.so.V as an archive file, containing:
 22387      # *) an Import File, referring to the versioned filename of the
 22388      #    archive as well as the shared archive member, telling the
 22389      #    bitwidth (32 or 64) of that shared object, and providing the
 22390      #    list of exported symbols of that shared object, eventually
 22391      #    decorated with the 'weak' keyword
 22392      # *) the shared object with the F_LOADONLY flag set, to really avoid
 22393      #    it being seen by the linker.
 22394      # At run time we better use the real file rather than another symlink,
 22395      # but for link time we create the symlink libNAME.so -> libNAME.so.V
 22396  
 22397      case $with_aix_soname,$aix_use_runtimelinking in
 22398      # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 22399      # soname into executable. Probably we can add versioning support to
 22400      # collect2, so additional links can be useful in future.
 22401      aix,yes) # traditional libtool
 22402        dynamic_linker='AIX unversionable lib.so'
 22403        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 22404        # instead of lib<name>.a to let people know that these are not
 22405        # typical AIX shared libraries.
 22406        library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22407        ;;
 22408      aix,no) # traditional AIX only
 22409        dynamic_linker='AIX lib.a(lib.so.V)'
 22410        # We preserve .a as extension for shared libraries through AIX4.2
 22411        # and later when we are not doing run time linking.
 22412        library_names_spec='$libname$release.a $libname.a'
 22413        soname_spec='$libname$release$shared_ext$major'
 22414        ;;
 22415      svr4,*) # full svr4 only
 22416        dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
 22417        library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 22418        # We do not specify a path in Import Files, so LIBPATH fires.
 22419        shlibpath_overrides_runpath=yes
 22420        ;;
 22421      *,yes) # both, prefer svr4
 22422        dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
 22423        library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 22424        # unpreferred sharedlib libNAME.a needs extra handling
 22425        postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 22426        postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 22427        # We do not specify a path in Import Files, so LIBPATH fires.
 22428        shlibpath_overrides_runpath=yes
 22429        ;;
 22430      *,no) # both, prefer aix
 22431        dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
 22432        library_names_spec='$libname$release.a $libname.a'
 22433        soname_spec='$libname$release$shared_ext$major'
 22434        # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 22435        postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 22436        postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 22437        ;;
 22438      esac
 22439      shlibpath_var=LIBPATH
 22440    fi
 22441    ;;
 22442  
 22443  amigaos*)
 22444    case $host_cpu in
 22445    powerpc)
 22446      # Since July 2007 AmigaOS4 officially supports .so libraries.
 22447      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 22448      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22449      ;;
 22450    m68k)
 22451      library_names_spec='$libname.ixlibrary $libname.a'
 22452      # Create ${libname}_ixlibrary.a entries in /sys/libs.
 22453      finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 22454      ;;
 22455    esac
 22456    ;;
 22457  
 22458  beos*)
 22459    library_names_spec='$libname$shared_ext'
 22460    dynamic_linker="$host_os ld.so"
 22461    shlibpath_var=LIBRARY_PATH
 22462    ;;
 22463  
 22464  bsdi[45]*)
 22465    version_type=linux # correct to gnu/linux during the next big refactor
 22466    need_version=no
 22467    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22468    soname_spec='$libname$release$shared_ext$major'
 22469    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 22470    shlibpath_var=LD_LIBRARY_PATH
 22471    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 22472    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 22473    # the default ld.so.conf also contains /usr/contrib/lib and
 22474    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 22475    # libtool to hard-code these into programs
 22476    ;;
 22477  
 22478  cygwin* | mingw* | pw32* | cegcc*)
 22479    version_type=windows
 22480    shrext_cmds=.dll
 22481    need_version=no
 22482    need_lib_prefix=no
 22483  
 22484    case $GCC,$cc_basename in
 22485    yes,*)
 22486      # gcc
 22487      library_names_spec='$libname.dll.a'
 22488      # DLL is installed to $(libdir)/../bin by postinstall_cmds
 22489      postinstall_cmds='base_file=`basename \$file`~
 22490        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 22491        dldir=$destdir/`dirname \$dlpath`~
 22492        test -d \$dldir || mkdir -p \$dldir~
 22493        $install_prog $dir/$dlname \$dldir/$dlname~
 22494        chmod a+x \$dldir/$dlname~
 22495        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 22496          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 22497        fi'
 22498      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 22499        dlpath=$dir/\$dldll~
 22500         $RM \$dlpath'
 22501      shlibpath_overrides_runpath=yes
 22502  
 22503      case $host_os in
 22504      cygwin*)
 22505        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 22506        soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 22507  
 22508        ;;
 22509      mingw* | cegcc*)
 22510        # MinGW DLLs use traditional 'lib' prefix
 22511        soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 22512        ;;
 22513      pw32*)
 22514        # pw32 DLLs use 'pw' prefix rather than 'lib'
 22515        library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 22516        ;;
 22517      esac
 22518      dynamic_linker='Win32 ld.exe'
 22519      ;;
 22520  
 22521    *,cl*)
 22522      # Native MSVC
 22523      libname_spec='$name'
 22524      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 22525      library_names_spec='$libname.dll.lib'
 22526  
 22527      case $build_os in
 22528      mingw*)
 22529        sys_lib_search_path_spec=
 22530        lt_save_ifs=$IFS
 22531        IFS=';'
 22532        for lt_path in $LIB
 22533        do
 22534          IFS=$lt_save_ifs
 22535          # Let DOS variable expansion print the short 8.3 style file name.
 22536          lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 22537          sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 22538        done
 22539        IFS=$lt_save_ifs
 22540        # Convert to MSYS style.
 22541        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 22542        ;;
 22543      cygwin*)
 22544        # Convert to unix form, then to dos form, then back to unix form
 22545        # but this time dos style (no spaces!) so that the unix form looks
 22546        # like /cygdrive/c/PROGRA~1:/cygdr...
 22547        sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 22548        sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 22549        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 22550        ;;
 22551      *)
 22552        sys_lib_search_path_spec=$LIB
 22553        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 22554          # It is most probably a Windows format PATH.
 22555          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 22556        else
 22557          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 22558        fi
 22559        # FIXME: find the short name or the path components, as spaces are
 22560        # common. (e.g. "Program Files" -> "PROGRA~1")
 22561        ;;
 22562      esac
 22563  
 22564      # DLL is installed to $(libdir)/../bin by postinstall_cmds
 22565      postinstall_cmds='base_file=`basename \$file`~
 22566        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 22567        dldir=$destdir/`dirname \$dlpath`~
 22568        test -d \$dldir || mkdir -p \$dldir~
 22569        $install_prog $dir/$dlname \$dldir/$dlname'
 22570      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 22571        dlpath=$dir/\$dldll~
 22572         $RM \$dlpath'
 22573      shlibpath_overrides_runpath=yes
 22574      dynamic_linker='Win32 link.exe'
 22575      ;;
 22576  
 22577    *)
 22578      # Assume MSVC wrapper
 22579      library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
 22580      dynamic_linker='Win32 ld.exe'
 22581      ;;
 22582    esac
 22583    # FIXME: first we should search . and the directory the executable is in
 22584    shlibpath_var=PATH
 22585    ;;
 22586  
 22587  darwin* | rhapsody*)
 22588    dynamic_linker="$host_os dyld"
 22589    version_type=darwin
 22590    need_lib_prefix=no
 22591    need_version=no
 22592    library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 22593    soname_spec='$libname$release$major$shared_ext'
 22594    shlibpath_overrides_runpath=yes
 22595    shlibpath_var=DYLD_LIBRARY_PATH
 22596    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 22597  
 22598    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 22599    ;;
 22600  
 22601  dgux*)
 22602    version_type=linux # correct to gnu/linux during the next big refactor
 22603    need_lib_prefix=no
 22604    need_version=no
 22605    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22606    soname_spec='$libname$release$shared_ext$major'
 22607    shlibpath_var=LD_LIBRARY_PATH
 22608    ;;
 22609  
 22610  freebsd* | dragonfly*)
 22611    # DragonFly does not have aout.  When/if they implement a new
 22612    # versioning mechanism, adjust this.
 22613    if test -x /usr/bin/objformat; then
 22614      objformat=`/usr/bin/objformat`
 22615    else
 22616      case $host_os in
 22617      freebsd[23].*) objformat=aout ;;
 22618      *) objformat=elf ;;
 22619      esac
 22620    fi
 22621    version_type=freebsd-$objformat
 22622    case $version_type in
 22623      freebsd-elf*)
 22624        library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22625        soname_spec='$libname$release$shared_ext$major'
 22626        need_version=no
 22627        need_lib_prefix=no
 22628        ;;
 22629      freebsd-*)
 22630        library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 22631        need_version=yes
 22632        ;;
 22633    esac
 22634    shlibpath_var=LD_LIBRARY_PATH
 22635    case $host_os in
 22636    freebsd2.*)
 22637      shlibpath_overrides_runpath=yes
 22638      ;;
 22639    freebsd3.[01]* | freebsdelf3.[01]*)
 22640      shlibpath_overrides_runpath=yes
 22641      hardcode_into_libs=yes
 22642      ;;
 22643    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 22644    freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 22645      shlibpath_overrides_runpath=no
 22646      hardcode_into_libs=yes
 22647      ;;
 22648    *) # from 4.6 on, and DragonFly
 22649      shlibpath_overrides_runpath=yes
 22650      hardcode_into_libs=yes
 22651      ;;
 22652    esac
 22653    ;;
 22654  
 22655  haiku*)
 22656    version_type=linux # correct to gnu/linux during the next big refactor
 22657    need_lib_prefix=no
 22658    need_version=no
 22659    dynamic_linker="$host_os runtime_loader"
 22660    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22661    soname_spec='$libname$release$shared_ext$major'
 22662    shlibpath_var=LIBRARY_PATH
 22663    shlibpath_overrides_runpath=no
 22664    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 22665    hardcode_into_libs=yes
 22666    ;;
 22667  
 22668  hpux9* | hpux10* | hpux11*)
 22669    # Give a soname corresponding to the major version so that dld.sl refuses to
 22670    # link against other versions.
 22671    version_type=sunos
 22672    need_lib_prefix=no
 22673    need_version=no
 22674    case $host_cpu in
 22675    ia64*)
 22676      shrext_cmds='.so'
 22677      hardcode_into_libs=yes
 22678      dynamic_linker="$host_os dld.so"
 22679      shlibpath_var=LD_LIBRARY_PATH
 22680      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 22681      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22682      soname_spec='$libname$release$shared_ext$major'
 22683      if test 32 = "$HPUX_IA64_MODE"; then
 22684        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 22685        sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 22686      else
 22687        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 22688        sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 22689      fi
 22690      ;;
 22691    hppa*64*)
 22692      shrext_cmds='.sl'
 22693      hardcode_into_libs=yes
 22694      dynamic_linker="$host_os dld.sl"
 22695      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 22696      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 22697      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22698      soname_spec='$libname$release$shared_ext$major'
 22699      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 22700      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 22701      ;;
 22702    *)
 22703      shrext_cmds='.sl'
 22704      dynamic_linker="$host_os dld.sl"
 22705      shlibpath_var=SHLIB_PATH
 22706      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 22707      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22708      soname_spec='$libname$release$shared_ext$major'
 22709      ;;
 22710    esac
 22711    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 22712    postinstall_cmds='chmod 555 $lib'
 22713    # or fails outright, so override atomically:
 22714    install_override_mode=555
 22715    ;;
 22716  
 22717  interix[3-9]*)
 22718    version_type=linux # correct to gnu/linux during the next big refactor
 22719    need_lib_prefix=no
 22720    need_version=no
 22721    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22722    soname_spec='$libname$release$shared_ext$major'
 22723    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 22724    shlibpath_var=LD_LIBRARY_PATH
 22725    shlibpath_overrides_runpath=no
 22726    hardcode_into_libs=yes
 22727    ;;
 22728  
 22729  irix5* | irix6* | nonstopux*)
 22730    case $host_os in
 22731      nonstopux*) version_type=nonstopux ;;
 22732      *)
 22733  	if test yes = "$lt_cv_prog_gnu_ld"; then
 22734  		version_type=linux # correct to gnu/linux during the next big refactor
 22735  	else
 22736  		version_type=irix
 22737  	fi ;;
 22738    esac
 22739    need_lib_prefix=no
 22740    need_version=no
 22741    soname_spec='$libname$release$shared_ext$major'
 22742    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 22743    case $host_os in
 22744    irix5* | nonstopux*)
 22745      libsuff= shlibsuff=
 22746      ;;
 22747    *)
 22748      case $LD in # libtool.m4 will add one of these switches to LD
 22749      *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 22750        libsuff= shlibsuff= libmagic=32-bit;;
 22751      *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 22752        libsuff=32 shlibsuff=N32 libmagic=N32;;
 22753      *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 22754        libsuff=64 shlibsuff=64 libmagic=64-bit;;
 22755      *) libsuff= shlibsuff= libmagic=never-match;;
 22756      esac
 22757      ;;
 22758    esac
 22759    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 22760    shlibpath_overrides_runpath=no
 22761    sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 22762    sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 22763    hardcode_into_libs=yes
 22764    ;;
 22765  
 22766  # No shared lib support for Linux oldld, aout, or coff.
 22767  linux*oldld* | linux*aout* | linux*coff*)
 22768    dynamic_linker=no
 22769    ;;
 22770  
 22771  linux*android*)
 22772    version_type=none # Android doesn't support versioned libraries.
 22773    need_lib_prefix=no
 22774    need_version=no
 22775    library_names_spec='$libname$release$shared_ext'
 22776    soname_spec='$libname$release$shared_ext'
 22777    finish_cmds=
 22778    shlibpath_var=LD_LIBRARY_PATH
 22779    shlibpath_overrides_runpath=yes
 22780  
 22781    # This implies no fast_install, which is unacceptable.
 22782    # Some rework will be needed to allow for fast_install
 22783    # before this can be enabled.
 22784    hardcode_into_libs=yes
 22785  
 22786    dynamic_linker='Android linker'
 22787    # Don't embed -rpath directories since the linker doesn't support them.
 22788    hardcode_libdir_flag_spec_CXX='-L$libdir'
 22789    ;;
 22790  
 22791  # This must be glibc/ELF.
 22792  linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 22793    version_type=linux # correct to gnu/linux during the next big refactor
 22794    need_lib_prefix=no
 22795    need_version=no
 22796    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22797    soname_spec='$libname$release$shared_ext$major'
 22798    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 22799    shlibpath_var=LD_LIBRARY_PATH
 22800    shlibpath_overrides_runpath=no
 22801  
 22802    # Some binutils ld are patched to set DT_RUNPATH
 22803    if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 22804    $as_echo_n "(cached) " >&6
 22805  else
 22806    lt_cv_shlibpath_overrides_runpath=no
 22807      save_LDFLAGS=$LDFLAGS
 22808      save_libdir=$libdir
 22809      eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 22810  	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 22811      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 22812  /* end confdefs.h.  */
 22813  
 22814  int
 22815  main ()
 22816  {
 22817  
 22818    ;
 22819    return 0;
 22820  }
 22821  _ACEOF
 22822  if ac_fn_cxx_try_link "$LINENO"; then :
 22823    if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 22824    lt_cv_shlibpath_overrides_runpath=yes
 22825  fi
 22826  fi
 22827  rm -f core conftest.err conftest.$ac_objext \
 22828      conftest$ac_exeext conftest.$ac_ext
 22829      LDFLAGS=$save_LDFLAGS
 22830      libdir=$save_libdir
 22831  
 22832  fi
 22833  
 22834    shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 22835  
 22836    # This implies no fast_install, which is unacceptable.
 22837    # Some rework will be needed to allow for fast_install
 22838    # before this can be enabled.
 22839    hardcode_into_libs=yes
 22840  
 22841    # Ideally, we could use ldconfig to report *all* directores which are
 22842    # searched for libraries, however this is still not possible.  Aside from not
 22843    # being certain /sbin/ldconfig is available, command
 22844    # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 22845    # even though it is searched at run-time.  Try to do the best guess by
 22846    # appending ld.so.conf contents (and includes) to the search path.
 22847    if test -f /etc/ld.so.conf; then
 22848      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 22849      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 22850    fi
 22851  
 22852    # We used to test for /lib/ld.so.1 and disable shared libraries on
 22853    # powerpc, because MkLinux only supported shared libraries with the
 22854    # GNU dynamic linker.  Since this was broken with cross compilers,
 22855    # most powerpc-linux boxes support dynamic linking these days and
 22856    # people can always --disable-shared, the test was removed, and we
 22857    # assume the GNU/Linux dynamic linker is in use.
 22858    dynamic_linker='GNU/Linux ld.so'
 22859    ;;
 22860  
 22861  netbsd*)
 22862    version_type=sunos
 22863    need_lib_prefix=no
 22864    need_version=no
 22865    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 22866      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 22867      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 22868      dynamic_linker='NetBSD (a.out) ld.so'
 22869    else
 22870      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22871      soname_spec='$libname$release$shared_ext$major'
 22872      dynamic_linker='NetBSD ld.elf_so'
 22873    fi
 22874    shlibpath_var=LD_LIBRARY_PATH
 22875    shlibpath_overrides_runpath=yes
 22876    hardcode_into_libs=yes
 22877    ;;
 22878  
 22879  newsos6)
 22880    version_type=linux # correct to gnu/linux during the next big refactor
 22881    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22882    shlibpath_var=LD_LIBRARY_PATH
 22883    shlibpath_overrides_runpath=yes
 22884    ;;
 22885  
 22886  *nto* | *qnx*)
 22887    version_type=qnx
 22888    need_lib_prefix=no
 22889    need_version=no
 22890    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22891    soname_spec='$libname$release$shared_ext$major'
 22892    shlibpath_var=LD_LIBRARY_PATH
 22893    shlibpath_overrides_runpath=no
 22894    hardcode_into_libs=yes
 22895    dynamic_linker='ldqnx.so'
 22896    ;;
 22897  
 22898  openbsd* | bitrig*)
 22899    version_type=sunos
 22900    sys_lib_dlsearch_path_spec=/usr/lib
 22901    need_lib_prefix=no
 22902    if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 22903      need_version=no
 22904    else
 22905      need_version=yes
 22906    fi
 22907    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 22908    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 22909    shlibpath_var=LD_LIBRARY_PATH
 22910    shlibpath_overrides_runpath=yes
 22911    ;;
 22912  
 22913  os2*)
 22914    libname_spec='$name'
 22915    version_type=windows
 22916    shrext_cmds=.dll
 22917    need_version=no
 22918    need_lib_prefix=no
 22919    # OS/2 can only load a DLL with a base name of 8 characters or less.
 22920    soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 22921      v=$($ECHO $release$versuffix | tr -d .-);
 22922      n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 22923      $ECHO $n$v`$shared_ext'
 22924    library_names_spec='${libname}_dll.$libext'
 22925    dynamic_linker='OS/2 ld.exe'
 22926    shlibpath_var=BEGINLIBPATH
 22927    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 22928    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 22929    postinstall_cmds='base_file=`basename \$file`~
 22930      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 22931      dldir=$destdir/`dirname \$dlpath`~
 22932      test -d \$dldir || mkdir -p \$dldir~
 22933      $install_prog $dir/$dlname \$dldir/$dlname~
 22934      chmod a+x \$dldir/$dlname~
 22935      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 22936        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 22937      fi'
 22938    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 22939      dlpath=$dir/\$dldll~
 22940      $RM \$dlpath'
 22941    ;;
 22942  
 22943  osf3* | osf4* | osf5*)
 22944    version_type=osf
 22945    need_lib_prefix=no
 22946    need_version=no
 22947    soname_spec='$libname$release$shared_ext$major'
 22948    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22949    shlibpath_var=LD_LIBRARY_PATH
 22950    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 22951    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 22952    ;;
 22953  
 22954  rdos*)
 22955    dynamic_linker=no
 22956    ;;
 22957  
 22958  solaris*)
 22959    version_type=linux # correct to gnu/linux during the next big refactor
 22960    need_lib_prefix=no
 22961    need_version=no
 22962    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22963    soname_spec='$libname$release$shared_ext$major'
 22964    shlibpath_var=LD_LIBRARY_PATH
 22965    shlibpath_overrides_runpath=yes
 22966    hardcode_into_libs=yes
 22967    # ldd complains unless libraries are executable
 22968    postinstall_cmds='chmod +x $lib'
 22969    ;;
 22970  
 22971  sunos4*)
 22972    version_type=sunos
 22973    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 22974    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 22975    shlibpath_var=LD_LIBRARY_PATH
 22976    shlibpath_overrides_runpath=yes
 22977    if test yes = "$with_gnu_ld"; then
 22978      need_lib_prefix=no
 22979    fi
 22980    need_version=yes
 22981    ;;
 22982  
 22983  sysv4 | sysv4.3*)
 22984    version_type=linux # correct to gnu/linux during the next big refactor
 22985    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 22986    soname_spec='$libname$release$shared_ext$major'
 22987    shlibpath_var=LD_LIBRARY_PATH
 22988    case $host_vendor in
 22989      sni)
 22990        shlibpath_overrides_runpath=no
 22991        need_lib_prefix=no
 22992        runpath_var=LD_RUN_PATH
 22993        ;;
 22994      siemens)
 22995        need_lib_prefix=no
 22996        ;;
 22997      motorola)
 22998        need_lib_prefix=no
 22999        need_version=no
 23000        shlibpath_overrides_runpath=no
 23001        sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 23002        ;;
 23003    esac
 23004    ;;
 23005  
 23006  sysv4*MP*)
 23007    if test -d /usr/nec; then
 23008      version_type=linux # correct to gnu/linux during the next big refactor
 23009      library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 23010      soname_spec='$libname$shared_ext.$major'
 23011      shlibpath_var=LD_LIBRARY_PATH
 23012    fi
 23013    ;;
 23014  
 23015  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 23016    version_type=sco
 23017    need_lib_prefix=no
 23018    need_version=no
 23019    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 23020    soname_spec='$libname$release$shared_ext$major'
 23021    shlibpath_var=LD_LIBRARY_PATH
 23022    shlibpath_overrides_runpath=yes
 23023    hardcode_into_libs=yes
 23024    if test yes = "$with_gnu_ld"; then
 23025      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 23026    else
 23027      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 23028      case $host_os in
 23029        sco3.2v5*)
 23030          sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 23031  	;;
 23032      esac
 23033    fi
 23034    sys_lib_dlsearch_path_spec='/usr/lib'
 23035    ;;
 23036  
 23037  tpf*)
 23038    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 23039    version_type=linux # correct to gnu/linux during the next big refactor
 23040    need_lib_prefix=no
 23041    need_version=no
 23042    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 23043    shlibpath_var=LD_LIBRARY_PATH
 23044    shlibpath_overrides_runpath=no
 23045    hardcode_into_libs=yes
 23046    ;;
 23047  
 23048  uts4*)
 23049    version_type=linux # correct to gnu/linux during the next big refactor
 23050    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 23051    soname_spec='$libname$release$shared_ext$major'
 23052    shlibpath_var=LD_LIBRARY_PATH
 23053    ;;
 23054  
 23055  *)
 23056    dynamic_linker=no
 23057    ;;
 23058  esac
 23059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 23060  $as_echo "$dynamic_linker" >&6; }
 23061  test no = "$dynamic_linker" && can_build_shared=no
 23062  
 23063  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 23064  if test yes = "$GCC"; then
 23065    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 23066  fi
 23067  
 23068  if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 23069    sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 23070  fi
 23071  
 23072  if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 23073    sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 23074  fi
 23075  
 23076  # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 23077  configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 23078  
 23079  # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 23080  func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 23081  
 23082  # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 23083  configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 23084  
 23085  
 23086  
 23087  
 23088  
 23089  
 23090  
 23091  
 23092  
 23093  
 23094  
 23095  
 23096  
 23097  
 23098  
 23099  
 23100  
 23101  
 23102  
 23103  
 23104  
 23105  
 23106  
 23107  
 23108  
 23109  
 23110  
 23111  
 23112  
 23113  
 23114  
 23115  
 23116  
 23117  
 23118  
 23119  
 23120  
 23121  
 23122  
 23123  
 23124      { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 23125  $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 23126  hardcode_action_CXX=
 23127  if test -n "$hardcode_libdir_flag_spec_CXX" ||
 23128     test -n "$runpath_var_CXX" ||
 23129     test yes = "$hardcode_automatic_CXX"; then
 23130  
 23131    # We can hardcode non-existent directories.
 23132    if test no != "$hardcode_direct_CXX" &&
 23133       # If the only mechanism to avoid hardcoding is shlibpath_var, we
 23134       # have to relink, otherwise we might link with an installed library
 23135       # when we should be linking with a yet-to-be-installed one
 23136       ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
 23137       test no != "$hardcode_minus_L_CXX"; then
 23138      # Linking always hardcodes the temporary library directory.
 23139      hardcode_action_CXX=relink
 23140    else
 23141      # We can link without hardcoding, and we can hardcode nonexisting dirs.
 23142      hardcode_action_CXX=immediate
 23143    fi
 23144  else
 23145    # We cannot hardcode anything, or else we can only hardcode existing
 23146    # directories.
 23147    hardcode_action_CXX=unsupported
 23148  fi
 23149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 23150  $as_echo "$hardcode_action_CXX" >&6; }
 23151  
 23152  if test relink = "$hardcode_action_CXX" ||
 23153     test yes = "$inherit_rpath_CXX"; then
 23154    # Fast installation is not supported
 23155    enable_fast_install=no
 23156  elif test yes = "$shlibpath_overrides_runpath" ||
 23157       test no = "$enable_shared"; then
 23158    # Fast installation is not necessary
 23159    enable_fast_install=needless
 23160  fi
 23161  
 23162  
 23163  
 23164  
 23165  
 23166  
 23167  
 23168    fi # test -n "$compiler"
 23169  
 23170    CC=$lt_save_CC
 23171    CFLAGS=$lt_save_CFLAGS
 23172    LDCXX=$LD
 23173    LD=$lt_save_LD
 23174    GCC=$lt_save_GCC
 23175    with_gnu_ld=$lt_save_with_gnu_ld
 23176    lt_cv_path_LDCXX=$lt_cv_path_LD
 23177    lt_cv_path_LD=$lt_save_path_LD
 23178    lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 23179    lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 23180  fi # test yes != "$_lt_caught_CXX_error"
 23181  
 23182  ac_ext=c
 23183  ac_cpp='$CPP $CPPFLAGS'
 23184  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 23185  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 23186  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 23187  
 23188  
 23189  
 23190  
 23191  
 23192  
 23193  
 23194  
 23195  
 23196  
 23197  
 23198  
 23199  
 23200  
 23201  
 23202          ac_config_commands="$ac_config_commands libtool"
 23203  
 23204  
 23205  
 23206  
 23207  # Only expand once:
 23208  
 23209  
 23210  
 23211  # Generate an error here if attempting to build both shared and static when
 23212  # $libname.a is in $library_names_spec (as mentioned above), rather than
 23213  # wait for ar or ld to fail.
 23214  #
 23215  if test "$enable_shared" = yes && test "$enable_static" = yes; then
 23216    case $library_names_spec in
 23217      *libname.a*)
 23218        as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
 23219        ;;
 23220    esac
 23221  fi
 23222  
 23223   if test "$enable_static" = yes; then
 23224    ENABLE_STATIC_TRUE=
 23225    ENABLE_STATIC_FALSE='#'
 23226  else
 23227    ENABLE_STATIC_TRUE='#'
 23228    ENABLE_STATIC_FALSE=
 23229  fi
 23230  
 23231  
 23232  
 23233  # Many of these library and header checks are for the benefit of
 23234  # supplementary programs.  libgmp doesn't use anything too weird.
 23235  
 23236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 23237  $as_echo_n "checking for ANSI C header files... " >&6; }
 23238  if ${ac_cv_header_stdc+:} false; then :
 23239    $as_echo_n "(cached) " >&6
 23240  else
 23241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23242  /* end confdefs.h.  */
 23243  #include <stdlib.h>
 23244  #include <stdarg.h>
 23245  #include <string.h>
 23246  #include <float.h>
 23247  
 23248  int
 23249  main ()
 23250  {
 23251  
 23252    ;
 23253    return 0;
 23254  }
 23255  _ACEOF
 23256  if ac_fn_c_try_compile "$LINENO"; then :
 23257    ac_cv_header_stdc=yes
 23258  else
 23259    ac_cv_header_stdc=no
 23260  fi
 23261  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23262  
 23263  if test $ac_cv_header_stdc = yes; then
 23264    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 23265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23266  /* end confdefs.h.  */
 23267  #include <string.h>
 23268  
 23269  _ACEOF
 23270  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 23271    $EGREP "memchr" >/dev/null 2>&1; then :
 23272  
 23273  else
 23274    ac_cv_header_stdc=no
 23275  fi
 23276  rm -f conftest*
 23277  
 23278  fi
 23279  
 23280  if test $ac_cv_header_stdc = yes; then
 23281    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 23282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23283  /* end confdefs.h.  */
 23284  #include <stdlib.h>
 23285  
 23286  _ACEOF
 23287  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 23288    $EGREP "free" >/dev/null 2>&1; then :
 23289  
 23290  else
 23291    ac_cv_header_stdc=no
 23292  fi
 23293  rm -f conftest*
 23294  
 23295  fi
 23296  
 23297  if test $ac_cv_header_stdc = yes; then
 23298    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 23299    if test "$cross_compiling" = yes; then :
 23300    :
 23301  else
 23302    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23303  /* end confdefs.h.  */
 23304  #include <ctype.h>
 23305  #include <stdlib.h>
 23306  #if ((' ' & 0x0FF) == 0x020)
 23307  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 23308  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 23309  #else
 23310  # define ISLOWER(c) \
 23311  		   (('a' <= (c) && (c) <= 'i') \
 23312  		     || ('j' <= (c) && (c) <= 'r') \
 23313  		     || ('s' <= (c) && (c) <= 'z'))
 23314  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 23315  #endif
 23316  
 23317  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 23318  int
 23319  main ()
 23320  {
 23321    int i;
 23322    for (i = 0; i < 256; i++)
 23323      if (XOR (islower (i), ISLOWER (i))
 23324  	|| toupper (i) != TOUPPER (i))
 23325        return 2;
 23326    return 0;
 23327  }
 23328  _ACEOF
 23329  if ac_fn_c_try_run "$LINENO"; then :
 23330  
 23331  else
 23332    ac_cv_header_stdc=no
 23333  fi
 23334  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 23335    conftest.$ac_objext conftest.beam conftest.$ac_ext
 23336  fi
 23337  
 23338  fi
 23339  fi
 23340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 23341  $as_echo "$ac_cv_header_stdc" >&6; }
 23342  if test $ac_cv_header_stdc = yes; then
 23343  
 23344  $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 23345  
 23346  fi
 23347  
 23348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 23349  $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 23350  if ${ac_cv_header_time+:} false; then :
 23351    $as_echo_n "(cached) " >&6
 23352  else
 23353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23354  /* end confdefs.h.  */
 23355  #include <sys/types.h>
 23356  #include <sys/time.h>
 23357  #include <time.h>
 23358  
 23359  int
 23360  main ()
 23361  {
 23362  if ((struct tm *) 0)
 23363  return 0;
 23364    ;
 23365    return 0;
 23366  }
 23367  _ACEOF
 23368  if ac_fn_c_try_compile "$LINENO"; then :
 23369    ac_cv_header_time=yes
 23370  else
 23371    ac_cv_header_time=no
 23372  fi
 23373  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23374  fi
 23375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 23376  $as_echo "$ac_cv_header_time" >&6; }
 23377  if test $ac_cv_header_time = yes; then
 23378  
 23379  $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 23380  
 23381  fi
 23382  
 23383  
 23384  # Reasons for testing:
 23385  #   float.h - not in SunOS bundled cc
 23386  #   invent.h - IRIX specific
 23387  #   langinfo.h - X/Open standard only, not in djgpp for instance
 23388  #   locale.h - old systems won't have this
 23389  #   nl_types.h - X/Open standard only, not in djgpp for instance
 23390  #       (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
 23391  #   sys/attributes.h - IRIX specific
 23392  #   sys/iograph.h - IRIX specific
 23393  #   sys/mman.h - not in Cray Unicos
 23394  #   sys/param.h - not in mingw
 23395  #   sys/processor.h - solaris specific, though also present in macos
 23396  #   sys/pstat.h - HPUX specific
 23397  #   sys/resource.h - not in mingw
 23398  #   sys/sysctl.h - not in mingw
 23399  #   sys/sysinfo.h - OSF specific
 23400  #   sys/syssgi.h - IRIX specific
 23401  #   sys/systemcfg.h - AIX specific
 23402  #   sys/time.h - autoconf suggests testing, don't know anywhere without it
 23403  #   sys/times.h - not in mingw
 23404  #   machine/hal_sysinfo.h - OSF specific
 23405  #
 23406  # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
 23407  # default tests
 23408  #
 23409  for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
 23410  do :
 23411    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 23412  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 23413  if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 23414    cat >>confdefs.h <<_ACEOF
 23415  #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 23416  _ACEOF
 23417  
 23418  fi
 23419  
 23420  done
 23421  
 23422  
 23423  # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
 23424  for ac_header in sys/resource.h
 23425  do :
 23426    ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
 23427  # include <sys/time.h>
 23428  # include <time.h>
 23429  #else
 23430  # if HAVE_SYS_TIME_H
 23431  #  include <sys/time.h>
 23432  # else
 23433  #  include <time.h>
 23434  # endif
 23435  #endif
 23436  "
 23437  if test "x$ac_cv_header_sys_resource_h" = xyes; then :
 23438    cat >>confdefs.h <<_ACEOF
 23439  #define HAVE_SYS_RESOURCE_H 1
 23440  _ACEOF
 23441  
 23442  fi
 23443  
 23444  done
 23445  
 23446  
 23447  # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
 23448  for ac_header in sys/sysctl.h
 23449  do :
 23450    ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
 23451  # include <sys/param.h>
 23452  #endif
 23453  "
 23454  if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
 23455    cat >>confdefs.h <<_ACEOF
 23456  #define HAVE_SYS_SYSCTL_H 1
 23457  _ACEOF
 23458  
 23459  fi
 23460  
 23461  done
 23462  
 23463  
 23464  # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
 23465  for ac_header in machine/hal_sysinfo.h
 23466  do :
 23467    ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
 23468  # include <sys/sysinfo.h>
 23469  #endif
 23470  "
 23471  if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then :
 23472    cat >>confdefs.h <<_ACEOF
 23473  #define HAVE_MACHINE_HAL_SYSINFO_H 1
 23474  _ACEOF
 23475  
 23476  fi
 23477  
 23478  done
 23479  
 23480  
 23481  # Reasons for testing:
 23482  #   optarg - not declared in mingw
 23483  #   fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
 23484  #   sys_errlist, sys_nerr - not declared in SunOS 4
 23485  #
 23486  # optarg should be in unistd.h and the rest in stdio.h, both of which are
 23487  # in the autoconf default includes.
 23488  #
 23489  # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
 23490  # to the man page (but aren't), in glibc they're in stdio.h.
 23491  #
 23492  ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
 23493  if test "x$ac_cv_have_decl_fgetc" = xyes; then :
 23494    ac_have_decl=1
 23495  else
 23496    ac_have_decl=0
 23497  fi
 23498  
 23499  cat >>confdefs.h <<_ACEOF
 23500  #define HAVE_DECL_FGETC $ac_have_decl
 23501  _ACEOF
 23502  ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
 23503  if test "x$ac_cv_have_decl_fscanf" = xyes; then :
 23504    ac_have_decl=1
 23505  else
 23506    ac_have_decl=0
 23507  fi
 23508  
 23509  cat >>confdefs.h <<_ACEOF
 23510  #define HAVE_DECL_FSCANF $ac_have_decl
 23511  _ACEOF
 23512  ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
 23513  if test "x$ac_cv_have_decl_optarg" = xyes; then :
 23514    ac_have_decl=1
 23515  else
 23516    ac_have_decl=0
 23517  fi
 23518  
 23519  cat >>confdefs.h <<_ACEOF
 23520  #define HAVE_DECL_OPTARG $ac_have_decl
 23521  _ACEOF
 23522  ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
 23523  if test "x$ac_cv_have_decl_ungetc" = xyes; then :
 23524    ac_have_decl=1
 23525  else
 23526    ac_have_decl=0
 23527  fi
 23528  
 23529  cat >>confdefs.h <<_ACEOF
 23530  #define HAVE_DECL_UNGETC $ac_have_decl
 23531  _ACEOF
 23532  ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
 23533  if test "x$ac_cv_have_decl_vfprintf" = xyes; then :
 23534    ac_have_decl=1
 23535  else
 23536    ac_have_decl=0
 23537  fi
 23538  
 23539  cat >>confdefs.h <<_ACEOF
 23540  #define HAVE_DECL_VFPRINTF $ac_have_decl
 23541  _ACEOF
 23542  
 23543  ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
 23544  #include <errno.h>
 23545  "
 23546  if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
 23547    ac_have_decl=1
 23548  else
 23549    ac_have_decl=0
 23550  fi
 23551  
 23552  cat >>confdefs.h <<_ACEOF
 23553  #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
 23554  _ACEOF
 23555  ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
 23556  #include <errno.h>
 23557  "
 23558  if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
 23559    ac_have_decl=1
 23560  else
 23561    ac_have_decl=0
 23562  fi
 23563  
 23564  cat >>confdefs.h <<_ACEOF
 23565  #define HAVE_DECL_SYS_NERR $ac_have_decl
 23566  _ACEOF
 23567  
 23568  
 23569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 23570  $as_echo_n "checking return type of signal handlers... " >&6; }
 23571  if ${ac_cv_type_signal+:} false; then :
 23572    $as_echo_n "(cached) " >&6
 23573  else
 23574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23575  /* end confdefs.h.  */
 23576  #include <sys/types.h>
 23577  #include <signal.h>
 23578  
 23579  int
 23580  main ()
 23581  {
 23582  return *(signal (0, 0)) (0) == 1;
 23583    ;
 23584    return 0;
 23585  }
 23586  _ACEOF
 23587  if ac_fn_c_try_compile "$LINENO"; then :
 23588    ac_cv_type_signal=int
 23589  else
 23590    ac_cv_type_signal=void
 23591  fi
 23592  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23593  fi
 23594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 23595  $as_echo "$ac_cv_type_signal" >&6; }
 23596  
 23597  cat >>confdefs.h <<_ACEOF
 23598  #define RETSIGTYPE $ac_cv_type_signal
 23599  _ACEOF
 23600  
 23601  
 23602  
 23603  # Reasons for testing:
 23604  #   intmax_t       - C99
 23605  #   long double    - not in the HP bundled K&R cc
 23606  #   long long      - only in reasonably recent compilers
 23607  #   ptrdiff_t      - seems to be everywhere, maybe don't need to check this
 23608  #   quad_t         - BSD specific
 23609  #   uint_least32_t - C99
 23610  #
 23611  # the default includes are sufficient for all these types
 23612  #
 23613  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
 23614  if test "x$ac_cv_type_intmax_t" = xyes; then :
 23615  
 23616  cat >>confdefs.h <<_ACEOF
 23617  #define HAVE_INTMAX_T 1
 23618  _ACEOF
 23619  
 23620  
 23621  fi
 23622  ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
 23623  if test "x$ac_cv_type_long_double" = xyes; then :
 23624  
 23625  cat >>confdefs.h <<_ACEOF
 23626  #define HAVE_LONG_DOUBLE 1
 23627  _ACEOF
 23628  
 23629  
 23630  fi
 23631  ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
 23632  if test "x$ac_cv_type_long_long" = xyes; then :
 23633  
 23634  cat >>confdefs.h <<_ACEOF
 23635  #define HAVE_LONG_LONG 1
 23636  _ACEOF
 23637  
 23638  
 23639  fi
 23640  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 23641  if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
 23642  
 23643  cat >>confdefs.h <<_ACEOF
 23644  #define HAVE_PTRDIFF_T 1
 23645  _ACEOF
 23646  
 23647  
 23648  fi
 23649  ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
 23650  if test "x$ac_cv_type_quad_t" = xyes; then :
 23651  
 23652  cat >>confdefs.h <<_ACEOF
 23653  #define HAVE_QUAD_T 1
 23654  _ACEOF
 23655  
 23656  
 23657  fi
 23658  ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
 23659  if test "x$ac_cv_type_uint_least32_t" = xyes; then :
 23660  
 23661  cat >>confdefs.h <<_ACEOF
 23662  #define HAVE_UINT_LEAST32_T 1
 23663  _ACEOF
 23664  
 23665  
 23666  fi
 23667  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
 23668  if test "x$ac_cv_type_intptr_t" = xyes; then :
 23669  
 23670  cat >>confdefs.h <<_ACEOF
 23671  #define HAVE_INTPTR_T 1
 23672  _ACEOF
 23673  
 23674  
 23675  fi
 23676  
 23677  
 23678  # FIXME: Really want #ifndef __cplusplus around the #define volatile
 23679  # replacement autoconf gives, since volatile is always available in C++.
 23680  # But we don't use it in C++ currently.
 23681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
 23682  $as_echo_n "checking for working volatile... " >&6; }
 23683  if ${ac_cv_c_volatile+:} false; then :
 23684    $as_echo_n "(cached) " >&6
 23685  else
 23686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23687  /* end confdefs.h.  */
 23688  
 23689  int
 23690  main ()
 23691  {
 23692  
 23693  volatile int x;
 23694  int * volatile y = (int *) 0;
 23695  return !x && !y;
 23696    ;
 23697    return 0;
 23698  }
 23699  _ACEOF
 23700  if ac_fn_c_try_compile "$LINENO"; then :
 23701    ac_cv_c_volatile=yes
 23702  else
 23703    ac_cv_c_volatile=no
 23704  fi
 23705  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23706  fi
 23707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
 23708  $as_echo "$ac_cv_c_volatile" >&6; }
 23709  if test $ac_cv_c_volatile = no; then
 23710  
 23711  $as_echo "#define volatile /**/" >>confdefs.h
 23712  
 23713  fi
 23714  
 23715  
 23716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
 23717  $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 23718  if ${ac_cv_c_restrict+:} false; then :
 23719    $as_echo_n "(cached) " >&6
 23720  else
 23721    ac_cv_c_restrict=no
 23722     # The order here caters to the fact that C++ does not require restrict.
 23723     for ac_kw in __restrict __restrict__ _Restrict restrict; do
 23724       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23725  /* end confdefs.h.  */
 23726  typedef int * int_ptr;
 23727  	int foo (int_ptr $ac_kw ip) {
 23728  	return ip[0];
 23729         }
 23730  int
 23731  main ()
 23732  {
 23733  int s[1];
 23734  	int * $ac_kw t = s;
 23735  	t[0] = 0;
 23736  	return foo(t)
 23737    ;
 23738    return 0;
 23739  }
 23740  _ACEOF
 23741  if ac_fn_c_try_compile "$LINENO"; then :
 23742    ac_cv_c_restrict=$ac_kw
 23743  fi
 23744  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23745       test "$ac_cv_c_restrict" != no && break
 23746     done
 23747  
 23748  fi
 23749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
 23750  $as_echo "$ac_cv_c_restrict" >&6; }
 23751  
 23752   case $ac_cv_c_restrict in
 23753     restrict) ;;
 23754     no) $as_echo "#define restrict /**/" >>confdefs.h
 23755   ;;
 23756     *)  cat >>confdefs.h <<_ACEOF
 23757  #define restrict $ac_cv_c_restrict
 23758  _ACEOF
 23759   ;;
 23760   esac
 23761  
 23762  
 23763  # GMP_C_STDARG
 23764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
 23765  $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
 23766  if ${gmp_cv_c_attribute_const+:} false; then :
 23767    $as_echo_n "(cached) " >&6
 23768  else
 23769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23770  /* end confdefs.h.  */
 23771  int foo (int x) __attribute__ ((const));
 23772  int
 23773  main ()
 23774  {
 23775  
 23776    ;
 23777    return 0;
 23778  }
 23779  _ACEOF
 23780  if ac_fn_c_try_compile "$LINENO"; then :
 23781    gmp_cv_c_attribute_const=yes
 23782  else
 23783    gmp_cv_c_attribute_const=no
 23784  fi
 23785  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23786  
 23787  fi
 23788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
 23789  $as_echo "$gmp_cv_c_attribute_const" >&6; }
 23790  if test $gmp_cv_c_attribute_const = yes; then
 23791  
 23792  $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
 23793  
 23794  fi
 23795  
 23796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
 23797  $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
 23798  if ${gmp_cv_c_attribute_malloc+:} false; then :
 23799    $as_echo_n "(cached) " >&6
 23800  else
 23801    cat >conftest.c <<EOF
 23802  void *foo (int x) __attribute__ ((malloc));
 23803  EOF
 23804  gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
 23805  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 23806    (eval $gmp_compile) 2>&5
 23807    ac_status=$?
 23808    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 23809    test $ac_status = 0; }; then
 23810    if grep "attribute directive ignored" conftest.out >/dev/null; then
 23811      gmp_cv_c_attribute_malloc=no
 23812    else
 23813      gmp_cv_c_attribute_malloc=yes
 23814    fi
 23815  else
 23816    gmp_cv_c_attribute_malloc=no
 23817  fi
 23818  cat conftest.out >&5
 23819  rm -f conftest*
 23820  
 23821  fi
 23822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
 23823  $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
 23824  if test $gmp_cv_c_attribute_malloc = yes; then
 23825  
 23826  $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
 23827  
 23828  fi
 23829  
 23830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
 23831  $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
 23832  if ${gmp_cv_c_attribute_mode+:} false; then :
 23833    $as_echo_n "(cached) " >&6
 23834  else
 23835    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23836  /* end confdefs.h.  */
 23837  typedef int SItype __attribute__ ((mode (SI)));
 23838  int
 23839  main ()
 23840  {
 23841  
 23842    ;
 23843    return 0;
 23844  }
 23845  _ACEOF
 23846  if ac_fn_c_try_compile "$LINENO"; then :
 23847    gmp_cv_c_attribute_mode=yes
 23848  else
 23849    gmp_cv_c_attribute_mode=no
 23850  fi
 23851  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23852  
 23853  fi
 23854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
 23855  $as_echo "$gmp_cv_c_attribute_mode" >&6; }
 23856  if test $gmp_cv_c_attribute_mode = yes; then
 23857  
 23858  $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
 23859  
 23860  fi
 23861  
 23862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
 23863  $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
 23864  if ${gmp_cv_c_attribute_noreturn+:} false; then :
 23865    $as_echo_n "(cached) " >&6
 23866  else
 23867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23868  /* end confdefs.h.  */
 23869  void foo (int x) __attribute__ ((noreturn));
 23870  int
 23871  main ()
 23872  {
 23873  
 23874    ;
 23875    return 0;
 23876  }
 23877  _ACEOF
 23878  if ac_fn_c_try_compile "$LINENO"; then :
 23879    gmp_cv_c_attribute_noreturn=yes
 23880  else
 23881    gmp_cv_c_attribute_noreturn=no
 23882  fi
 23883  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23884  
 23885  fi
 23886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
 23887  $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
 23888  if test $gmp_cv_c_attribute_noreturn = yes; then
 23889  
 23890  $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
 23891  
 23892  fi
 23893  
 23894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc hidden aliases work" >&5
 23895  $as_echo_n "checking whether gcc hidden aliases work... " >&6; }
 23896  if ${gmp_cv_c_hidden_alias+:} false; then :
 23897    $as_echo_n "(cached) " >&6
 23898  else
 23899    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23900  /* end confdefs.h.  */
 23901  void hid() __attribute__ ((visibility("hidden")));
 23902  void hid() {}
 23903  void pub() __attribute__ ((alias("hid")));
 23904  int
 23905  main ()
 23906  {
 23907  
 23908    ;
 23909    return 0;
 23910  }
 23911  _ACEOF
 23912  if ac_fn_c_try_compile "$LINENO"; then :
 23913    gmp_cv_c_hidden_alias=yes
 23914  else
 23915    gmp_cv_c_hidden_alias=no
 23916  fi
 23917  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23918  
 23919  fi
 23920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_hidden_alias" >&5
 23921  $as_echo "$gmp_cv_c_hidden_alias" >&6; }
 23922  if test $gmp_cv_c_hidden_alias = yes; then
 23923  
 23924  $as_echo "#define HAVE_HIDDEN_ALIAS 1" >>confdefs.h
 23925  
 23926  fi
 23927  
 23928  
 23929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 23930  $as_echo_n "checking for inline... " >&6; }
 23931  if ${ac_cv_c_inline+:} false; then :
 23932    $as_echo_n "(cached) " >&6
 23933  else
 23934    ac_cv_c_inline=no
 23935  for ac_kw in inline __inline__ __inline; do
 23936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23937  /* end confdefs.h.  */
 23938  #ifndef __cplusplus
 23939  typedef int foo_t;
 23940  static $ac_kw foo_t static_foo () {return 0; }
 23941  $ac_kw foo_t foo () {return 0; }
 23942  #endif
 23943  
 23944  _ACEOF
 23945  if ac_fn_c_try_compile "$LINENO"; then :
 23946    ac_cv_c_inline=$ac_kw
 23947  fi
 23948  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 23949    test "$ac_cv_c_inline" != no && break
 23950  done
 23951  
 23952  fi
 23953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 23954  $as_echo "$ac_cv_c_inline" >&6; }
 23955  
 23956  case $ac_cv_c_inline in
 23957    inline | yes) ;;
 23958    *)
 23959      case $ac_cv_c_inline in
 23960        no) ac_val=;;
 23961        *) ac_val=$ac_cv_c_inline;;
 23962      esac
 23963      cat >>confdefs.h <<_ACEOF
 23964  #ifndef __cplusplus
 23965  #define inline $ac_val
 23966  #endif
 23967  _ACEOF
 23968      ;;
 23969  esac
 23970  
 23971  
 23972  case $ac_cv_c_inline in
 23973  no) ;;
 23974  *)
 23975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 23976  /* end confdefs.h.  */
 23977  #define __GMP_WITHIN_CONFIGURE_INLINE 1
 23978  #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
 23979  #define GMP_NAIL_BITS $GMP_NAIL_BITS
 23980  #define GMP_LIMB_BITS 123
 23981  $DEFN_LONG_LONG_LIMB
 23982  #include "$srcdir/gmp-h.in"
 23983  
 23984  #ifndef __GMP_EXTERN_INLINE
 23985  die die die
 23986  #endif
 23987  
 23988  int
 23989  main ()
 23990  {
 23991  
 23992    ;
 23993    return 0;
 23994  }
 23995  _ACEOF
 23996  if ac_fn_c_try_compile "$LINENO"; then :
 23997  
 23998  else
 23999    case $ac_cv_c_inline in
 24000    yes) tmp_inline=inline ;;
 24001    *)   tmp_inline=$ac_cv_c_inline ;;
 24002    esac
 24003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
 24004  $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
 24005  fi
 24006  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24007    ;;
 24008  esac
 24009  
 24010  
 24011  # from libtool
 24012  LIBM=
 24013  case $host in
 24014  *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 24015    # These system don't have libm, or don't need it
 24016    ;;
 24017  *-ncr-sysv4.3*)
 24018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
 24019  $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
 24020  if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
 24021    $as_echo_n "(cached) " >&6
 24022  else
 24023    ac_check_lib_save_LIBS=$LIBS
 24024  LIBS="-lmw  $LIBS"
 24025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24026  /* end confdefs.h.  */
 24027  
 24028  /* Override any GCC internal prototype to avoid an error.
 24029     Use char because int might match the return type of a GCC
 24030     builtin and then its argument prototype would still apply.  */
 24031  #ifdef __cplusplus
 24032  extern "C"
 24033  #endif
 24034  char _mwvalidcheckl ();
 24035  int
 24036  main ()
 24037  {
 24038  return _mwvalidcheckl ();
 24039    ;
 24040    return 0;
 24041  }
 24042  _ACEOF
 24043  if ac_fn_c_try_link "$LINENO"; then :
 24044    ac_cv_lib_mw__mwvalidcheckl=yes
 24045  else
 24046    ac_cv_lib_mw__mwvalidcheckl=no
 24047  fi
 24048  rm -f core conftest.err conftest.$ac_objext \
 24049      conftest$ac_exeext conftest.$ac_ext
 24050  LIBS=$ac_check_lib_save_LIBS
 24051  fi
 24052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
 24053  $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
 24054  if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
 24055    LIBM=-lmw
 24056  fi
 24057  
 24058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
 24059  $as_echo_n "checking for cos in -lm... " >&6; }
 24060  if ${ac_cv_lib_m_cos+:} false; then :
 24061    $as_echo_n "(cached) " >&6
 24062  else
 24063    ac_check_lib_save_LIBS=$LIBS
 24064  LIBS="-lm  $LIBS"
 24065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24066  /* end confdefs.h.  */
 24067  
 24068  /* Override any GCC internal prototype to avoid an error.
 24069     Use char because int might match the return type of a GCC
 24070     builtin and then its argument prototype would still apply.  */
 24071  #ifdef __cplusplus
 24072  extern "C"
 24073  #endif
 24074  char cos ();
 24075  int
 24076  main ()
 24077  {
 24078  return cos ();
 24079    ;
 24080    return 0;
 24081  }
 24082  _ACEOF
 24083  if ac_fn_c_try_link "$LINENO"; then :
 24084    ac_cv_lib_m_cos=yes
 24085  else
 24086    ac_cv_lib_m_cos=no
 24087  fi
 24088  rm -f core conftest.err conftest.$ac_objext \
 24089      conftest$ac_exeext conftest.$ac_ext
 24090  LIBS=$ac_check_lib_save_LIBS
 24091  fi
 24092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
 24093  $as_echo "$ac_cv_lib_m_cos" >&6; }
 24094  if test "x$ac_cv_lib_m_cos" = xyes; then :
 24095    LIBM="$LIBM -lm"
 24096  fi
 24097  
 24098    ;;
 24099  *)
 24100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
 24101  $as_echo_n "checking for cos in -lm... " >&6; }
 24102  if ${ac_cv_lib_m_cos+:} false; then :
 24103    $as_echo_n "(cached) " >&6
 24104  else
 24105    ac_check_lib_save_LIBS=$LIBS
 24106  LIBS="-lm  $LIBS"
 24107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24108  /* end confdefs.h.  */
 24109  
 24110  /* Override any GCC internal prototype to avoid an error.
 24111     Use char because int might match the return type of a GCC
 24112     builtin and then its argument prototype would still apply.  */
 24113  #ifdef __cplusplus
 24114  extern "C"
 24115  #endif
 24116  char cos ();
 24117  int
 24118  main ()
 24119  {
 24120  return cos ();
 24121    ;
 24122    return 0;
 24123  }
 24124  _ACEOF
 24125  if ac_fn_c_try_link "$LINENO"; then :
 24126    ac_cv_lib_m_cos=yes
 24127  else
 24128    ac_cv_lib_m_cos=no
 24129  fi
 24130  rm -f core conftest.err conftest.$ac_objext \
 24131      conftest$ac_exeext conftest.$ac_ext
 24132  LIBS=$ac_check_lib_save_LIBS
 24133  fi
 24134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
 24135  $as_echo "$ac_cv_lib_m_cos" >&6; }
 24136  if test "x$ac_cv_lib_m_cos" = xyes; then :
 24137    LIBM=-lm
 24138  fi
 24139  
 24140    ;;
 24141  esac
 24142  
 24143  
 24144  
 24145  
 24146  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 24147  # for constant arguments.  Useless!
 24148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 24149  $as_echo_n "checking for working alloca.h... " >&6; }
 24150  if ${gmp_cv_header_alloca+:} false; then :
 24151    $as_echo_n "(cached) " >&6
 24152  else
 24153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24154  /* end confdefs.h.  */
 24155  #include <alloca.h>
 24156  int
 24157  main ()
 24158  {
 24159  char *p = (char *) alloca (2 * sizeof (int));
 24160    ;
 24161    return 0;
 24162  }
 24163  _ACEOF
 24164  if ac_fn_c_try_link "$LINENO"; then :
 24165    gmp_cv_header_alloca=yes
 24166  else
 24167    gmp_cv_header_alloca=no
 24168  fi
 24169  rm -f core conftest.err conftest.$ac_objext \
 24170      conftest$ac_exeext conftest.$ac_ext
 24171  fi
 24172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
 24173  $as_echo "$gmp_cv_header_alloca" >&6; }
 24174  if test $gmp_cv_header_alloca = yes; then
 24175  
 24176  $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
 24177  
 24178  fi
 24179  
 24180  
 24181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
 24182  $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
 24183  if ${gmp_cv_func_alloca+:} false; then :
 24184    $as_echo_n "(cached) " >&6
 24185  else
 24186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24187  /* end confdefs.h.  */
 24188  #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
 24189  #define GMP_NAIL_BITS $GMP_NAIL_BITS
 24190  #define GMP_LIMB_BITS 123
 24191  $DEFN_LONG_LONG_LIMB
 24192  #include "$srcdir/gmp-h.in"
 24193  
 24194  #include "$srcdir/gmp-impl.h"
 24195  
 24196  int
 24197  main ()
 24198  {
 24199  char *p = (char *) alloca (1);
 24200    ;
 24201    return 0;
 24202  }
 24203  _ACEOF
 24204  if ac_fn_c_try_link "$LINENO"; then :
 24205    gmp_cv_func_alloca=yes
 24206  else
 24207    gmp_cv_func_alloca=no
 24208  fi
 24209  rm -f core conftest.err conftest.$ac_objext \
 24210      conftest$ac_exeext conftest.$ac_ext
 24211  fi
 24212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
 24213  $as_echo "$gmp_cv_func_alloca" >&6; }
 24214  if test $gmp_cv_func_alloca = yes; then
 24215  
 24216  $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
 24217  
 24218  fi
 24219  
 24220  
 24221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
 24222  $as_echo_n "checking how to allocate temporary memory... " >&6; }
 24223  if ${gmp_cv_option_alloca+:} false; then :
 24224    $as_echo_n "(cached) " >&6
 24225  else
 24226    case $enable_alloca in
 24227    yes)
 24228      gmp_cv_option_alloca=alloca
 24229      ;;
 24230    no)
 24231      gmp_cv_option_alloca=malloc-reentrant
 24232      ;;
 24233    reentrant | notreentrant)
 24234      case $gmp_cv_func_alloca in
 24235      yes)  gmp_cv_option_alloca=alloca ;;
 24236      *)    gmp_cv_option_alloca=malloc-$enable_alloca ;;
 24237      esac
 24238      ;;
 24239    *)
 24240      gmp_cv_option_alloca=$enable_alloca
 24241      ;;
 24242  esac
 24243  
 24244  fi
 24245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
 24246  $as_echo "$gmp_cv_option_alloca" >&6; }
 24247  
 24248  
 24249  
 24250  case $gmp_cv_option_alloca in
 24251    alloca)
 24252      if test $gmp_cv_func_alloca = no; then
 24253        as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
 24254      fi
 24255      $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
 24256  
 24257      TAL_OBJECT=tal-reent$U.lo
 24258      ;;
 24259    malloc-reentrant)
 24260      $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
 24261  
 24262      TAL_OBJECT=tal-reent$U.lo
 24263      ;;
 24264    malloc-notreentrant)
 24265      $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
 24266  
 24267      TAL_OBJECT=tal-notreent$U.lo
 24268      ;;
 24269    debug)
 24270      $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
 24271  
 24272      TAL_OBJECT=tal-debug$U.lo
 24273      ;;
 24274    *)
 24275      # checks at the start of configure.in should protect us
 24276      as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
 24277      ;;
 24278  esac
 24279  
 24280  
 24281  
 24282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24283  /* end confdefs.h.  */
 24284  #include <stdio.h>
 24285  #define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
 24286  #define GMP_NAIL_BITS $GMP_NAIL_BITS
 24287  #define GMP_LIMB_BITS 123
 24288  $DEFN_LONG_LONG_LIMB
 24289  #include "$srcdir/gmp-h.in"
 24290  
 24291  #if ! _GMP_H_HAVE_FILE
 24292  die die die
 24293  #endif
 24294  
 24295  int
 24296  main ()
 24297  {
 24298  
 24299    ;
 24300    return 0;
 24301  }
 24302  _ACEOF
 24303  if ac_fn_c_try_compile "$LINENO"; then :
 24304  
 24305  else
 24306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
 24307  $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
 24308  fi
 24309  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24310  
 24311  
 24312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 24313  $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 24314  if ${ac_cv_c_bigendian+:} false; then :
 24315    $as_echo_n "(cached) " >&6
 24316  else
 24317    ac_cv_c_bigendian=unknown
 24318      # See if we're dealing with a universal compiler.
 24319      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24320  /* end confdefs.h.  */
 24321  #ifndef __APPLE_CC__
 24322  	       not a universal capable compiler
 24323  	     #endif
 24324  	     typedef int dummy;
 24325  
 24326  _ACEOF
 24327  if ac_fn_c_try_compile "$LINENO"; then :
 24328  
 24329  	# Check for potential -arch flags.  It is not universal unless
 24330  	# there are at least two -arch flags with different values.
 24331  	ac_arch=
 24332  	ac_prev=
 24333  	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 24334  	 if test -n "$ac_prev"; then
 24335  	   case $ac_word in
 24336  	     i?86 | x86_64 | ppc | ppc64)
 24337  	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 24338  		 ac_arch=$ac_word
 24339  	       else
 24340  		 ac_cv_c_bigendian=universal
 24341  		 break
 24342  	       fi
 24343  	       ;;
 24344  	   esac
 24345  	   ac_prev=
 24346  	 elif test "x$ac_word" = "x-arch"; then
 24347  	   ac_prev=arch
 24348  	 fi
 24349         done
 24350  fi
 24351  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24352      if test $ac_cv_c_bigendian = unknown; then
 24353        # See if sys/param.h defines the BYTE_ORDER macro.
 24354        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24355  /* end confdefs.h.  */
 24356  #include <sys/types.h>
 24357  	     #include <sys/param.h>
 24358  
 24359  int
 24360  main ()
 24361  {
 24362  #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 24363  		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 24364  		     && LITTLE_ENDIAN)
 24365  	      bogus endian macros
 24366  	     #endif
 24367  
 24368    ;
 24369    return 0;
 24370  }
 24371  _ACEOF
 24372  if ac_fn_c_try_compile "$LINENO"; then :
 24373    # It does; now see whether it defined to BIG_ENDIAN or not.
 24374  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24375  /* end confdefs.h.  */
 24376  #include <sys/types.h>
 24377  		#include <sys/param.h>
 24378  
 24379  int
 24380  main ()
 24381  {
 24382  #if BYTE_ORDER != BIG_ENDIAN
 24383  		 not big endian
 24384  		#endif
 24385  
 24386    ;
 24387    return 0;
 24388  }
 24389  _ACEOF
 24390  if ac_fn_c_try_compile "$LINENO"; then :
 24391    ac_cv_c_bigendian=yes
 24392  else
 24393    ac_cv_c_bigendian=no
 24394  fi
 24395  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24396  fi
 24397  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24398      fi
 24399      if test $ac_cv_c_bigendian = unknown; then
 24400        # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 24401        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24402  /* end confdefs.h.  */
 24403  #include <limits.h>
 24404  
 24405  int
 24406  main ()
 24407  {
 24408  #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 24409  	      bogus endian macros
 24410  	     #endif
 24411  
 24412    ;
 24413    return 0;
 24414  }
 24415  _ACEOF
 24416  if ac_fn_c_try_compile "$LINENO"; then :
 24417    # It does; now see whether it defined to _BIG_ENDIAN or not.
 24418  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24419  /* end confdefs.h.  */
 24420  #include <limits.h>
 24421  
 24422  int
 24423  main ()
 24424  {
 24425  #ifndef _BIG_ENDIAN
 24426  		 not big endian
 24427  		#endif
 24428  
 24429    ;
 24430    return 0;
 24431  }
 24432  _ACEOF
 24433  if ac_fn_c_try_compile "$LINENO"; then :
 24434    ac_cv_c_bigendian=yes
 24435  else
 24436    ac_cv_c_bigendian=no
 24437  fi
 24438  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24439  fi
 24440  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24441      fi
 24442      if test $ac_cv_c_bigendian = unknown; then
 24443        # Compile a test program.
 24444        if test "$cross_compiling" = yes; then :
 24445    # Try to guess by grepping values from an object file.
 24446  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24447  /* end confdefs.h.  */
 24448  short int ascii_mm[] =
 24449  		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 24450  		short int ascii_ii[] =
 24451  		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 24452  		int use_ascii (int i) {
 24453  		  return ascii_mm[i] + ascii_ii[i];
 24454  		}
 24455  		short int ebcdic_ii[] =
 24456  		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 24457  		short int ebcdic_mm[] =
 24458  		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 24459  		int use_ebcdic (int i) {
 24460  		  return ebcdic_mm[i] + ebcdic_ii[i];
 24461  		}
 24462  		extern int foo;
 24463  
 24464  int
 24465  main ()
 24466  {
 24467  return use_ascii (foo) == use_ebcdic (foo);
 24468    ;
 24469    return 0;
 24470  }
 24471  _ACEOF
 24472  if ac_fn_c_try_compile "$LINENO"; then :
 24473    if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 24474  	      ac_cv_c_bigendian=yes
 24475  	    fi
 24476  	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 24477  	      if test "$ac_cv_c_bigendian" = unknown; then
 24478  		ac_cv_c_bigendian=no
 24479  	      else
 24480  		# finding both strings is unlikely to happen, but who knows?
 24481  		ac_cv_c_bigendian=unknown
 24482  	      fi
 24483  	    fi
 24484  fi
 24485  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 24486  else
 24487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24488  /* end confdefs.h.  */
 24489  $ac_includes_default
 24490  int
 24491  main ()
 24492  {
 24493  
 24494  	     /* Are we little or big endian?  From Harbison&Steele.  */
 24495  	     union
 24496  	     {
 24497  	       long int l;
 24498  	       char c[sizeof (long int)];
 24499  	     } u;
 24500  	     u.l = 1;
 24501  	     return u.c[sizeof (long int) - 1] == 1;
 24502  
 24503    ;
 24504    return 0;
 24505  }
 24506  _ACEOF
 24507  if ac_fn_c_try_run "$LINENO"; then :
 24508    ac_cv_c_bigendian=no
 24509  else
 24510    ac_cv_c_bigendian=yes
 24511  fi
 24512  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 24513    conftest.$ac_objext conftest.beam conftest.$ac_ext
 24514  fi
 24515  
 24516      fi
 24517  fi
 24518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 24519  $as_echo "$ac_cv_c_bigendian" >&6; }
 24520   case $ac_cv_c_bigendian in #(
 24521     yes)
 24522       $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
 24523  
 24524  
 24525  echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
 24526  ;; #(
 24527     no)
 24528       $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
 24529  
 24530  
 24531  echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
 24532  
 24533     ;; #(
 24534     universal)
 24535  
 24536  $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 24537  
 24538       ;; #(
 24539     *)
 24540       : ;;
 24541   esac
 24542  
 24543  
 24544  
 24545  
 24546  
 24547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
 24548  $as_echo_n "checking format of \`double' floating point... " >&6; }
 24549  if ${gmp_cv_c_double_format+:} false; then :
 24550    $as_echo_n "(cached) " >&6
 24551  else
 24552    gmp_cv_c_double_format=unknown
 24553  cat >conftest.c <<\EOF
 24554  struct foo {
 24555    char    before[8];
 24556    double  x;
 24557    char    after[8];
 24558  };
 24559  extern struct foo foo;
 24560  struct foo foo = {
 24561    { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
 24562    -123456789.0,
 24563    { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
 24564  };
 24565  EOF
 24566  gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
 24567  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 24568    (eval $gmp_compile) 2>&5
 24569    ac_status=$?
 24570    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 24571    test $ac_status = 0; }; then
 24572  cat >conftest.awk <<\EOF
 24573  
 24574  BEGIN {
 24575    found = 0
 24576  }
 24577  
 24578  {
 24579    for (f = 2; f <= NF; f++)
 24580      {
 24581        for (i = 0; i < 23; i++)
 24582          got[i] = got[i+1];
 24583        got[23] = $f;
 24584  
 24585        # match the special begin and end sequences
 24586        if (got[0] != "001") continue
 24587        if (got[1] != "043") continue
 24588        if (got[2] != "105") continue
 24589        if (got[3] != "147") continue
 24590        if (got[4] != "211") continue
 24591        if (got[5] != "253") continue
 24592        if (got[6] != "315") continue
 24593        if (got[7] != "357") continue
 24594        if (got[16] != "376") continue
 24595        if (got[17] != "334") continue
 24596        if (got[18] != "272") continue
 24597        if (got[19] != "230") continue
 24598        if (got[20] != "166") continue
 24599        if (got[21] != "124") continue
 24600        if (got[22] != "062") continue
 24601        if (got[23] != "020") continue
 24602  
 24603        saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
 24604  
 24605        if (got[8]  == "000" &&  \
 24606            got[9]  == "000" &&  \
 24607            got[10] == "000" &&  \
 24608            got[11] == "124" &&  \
 24609            got[12] == "064" &&  \
 24610            got[13] == "157" &&  \
 24611            got[14] == "235" &&  \
 24612            got[15] == "301")
 24613          {
 24614            print "IEEE little endian"
 24615            found = 1
 24616            exit
 24617          }
 24618  
 24619        # Little endian with the two 4-byte halves swapped, as used by ARM
 24620        # when the chip is in little endian mode.
 24621        #
 24622        if (got[8]  == "064" &&  \
 24623            got[9]  == "157" &&  \
 24624            got[10] == "235" &&  \
 24625            got[11] == "301" &&  \
 24626            got[12] == "000" &&  \
 24627            got[13] == "000" &&  \
 24628            got[14] == "000" &&  \
 24629            got[15] == "124")
 24630          {
 24631            print "IEEE little endian, swapped halves"
 24632            found = 1
 24633            exit
 24634          }
 24635  
 24636        # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
 24637        # the last byte, whereas 124 is correct.  Not sure where the bug
 24638        # actually lies, but a running program didn't seem to get a full
 24639        # mantissa worth of working bits.
 24640        #
 24641        # We match this case explicitly so we can give a nice result message,
 24642        # but we deliberately exclude it from the normal IEEE double setups
 24643        # since it's too broken.
 24644        #
 24645        if (got[8]  == "064" &&  \
 24646            got[9]  == "157" &&  \
 24647            got[10] == "235" &&  \
 24648            got[11] == "301" &&  \
 24649            got[12] == "000" &&  \
 24650            got[13] == "000" &&  \
 24651            got[14] == "000" &&  \
 24652            got[15] == "000")
 24653          {
 24654            print "bad ARM software floats"
 24655            found = 1
 24656            exit
 24657          }
 24658  
 24659        if (got[8]  == "301" &&  \
 24660            got[9]  == "235" &&  \
 24661            got[10] == "157" &&  \
 24662            got[11] == "064" &&  \
 24663            got[12] == "124" &&  \
 24664            got[13] == "000" &&  \
 24665            got[14] == "000" &&  \
 24666  	  got[15] == "000")
 24667          {
 24668            print "IEEE big endian"
 24669            found = 1
 24670            exit
 24671          }
 24672  
 24673        if (got[8]  == "353" &&  \
 24674            got[9]  == "315" &&  \
 24675            got[10] == "242" &&  \
 24676            got[11] == "171" &&  \
 24677            got[12] == "000" &&  \
 24678            got[13] == "240" &&  \
 24679            got[14] == "000" &&  \
 24680            got[15] == "000")
 24681          {
 24682            print "VAX D"
 24683            found = 1
 24684            exit
 24685          }
 24686  
 24687        if (got[8]  == "275" &&  \
 24688            got[9]  == "301" &&  \
 24689            got[10] == "064" &&  \
 24690            got[11] == "157" &&  \
 24691            got[12] == "000" &&  \
 24692            got[13] == "124" &&  \
 24693            got[14] == "000" &&  \
 24694            got[15] == "000")
 24695          {
 24696            print "VAX G"
 24697            found = 1
 24698            exit
 24699          }
 24700  
 24701        if (got[8]  == "300" &&  \
 24702            got[9]  == "033" &&  \
 24703            got[10] == "353" &&  \
 24704            got[11] == "171" &&  \
 24705            got[12] == "242" &&  \
 24706            got[13] == "240" &&  \
 24707            got[14] == "000" &&  \
 24708            got[15] == "000")
 24709          {
 24710            print "Cray CFP"
 24711            found = 1
 24712            exit
 24713          }
 24714      }
 24715  }
 24716  
 24717  END {
 24718    if (! found)
 24719      print "unknown", saw
 24720  }
 24721  
 24722  EOF
 24723    gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
 24724    case $gmp_cv_c_double_format in
 24725    unknown*)
 24726      echo "cannot match anything, conftest.$OBJEXT contains" >&5
 24727      od -b conftest.$OBJEXT >&5
 24728      ;;
 24729    esac
 24730  else
 24731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
 24732  $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
 24733  fi
 24734  rm -f conftest*
 24735  
 24736  fi
 24737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
 24738  $as_echo "$gmp_cv_c_double_format" >&6; }
 24739  
 24740  
 24741  
 24742  case $gmp_cv_c_double_format in
 24743    "IEEE big endian")
 24744      $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
 24745  
 24746  
 24747  echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
 24748  
 24749      ;;
 24750    "IEEE little endian")
 24751      $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
 24752  
 24753  
 24754  echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
 24755  
 24756      ;;
 24757    "IEEE little endian, swapped halves")
 24758      $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
 24759   ;;
 24760    "VAX D")
 24761      $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
 24762   ;;
 24763    "VAX G")
 24764      $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
 24765   ;;
 24766    "Cray CFP")
 24767      $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
 24768   ;;
 24769    "bad ARM software floats")
 24770      ;;
 24771    unknown*)
 24772      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
 24773  $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
 24774      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
 24775  $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
 24776      ;;
 24777    *)
 24778      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
 24779  $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
 24780      ;;
 24781  esac
 24782  
 24783  
 24784  
 24785  # Reasons for testing:
 24786  #   alarm - not in mingw
 24787  #   attr_get - IRIX specific
 24788  #   clock_gettime - not in glibc 2.2.4, only very recent systems
 24789  #   cputime - not in glibc
 24790  #   getsysinfo - OSF specific
 24791  #   getrusage - not in mingw
 24792  #   gettimeofday - not in mingw
 24793  #   mmap - not in mingw, djgpp
 24794  #   nl_langinfo - X/Open standard only, not in djgpp for instance
 24795  #   obstack_vprintf - glibc specific
 24796  #   processor_info - solaris specific
 24797  #   pstat_getprocessor - HPUX specific (10.x and up)
 24798  #   raise - an ANSI-ism, though probably almost universal by now
 24799  #   read_real_time - AIX specific
 24800  #   sigaction - not in mingw
 24801  #   sigaltstack - not in mingw, or old AIX (reputedly)
 24802  #   sigstack - not in mingw
 24803  #   strerror - not in SunOS
 24804  #   strnlen - glibc extension (some other systems too)
 24805  #   syssgi - IRIX specific
 24806  #   times - not in mingw
 24807  #
 24808  # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
 24809  # replacement setups it gives.  It detects a faulty strnlen on AIX, but
 24810  # missing out on that test is ok since our only use of strnlen is in
 24811  # __gmp_replacement_vsnprintf which is not required on AIX since it has a
 24812  # vsnprintf.
 24813  #
 24814  for ac_func in alarm attr_get clock cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
 24815  do :
 24816    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 24817  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 24818  if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 24819    cat >>confdefs.h <<_ACEOF
 24820  #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 24821  _ACEOF
 24822  
 24823  fi
 24824  done
 24825  
 24826  
 24827  # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to
 24828  # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26),
 24829  # clock_getres reports ns accuracy, while in a quick test on osf
 24830  # clock_getres said only 1 millisecond.
 24831  
 24832  old_LIBS="$LIBS"
 24833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
 24834  $as_echo_n "checking for library containing clock_gettime... " >&6; }
 24835  if ${ac_cv_search_clock_gettime+:} false; then :
 24836    $as_echo_n "(cached) " >&6
 24837  else
 24838    ac_func_search_save_LIBS=$LIBS
 24839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24840  /* end confdefs.h.  */
 24841  
 24842  /* Override any GCC internal prototype to avoid an error.
 24843     Use char because int might match the return type of a GCC
 24844     builtin and then its argument prototype would still apply.  */
 24845  #ifdef __cplusplus
 24846  extern "C"
 24847  #endif
 24848  char clock_gettime ();
 24849  int
 24850  main ()
 24851  {
 24852  return clock_gettime ();
 24853    ;
 24854    return 0;
 24855  }
 24856  _ACEOF
 24857  for ac_lib in '' rt; do
 24858    if test -z "$ac_lib"; then
 24859      ac_res="none required"
 24860    else
 24861      ac_res=-l$ac_lib
 24862      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 24863    fi
 24864    if ac_fn_c_try_link "$LINENO"; then :
 24865    ac_cv_search_clock_gettime=$ac_res
 24866  fi
 24867  rm -f core conftest.err conftest.$ac_objext \
 24868      conftest$ac_exeext
 24869    if ${ac_cv_search_clock_gettime+:} false; then :
 24870    break
 24871  fi
 24872  done
 24873  if ${ac_cv_search_clock_gettime+:} false; then :
 24874  
 24875  else
 24876    ac_cv_search_clock_gettime=no
 24877  fi
 24878  rm conftest.$ac_ext
 24879  LIBS=$ac_func_search_save_LIBS
 24880  fi
 24881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
 24882  $as_echo "$ac_cv_search_clock_gettime" >&6; }
 24883  ac_res=$ac_cv_search_clock_gettime
 24884  if test "$ac_res" != no; then :
 24885    test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 24886  
 24887  
 24888  $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
 24889  
 24890  fi
 24891  
 24892  TUNE_LIBS="$LIBS"
 24893  LIBS="$old_LIBS"
 24894  
 24895  
 24896  
 24897  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
 24898  if test "x$ac_cv_func_vsnprintf" = xyes; then :
 24899    gmp_vsnprintf_exists=yes
 24900  else
 24901    gmp_vsnprintf_exists=no
 24902  fi
 24903  
 24904  if test "$gmp_vsnprintf_exists" = no; then
 24905    gmp_cv_func_vsnprintf=no
 24906  else
 24907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
 24908  $as_echo_n "checking whether vsnprintf works... " >&6; }
 24909  if ${gmp_cv_func_vsnprintf+:} false; then :
 24910    $as_echo_n "(cached) " >&6
 24911  else
 24912    gmp_cv_func_vsnprintf=yes
 24913     for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do
 24914       if test "$cross_compiling" = yes; then :
 24915    gmp_cv_func_vsnprintf=probably; break
 24916  else
 24917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 24918  /* end confdefs.h.  */
 24919  
 24920  #include <string.h>  /* for strcmp */
 24921  #include <stdio.h>   /* for vsnprintf */
 24922  
 24923  #include <stdarg.h>
 24924  
 24925  int
 24926  check (const char *fmt, ...)
 24927  {
 24928    static char  buf[128];
 24929    va_list  ap;
 24930    int      ret;
 24931  
 24932    va_start (ap, fmt);
 24933  
 24934    ret = vsnprintf (buf, 4, fmt, ap);
 24935  
 24936    if (strcmp (buf, "hel") != 0)
 24937      return 1;
 24938  
 24939    /* allowed return values */
 24940    if (ret != -1 && ret != 3 && ret != 11)
 24941      return 2;
 24942  
 24943    return 0;
 24944  }
 24945  
 24946  int
 24947  main ()
 24948  {
 24949  $i
 24950  }
 24951  
 24952  _ACEOF
 24953  if ac_fn_c_try_run "$LINENO"; then :
 24954    :
 24955  else
 24956    gmp_cv_func_vsnprintf=no; break
 24957  fi
 24958  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 24959    conftest.$ac_objext conftest.beam conftest.$ac_ext
 24960  fi
 24961  
 24962    done
 24963  
 24964  fi
 24965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
 24966  $as_echo "$gmp_cv_func_vsnprintf" >&6; }
 24967    if test "$gmp_cv_func_vsnprintf" = probably; then
 24968      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
 24969  $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
 24970    fi
 24971    if test "$gmp_cv_func_vsnprintf" != no; then
 24972  
 24973  $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
 24974  
 24975    fi
 24976  fi
 24977  
 24978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
 24979  $as_echo_n "checking whether sscanf needs writable input... " >&6; }
 24980  if ${gmp_cv_func_sscanf_writable_input+:} false; then :
 24981    $as_echo_n "(cached) " >&6
 24982  else
 24983    case $host in
 24984    *-*-hpux9 | *-*-hpux9.*)
 24985       gmp_cv_func_sscanf_writable_input=yes ;;
 24986    *) gmp_cv_func_sscanf_writable_input=no  ;;
 24987  esac
 24988  
 24989  fi
 24990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
 24991  $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
 24992  case $gmp_cv_func_sscanf_writable_input in
 24993    yes)
 24994  $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
 24995   ;;
 24996    no)  ;;
 24997    *)   as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
 24998  esac
 24999  
 25000  
 25001  # Reasons for checking:
 25002  #   pst_processor psp_iticksperclktick - not in hpux 9
 25003  #
 25004  ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
 25005  "
 25006  if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then :
 25007  
 25008  $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
 25009  
 25010  fi
 25011  
 25012  
 25013  # C++ tests, when required
 25014  #
 25015  if test $enable_cxx = yes; then
 25016    ac_ext=cpp
 25017  ac_cpp='$CXXCPP $CPPFLAGS'
 25018  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 25019  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 25020  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 25021  
 25022  
 25023    # Reasons for testing:
 25024    #   <sstream> - not in g++ 2.95.2
 25025    #   std::locale - not in g++ 2.95.4
 25026    #
 25027  
 25028  for ac_header in sstream
 25029  do :
 25030    ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
 25031  if test "x$ac_cv_header_sstream" = xyes; then :
 25032    cat >>confdefs.h <<_ACEOF
 25033  #define HAVE_SSTREAM 1
 25034  _ACEOF
 25035  
 25036  fi
 25037  
 25038  done
 25039  
 25040    ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
 25041  "
 25042  if test "x$ac_cv_type_std__locale" = xyes; then :
 25043  
 25044  cat >>confdefs.h <<_ACEOF
 25045  #define HAVE_STD__LOCALE 1
 25046  _ACEOF
 25047  
 25048  
 25049  fi
 25050  
 25051  
 25052    ac_ext=c
 25053  ac_cpp='$CPP $CPPFLAGS'
 25054  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 25055  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 25056  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 25057  
 25058  fi
 25059  
 25060  
 25061  # Pick the correct source files in $path and link them to mpn/.
 25062  # $gmp_mpn_functions lists all functions we need.
 25063  #
 25064  # The rule is to find a file with the function name and a .asm, .S,
 25065  # .s, or .c extension.  Certain multi-function files with special names
 25066  # can provide some functions too.  (mpn/Makefile.am passes
 25067  # -DOPERATION_<func> to get them to generate the right code.)
 25068  
 25069  # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
 25070  #       can optionally provide the latter as an extra entrypoint.  Likewise
 25071  #       divrem_1 and pre_divrem_1.
 25072  
 25073  gmp_mpn_functions_optional="umul udiv					\
 25074    invert_limb sqr_diagonal sqr_diag_addlsh1				\
 25075    mul_2 mul_3 mul_4 mul_5 mul_6						\
 25076    addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8	\
 25077    addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n			\
 25078    addlsh2_n sublsh2_n rsblsh2_n						\
 25079    addlsh_n sublsh_n rsblsh_n						\
 25080    add_n_sub_n addaddmul_1msb0"
 25081  
 25082  gmp_mpn_functions="$extra_functions					   \
 25083    add add_1 add_n sub sub_1 sub_n cnd_add_n cnd_sub_n cnd_swap neg com	   \
 25084    mul_1 addmul_1 submul_1						   \
 25085    add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n	   \
 25086    lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2		   \
 25087    fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump		   \
 25088    mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc				   \
 25089    mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul	   \
 25090    mulmid_basecase toom42_mulmid mulmid_n mulmid				   \
 25091    random random2 pow_1							   \
 25092    rootrem sqrtrem sizeinbase get_str set_str				   \
 25093    scan0 scan1 popcount hamdist cmp zero_p				   \
 25094    perfsqr perfpow							   \
 25095    gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step				   \
 25096    gcdext_lehmer								   \
 25097    div_q tdiv_qr jacbase jacobi_2 jacobi get_d				   \
 25098    matrix22_mul matrix22_mul1_inverse_vector				   \
 25099    hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr		   \
 25100    hgcd2_jacobi hgcd_jacobi						   \
 25101    mullo_n mullo_basecase sqrlo sqrlo_basecase				   \
 25102    toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul		   \
 25103    toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul		   \
 25104    toom44_mul								   \
 25105    toom6h_mul toom6_sqr toom8h_mul toom8_sqr				   \
 25106    toom_couple_handling							   \
 25107    toom2_sqr toom3_sqr toom4_sqr						   \
 25108    toom_eval_dgr3_pm1 toom_eval_dgr3_pm2					   \
 25109    toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp	   \
 25110    toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts	   \
 25111    toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts	   \
 25112    invertappr invert binvert mulmod_bnm1 sqrmod_bnm1			   \
 25113    div_qr_1 div_qr_1n_pi1						   \
 25114    div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1					   \
 25115    sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q				   \
 25116    dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q				   \
 25117    mu_div_qr mu_divappr_q mu_div_q					   \
 25118    bdiv_q_1								   \
 25119    sbpi1_bdiv_q sbpi1_bdiv_qr						   \
 25120    dcpi1_bdiv_q dcpi1_bdiv_qr						   \
 25121    mu_bdiv_q mu_bdiv_qr							   \
 25122    bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv				   \
 25123    divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo sec_powm		   \
 25124    sec_mul sec_sqr sec_div_qr sec_div_r sec_pi1_div_qr sec_pi1_div_r	   \
 25125    sec_add_1 sec_sub_1 sec_invert					   \
 25126    trialdiv remove							   \
 25127    and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n			   \
 25128    copyi copyd zero sec_tabselect					   \
 25129    comb_tables								   \
 25130    $gmp_mpn_functions_optional"
 25131  
 25132  
 25133  
 25134  # the list of all object files used by mpn/Makefile.in and the
 25135  # top-level Makefile.in, respectively
 25136  mpn_objects=
 25137  mpn_objs_in_libgmp=
 25138  
 25139  # links from the sources, to be removed by "make distclean"
 25140  gmp_srclinks=
 25141  
 25142  
 25143  # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
 25144  # build directory.  If $srcdir is relative then we use a relative path too,
 25145  # so the two trees can be moved together.
 25146  case $srcdir in
 25147    [\\/]* | ?:[\\/]*)  # absolute, as per autoconf
 25148      mpn_relative_top_srcdir=$srcdir ;;
 25149    *)                    # relative
 25150      mpn_relative_top_srcdir=../$srcdir ;;
 25151  esac
 25152  
 25153  
 25154  
 25155  
 25156  
 25157  
 25158  # Fat binary setups.
 25159  #
 25160  # We proceed through each $fat_path directory, and look for $fat_function
 25161  # routines there.  Those found are incorporated in the build by generating a
 25162  # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
 25163  # suitable function renaming, and adding that to $mpn_objects (the same as a
 25164  # normal mpn file).
 25165  #
 25166  # fat.h is generated with macros to let internal calls to each $fat_function
 25167  # go directly through __gmpn_cpuvec, plus macros and declarations helping to
 25168  # setup that structure, on a per-directory basis ready for
 25169  # mpn/<cpu>/fat/fat.c.
 25170  #
 25171  # fat.h includes thresholds listed in $fat_thresholds, extracted from
 25172  # gmp-mparam.h in each directory.  An overall maximum for each threshold is
 25173  # established, for use in making fixed size arrays of temporary space.
 25174  # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
 25175  #
 25176  # It'd be possible to do some of this manually, but when there's more than a
 25177  # few functions and a few directories it becomes very tedious, and very
 25178  # prone to having some routine accidentally omitted.  On that basis it seems
 25179  # best to automate as much as possible, even if the code to do so is a bit
 25180  # ugly.
 25181  #
 25182  
 25183  if test -n "$fat_path"; then
 25184    # Usually the mpn build directory is created with mpn/Makefile
 25185    # instantiation, but we want to write to it sooner.
 25186    mkdir mpn 2>/dev/null
 25187  
 25188    echo "/* fat.h - setups for fat binaries." >fat.h
 25189    echo "   Generated by configure - DO NOT EDIT.  */" >>fat.h
 25190  
 25191  
 25192  $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
 25193  
 25194  
 25195  echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
 25196  
 25197  
 25198    # Don't want normal copies of fat functions
 25199    for tmp_fn in $fat_functions; do
 25200      remove_from_list_tmp=
 25201  for remove_from_list_i in $gmp_mpn_functions; do
 25202    if test $remove_from_list_i = $tmp_fn; then :;
 25203    else
 25204       remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
 25205    fi
 25206  done
 25207  gmp_mpn_functions=$remove_from_list_tmp
 25208  
 25209      remove_from_list_tmp=
 25210  for remove_from_list_i in $gmp_mpn_functions_optional; do
 25211    if test $remove_from_list_i = $tmp_fn; then :;
 25212    else
 25213       remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
 25214    fi
 25215  done
 25216  gmp_mpn_functions_optional=$remove_from_list_tmp
 25217  
 25218    done
 25219  
 25220    for tmp_fn in $fat_functions; do
 25221      case $tmp_fn in
 25222    dive_1)	tmp_fbase=divexact_1 ;;
 25223    diveby3)	tmp_fbase=divexact_by3c ;;
 25224    pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
 25225    mode1o)	tmp_fbase=modexact_1c_odd ;;
 25226    pre_mod_1)	tmp_fbase=preinv_mod_1 ;;
 25227    mod_1_1)	tmp_fbase=mod_1_1p ;;
 25228    mod_1_1_cps)	tmp_fbase=mod_1_1p_cps ;;
 25229    mod_1_2)	tmp_fbase=mod_1s_2p ;;
 25230    mod_1_2_cps)	tmp_fbase=mod_1s_2p_cps ;;
 25231    mod_1_3)	tmp_fbase=mod_1s_3p ;;
 25232    mod_1_3_cps)	tmp_fbase=mod_1s_3p_cps ;;
 25233    mod_1_4)	tmp_fbase=mod_1s_4p ;;
 25234    mod_1_4_cps)	tmp_fbase=mod_1s_4p_cps ;;
 25235    *)		tmp_fbase=$tmp_fn ;;
 25236  esac
 25237  
 25238      echo "
 25239  #ifndef OPERATION_$tmp_fn
 25240  #undef  mpn_$tmp_fbase
 25241  #define mpn_$tmp_fbase  (*__gmpn_cpuvec.$tmp_fbase)
 25242  #endif
 25243  DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
 25244      # encourage various macros to use fat functions
 25245      cat >>confdefs.h <<_ACEOF
 25246  #define HAVE_NATIVE_mpn_$tmp_fbase 1
 25247  _ACEOF
 25248  
 25249    done
 25250  
 25251    echo "" >>fat.h
 25252    echo "/* variable thresholds */" >>fat.h
 25253    for tmp_tn in $fat_thresholds; do
 25254      echo "#undef  $tmp_tn" >>fat.h
 25255      echo "#define $tmp_tn  CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
 25256    done
 25257  
 25258    echo "
 25259  /* Copy all fields into __gmpn_cpuvec.
 25260     memcpy is not used because it might operate byte-wise (depending on its
 25261     implementation), and we need the function pointer writes to be atomic.
 25262     "volatile" discourages the compiler from trying to optimize this.  */
 25263  #define CPUVEC_INSTALL(vec) \\
 25264    do { \\
 25265      volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
 25266    for tmp_fn in $fat_functions; do
 25267      case $tmp_fn in
 25268    dive_1)	tmp_fbase=divexact_1 ;;
 25269    diveby3)	tmp_fbase=divexact_by3c ;;
 25270    pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
 25271    mode1o)	tmp_fbase=modexact_1c_odd ;;
 25272    pre_mod_1)	tmp_fbase=preinv_mod_1 ;;
 25273    mod_1_1)	tmp_fbase=mod_1_1p ;;
 25274    mod_1_1_cps)	tmp_fbase=mod_1_1p_cps ;;
 25275    mod_1_2)	tmp_fbase=mod_1s_2p ;;
 25276    mod_1_2_cps)	tmp_fbase=mod_1s_2p_cps ;;
 25277    mod_1_3)	tmp_fbase=mod_1s_3p ;;
 25278    mod_1_3_cps)	tmp_fbase=mod_1s_3p_cps ;;
 25279    mod_1_4)	tmp_fbase=mod_1s_4p ;;
 25280    mod_1_4_cps)	tmp_fbase=mod_1s_4p_cps ;;
 25281    *)		tmp_fbase=$tmp_fn ;;
 25282  esac
 25283  
 25284      echo "    p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
 25285    done
 25286    for tmp_tn in $fat_thresholds; do
 25287      tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
 25288      echo "    p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
 25289    done
 25290    echo "  } while (0)" >>fat.h
 25291  
 25292    echo "
 25293  /* A helper to check all fields are filled. */
 25294  #define ASSERT_CPUVEC(vec) \\
 25295    do { \\" >>fat.h
 25296    for tmp_fn in $fat_functions; do
 25297      case $tmp_fn in
 25298    dive_1)	tmp_fbase=divexact_1 ;;
 25299    diveby3)	tmp_fbase=divexact_by3c ;;
 25300    pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
 25301    mode1o)	tmp_fbase=modexact_1c_odd ;;
 25302    pre_mod_1)	tmp_fbase=preinv_mod_1 ;;
 25303    mod_1_1)	tmp_fbase=mod_1_1p ;;
 25304    mod_1_1_cps)	tmp_fbase=mod_1_1p_cps ;;
 25305    mod_1_2)	tmp_fbase=mod_1s_2p ;;
 25306    mod_1_2_cps)	tmp_fbase=mod_1s_2p_cps ;;
 25307    mod_1_3)	tmp_fbase=mod_1s_3p ;;
 25308    mod_1_3_cps)	tmp_fbase=mod_1s_3p_cps ;;
 25309    mod_1_4)	tmp_fbase=mod_1s_4p ;;
 25310    mod_1_4_cps)	tmp_fbase=mod_1s_4p_cps ;;
 25311    *)		tmp_fbase=$tmp_fn ;;
 25312  esac
 25313  
 25314      echo "    ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
 25315    done
 25316    for tmp_tn in $fat_thresholds; do
 25317      tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
 25318      echo "    ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
 25319    done
 25320    echo "  } while (0)" >>fat.h
 25321  
 25322    echo "
 25323  /* Call ITERATE(field) for each fat threshold field. */
 25324  #define ITERATE_FAT_THRESHOLDS() \\
 25325    do { \\" >>fat.h
 25326    for tmp_tn in $fat_thresholds; do
 25327      tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]`
 25328      echo "    ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
 25329    done
 25330    echo "  } while (0)" >>fat.h
 25331  
 25332    for tmp_dir in $fat_path; do
 25333      CPUVEC_SETUP=
 25334      THRESH_ASM_SETUP=
 25335      echo "" >>fat.h
 25336      tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
 25337  
 25338      # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
 25339      # (rather than a suffix) for the generated file names, and abbreviate.
 25340      case $tmp_suffix in
 25341        pentium)       tmp_prefix=p   ;;
 25342        pentium_mmx)   tmp_prefix=pm  ;;
 25343        p6_mmx)        tmp_prefix=p2  ;;
 25344        p6_p3mmx)      tmp_prefix=p3  ;;
 25345        pentium4)      tmp_prefix=p4  ;;
 25346        pentium4_mmx)  tmp_prefix=p4m ;;
 25347        pentium4_sse2) tmp_prefix=p4s ;;
 25348        k6_mmx)        tmp_prefix=k6m ;;
 25349        k6_k62mmx)     tmp_prefix=k62 ;;
 25350        k7_mmx)        tmp_prefix=k7m ;;
 25351        *)             tmp_prefix=$tmp_suffix ;;
 25352      esac
 25353  
 25354      # Extract desired thresholds from gmp-mparam.h file in this directory,
 25355      # if present.
 25356      tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
 25357      if test -f $tmp_mparam; then
 25358        for tmp_tn in $fat_thresholds; do
 25359          tmp_thresh=`sed -n "s/^#define $tmp_tn[ 	]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
 25360          if test -n "$tmp_thresh"; then
 25361            THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
 25362  "
 25363            CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\
 25364  "
 25365            eval tmp_limit=\$${tmp_tn}_LIMIT
 25366            if test -z "$tmp_limit"; then
 25367              tmp_limit=0
 25368            fi
 25369            if test $tmp_thresh -gt $tmp_limit; then
 25370              eval ${tmp_tn}_LIMIT=$tmp_thresh
 25371            fi
 25372          fi
 25373        done
 25374      fi
 25375  
 25376      for tmp_fn in $fat_functions; do
 25377        # functions that can be provided by multi-function files
 25378  tmp_mulfunc=
 25379  case $tmp_fn in
 25380    add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
 25381    add_err1_n|sub_err1_n)
 25382  		     tmp_mulfunc="aors_err1_n" ;;
 25383    add_err2_n|sub_err2_n)
 25384  		     tmp_mulfunc="aors_err2_n" ;;
 25385    add_err3_n|sub_err3_n)
 25386  		     tmp_mulfunc="aors_err3_n" ;;
 25387    cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n"   ;;
 25388    sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1"   ;;
 25389    addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
 25390    mul_2|addmul_2)    tmp_mulfunc="aormul_2" ;;
 25391    mul_3|addmul_3)    tmp_mulfunc="aormul_3" ;;
 25392    mul_4|addmul_4)    tmp_mulfunc="aormul_4" ;;
 25393    popcount|hamdist)  tmp_mulfunc="popham"    ;;
 25394    and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
 25395                       tmp_mulfunc="logops_n"  ;;
 25396    lshift|rshift)     tmp_mulfunc="lorrshift";;
 25397    addlsh1_n)
 25398  		     tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";;
 25399    sublsh1_n)
 25400  		     tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";;
 25401    rsblsh1_n)
 25402  		     tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";;
 25403    addlsh2_n)
 25404  		     tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";;
 25405    sublsh2_n)
 25406  		     tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";;
 25407    rsblsh2_n)
 25408  		     tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";;
 25409    addlsh_n)
 25410  		     tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";;
 25411    sublsh_n)
 25412  		     tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";;
 25413    rsblsh_n)
 25414  		     tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";;
 25415    rsh1add_n|rsh1sub_n)
 25416  		     tmp_mulfunc="rsh1aors_n";;
 25417    sec_div_qr|sec_div_r)
 25418  		     tmp_mulfunc="sec_div";;
 25419    sec_pi1_div_qr|sec_pi1_div_r)
 25420  		     tmp_mulfunc="sec_pi1_div";;
 25421  esac
 25422  
 25423  
 25424        for tmp_base in $tmp_fn $tmp_mulfunc; do
 25425          for tmp_ext in asm S s c; do
 25426            tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
 25427            if test -f $tmp_file; then
 25428  
 25429  	    # If the host uses a non-standard ABI, check if tmp_file supports it
 25430  	    #
 25431  	    if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
 25432  	      abi=`sed -n 's/^[ 	]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
 25433  	      if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
 25434  		true
 25435  	      else
 25436  		continue
 25437  	      fi
 25438  	    fi
 25439  
 25440              mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
 25441              mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
 25442  
 25443              case $tmp_fn in
 25444    dive_1)	tmp_fbase=divexact_1 ;;
 25445    diveby3)	tmp_fbase=divexact_by3c ;;
 25446    pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
 25447    mode1o)	tmp_fbase=modexact_1c_odd ;;
 25448    pre_mod_1)	tmp_fbase=preinv_mod_1 ;;
 25449    mod_1_1)	tmp_fbase=mod_1_1p ;;
 25450    mod_1_1_cps)	tmp_fbase=mod_1_1p_cps ;;
 25451    mod_1_2)	tmp_fbase=mod_1s_2p ;;
 25452    mod_1_2_cps)	tmp_fbase=mod_1s_2p_cps ;;
 25453    mod_1_3)	tmp_fbase=mod_1s_3p ;;
 25454    mod_1_3_cps)	tmp_fbase=mod_1s_3p_cps ;;
 25455    mod_1_4)	tmp_fbase=mod_1s_4p ;;
 25456    mod_1_4_cps)	tmp_fbase=mod_1s_4p_cps ;;
 25457    *)		tmp_fbase=$tmp_fn ;;
 25458  esac
 25459  
 25460  
 25461              # carry-in variant, eg. divrem_1c or modexact_1c_odd
 25462              case $tmp_fbase in
 25463                *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
 25464                *)    tmp_fbasec=${tmp_fbase}c ;;
 25465              esac
 25466  
 25467              # Create a little file doing an include from srcdir.  The
 25468              # OPERATION and renamings aren't all needed all the time, but
 25469              # they don't hurt if unused.
 25470              #
 25471              # FIXME: Should generate these via config.status commands.
 25472              # Would need them all in one AC_CONFIG_COMMANDS though, since
 25473              # that macro doesn't accept a set of separate commands generated
 25474              # by shell code.
 25475              #
 25476              case $tmp_ext in
 25477                asm)
 25478                  # hide the d-n-l from autoconf's error checking
 25479                  tmp_d_n_l=d""nl
 25480                  echo "$tmp_d_n_l  mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
 25481  $tmp_d_n_l  Generated by configure - DO NOT EDIT.
 25482  
 25483  define(OPERATION_$tmp_fn)
 25484  define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
 25485  define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
 25486  define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
 25487  define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix})
 25488  
 25489  $tmp_d_n_l  For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
 25490  ifdef(\`__gmpn_modexact_1_odd',,
 25491  \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
 25492  
 25493  $THRESH_ASM_SETUP
 25494  include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
 25495  " >mpn/${tmp_prefix}_$tmp_fn.asm
 25496                  ;;
 25497                c)
 25498                  echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
 25499     Generated by configure - DO NOT EDIT. */
 25500  
 25501  #define OPERATION_$tmp_fn 1
 25502  #define __gmpn_$tmp_fbase           __gmpn_${tmp_fbase}_$tmp_suffix
 25503  #define __gmpn_$tmp_fbasec          __gmpn_${tmp_fbasec}_${tmp_suffix}
 25504  #define __gmpn_preinv_${tmp_fbase}  __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
 25505  #define __gmpn_${tmp_fbase}_cps     __gmpn_${tmp_fbase}_cps_${tmp_suffix}
 25506  
 25507  #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
 25508  " >mpn/${tmp_prefix}_$tmp_fn.c
 25509                  ;;
 25510              esac
 25511  
 25512              # Prototype, and append to CPUVEC_SETUP for this directory.
 25513              echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
 25514              CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
 25515  "
 25516              # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
 25517              if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
 25518                echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
 25519                CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
 25520  "
 25521              fi
 25522  
 25523              # Ditto for any mod_1...cps variant
 25524              if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
 25525                echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h
 25526                CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\
 25527  "
 25528              fi
 25529            fi
 25530          done
 25531        done
 25532      done
 25533  
 25534      # Emit CPUVEC_SETUP for this directory
 25535      echo "" >>fat.h
 25536      echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
 25537      echo "  do { \\" >>fat.h
 25538      echo "$CPUVEC_SETUP  } while (0)" >>fat.h
 25539    done
 25540  
 25541    # Emit threshold limits
 25542    echo "" >>fat.h
 25543    for tmp_tn in $fat_thresholds; do
 25544      eval tmp_limit=\$${tmp_tn}_LIMIT
 25545      echo "#define ${tmp_tn}_LIMIT  $tmp_limit" >>fat.h
 25546    done
 25547  fi
 25548  
 25549  
 25550  # Normal binary setups.
 25551  #
 25552  
 25553  for tmp_ext in asm S s c; do
 25554    eval found_$tmp_ext=no
 25555  done
 25556  
 25557  for tmp_fn in $gmp_mpn_functions; do
 25558    for tmp_ext in asm S s c; do
 25559      test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
 25560    done
 25561  
 25562    # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
 25563    # mpn_preinv_mod_1 by mod_1.asm.
 25564    case $tmp_fn in
 25565    pre_divrem_1)
 25566      if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
 25567    pre_mod_1)
 25568      if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
 25569    esac
 25570  
 25571    # functions that can be provided by multi-function files
 25572  tmp_mulfunc=
 25573  case $tmp_fn in
 25574    add_n|sub_n)       tmp_mulfunc="aors_n"    ;;
 25575    add_err1_n|sub_err1_n)
 25576  		     tmp_mulfunc="aors_err1_n" ;;
 25577    add_err2_n|sub_err2_n)
 25578  		     tmp_mulfunc="aors_err2_n" ;;
 25579    add_err3_n|sub_err3_n)
 25580  		     tmp_mulfunc="aors_err3_n" ;;
 25581    cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n"   ;;
 25582    sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1"   ;;
 25583    addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
 25584    mul_2|addmul_2)    tmp_mulfunc="aormul_2" ;;
 25585    mul_3|addmul_3)    tmp_mulfunc="aormul_3" ;;
 25586    mul_4|addmul_4)    tmp_mulfunc="aormul_4" ;;
 25587    popcount|hamdist)  tmp_mulfunc="popham"    ;;
 25588    and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
 25589                       tmp_mulfunc="logops_n"  ;;
 25590    lshift|rshift)     tmp_mulfunc="lorrshift";;
 25591    addlsh1_n)
 25592  		     tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";;
 25593    sublsh1_n)
 25594  		     tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";;
 25595    rsblsh1_n)
 25596  		     tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";;
 25597    addlsh2_n)
 25598  		     tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";;
 25599    sublsh2_n)
 25600  		     tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";;
 25601    rsblsh2_n)
 25602  		     tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";;
 25603    addlsh_n)
 25604  		     tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";;
 25605    sublsh_n)
 25606  		     tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";;
 25607    rsblsh_n)
 25608  		     tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";;
 25609    rsh1add_n|rsh1sub_n)
 25610  		     tmp_mulfunc="rsh1aors_n";;
 25611    sec_div_qr|sec_div_r)
 25612  		     tmp_mulfunc="sec_div";;
 25613    sec_pi1_div_qr|sec_pi1_div_r)
 25614  		     tmp_mulfunc="sec_pi1_div";;
 25615  esac
 25616  
 25617  
 25618    found=no
 25619    for tmp_dir in $path; do
 25620      for tmp_base in $tmp_fn $tmp_mulfunc; do
 25621        for tmp_ext in asm S s c; do
 25622          tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
 25623          if test -f $tmp_file; then
 25624  
 25625            # For a nails build, check if the file supports our nail bits.
 25626            # Generic code always supports all nails.
 25627            #
 25628            # FIXME: When a multi-function file is selected to provide one of
 25629            # the nails-neutral routines, like logops_n for and_n, the
 25630            # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
 25631            # all functions in that file, even if they haven't all been
 25632            # nailified.  Not sure what to do about this, it's only really a
 25633            # problem for logops_n, and it's not too terrible to insist those
 25634            # get nailified always.
 25635            #
 25636            if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
 25637              case $tmp_fn in
 25638                and_n | ior_n | xor_n | andn_n | \
 25639                copyi | copyd | \
 25640                popcount | hamdist | \
 25641                udiv | udiv_w_sdiv | umul | \
 25642                cntlz | invert_limb)
 25643                  # these operations are either unaffected by nails or defined
 25644                  # to operate on full limbs
 25645                  ;;
 25646                *)
 25647                  nails=`sed -n 's/^[ 	]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
 25648                  for n in $nails; do
 25649                    case $n in
 25650                    *-*)
 25651                      n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
 25652                      n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
 25653                      ;;
 25654                    *)
 25655                      n_start=$n
 25656                      n_end=$n
 25657                      ;;
 25658                    esac
 25659                    if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
 25660                      found=yes
 25661                      break
 25662                    fi
 25663                  done
 25664                  if test $found != yes; then
 25665                    continue
 25666                  fi
 25667                  ;;
 25668              esac
 25669            fi
 25670  
 25671  	  # If the host uses a non-standard ABI, check if tmp_file supports it
 25672  	  #
 25673  	  if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then
 25674  	    abi=`sed -n 's/^[ 	]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
 25675  	    if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then
 25676  	      true
 25677  	    else
 25678  	      continue
 25679  	    fi
 25680  	  fi
 25681  
 25682            found=yes
 25683            eval found_$tmp_ext=yes
 25684  
 25685            if test $tmp_ext = c; then
 25686              tmp_u='$U'
 25687            else
 25688              tmp_u=
 25689            fi
 25690  
 25691            mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
 25692            mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
 25693            ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
 25694  
 25695            gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
 25696  
 25697            # Duplicate AC_DEFINEs are harmless, so it doesn't matter
 25698            # that multi-function files get grepped here repeatedly.
 25699            # The PROLOGUE pattern excludes the optional second parameter.
 25700            gmp_ep=`
 25701              sed -n 's/^[ 	]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
 25702              sed -n 's/^[ 	]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
 25703            `
 25704            for gmp_tmp in $gmp_ep; do
 25705              cat >>confdefs.h <<_ACEOF
 25706  #define HAVE_NATIVE_$gmp_tmp 1
 25707  _ACEOF
 25708  
 25709              eval HAVE_NATIVE_$gmp_tmp=yes
 25710            done
 25711  
 25712            case $tmp_fn in
 25713            sqr_basecase) sqr_basecase_source=$tmp_file ;;
 25714            esac
 25715  
 25716            break
 25717          fi
 25718        done
 25719        if test $found = yes; then break ; fi
 25720      done
 25721      if test $found = yes; then break ; fi
 25722    done
 25723  
 25724    if test $found = no; then
 25725      for tmp_optional in $gmp_mpn_functions_optional; do
 25726        if test $tmp_optional = $tmp_fn; then
 25727          found=yes
 25728        fi
 25729      done
 25730      if test $found = no; then
 25731        as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5
 25732      fi
 25733    fi
 25734  done
 25735  
 25736  # All cycle counters are .asm files currently
 25737  if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
 25738    found_asm=yes
 25739  fi
 25740  
 25741  
 25742  
 25743  
 25744  
 25745  # Don't demand an m4 unless it's actually needed.
 25746  if test $found_asm = yes; then
 25747  
 25748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
 25749  $as_echo_n "checking for suitable m4... " >&6; }
 25750  if ${gmp_cv_prog_m4+:} false; then :
 25751    $as_echo_n "(cached) " >&6
 25752  else
 25753    if test -n "$M4"; then
 25754    gmp_cv_prog_m4="$M4"
 25755  else
 25756    cat >conftest.m4 <<\EOF
 25757  define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
 25758  ``bad: $# not supported (SunOS /usr/bin/m4)
 25759  '')ifelse(eval(89),89,`define(t2,Y)',
 25760  `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
 25761  ')ifelse(eval(9,9),10,`define(t3,Y)',
 25762  `bad: eval() doesnt support radix in eval (FreeBSD 8.x,9.0,9.1,9.2 m4)
 25763  ')ifelse(t1`'t2`'t3,YYY,`good
 25764  ')
 25765  EOF
 25766    echo "trying m4" >&5
 25767    gmp_tmp_val=`(m4 conftest.m4) 2>&5`
 25768    echo "$gmp_tmp_val" >&5
 25769    if test "$gmp_tmp_val" = good; then
 25770      gmp_cv_prog_m4="m4"
 25771    else
 25772      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 25773      ac_dummy="$PATH:/usr/5bin"
 25774      for ac_dir in $ac_dummy; do
 25775        test -z "$ac_dir" && ac_dir=.
 25776        echo "trying $ac_dir/m4" >&5
 25777        gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
 25778        echo "$gmp_tmp_val" >&5
 25779        if test "$gmp_tmp_val" = good; then
 25780          gmp_cv_prog_m4="$ac_dir/m4"
 25781          break
 25782        fi
 25783      done
 25784      IFS="$ac_save_ifs"
 25785      if test -z "$gmp_cv_prog_m4"; then
 25786        as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
 25787      fi
 25788    fi
 25789    rm -f conftest.m4
 25790  fi
 25791  fi
 25792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
 25793  $as_echo "$gmp_cv_prog_m4" >&6; }
 25794  M4="$gmp_cv_prog_m4"
 25795  
 25796  
 25797  
 25798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
 25799  $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
 25800  if ${gmp_cv_m4_m4wrap_spurious+:} false; then :
 25801    $as_echo_n "(cached) " >&6
 25802  else
 25803    # hide the d-n-l from autoconf's error checking
 25804  tmp_d_n_l=d""nl
 25805  cat >conftest.m4 <<EOF
 25806  changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
 25807  EOF
 25808  echo test input is >&5
 25809  cat conftest.m4 >&5
 25810  tmp_chars=`$M4 conftest.m4 | wc -c`
 25811  echo produces $tmp_chars chars output >&5
 25812  rm -f conftest.m4
 25813  if test $tmp_chars = 0; then
 25814    gmp_cv_m4_m4wrap_spurious=no
 25815  else
 25816    gmp_cv_m4_m4wrap_spurious=yes
 25817  fi
 25818  
 25819  fi
 25820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
 25821  $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
 25822  
 25823  echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
 25824  
 25825  
 25826  # else
 25827  # It's unclear why this m4-not-needed stuff was ever done.
 25828  #  if test -z "$M4" ; then
 25829  #    M4=m4-not-needed
 25830  #  fi
 25831  fi
 25832  
 25833  # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
 25834  if test $found_asm = no && test $found_S = no; then
 25835    gmp_asm_syntax_testing=no
 25836  fi
 25837  
 25838  if test "$gmp_asm_syntax_testing" != no; then
 25839    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
 25840  $as_echo_n "checking how to switch to text section... " >&6; }
 25841  if ${gmp_cv_asm_text+:} false; then :
 25842    $as_echo_n "(cached) " >&6
 25843  else
 25844    for i in ".text" ".code" ".csect .text[PR]"; do
 25845    echo "trying $i" >&5
 25846    cat >conftest.s <<EOF
 25847  	$i
 25848  EOF
 25849  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 25850  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 25851    (eval $gmp_assemble) 2>&5
 25852    ac_status=$?
 25853    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 25854    test $ac_status = 0; }; then
 25855    cat conftest.out >&5
 25856    gmp_cv_asm_text=$i
 25857       rm -f conftest*
 25858       break
 25859  else
 25860    cat conftest.out >&5
 25861    echo "configure: failed program was:" >&5
 25862    cat conftest.s >&5
 25863    :
 25864  fi
 25865  rm -f conftest*
 25866  
 25867  done
 25868  if test -z "$gmp_cv_asm_text"; then
 25869    as_fn_error $? "Cannot determine text section directive" "$LINENO" 5
 25870  fi
 25871  
 25872  fi
 25873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
 25874  $as_echo "$gmp_cv_asm_text" >&6; }
 25875  echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
 25876  
 25877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
 25878  $as_echo_n "checking how to switch to data section... " >&6; }
 25879  if ${gmp_cv_asm_data+:} false; then :
 25880    $as_echo_n "(cached) " >&6
 25881  else
 25882    case $host in
 25883    *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
 25884    *)        gmp_cv_asm_data=".data" ;;
 25885  esac
 25886  
 25887  fi
 25888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
 25889  $as_echo "$gmp_cv_asm_data" >&6; }
 25890  echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
 25891  
 25892  
 25893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
 25894  $as_echo_n "checking for assembler label suffix... " >&6; }
 25895  if ${gmp_cv_asm_label_suffix+:} false; then :
 25896    $as_echo_n "(cached) " >&6
 25897  else
 25898    gmp_cv_asm_label_suffix=unknown
 25899  for i in "" ":"; do
 25900    echo "trying $i" >&5
 25901    cat >conftest.s <<EOF
 25902  	$gmp_cv_asm_text
 25903  somelabel$i
 25904  EOF
 25905  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 25906  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 25907    (eval $gmp_assemble) 2>&5
 25908    ac_status=$?
 25909    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 25910    test $ac_status = 0; }; then
 25911    cat conftest.out >&5
 25912    gmp_cv_asm_label_suffix=$i
 25913       rm -f conftest*
 25914       break
 25915  else
 25916    cat conftest.out >&5
 25917    echo "configure: failed program was:" >&5
 25918    cat conftest.s >&5
 25919    cat conftest.out >&5
 25920  fi
 25921  rm -f conftest*
 25922  
 25923  done
 25924  if test "$gmp_cv_asm_label_suffix" = "unknown"; then
 25925    as_fn_error $? "Cannot determine label suffix" "$LINENO" 5
 25926  fi
 25927  
 25928  fi
 25929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
 25930  $as_echo "$gmp_cv_asm_label_suffix" >&6; }
 25931  echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
 25932  
 25933  
 25934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
 25935  $as_echo_n "checking for assembler global directive... " >&6; }
 25936  if ${gmp_cv_asm_globl+:} false; then :
 25937    $as_echo_n "(cached) " >&6
 25938  else
 25939    case $host in
 25940    hppa*-*-*)     gmp_cv_asm_globl=.export ;;
 25941    ia64*-*-* | itanium-*-* | itanium2-*-*)  gmp_cv_asm_globl=.global ;;
 25942    *)             gmp_cv_asm_globl=.globl  ;;
 25943  esac
 25944  
 25945  fi
 25946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
 25947  $as_echo "$gmp_cv_asm_globl" >&6; }
 25948  echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
 25949  
 25950  
 25951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
 25952  $as_echo_n "checking for assembler global directive attribute... " >&6; }
 25953  if ${gmp_cv_asm_globl_attr+:} false; then :
 25954    $as_echo_n "(cached) " >&6
 25955  else
 25956    case $gmp_cv_asm_globl in
 25957    .export) gmp_cv_asm_globl_attr=",entry" ;;
 25958    *)       gmp_cv_asm_globl_attr="" ;;
 25959  esac
 25960  
 25961  fi
 25962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
 25963  $as_echo "$gmp_cv_asm_globl_attr" >&6; }
 25964  echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
 25965  
 25966  
 25967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
 25968  $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
 25969  if ${gmp_cv_asm_underscore+:} false; then :
 25970    $as_echo_n "(cached) " >&6
 25971  else
 25972    gmp_cv_asm_underscore="unknown"
 25973  cat >conftest.c <<EOF
 25974  int gurkmacka;
 25975  EOF
 25976  gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
 25977  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 25978    (eval $gmp_compile) 2>&5
 25979    ac_status=$?
 25980    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 25981    test $ac_status = 0; }; then
 25982    $NM conftest.$OBJEXT >conftest.out
 25983    if grep "[ 	]_gurkmacka" conftest.out >/dev/null; then
 25984      gmp_cv_asm_underscore=yes
 25985    elif grep "[ 	]gurkmacka" conftest.out >/dev/null; then
 25986      gmp_cv_asm_underscore=no
 25987    else
 25988      echo "configure: $NM doesn't have gurkmacka:" >&5
 25989      cat conftest.out >&5
 25990    fi
 25991  else
 25992    echo "configure: failed program was:" >&5
 25993    cat conftest.c >&5
 25994  fi
 25995  rm -f conftest*
 25996  
 25997  fi
 25998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
 25999  $as_echo "$gmp_cv_asm_underscore" >&6; }
 26000  case $gmp_cv_asm_underscore in
 26001    yes)
 26002  
 26003  echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
 26004   ;;
 26005    no)
 26006  
 26007  echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
 26008   ;;
 26009    *)
 26010      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 26011  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 26012      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
 26013  $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
 26014      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
 26015  $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
 26016      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
 26017  $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
 26018      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
 26019  $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
 26020      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
 26021  $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
 26022      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
 26023  $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
 26024      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&5
 26025  $as_echo "$as_me: WARNING: |     ./configure gmp_cv_asm_underscore=yes" >&2;}
 26026      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
 26027  $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
 26028  
 26029  echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
 26030  
 26031      ;;
 26032  esac
 26033  
 26034  
 26035  
 26036  
 26037  
 26038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
 26039  $as_echo_n "checking how to switch to read-only data section... " >&6; }
 26040  if ${gmp_cv_asm_rodata+:} false; then :
 26041    $as_echo_n "(cached) " >&6
 26042  else
 26043  
 26044  case $host in
 26045  i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
 26046    gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
 26047  *)
 26048    gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
 26049  esac
 26050  
 26051  cat >conftest.c <<EOF
 26052  extern const int foo[];		/* Suppresses C++'s suppression of foo */
 26053  const int foo[] = {1,2,3};
 26054  EOF
 26055  echo "Test program:" >&5
 26056  cat conftest.c >&5
 26057  gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
 26058  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 26059    (eval $gmp_compile) 2>&5
 26060    ac_status=$?
 26061    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26062    test $ac_status = 0; }; then
 26063    echo "Compiler output:" >&5
 26064    cat conftest.s >&5
 26065    if test $gmp_cv_asm_underscore = yes; then
 26066      tmp_gsym_prefix=_
 26067    else
 26068      tmp_gsym_prefix=
 26069    fi
 26070    # must see our label
 26071    if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
 26072      # take the last directive before our label (hence skipping segments
 26073      # getting debugging info etc)
 26074      tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
 26075                          /^[. 	]*data/p
 26076                          /^[. 	]*rdata/p
 26077                          /^[. 	]*text/p
 26078                          /^[. 	]*section/p
 26079                          /^[. 	]*csect/p
 26080                          /^[. 	]*CSECT/p" conftest.s | sed -n '$p'`
 26081      echo "Match: $tmp_match" >&5
 26082      if test -n "$tmp_match"; then
 26083        gmp_cv_asm_rodata=$tmp_match
 26084      fi
 26085    else
 26086      echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
 26087    fi
 26088  fi
 26089  rm -f conftest*
 26090  
 26091  fi
 26092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
 26093  $as_echo "$gmp_cv_asm_rodata" >&6; }
 26094  echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
 26095  
 26096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
 26097  $as_echo_n "checking for assembler .type directive... " >&6; }
 26098  if ${gmp_cv_asm_type+:} false; then :
 26099    $as_echo_n "(cached) " >&6
 26100  else
 26101    gmp_cv_asm_type=
 26102  for gmp_tmp_prefix in @ \# %; do
 26103    cat >conftest.s <<EOF
 26104  	.type	sym,${gmp_tmp_prefix}function
 26105  EOF
 26106  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26108    (eval $gmp_assemble) 2>&5
 26109    ac_status=$?
 26110    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26111    test $ac_status = 0; }; then
 26112    cat conftest.out >&5
 26113    if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
 26114      else
 26115        gmp_cv_asm_type=".type	\$1,${gmp_tmp_prefix}\$2"
 26116        break
 26117      fi
 26118  else
 26119    cat conftest.out >&5
 26120    echo "configure: failed program was:" >&5
 26121    cat conftest.s >&5
 26122    :
 26123  fi
 26124  rm -f conftest*
 26125  
 26126  done
 26127  rm -f conftest*
 26128  
 26129  fi
 26130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
 26131  $as_echo "$gmp_cv_asm_type" >&6; }
 26132  echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
 26133  
 26134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
 26135  $as_echo_n "checking for assembler .size directive... " >&6; }
 26136  if ${gmp_cv_asm_size+:} false; then :
 26137    $as_echo_n "(cached) " >&6
 26138  else
 26139    gmp_cv_asm_size=
 26140  cat >conftest.s <<EOF
 26141  	.size	sym,1
 26142  EOF
 26143  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26145    (eval $gmp_assemble) 2>&5
 26146    ac_status=$?
 26147    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26148    test $ac_status = 0; }; then
 26149    cat conftest.out >&5
 26150    if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
 26151    else
 26152      gmp_cv_asm_size=".size	\$1,\$2"
 26153    fi
 26154  else
 26155    cat conftest.out >&5
 26156    echo "configure: failed program was:" >&5
 26157    cat conftest.s >&5
 26158    :
 26159  fi
 26160  rm -f conftest*
 26161  
 26162  
 26163  fi
 26164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
 26165  $as_echo "$gmp_cv_asm_size" >&6; }
 26166  echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
 26167  
 26168  
 26169  
 26170  
 26171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
 26172  $as_echo_n "checking for assembler local label prefix... " >&6; }
 26173  if ${gmp_cv_asm_lsym_prefix+:} false; then :
 26174    $as_echo_n "(cached) " >&6
 26175  else
 26176    gmp_tmp_pre_appears=yes
 26177  for gmp_tmp_pre in L .L $L $ L$; do
 26178    echo "Trying $gmp_tmp_pre" >&5
 26179    cat >conftest.s <<EOF
 26180  	$gmp_cv_asm_text
 26181  dummy${gmp_cv_asm_label_suffix}
 26182  ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
 26183  EOF
 26184  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26185  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26186    (eval $gmp_assemble) 2>&5
 26187    ac_status=$?
 26188    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26189    test $ac_status = 0; }; then
 26190    cat conftest.out >&5
 26191    if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
 26192      cat conftest.nm >&5
 26193      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
 26194  $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
 26195      break
 26196    fi
 26197    cat conftest.nm >&5
 26198    if grep gurkmacka conftest.nm >/dev/null; then : ; else
 26199      # no mention of the symbol, this is good
 26200      echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
 26201      gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
 26202      gmp_tmp_pre_appears=no
 26203      break
 26204    fi
 26205    if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
 26206      # symbol mentioned as a local, use this if nothing better
 26207      echo "$gmp_tmp_pre label is local but still in object file" >&5
 26208      if test -z "$gmp_cv_asm_lsym_prefix"; then
 26209        gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
 26210      fi
 26211    else
 26212      echo "$gmp_tmp_pre label is something unknown" >&5
 26213    fi
 26214  
 26215  else
 26216    cat conftest.out >&5
 26217    echo "configure: failed program was:" >&5
 26218    cat conftest.s >&5
 26219    :
 26220  fi
 26221  rm -f conftest*
 26222  
 26223  done
 26224  rm -f conftest*
 26225  if test -z "$gmp_cv_asm_lsym_prefix"; then
 26226    gmp_cv_asm_lsym_prefix=L
 26227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
 26228  $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
 26229  fi
 26230  # for development purposes, note whether we got a purely temporary local label
 26231  echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
 26232  
 26233  fi
 26234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
 26235  $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
 26236  echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
 26237  
 26238  cat >>confdefs.h <<_ACEOF
 26239  #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
 26240  _ACEOF
 26241  
 26242  
 26243  
 26244  
 26245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
 26246  $as_echo_n "checking for assembler byte directive... " >&6; }
 26247  if ${gmp_cv_asm_byte+:} false; then :
 26248    $as_echo_n "(cached) " >&6
 26249  else
 26250    for i in .byte data1; do
 26251    echo "trying $i" >&5
 26252    cat >conftest.s <<EOF
 26253  	$gmp_cv_asm_data
 26254  	$i	0
 26255  
 26256  EOF
 26257  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26259    (eval $gmp_assemble) 2>&5
 26260    ac_status=$?
 26261    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26262    test $ac_status = 0; }; then
 26263    cat conftest.out >&5
 26264    gmp_cv_asm_byte=$i
 26265       rm -f conftest*
 26266       break
 26267  else
 26268    cat conftest.out >&5
 26269    echo "configure: failed program was:" >&5
 26270    cat conftest.s >&5
 26271    cat conftest.out >&5
 26272  fi
 26273  rm -f conftest*
 26274  
 26275  done
 26276  if test -z "$gmp_cv_asm_byte"; then
 26277    as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5
 26278  fi
 26279  
 26280  fi
 26281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
 26282  $as_echo "$gmp_cv_asm_byte" >&6; }
 26283  
 26284  
 26285  
 26286  
 26287  
 26288  
 26289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
 26290  $as_echo_n "checking how to define a 32-bit word... " >&6; }
 26291  if ${gmp_cv_asm_w32+:} false; then :
 26292    $as_echo_n "(cached) " >&6
 26293  else
 26294    case $host in
 26295    *-*-hpux*)
 26296      # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
 26297      # that it's at 0x0.  We'll have to declare another symbol before the
 26298      # .long/.word and look at the distance between the two symbols.  The
 26299      # only problem is that the sed expression(s) barfs (on Solaris, for
 26300      # example) for the symbol with value 0.  For now, HPUX uses .word.
 26301      gmp_cv_asm_w32=".word"
 26302      ;;
 26303    *-*-*)
 26304      gmp_tmp_val=
 26305      for gmp_tmp_op in .long .word data4; do
 26306        cat >conftest.s <<EOF
 26307  	$gmp_cv_asm_data
 26308  	$gmp_cv_asm_globl	foo
 26309  	$gmp_tmp_op	0
 26310  foo$gmp_cv_asm_label_suffix
 26311  	$gmp_cv_asm_byte	0
 26312  EOF
 26313  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26314  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26315    (eval $gmp_assemble) 2>&5
 26316    ac_status=$?
 26317    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26318    test $ac_status = 0; }; then
 26319    cat conftest.out >&5
 26320    gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
 26321            sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
 26322          if test "$gmp_tmp_val" = 4; then
 26323            gmp_cv_asm_w32="$gmp_tmp_op"
 26324            break
 26325          fi
 26326  else
 26327    cat conftest.out >&5
 26328    echo "configure: failed program was:" >&5
 26329    cat conftest.s >&5
 26330    :
 26331  fi
 26332  rm -f conftest*
 26333  
 26334      done
 26335      rm -f conftest*
 26336      ;;
 26337  esac
 26338  if test -z "$gmp_cv_asm_w32"; then
 26339    as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5
 26340  fi
 26341  
 26342  fi
 26343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
 26344  $as_echo "$gmp_cv_asm_w32" >&6; }
 26345  echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
 26346  
 26347  
 26348  
 26349  
 26350  
 26351  
 26352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
 26353  $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
 26354  if ${gmp_cv_asm_align_log+:} false; then :
 26355    $as_echo_n "(cached) " >&6
 26356  else
 26357    cat >conftest.s <<EOF
 26358        	$gmp_cv_asm_data
 26359        	.align  4
 26360  	$gmp_cv_asm_globl	foo
 26361  	$gmp_cv_asm_byte	1
 26362  	.align	4
 26363  foo$gmp_cv_asm_label_suffix
 26364  	$gmp_cv_asm_byte	2
 26365  EOF
 26366  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26367  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26368    (eval $gmp_assemble) 2>&5
 26369    ac_status=$?
 26370    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26371    test $ac_status = 0; }; then
 26372    cat conftest.out >&5
 26373    gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
 26374       sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
 26375    if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
 26376      gmp_cv_asm_align_log=yes
 26377    else
 26378      gmp_cv_asm_align_log=no
 26379    fi
 26380  else
 26381    cat conftest.out >&5
 26382    echo "configure: failed program was:" >&5
 26383    cat conftest.s >&5
 26384    as_fn_error $? "cannot assemble alignment test" "$LINENO" 5
 26385  fi
 26386  rm -f conftest*
 26387  
 26388  fi
 26389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
 26390  $as_echo "$gmp_cv_asm_align_log" >&6; }
 26391  
 26392  
 26393  echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
 26394  
 26395  
 26396  
 26397    case $host in
 26398      arm*-*-* | aarch64*-*-*)
 26399        case $ABI in
 26400          32)
 26401  
 26402  echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
 26403   ;;
 26404        esac
 26405        ;;
 26406      hppa*-*-*)
 26407        # for both pa32 and pa64
 26408  
 26409  echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
 26410  
 26411        ;;
 26412      ia64*-*-* | itanium-*-* | itanium2-*-*)
 26413        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
 26414  $as_echo_n "checking whether assembler .align padding is good... " >&6; }
 26415  if ${gmp_cv_asm_ia64_align_ok+:} false; then :
 26416    $as_echo_n "(cached) " >&6
 26417  else
 26418    cat >conftest.awk <<\EOF
 26419  BEGIN {
 26420    want[0]  = "011"
 26421    want[1]  = "160"
 26422    want[2]  = "074"
 26423    want[3]  = "040"
 26424    want[4]  = "000"
 26425    want[5]  = "040"
 26426    want[6]  = "020"
 26427    want[7]  = "221"
 26428    want[8]  = "114"
 26429    want[9]  = "000"
 26430    want[10] = "100"
 26431    want[11] = "200"
 26432    want[12] = "122"
 26433    want[13] = "261"
 26434    want[14] = "000"
 26435    want[15] = "200"
 26436  
 26437    want[16] = "000"
 26438    want[17] = "004"
 26439    want[18] = "000"
 26440    want[19] = "000"
 26441    want[20] = "000"
 26442    want[21] = "000"
 26443    want[22] = "002"
 26444    want[23] = "000"
 26445    want[24] = "000"
 26446    want[25] = "000"
 26447    want[26] = "000"
 26448    want[27] = "001"
 26449    want[28] = "000"
 26450    want[29] = "000"
 26451    want[30] = "000"
 26452    want[31] = "014"
 26453  
 26454    want[32] = "011"
 26455    want[33] = "270"
 26456    want[34] = "140"
 26457    want[35] = "062"
 26458    want[36] = "000"
 26459    want[37] = "040"
 26460    want[38] = "240"
 26461    want[39] = "331"
 26462    want[40] = "160"
 26463    want[41] = "000"
 26464    want[42] = "100"
 26465    want[43] = "240"
 26466    want[44] = "343"
 26467    want[45] = "371"
 26468    want[46] = "000"
 26469    want[47] = "200"
 26470  
 26471    result = "yes"
 26472  }
 26473  {
 26474    for (f = 2; f <= NF; f++)
 26475      {
 26476        for (i = 0; i < 47; i++)
 26477          got[i] = got[i+1];
 26478        got[47] = $f;
 26479  
 26480        found = 1
 26481        for (i = 0; i < 48; i++)
 26482          if (got[i] != want[i])
 26483            {
 26484              found = 0
 26485              break
 26486            }
 26487        if (found)
 26488          {
 26489            result = "no"
 26490            exit
 26491          }
 26492      }
 26493  }
 26494  END {
 26495    print result
 26496  }
 26497  EOF
 26498  cat >conftest.s <<EOF
 26499  	.text
 26500  	.align	32
 26501  { .mmi;	add	r14 = r15, r16
 26502  	add	r17 = r18, r19
 26503  	add	r20 = r21, r22 ;; }
 26504  	.align	32
 26505  { .mmi;	add	r23 = r24, r25
 26506  	add	r26 = r27, r28
 26507  	add	r29 = r30, r31 ;; }
 26508  
 26509  EOF
 26510  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26511  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26512    (eval $gmp_assemble) 2>&5
 26513    ac_status=$?
 26514    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26515    test $ac_status = 0; }; then
 26516    cat conftest.out >&5
 26517    gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
 26518  else
 26519    cat conftest.out >&5
 26520    echo "configure: failed program was:" >&5
 26521    cat conftest.s >&5
 26522    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
 26523  $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
 26524     gmp_cv_asm_ia64_align_ok=yes
 26525  fi
 26526  rm -f conftest*
 26527  
 26528  
 26529  fi
 26530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
 26531  $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
 26532  
 26533  echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
 26534  
 26535  
 26536        ;;
 26537      m68k-*-* | m68[0-9][0-9][0-9]-*-*)
 26538  
 26539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
 26540  $as_echo_n "checking assembler instruction and register style... " >&6; }
 26541  if ${gmp_cv_asm_m68k_instruction+:} false; then :
 26542    $as_echo_n "(cached) " >&6
 26543  else
 26544    for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
 26545    cat >conftest.s <<EOF
 26546  	$gmp_cv_asm_text
 26547  	$i
 26548  EOF
 26549  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26550  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26551    (eval $gmp_assemble) 2>&5
 26552    ac_status=$?
 26553    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26554    test $ac_status = 0; }; then
 26555    cat conftest.out >&5
 26556    gmp_cv_asm_m68k_instruction=$i
 26557      rm -f conftest*
 26558      break
 26559  else
 26560    cat conftest.out >&5
 26561    echo "configure: failed program was:" >&5
 26562    cat conftest.s >&5
 26563    :
 26564  fi
 26565  rm -f conftest*
 26566  
 26567  done
 26568  if test -z "$gmp_cv_asm_m68k_instruction"; then
 26569    as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5
 26570  fi
 26571  
 26572  fi
 26573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
 26574  $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
 26575  case $gmp_cv_asm_m68k_instruction in
 26576  "addl d0,d1")    want_dot_size=no;  want_register_percent=no  ;;
 26577  "addl %d0,%d1")  want_dot_size=no;  want_register_percent=yes ;;
 26578  "add.l d0,d1")   want_dot_size=yes; want_register_percent=no  ;;
 26579  "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
 26580  *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
 26581  esac
 26582  
 26583  echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
 26584  
 26585  
 26586  echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
 26587  
 26588  
 26589  
 26590  
 26591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
 26592  $as_echo_n "checking assembler addressing style... " >&6; }
 26593  if ${gmp_cv_asm_m68k_addressing+:} false; then :
 26594    $as_echo_n "(cached) " >&6
 26595  else
 26596    case $gmp_cv_asm_m68k_instruction in
 26597  addl*)  movel=movel ;;
 26598  add.l*) movel=move.l ;;
 26599  *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
 26600  esac
 26601  case $gmp_cv_asm_m68k_instruction in
 26602  *"%d0,%d1") dreg=%d0; areg=%a0 ;;
 26603  *"d0,d1")   dreg=d0;  areg=a0  ;;
 26604  *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
 26605  esac
 26606  cat >conftest.s <<EOF
 26607  	$gmp_cv_asm_text
 26608  	$movel	$dreg, $areg@-
 26609  EOF
 26610  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26611  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26612    (eval $gmp_assemble) 2>&5
 26613    ac_status=$?
 26614    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26615    test $ac_status = 0; }; then
 26616    cat conftest.out >&5
 26617    gmp_cv_asm_m68k_addressing=mit
 26618  else
 26619    cat conftest.out >&5
 26620    echo "configure: failed program was:" >&5
 26621    cat conftest.s >&5
 26622    cat >conftest.s <<EOF
 26623  	$gmp_cv_asm_text
 26624  	$movel	$dreg, -($areg)
 26625  EOF
 26626  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26628    (eval $gmp_assemble) 2>&5
 26629    ac_status=$?
 26630    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26631    test $ac_status = 0; }; then
 26632    cat conftest.out >&5
 26633    gmp_cv_asm_m68k_addressing=motorola
 26634  else
 26635    cat conftest.out >&5
 26636    echo "configure: failed program was:" >&5
 26637    cat conftest.s >&5
 26638    as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5
 26639  fi
 26640  rm -f conftest*
 26641  
 26642  fi
 26643  rm -f conftest*
 26644  
 26645  
 26646  fi
 26647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
 26648  $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
 26649  
 26650  echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
 26651  
 26652  
 26653  
 26654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
 26655  $as_echo_n "checking assembler shortest branches... " >&6; }
 26656  if ${gmp_cv_asm_m68k_branches+:} false; then :
 26657    $as_echo_n "(cached) " >&6
 26658  else
 26659    for i in jra jbra bra; do
 26660    cat >conftest.s <<EOF
 26661  	$gmp_cv_asm_text
 26662  foo$gmp_cv_asm_label_suffix
 26663  	$i	foo
 26664  EOF
 26665  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26666  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26667    (eval $gmp_assemble) 2>&5
 26668    ac_status=$?
 26669    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26670    test $ac_status = 0; }; then
 26671    cat conftest.out >&5
 26672    gmp_cv_asm_m68k_branches=$i
 26673    rm -f conftest*
 26674    break
 26675  else
 26676    cat conftest.out >&5
 26677    echo "configure: failed program was:" >&5
 26678    cat conftest.s >&5
 26679    :
 26680  fi
 26681  rm -f conftest*
 26682  
 26683  done
 26684  if test -z "$gmp_cv_asm_m68k_branches"; then
 26685    as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5
 26686  fi
 26687  
 26688  fi
 26689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
 26690  $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
 26691  
 26692  echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
 26693  
 26694  
 26695        ;;
 26696      powerpc*-*-* | power[3-9]-*-*)
 26697  
 26698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
 26699  $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
 26700  if ${gmp_cv_asm_powerpc_pic+:} false; then :
 26701    $as_echo_n "(cached) " >&6
 26702  else
 26703    gmp_cv_asm_powerpc_pic=yes
 26704  cat >conftest.c <<EOF
 26705  int foo;
 26706  int *bar() { return &foo; }
 26707  EOF
 26708  echo "Test program:" >&5
 26709  cat conftest.c >&5
 26710  gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
 26711  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 26712    (eval $gmp_compile) 2>&5
 26713    ac_status=$?
 26714    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26715    test $ac_status = 0; }; then
 26716    echo "Compiler output:" >&5
 26717    cat conftest.s >&5
 26718    if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
 26719      gmp_cv_asm_powerpc_pic=no
 26720    fi
 26721    if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
 26722      gmp_cv_asm_powerpc_pic=no
 26723    fi
 26724  fi
 26725  rm -f conftest*
 26726  
 26727  fi
 26728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
 26729  $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
 26730  
 26731  echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
 26732  
 26733  
 26734  
 26735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
 26736  $as_echo_n "checking if the assembler needs r on registers... " >&6; }
 26737  if ${gmp_cv_asm_powerpc_r_registers+:} false; then :
 26738    $as_echo_n "(cached) " >&6
 26739  else
 26740    cat >conftest.s <<EOF
 26741  	$gmp_cv_asm_text
 26742  	mtctr	6
 26743  EOF
 26744  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26746    (eval $gmp_assemble) 2>&5
 26747    ac_status=$?
 26748    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26749    test $ac_status = 0; }; then
 26750    cat conftest.out >&5
 26751    gmp_cv_asm_powerpc_r_registers=no
 26752  else
 26753    cat conftest.out >&5
 26754    echo "configure: failed program was:" >&5
 26755    cat conftest.s >&5
 26756    cat >conftest.s <<EOF
 26757  	$gmp_cv_asm_text
 26758  	mtctr	r6
 26759  EOF
 26760  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26762    (eval $gmp_assemble) 2>&5
 26763    ac_status=$?
 26764    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26765    test $ac_status = 0; }; then
 26766    cat conftest.out >&5
 26767    gmp_cv_asm_powerpc_r_registers=yes
 26768  else
 26769    cat conftest.out >&5
 26770    echo "configure: failed program was:" >&5
 26771    cat conftest.s >&5
 26772    as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
 26773  fi
 26774  rm -f conftest*
 26775  
 26776  fi
 26777  rm -f conftest*
 26778  
 26779  fi
 26780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
 26781  $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
 26782  
 26783  
 26784  echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
 26785  
 26786  
 26787  
 26788  echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
 26789  
 26790  
 26791        # Check for Linux ELFv2 ABI
 26792        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 26793  /* end confdefs.h.  */
 26794  #if _CALL_ELF == 2
 26795  yes
 26796  #endif
 26797  _ACEOF
 26798  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 26799    $EGREP "yes" >/dev/null 2>&1; then :
 26800  
 26801  echo "define(<ELFv2_ABI>)" >> $gmp_tmpconfigm4
 26802  
 26803  fi
 26804  rm -f conftest*
 26805  
 26806  
 26807        case $host in
 26808          *-*-aix*)
 26809  	  case $ABI in
 26810  	    mode64)
 26811  echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
 26812   ;;
 26813              *)
 26814  echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
 26815   ;;
 26816            esac
 26817            ;;
 26818          *-*-linux* | *-*-*bsd*)
 26819  	  case $ABI in
 26820  	    mode64)
 26821  echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
 26822   ;;
 26823  	    mode32 | 32)
 26824  echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
 26825   ;;
 26826            esac
 26827            ;;
 26828          *-*-darwin*)
 26829  	  case $ABI in
 26830  	    mode64)
 26831  echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
 26832   ;;
 26833  	    mode32 | 32)
 26834  echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
 26835   ;;
 26836            esac
 26837            ;;
 26838          *)
 26839  	  # Assume unrecognized operating system is the powerpc eABI
 26840  
 26841  echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
 26842  
 26843  	  ;;
 26844        esac
 26845        ;;
 26846      power*-*-aix*)
 26847  
 26848  echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
 26849  
 26850        ;;
 26851      *sparc*-*-*)
 26852        case $ABI in
 26853          64)
 26854  
 26855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
 26856  $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
 26857  if ${gmp_cv_asm_sparc_register+:} false; then :
 26858    $as_echo_n "(cached) " >&6
 26859  else
 26860    cat >conftest.s <<EOF
 26861  	$gmp_cv_asm_text
 26862  	.register	%g2,#scratch
 26863  
 26864  EOF
 26865  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26866  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26867    (eval $gmp_assemble) 2>&5
 26868    ac_status=$?
 26869    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26870    test $ac_status = 0; }; then
 26871    cat conftest.out >&5
 26872    gmp_cv_asm_sparc_register=yes
 26873  else
 26874    cat conftest.out >&5
 26875    echo "configure: failed program was:" >&5
 26876    cat conftest.s >&5
 26877    gmp_cv_asm_sparc_register=no
 26878  fi
 26879  rm -f conftest*
 26880  
 26881  fi
 26882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
 26883  $as_echo "$gmp_cv_asm_sparc_register" >&6; }
 26884  
 26885  
 26886  echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
 26887  
 26888  
 26889            ;;
 26890        esac
 26891  
 26892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts gotdata relocations" >&5
 26893  $as_echo_n "checking if the assembler accepts gotdata relocations... " >&6; }
 26894  if ${gmp_cv_asm_sparc_gotdata+:} false; then :
 26895    $as_echo_n "(cached) " >&6
 26896  else
 26897    cat >conftest.s <<EOF
 26898  	$gmp_cv_asm_text
 26899  	.text
 26900  	sethi	%gdop_hix22(symbol), %g1
 26901  	or	%g1, %gdop_lox10(symbol), %g1
 26902  
 26903  EOF
 26904  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26905  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26906    (eval $gmp_assemble) 2>&5
 26907    ac_status=$?
 26908    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26909    test $ac_status = 0; }; then
 26910    cat conftest.out >&5
 26911    gmp_cv_asm_sparc_gotdata=yes
 26912  else
 26913    cat conftest.out >&5
 26914    echo "configure: failed program was:" >&5
 26915    cat conftest.s >&5
 26916    gmp_cv_asm_sparc_gotdata=no
 26917  fi
 26918  rm -f conftest*
 26919  
 26920  fi
 26921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_gotdata" >&5
 26922  $as_echo "$gmp_cv_asm_sparc_gotdata" >&6; }
 26923  
 26924  
 26925  echo "define(<HAVE_GOTDATA>,<$gmp_cv_asm_sparc_gotdata>)" >> $gmp_tmpconfigm4
 26926  
 26927  
 26928  
 26929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler can support shared PIC thunks" >&5
 26930  $as_echo_n "checking if the assembler can support shared PIC thunks... " >&6; }
 26931  if ${gmp_cv_asm_sparc_shared_thunks+:} false; then :
 26932    $as_echo_n "(cached) " >&6
 26933  else
 26934    cat >conftest.s <<EOF
 26935  	$gmp_cv_asm_text
 26936  	.section	.text.__sparc_get_pc_thunk.l7,"axG",@progbits,__sparc_get_pc_thunk.l7,comdat
 26937  	.weak	__sparc_get_pc_thunk.l7
 26938  	.hidden	__sparc_get_pc_thunk.l7
 26939  	.type	__sparc_get_pc_thunk.l7, #function
 26940  __sparc_get_pc_thunk.l7:
 26941  	jmp	%o7+8
 26942  	 add	%o7, %l7, %l7
 26943  
 26944  EOF
 26945  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26947    (eval $gmp_assemble) 2>&5
 26948    ac_status=$?
 26949    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26950    test $ac_status = 0; }; then
 26951    cat conftest.out >&5
 26952    gmp_cv_asm_sparc_shared_thunks=yes
 26953  else
 26954    cat conftest.out >&5
 26955    echo "configure: failed program was:" >&5
 26956    cat conftest.s >&5
 26957    gmp_cv_asm_sparc_shared_thunks=no
 26958  fi
 26959  rm -f conftest*
 26960  
 26961  fi
 26962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_shared_thunks" >&5
 26963  $as_echo "$gmp_cv_asm_sparc_shared_thunks" >&6; }
 26964  
 26965  
 26966  echo "define(<HAVE_SHARED_THUNKS>,<$gmp_cv_asm_sparc_shared_thunks>)" >> $gmp_tmpconfigm4
 26967  
 26968  
 26969        ;;
 26970      i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*)
 26971  
 26972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
 26973  $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
 26974  if ${gmp_cv_asm_align_fill_0x90+:} false; then :
 26975    $as_echo_n "(cached) " >&6
 26976  else
 26977    cat >conftest.s <<EOF
 26978        	$gmp_cv_asm_text
 26979        	.align  4, 0x90
 26980  	.byte   0
 26981        	.align  4, 0x90
 26982  EOF
 26983  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 26984  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 26985    (eval $gmp_assemble) 2>&5
 26986    ac_status=$?
 26987    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 26988    test $ac_status = 0; }; then
 26989    cat conftest.out >&5
 26990    if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
 26991    echo "Suppressing this warning by omitting 0x90" 1>&5
 26992    gmp_cv_asm_align_fill_0x90=no
 26993  else
 26994    gmp_cv_asm_align_fill_0x90=yes
 26995  fi
 26996  else
 26997    cat conftest.out >&5
 26998    echo "configure: failed program was:" >&5
 26999    cat conftest.s >&5
 27000    gmp_cv_asm_align_fill_0x90=no
 27001  fi
 27002  rm -f conftest*
 27003  
 27004  fi
 27005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
 27006  $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
 27007  
 27008  
 27009  echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
 27010  
 27011  
 27012        case $ABI in
 27013          32)
 27014  
 27015  echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
 27016  
 27017            $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
 27018  
 27019  
 27020  
 27021  
 27022  
 27023  
 27024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
 27025  $as_echo_n "checking for assembler COFF type directives... " >&6; }
 27026  if ${gmp_cv_asm_x86_coff_type+:} false; then :
 27027    $as_echo_n "(cached) " >&6
 27028  else
 27029    cat >conftest.s <<EOF
 27030  	$gmp_cv_asm_text
 27031  	$gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
 27032  	.def	${tmp_gsym_prefix}foo
 27033  	.scl	2
 27034  	.type	32
 27035  	.endef
 27036  ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
 27037  
 27038  EOF
 27039  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 27040  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 27041    (eval $gmp_assemble) 2>&5
 27042    ac_status=$?
 27043    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 27044    test $ac_status = 0; }; then
 27045    cat conftest.out >&5
 27046    gmp_cv_asm_x86_coff_type=yes
 27047  else
 27048    cat conftest.out >&5
 27049    echo "configure: failed program was:" >&5
 27050    cat conftest.s >&5
 27051    gmp_cv_asm_x86_coff_type=no
 27052  fi
 27053  rm -f conftest*
 27054  
 27055  
 27056  fi
 27057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
 27058  $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
 27059  echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
 27060  
 27061  
 27062  
 27063  
 27064  
 27065  
 27066  
 27067  
 27068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
 27069  $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
 27070  if ${gmp_cv_asm_x86_got_underscore+:} false; then :
 27071    $as_echo_n "(cached) " >&6
 27072  else
 27073    gmp_cv_asm_x86_got_underscore="not applicable"
 27074  if test $gmp_cv_asm_underscore = yes; then
 27075    tmp_gsym_prefix=_
 27076  else
 27077    tmp_gsym_prefix=
 27078  fi
 27079  for tmp_underscore in "" "_"; do
 27080    cat >conftest.s <<EOF
 27081  	$gmp_cv_asm_text
 27082  	$gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
 27083  ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
 27084  	addl	$ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
 27085  EOF
 27086    gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
 27087    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
 27088    (eval $gmp_compile) 2>&5
 27089    ac_status=$?
 27090    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 27091    test $ac_status = 0; }; then
 27092      if test "$tmp_underscore" = "_"; then
 27093        gmp_cv_asm_x86_got_underscore=yes
 27094      else
 27095        gmp_cv_asm_x86_got_underscore=no
 27096      fi
 27097      break
 27098    fi
 27099  done
 27100  rm -f conftest* a.out b.out a.exe a_out.exe
 27101  
 27102  fi
 27103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
 27104  $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
 27105  if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
 27106  
 27107  echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
 27108  
 27109  else
 27110  
 27111  echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
 27112  
 27113  fi
 27114  
 27115  
 27116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
 27117  $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
 27118  if ${gmp_cv_asm_x86_shldl_cl+:} false; then :
 27119    $as_echo_n "(cached) " >&6
 27120  else
 27121    cat >conftest.s <<EOF
 27122  	$gmp_cv_asm_text
 27123  	shldl	%cl, %eax, %ebx
 27124  EOF
 27125  gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
 27126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
 27127    (eval $gmp_assemble) 2>&5
 27128    ac_status=$?
 27129    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 27130    test $ac_status = 0; }; then
 27131    cat conftest.out >&5
 27132    gmp_cv_asm_x86_shldl_cl=yes
 27133  else
 27134    cat conftest.out >&5
 27135    echo "configure: failed program was:" >&5
 27136    cat conftest.s >&5
 27137    gmp_cv_asm_x86_shldl_cl=no
 27138  fi
 27139  rm -f conftest*
 27140  
 27141  
 27142  fi
 27143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
 27144  $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
 27145  if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
 27146  
 27147  echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
 27148  
 27149  else
 27150  
 27151  echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
 27152  
 27153  fi
 27154  
 27155  	  case $enable_profiling in
 27156  	    prof | gprof)  # Check whether --enable-shared was given.
 27157  if test "${enable_shared+set}" = set; then :
 27158    enableval=$enable_shared; p=${PACKAGE-default}
 27159      case $enableval in
 27160      yes) enable_shared=yes ;;
 27161      no) enable_shared=no ;;
 27162      *)
 27163        enable_shared=no
 27164        # Look at the argument we got.  We use all the common list separators.
 27165        lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 27166        for pkg in $enableval; do
 27167  	IFS=$lt_save_ifs
 27168  	if test "X$pkg" = "X$p"; then
 27169  	  enable_shared=yes
 27170  	fi
 27171        done
 27172        IFS=$lt_save_ifs
 27173        ;;
 27174      esac
 27175  else
 27176    enable_shared=yes
 27177  fi
 27178  
 27179  
 27180  
 27181  
 27182  
 27183  
 27184  
 27185  
 27186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
 27187  $as_echo_n "checking how to call x86 mcount... " >&6; }
 27188  cat >conftest.c <<EOF
 27189  foo(){bar();}
 27190  EOF
 27191  
 27192  if test "$enable_static" = yes; then
 27193    gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
 27194    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
 27195    (eval $gmp_asmout_compile) 2>&5
 27196    ac_status=$?
 27197    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 27198    test $ac_status = 0; }; then
 27199      if grep '\.data' conftest.s >/dev/null; then
 27200        mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
 27201      else
 27202        mcount_nonpic_reg=
 27203      fi
 27204      mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
 27205      if test -z "$mcount_nonpic_call"; then
 27206        as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5
 27207      fi
 27208    else
 27209      as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5
 27210    fi
 27211  fi
 27212  
 27213  if test "$enable_shared" = yes; then
 27214    gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
 27215    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
 27216    (eval $gmp_asmout_compile) 2>&5
 27217    ac_status=$?
 27218    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 27219    test $ac_status = 0; }; then
 27220      if grep '\.data' conftest.s >/dev/null; then
 27221        case $lt_prog_compiler_pic in
 27222          *-DDLL_EXPORT*)
 27223            # Windows DLLs have non-PIC style mcount
 27224            mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
 27225            ;;
 27226          *)
 27227            mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
 27228            ;;
 27229        esac
 27230      else
 27231        mcount_pic_reg=
 27232      fi
 27233      mcount_pic_call=`grep 'call.*mcount' conftest.s`
 27234      if test -z "$mcount_pic_call"; then
 27235        as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5
 27236      fi
 27237    else
 27238      as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5
 27239    fi
 27240  fi
 27241  
 27242  
 27243  echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
 27244  
 27245  
 27246  echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
 27247  
 27248  
 27249  echo "define(<MCOUNT_PIC_REG>,    <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
 27250  
 27251  
 27252  echo "define(<MCOUNT_PIC_CALL>,   <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
 27253  
 27254  
 27255  rm -f conftest.*
 27256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
 27257  $as_echo "determined" >&6; }
 27258   ;;
 27259  	  esac
 27260  	  case $host in
 27261  	    *-*-darwin*)
 27262  
 27263  echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
 27264   ;;
 27265  	  esac
 27266            ;;
 27267          64|x32)
 27268  
 27269  echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
 27270  
 27271            $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
 27272  
 27273  	  case $host in
 27274  	    *-*-darwin*)
 27275  
 27276  echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
 27277   ;;
 27278  	    *-*-mingw* | *-*-cygwin)
 27279  
 27280  echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i
 27281   ;;
 27282  	    *-openbsd*)
 27283  
 27284  echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4
 27285   ;;
 27286  	    *-linux*)
 27287  
 27288  echo "define(<LINUX>,1)" >> $gmp_tmpconfigm4
 27289   ;;
 27290  	  esac
 27291            ;;
 27292        esac
 27293        ;;
 27294    esac
 27295  fi
 27296  
 27297  # For --enable-minithres, prepend "minithres" to path so that its special
 27298  # gmp-mparam.h will be used.
 27299  if test $enable_minithres = yes; then
 27300    path="minithres $path"
 27301  fi
 27302  
 27303  # Create link for gmp-mparam.h.
 27304  gmp_mparam_source=
 27305  for gmp_mparam_dir in $path; do
 27306    test "$no_create" = yes || rm -f gmp-mparam.h
 27307    tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
 27308    if test -f $tmp_file; then
 27309      ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
 27310  
 27311      gmp_srclinks="$gmp_srclinks gmp-mparam.h"
 27312      gmp_mparam_source=$tmp_file
 27313      break
 27314    fi
 27315  done
 27316  if test -z "$gmp_mparam_source"; then
 27317    as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
 27318  fi
 27319  
 27320  # For a helpful message from tune/tuneup.c
 27321  gmp_mparam_suggest=$gmp_mparam_source
 27322  if test "$gmp_mparam_dir" = generic; then
 27323    for i in $path; do break; done
 27324    if test "$i" != generic; then
 27325      gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
 27326    fi
 27327  fi
 27328  
 27329  cat >>confdefs.h <<_ACEOF
 27330  #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
 27331  _ACEOF
 27332  
 27333  
 27334  
 27335  # Copy relevant parameters from gmp-mparam.h to config.m4.
 27336  # We only do this for parameters that are used by some assembly files.
 27337  # Fat binaries do this on a per-file basis, so skip in that case.
 27338  #
 27339  if test -z "$fat_path"; then
 27340    for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do
 27341      value=`sed -n 's/^#define '$i'[ 	]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
 27342      if test -n "$value"; then
 27343  
 27344  echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4
 27345  
 27346      fi
 27347    done
 27348  fi
 27349  
 27350  
 27351  # Sizes of some types, needed at preprocessing time.
 27352  #
 27353  # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
 27354  # be slightly rash, but it's true everywhere we know of and ought to be true
 27355  # of any sensible system.  In a generic C build, grepping LONG_BIT out of
 27356  # <limits.h> might be an alternative, for maximum portability.
 27357  #
 27358  # The cast to long int works around a bug in the HP C Compiler
 27359  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 27360  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 27361  # This bug is HP SR number 8606223364.
 27362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
 27363  $as_echo_n "checking size of void *... " >&6; }
 27364  if ${ac_cv_sizeof_void_p+:} false; then :
 27365    $as_echo_n "(cached) " >&6
 27366  else
 27367    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
 27368  
 27369  else
 27370    if test "$ac_cv_type_void_p" = yes; then
 27371       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 27372  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 27373  as_fn_error 77 "cannot compute sizeof (void *)
 27374  See \`config.log' for more details" "$LINENO" 5; }
 27375     else
 27376       ac_cv_sizeof_void_p=0
 27377     fi
 27378  fi
 27379  
 27380  fi
 27381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
 27382  $as_echo "$ac_cv_sizeof_void_p" >&6; }
 27383  
 27384  
 27385  
 27386  cat >>confdefs.h <<_ACEOF
 27387  #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 27388  _ACEOF
 27389  
 27390  
 27391  # The cast to long int works around a bug in the HP C Compiler
 27392  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 27393  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 27394  # This bug is HP SR number 8606223364.
 27395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
 27396  $as_echo_n "checking size of unsigned short... " >&6; }
 27397  if ${ac_cv_sizeof_unsigned_short+:} false; then :
 27398    $as_echo_n "(cached) " >&6
 27399  else
 27400    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
 27401  
 27402  else
 27403    if test "$ac_cv_type_unsigned_short" = yes; then
 27404       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 27405  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 27406  as_fn_error 77 "cannot compute sizeof (unsigned short)
 27407  See \`config.log' for more details" "$LINENO" 5; }
 27408     else
 27409       ac_cv_sizeof_unsigned_short=0
 27410     fi
 27411  fi
 27412  
 27413  fi
 27414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
 27415  $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
 27416  
 27417  
 27418  
 27419  cat >>confdefs.h <<_ACEOF
 27420  #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
 27421  _ACEOF
 27422  
 27423  
 27424  # The cast to long int works around a bug in the HP C Compiler
 27425  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 27426  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 27427  # This bug is HP SR number 8606223364.
 27428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
 27429  $as_echo_n "checking size of unsigned... " >&6; }
 27430  if ${ac_cv_sizeof_unsigned+:} false; then :
 27431    $as_echo_n "(cached) " >&6
 27432  else
 27433    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned"        "$ac_includes_default"; then :
 27434  
 27435  else
 27436    if test "$ac_cv_type_unsigned" = yes; then
 27437       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 27438  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 27439  as_fn_error 77 "cannot compute sizeof (unsigned)
 27440  See \`config.log' for more details" "$LINENO" 5; }
 27441     else
 27442       ac_cv_sizeof_unsigned=0
 27443     fi
 27444  fi
 27445  
 27446  fi
 27447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
 27448  $as_echo "$ac_cv_sizeof_unsigned" >&6; }
 27449  
 27450  
 27451  
 27452  cat >>confdefs.h <<_ACEOF
 27453  #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
 27454  _ACEOF
 27455  
 27456  
 27457  # The cast to long int works around a bug in the HP C Compiler
 27458  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 27459  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 27460  # This bug is HP SR number 8606223364.
 27461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
 27462  $as_echo_n "checking size of unsigned long... " >&6; }
 27463  if ${ac_cv_sizeof_unsigned_long+:} false; then :
 27464    $as_echo_n "(cached) " >&6
 27465  else
 27466    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
 27467  
 27468  else
 27469    if test "$ac_cv_type_unsigned_long" = yes; then
 27470       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 27471  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 27472  as_fn_error 77 "cannot compute sizeof (unsigned long)
 27473  See \`config.log' for more details" "$LINENO" 5; }
 27474     else
 27475       ac_cv_sizeof_unsigned_long=0
 27476     fi
 27477  fi
 27478  
 27479  fi
 27480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
 27481  $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
 27482  
 27483  
 27484  
 27485  cat >>confdefs.h <<_ACEOF
 27486  #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 27487  _ACEOF
 27488  
 27489  
 27490  # The cast to long int works around a bug in the HP C Compiler
 27491  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 27492  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 27493  # This bug is HP SR number 8606223364.
 27494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
 27495  $as_echo_n "checking size of mp_limb_t... " >&6; }
 27496  if ${ac_cv_sizeof_mp_limb_t+:} false; then :
 27497    $as_echo_n "(cached) " >&6
 27498  else
 27499    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t"        "#define __GMP_WITHIN_CONFIGURE 1   /* ignore template stuff */
 27500  #define GMP_NAIL_BITS $GMP_NAIL_BITS
 27501  #define GMP_LIMB_BITS 123
 27502  $DEFN_LONG_LONG_LIMB
 27503  #include \"$srcdir/gmp-h.in\"
 27504  
 27505  "; then :
 27506  
 27507  else
 27508    if test "$ac_cv_type_mp_limb_t" = yes; then
 27509       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 27510  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 27511  as_fn_error 77 "cannot compute sizeof (mp_limb_t)
 27512  See \`config.log' for more details" "$LINENO" 5; }
 27513     else
 27514       ac_cv_sizeof_mp_limb_t=0
 27515     fi
 27516  fi
 27517  
 27518  fi
 27519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
 27520  $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
 27521  
 27522  
 27523  
 27524  cat >>confdefs.h <<_ACEOF
 27525  #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
 27526  _ACEOF
 27527  
 27528  
 27529  if test "$ac_cv_sizeof_mp_limb_t" = 0; then
 27530    as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
 27531  fi
 27532  GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
 27533  
 27534  
 27535  echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
 27536  
 27537  
 27538  # Check compiler limb size matches gmp-mparam.h
 27539  #
 27540  # FIXME: Some of the cycle counter objects in the tune directory depend on
 27541  # the size of ulong, it'd be possible to check that here, though a mismatch
 27542  # probably wouldn't want to be fatal, none of the libgmp assembler code
 27543  # depends on ulong.
 27544  #
 27545  mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ 	][ 	]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
 27546  if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
 27547    if test "$test_CFLAGS" = set; then
 27548      as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
 27549  in this configuration expects $mparam_bits bits.
 27550  You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
 27551  intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
 27552    else
 27553      as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
 27554  in this configuration expects $mparam_bits bits." "$LINENO" 5
 27555    fi
 27556  fi
 27557  
 27558  
 27559  echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
 27560  
 27561  
 27562  echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
 27563  
 27564  
 27565  echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
 27566  
 27567  
 27568  
 27569  
 27570  
 27571  
 27572  
 27573  
 27574  # A recompiled sqr_basecase for use in the tune program, if necessary.
 27575  TUNE_SQR_OBJ=
 27576  test -d tune || mkdir tune
 27577  case $sqr_basecase_source in
 27578    *.asm)
 27579      sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
 27580      if test -n "$sqr_max"; then
 27581        TUNE_SQR_OBJ=sqr_asm.o
 27582  
 27583  cat >>confdefs.h <<_ACEOF
 27584  #define TUNE_SQR_TOOM2_MAX $sqr_max
 27585  _ACEOF
 27586  
 27587      fi
 27588      cat >tune/sqr_basecase.c <<EOF
 27589  /* not sure that an empty file can compile, so put in a dummy */
 27590  int sqr_basecase_dummy;
 27591  EOF
 27592      ;;
 27593    *.c)
 27594      TUNE_SQR_OBJ=
 27595      $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
 27596  
 27597      cat >tune/sqr_basecase.c <<EOF
 27598  #define TUNE_PROGRAM_BUILD 1
 27599  #define TUNE_PROGRAM_BUILD_SQR 1
 27600  #include "mpn/sqr_basecase.c"
 27601  EOF
 27602      ;;
 27603  esac
 27604  
 27605  
 27606  
 27607  # Configs for demos/pexpr.c.
 27608  #
 27609  ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
 27610  
 27611  case $ac_cv_func_clock in
 27612  yes) HAVE_CLOCK_01=1
 27613   ;;
 27614  no)  HAVE_CLOCK_01=0 ;;
 27615  esac
 27616  
 27617  case $ac_cv_func_cputime in
 27618  yes) HAVE_CPUTIME_01=1
 27619   ;;
 27620  no)  HAVE_CPUTIME_01=0 ;;
 27621  esac
 27622  
 27623  case $ac_cv_func_getrusage in
 27624  yes) HAVE_GETRUSAGE_01=1
 27625   ;;
 27626  no)  HAVE_GETRUSAGE_01=0 ;;
 27627  esac
 27628  
 27629  case $ac_cv_func_gettimeofday in
 27630  yes) HAVE_GETTIMEOFDAY_01=1
 27631   ;;
 27632  no)  HAVE_GETTIMEOFDAY_01=0 ;;
 27633  esac
 27634  
 27635  case $ac_cv_func_sigaction in
 27636  yes) HAVE_SIGACTION_01=1
 27637   ;;
 27638  no)  HAVE_SIGACTION_01=0 ;;
 27639  esac
 27640  
 27641  case $ac_cv_func_sigaltstack in
 27642  yes) HAVE_SIGALTSTACK_01=1
 27643   ;;
 27644  no)  HAVE_SIGALTSTACK_01=0 ;;
 27645  esac
 27646  
 27647  case $ac_cv_func_sigstack in
 27648  yes) HAVE_SIGSTACK_01=1
 27649   ;;
 27650  no)  HAVE_SIGSTACK_01=0 ;;
 27651  esac
 27652  
 27653  
 27654  case $ac_cv_header_sys_resource_h in
 27655  yes) HAVE_SYS_RESOURCE_H_01=1
 27656   ;;
 27657  no)  HAVE_SYS_RESOURCE_H_01=0 ;;
 27658  esac
 27659  
 27660  
 27661  ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
 27662  "
 27663  if test "x$ac_cv_type_stack_t" = xyes; then :
 27664  
 27665  cat >>confdefs.h <<_ACEOF
 27666  #define HAVE_STACK_T 1
 27667  _ACEOF
 27668  
 27669  HAVE_STACK_T_01=1
 27670  else
 27671    HAVE_STACK_T_01=0
 27672  fi
 27673  
 27674  
 27675  
 27676  # Configs for demos/calc directory
 27677  #
 27678  # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
 27679  # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
 27680  # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
 27681  # which would look very strange.
 27682  #
 27683  # -lcurses is required by libreadline.  On a typical SVR4 style system this
 27684  # normally doesn't have to be given explicitly, since libreadline.so will
 27685  # have a NEEDED record for it.  But if someone for some reason is using only
 27686  # a static libreadline.a then we must give -lcurses.  Readline (as of
 27687  # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
 27688  # necessary dependencies.
 27689  #
 27690  # On a couple of systems we've seen libreadline available, but the headers
 27691  # not in the default include path, so check for readline/readline.h.  We've
 27692  # also seen readline/history.h missing, not sure if that's just a broken
 27693  # install or a very old version, but check that too.
 27694  #
 27695  ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
 27696  
 27697  LIBCURSES=
 27698  if test $with_readline != no; then
 27699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
 27700  $as_echo_n "checking for tputs in -lncurses... " >&6; }
 27701  if ${ac_cv_lib_ncurses_tputs+:} false; then :
 27702    $as_echo_n "(cached) " >&6
 27703  else
 27704    ac_check_lib_save_LIBS=$LIBS
 27705  LIBS="-lncurses  $LIBS"
 27706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 27707  /* end confdefs.h.  */
 27708  
 27709  /* Override any GCC internal prototype to avoid an error.
 27710     Use char because int might match the return type of a GCC
 27711     builtin and then its argument prototype would still apply.  */
 27712  #ifdef __cplusplus
 27713  extern "C"
 27714  #endif
 27715  char tputs ();
 27716  int
 27717  main ()
 27718  {
 27719  return tputs ();
 27720    ;
 27721    return 0;
 27722  }
 27723  _ACEOF
 27724  if ac_fn_c_try_link "$LINENO"; then :
 27725    ac_cv_lib_ncurses_tputs=yes
 27726  else
 27727    ac_cv_lib_ncurses_tputs=no
 27728  fi
 27729  rm -f core conftest.err conftest.$ac_objext \
 27730      conftest$ac_exeext conftest.$ac_ext
 27731  LIBS=$ac_check_lib_save_LIBS
 27732  fi
 27733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
 27734  $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
 27735  if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
 27736    LIBCURSES=-lncurses
 27737  else
 27738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
 27739  $as_echo_n "checking for tputs in -lcurses... " >&6; }
 27740  if ${ac_cv_lib_curses_tputs+:} false; then :
 27741    $as_echo_n "(cached) " >&6
 27742  else
 27743    ac_check_lib_save_LIBS=$LIBS
 27744  LIBS="-lcurses  $LIBS"
 27745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 27746  /* end confdefs.h.  */
 27747  
 27748  /* Override any GCC internal prototype to avoid an error.
 27749     Use char because int might match the return type of a GCC
 27750     builtin and then its argument prototype would still apply.  */
 27751  #ifdef __cplusplus
 27752  extern "C"
 27753  #endif
 27754  char tputs ();
 27755  int
 27756  main ()
 27757  {
 27758  return tputs ();
 27759    ;
 27760    return 0;
 27761  }
 27762  _ACEOF
 27763  if ac_fn_c_try_link "$LINENO"; then :
 27764    ac_cv_lib_curses_tputs=yes
 27765  else
 27766    ac_cv_lib_curses_tputs=no
 27767  fi
 27768  rm -f core conftest.err conftest.$ac_objext \
 27769      conftest$ac_exeext conftest.$ac_ext
 27770  LIBS=$ac_check_lib_save_LIBS
 27771  fi
 27772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
 27773  $as_echo "$ac_cv_lib_curses_tputs" >&6; }
 27774  if test "x$ac_cv_lib_curses_tputs" = xyes; then :
 27775    LIBCURSES=-lcurses
 27776  fi
 27777  
 27778  fi
 27779  
 27780  fi
 27781  
 27782  use_readline=$with_readline
 27783  if test $with_readline = detect; then
 27784    use_readline=no
 27785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
 27786  $as_echo_n "checking for readline in -lreadline... " >&6; }
 27787  if ${ac_cv_lib_readline_readline+:} false; then :
 27788    $as_echo_n "(cached) " >&6
 27789  else
 27790    ac_check_lib_save_LIBS=$LIBS
 27791  LIBS="-lreadline $LIBCURSES $LIBS"
 27792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 27793  /* end confdefs.h.  */
 27794  
 27795  /* Override any GCC internal prototype to avoid an error.
 27796     Use char because int might match the return type of a GCC
 27797     builtin and then its argument prototype would still apply.  */
 27798  #ifdef __cplusplus
 27799  extern "C"
 27800  #endif
 27801  char readline ();
 27802  int
 27803  main ()
 27804  {
 27805  return readline ();
 27806    ;
 27807    return 0;
 27808  }
 27809  _ACEOF
 27810  if ac_fn_c_try_link "$LINENO"; then :
 27811    ac_cv_lib_readline_readline=yes
 27812  else
 27813    ac_cv_lib_readline_readline=no
 27814  fi
 27815  rm -f core conftest.err conftest.$ac_objext \
 27816      conftest$ac_exeext conftest.$ac_ext
 27817  LIBS=$ac_check_lib_save_LIBS
 27818  fi
 27819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
 27820  $as_echo "$ac_cv_lib_readline_readline" >&6; }
 27821  if test "x$ac_cv_lib_readline_readline" = xyes; then :
 27822    ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
 27823  if test "x$ac_cv_header_readline_readline_h" = xyes; then :
 27824    ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
 27825  if test "x$ac_cv_header_readline_history_h" = xyes; then :
 27826    use_readline=yes
 27827  fi
 27828  
 27829  
 27830  fi
 27831  
 27832  
 27833  fi
 27834  
 27835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
 27836  $as_echo_n "checking readline detected... " >&6; }
 27837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
 27838  $as_echo "$use_readline" >&6; }
 27839  fi
 27840  if test $use_readline = yes; then
 27841    WITH_READLINE_01=1
 27842  
 27843    LIBREADLINE=-lreadline
 27844  
 27845  else
 27846    WITH_READLINE_01=0
 27847  fi
 27848  for ac_prog in 'bison -y' byacc
 27849  do
 27850    # Extract the first word of "$ac_prog", so it can be a program name with args.
 27851  set dummy $ac_prog; ac_word=$2
 27852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 27853  $as_echo_n "checking for $ac_word... " >&6; }
 27854  if ${ac_cv_prog_YACC+:} false; then :
 27855    $as_echo_n "(cached) " >&6
 27856  else
 27857    if test -n "$YACC"; then
 27858    ac_cv_prog_YACC="$YACC" # Let the user override the test.
 27859  else
 27860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 27861  for as_dir in $PATH
 27862  do
 27863    IFS=$as_save_IFS
 27864    test -z "$as_dir" && as_dir=.
 27865      for ac_exec_ext in '' $ac_executable_extensions; do
 27866    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 27867      ac_cv_prog_YACC="$ac_prog"
 27868      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 27869      break 2
 27870    fi
 27871  done
 27872    done
 27873  IFS=$as_save_IFS
 27874  
 27875  fi
 27876  fi
 27877  YACC=$ac_cv_prog_YACC
 27878  if test -n "$YACC"; then
 27879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 27880  $as_echo "$YACC" >&6; }
 27881  else
 27882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 27883  $as_echo "no" >&6; }
 27884  fi
 27885  
 27886  
 27887    test -n "$YACC" && break
 27888  done
 27889  test -n "$YACC" || YACC="yacc"
 27890  
 27891  for ac_prog in flex lex
 27892  do
 27893    # Extract the first word of "$ac_prog", so it can be a program name with args.
 27894  set dummy $ac_prog; ac_word=$2
 27895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 27896  $as_echo_n "checking for $ac_word... " >&6; }
 27897  if ${ac_cv_prog_LEX+:} false; then :
 27898    $as_echo_n "(cached) " >&6
 27899  else
 27900    if test -n "$LEX"; then
 27901    ac_cv_prog_LEX="$LEX" # Let the user override the test.
 27902  else
 27903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 27904  for as_dir in $PATH
 27905  do
 27906    IFS=$as_save_IFS
 27907    test -z "$as_dir" && as_dir=.
 27908      for ac_exec_ext in '' $ac_executable_extensions; do
 27909    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 27910      ac_cv_prog_LEX="$ac_prog"
 27911      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 27912      break 2
 27913    fi
 27914  done
 27915    done
 27916  IFS=$as_save_IFS
 27917  
 27918  fi
 27919  fi
 27920  LEX=$ac_cv_prog_LEX
 27921  if test -n "$LEX"; then
 27922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
 27923  $as_echo "$LEX" >&6; }
 27924  else
 27925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 27926  $as_echo "no" >&6; }
 27927  fi
 27928  
 27929  
 27930    test -n "$LEX" && break
 27931  done
 27932  test -n "$LEX" || LEX=":"
 27933  
 27934  if test "x$LEX" != "x:"; then
 27935    cat >conftest.l <<_ACEOF
 27936  %%
 27937  a { ECHO; }
 27938  b { REJECT; }
 27939  c { yymore (); }
 27940  d { yyless (1); }
 27941  e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
 27942      yyless ((input () != 0)); }
 27943  f { unput (yytext[0]); }
 27944  . { BEGIN INITIAL; }
 27945  %%
 27946  #ifdef YYTEXT_POINTER
 27947  extern char *yytext;
 27948  #endif
 27949  int
 27950  main (void)
 27951  {
 27952    return ! yylex () + ! yywrap ();
 27953  }
 27954  _ACEOF
 27955  { { ac_try="$LEX conftest.l"
 27956  case "(($ac_try" in
 27957    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 27958    *) ac_try_echo=$ac_try;;
 27959  esac
 27960  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 27961  $as_echo "$ac_try_echo"; } >&5
 27962    (eval "$LEX conftest.l") 2>&5
 27963    ac_status=$?
 27964    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 27965    test $ac_status = 0; }
 27966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
 27967  $as_echo_n "checking lex output file root... " >&6; }
 27968  if ${ac_cv_prog_lex_root+:} false; then :
 27969    $as_echo_n "(cached) " >&6
 27970  else
 27971  
 27972  if test -f lex.yy.c; then
 27973    ac_cv_prog_lex_root=lex.yy
 27974  elif test -f lexyy.c; then
 27975    ac_cv_prog_lex_root=lexyy
 27976  else
 27977    as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
 27978  fi
 27979  fi
 27980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
 27981  $as_echo "$ac_cv_prog_lex_root" >&6; }
 27982  LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 27983  
 27984  if test -z "${LEXLIB+set}"; then
 27985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
 27986  $as_echo_n "checking lex library... " >&6; }
 27987  if ${ac_cv_lib_lex+:} false; then :
 27988    $as_echo_n "(cached) " >&6
 27989  else
 27990  
 27991      ac_save_LIBS=$LIBS
 27992      ac_cv_lib_lex='none needed'
 27993      for ac_lib in '' -lfl -ll; do
 27994        LIBS="$ac_lib $ac_save_LIBS"
 27995        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 27996  /* end confdefs.h.  */
 27997  `cat $LEX_OUTPUT_ROOT.c`
 27998  _ACEOF
 27999  if ac_fn_c_try_link "$LINENO"; then :
 28000    ac_cv_lib_lex=$ac_lib
 28001  fi
 28002  rm -f core conftest.err conftest.$ac_objext \
 28003      conftest$ac_exeext conftest.$ac_ext
 28004        test "$ac_cv_lib_lex" != 'none needed' && break
 28005      done
 28006      LIBS=$ac_save_LIBS
 28007  
 28008  fi
 28009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
 28010  $as_echo "$ac_cv_lib_lex" >&6; }
 28011    test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 28012  fi
 28013  
 28014  
 28015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
 28016  $as_echo_n "checking whether yytext is a pointer... " >&6; }
 28017  if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
 28018    $as_echo_n "(cached) " >&6
 28019  else
 28020    # POSIX says lex can declare yytext either as a pointer or an array; the
 28021  # default is implementation-dependent.  Figure out which it is, since
 28022  # not all implementations provide the %pointer and %array declarations.
 28023  ac_cv_prog_lex_yytext_pointer=no
 28024  ac_save_LIBS=$LIBS
 28025  LIBS="$LEXLIB $ac_save_LIBS"
 28026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 28027  /* end confdefs.h.  */
 28028  
 28029    #define YYTEXT_POINTER 1
 28030  `cat $LEX_OUTPUT_ROOT.c`
 28031  _ACEOF
 28032  if ac_fn_c_try_link "$LINENO"; then :
 28033    ac_cv_prog_lex_yytext_pointer=yes
 28034  fi
 28035  rm -f core conftest.err conftest.$ac_objext \
 28036      conftest$ac_exeext conftest.$ac_ext
 28037  LIBS=$ac_save_LIBS
 28038  
 28039  fi
 28040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
 28041  $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 28042  if test $ac_cv_prog_lex_yytext_pointer = yes; then
 28043  
 28044  $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
 28045  
 28046  fi
 28047  rm -f conftest.l $LEX_OUTPUT_ROOT.c
 28048  
 28049  fi
 28050  if test "$LEX" = :; then
 28051    LEX=${am_missing_run}flex
 28052  fi
 28053  
 28054  # Configs for demos/expr directory
 28055  #
 28056  # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
 28057  # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
 28058  # called.  (Automake 1.8.4 doesn't, at least not when the only library is in
 28059  # an EXTRA_LIBRARIES.)
 28060  #
 28061  if test -n "$ac_tool_prefix"; then
 28062    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 28063  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 28064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 28065  $as_echo_n "checking for $ac_word... " >&6; }
 28066  if ${ac_cv_prog_RANLIB+:} false; then :
 28067    $as_echo_n "(cached) " >&6
 28068  else
 28069    if test -n "$RANLIB"; then
 28070    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 28071  else
 28072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 28073  for as_dir in $PATH
 28074  do
 28075    IFS=$as_save_IFS
 28076    test -z "$as_dir" && as_dir=.
 28077      for ac_exec_ext in '' $ac_executable_extensions; do
 28078    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 28079      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 28080      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 28081      break 2
 28082    fi
 28083  done
 28084    done
 28085  IFS=$as_save_IFS
 28086  
 28087  fi
 28088  fi
 28089  RANLIB=$ac_cv_prog_RANLIB
 28090  if test -n "$RANLIB"; then
 28091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 28092  $as_echo "$RANLIB" >&6; }
 28093  else
 28094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 28095  $as_echo "no" >&6; }
 28096  fi
 28097  
 28098  
 28099  fi
 28100  if test -z "$ac_cv_prog_RANLIB"; then
 28101    ac_ct_RANLIB=$RANLIB
 28102    # Extract the first word of "ranlib", so it can be a program name with args.
 28103  set dummy ranlib; ac_word=$2
 28104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 28105  $as_echo_n "checking for $ac_word... " >&6; }
 28106  if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 28107    $as_echo_n "(cached) " >&6
 28108  else
 28109    if test -n "$ac_ct_RANLIB"; then
 28110    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 28111  else
 28112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 28113  for as_dir in $PATH
 28114  do
 28115    IFS=$as_save_IFS
 28116    test -z "$as_dir" && as_dir=.
 28117      for ac_exec_ext in '' $ac_executable_extensions; do
 28118    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 28119      ac_cv_prog_ac_ct_RANLIB="ranlib"
 28120      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 28121      break 2
 28122    fi
 28123  done
 28124    done
 28125  IFS=$as_save_IFS
 28126  
 28127  fi
 28128  fi
 28129  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 28130  if test -n "$ac_ct_RANLIB"; then
 28131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 28132  $as_echo "$ac_ct_RANLIB" >&6; }
 28133  else
 28134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 28135  $as_echo "no" >&6; }
 28136  fi
 28137  
 28138    if test "x$ac_ct_RANLIB" = x; then
 28139      RANLIB=":"
 28140    else
 28141      case $cross_compiling:$ac_tool_warned in
 28142  yes:)
 28143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 28144  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 28145  ac_tool_warned=yes ;;
 28146  esac
 28147      RANLIB=$ac_ct_RANLIB
 28148    fi
 28149  else
 28150    RANLIB="$ac_cv_prog_RANLIB"
 28151  fi
 28152  
 28153  
 28154  
 28155  # Create config.m4.
 28156  
 28157  echo "creating $gmp_configm4"
 28158  echo "d""nl $gmp_configm4.  Generated automatically by configure." > $gmp_configm4
 28159  if test -f $gmp_tmpconfigm4; then
 28160    echo "changequote(<,>)" >> $gmp_configm4
 28161    echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
 28162    cat $gmp_tmpconfigm4 >> $gmp_configm4
 28163    echo ">)" >> $gmp_configm4
 28164    echo "changequote(\`,')" >> $gmp_configm4
 28165    rm $gmp_tmpconfigm4
 28166  fi
 28167  echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
 28168  if test -f $gmp_tmpconfigm4i; then
 28169    cat $gmp_tmpconfigm4i >> $gmp_configm4
 28170    rm $gmp_tmpconfigm4i
 28171  fi
 28172  if test -f $gmp_tmpconfigm4p; then
 28173    cat $gmp_tmpconfigm4p >> $gmp_configm4
 28174    rm $gmp_tmpconfigm4p
 28175  fi
 28176  echo "')" >> $gmp_configm4
 28177  echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
 28178  
 28179  
 28180  # Create Makefiles
 28181  # FIXME: Upcoming version of autoconf/automake may not like broken lines.
 28182  #        Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
 28183  
 28184  ac_config_files="$ac_config_files Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile rand/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in"
 28185  
 28186  cat >confcache <<\_ACEOF
 28187  # This file is a shell script that caches the results of configure
 28188  # tests run on this system so they can be shared between configure
 28189  # scripts and configure runs, see configure's option --config-cache.
 28190  # It is not useful on other systems.  If it contains results you don't
 28191  # want to keep, you may remove or edit it.
 28192  #
 28193  # config.status only pays attention to the cache file if you give it
 28194  # the --recheck option to rerun configure.
 28195  #
 28196  # `ac_cv_env_foo' variables (set or unset) will be overridden when
 28197  # loading this file, other *unset* `ac_cv_foo' will be assigned the
 28198  # following values.
 28199  
 28200  _ACEOF
 28201  
 28202  # The following way of writing the cache mishandles newlines in values,
 28203  # but we know of no workaround that is simple, portable, and efficient.
 28204  # So, we kill variables containing newlines.
 28205  # Ultrix sh set writes to stderr and can't be redirected directly,
 28206  # and sets the high bit in the cache file unless we assign to the vars.
 28207  (
 28208    for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 28209      eval ac_val=\$$ac_var
 28210      case $ac_val in #(
 28211      *${as_nl}*)
 28212        case $ac_var in #(
 28213        *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 28214  $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 28215        esac
 28216        case $ac_var in #(
 28217        _ | IFS | as_nl) ;; #(
 28218        BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 28219        *) { eval $ac_var=; unset $ac_var;} ;;
 28220        esac ;;
 28221      esac
 28222    done
 28223  
 28224    (set) 2>&1 |
 28225      case $as_nl`(ac_space=' '; set) 2>&1` in #(
 28226      *${as_nl}ac_space=\ *)
 28227        # `set' does not quote correctly, so add quotes: double-quote
 28228        # substitution turns \\\\ into \\, and sed turns \\ into \.
 28229        sed -n \
 28230  	"s/'/'\\\\''/g;
 28231  	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 28232        ;; #(
 28233      *)
 28234        # `set' quotes correctly as required by POSIX, so do not add quotes.
 28235        sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 28236        ;;
 28237      esac |
 28238      sort
 28239  ) |
 28240    sed '
 28241       /^ac_cv_env_/b end
 28242       t clear
 28243       :clear
 28244       s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 28245       t end
 28246       s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 28247       :end' >>confcache
 28248  if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 28249    if test -w "$cache_file"; then
 28250      if test "x$cache_file" != "x/dev/null"; then
 28251        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 28252  $as_echo "$as_me: updating cache $cache_file" >&6;}
 28253        if test ! -f "$cache_file" || test -h "$cache_file"; then
 28254  	cat confcache >"$cache_file"
 28255        else
 28256          case $cache_file in #(
 28257          */* | ?:*)
 28258  	  mv -f confcache "$cache_file"$$ &&
 28259  	  mv -f "$cache_file"$$ "$cache_file" ;; #(
 28260          *)
 28261  	  mv -f confcache "$cache_file" ;;
 28262  	esac
 28263        fi
 28264      fi
 28265    else
 28266      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 28267  $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 28268    fi
 28269  fi
 28270  rm -f confcache
 28271  
 28272  test "x$prefix" = xNONE && prefix=$ac_default_prefix
 28273  # Let make expand exec_prefix.
 28274  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 28275  
 28276  DEFS=-DHAVE_CONFIG_H
 28277  
 28278  ac_libobjs=
 28279  ac_ltlibobjs=
 28280  U=
 28281  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 28282    # 1. Remove the extension, and $U if already installed.
 28283    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 28284    ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 28285    # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 28286    #    will be set to the directory where LIBOBJS objects are built.
 28287    as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 28288    as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 28289  done
 28290  LIBOBJS=$ac_libobjs
 28291  
 28292  LTLIBOBJS=$ac_ltlibobjs
 28293  
 28294  
 28295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 28296  $as_echo_n "checking that generated files are newer than configure... " >&6; }
 28297     if test -n "$am_sleep_pid"; then
 28298       # Hide warnings about reused PIDs.
 28299       wait $am_sleep_pid 2>/dev/null
 28300     fi
 28301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 28302  $as_echo "done" >&6; }
 28303   if test -n "$EXEEXT"; then
 28304    am__EXEEXT_TRUE=
 28305    am__EXEEXT_FALSE='#'
 28306  else
 28307    am__EXEEXT_TRUE='#'
 28308    am__EXEEXT_FALSE=
 28309  fi
 28310  
 28311  if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 28312    as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 28313  Usually this means the macro was only invoked conditionally." "$LINENO" 5
 28314  fi
 28315  if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
 28316    as_fn_error $? "conditional \"WANT_CXX\" was never defined.
 28317  Usually this means the macro was only invoked conditionally." "$LINENO" 5
 28318  fi
 28319  if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
 28320    as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
 28321  Usually this means the macro was only invoked conditionally." "$LINENO" 5
 28322  fi
 28323  
 28324  
 28325  : "${CONFIG_STATUS=./config.status}"
 28326  ac_write_fail=0
 28327  ac_clean_files_save=$ac_clean_files
 28328  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 28329  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 28330  $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 28331  as_write_fail=0
 28332  cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 28333  #! $SHELL
 28334  # Generated by $as_me.
 28335  # Run this file to recreate the current configuration.
 28336  # Compiler output produced by configure, useful for debugging
 28337  # configure, is in config.log if it exists.
 28338  
 28339  debug=false
 28340  ac_cs_recheck=false
 28341  ac_cs_silent=false
 28342  
 28343  SHELL=\${CONFIG_SHELL-$SHELL}
 28344  export SHELL
 28345  _ASEOF
 28346  cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 28347  ## -------------------- ##
 28348  ## M4sh Initialization. ##
 28349  ## -------------------- ##
 28350  
 28351  # Be more Bourne compatible
 28352  DUALCASE=1; export DUALCASE # for MKS sh
 28353  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 28354    emulate sh
 28355    NULLCMD=:
 28356    # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 28357    # is contrary to our usage.  Disable this feature.
 28358    alias -g '${1+"$@"}'='"$@"'
 28359    setopt NO_GLOB_SUBST
 28360  else
 28361    case `(set -o) 2>/dev/null` in #(
 28362    *posix*) :
 28363      set -o posix ;; #(
 28364    *) :
 28365       ;;
 28366  esac
 28367  fi
 28368  
 28369  
 28370  as_nl='
 28371  '
 28372  export as_nl
 28373  # Printing a long string crashes Solaris 7 /usr/bin/printf.
 28374  as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 28375  as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 28376  as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 28377  # Prefer a ksh shell builtin over an external printf program on Solaris,
 28378  # but without wasting forks for bash or zsh.
 28379  if test -z "$BASH_VERSION$ZSH_VERSION" \
 28380      && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 28381    as_echo='print -r --'
 28382    as_echo_n='print -rn --'
 28383  elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 28384    as_echo='printf %s\n'
 28385    as_echo_n='printf %s'
 28386  else
 28387    if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 28388      as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 28389      as_echo_n='/usr/ucb/echo -n'
 28390    else
 28391      as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 28392      as_echo_n_body='eval
 28393        arg=$1;
 28394        case $arg in #(
 28395        *"$as_nl"*)
 28396  	expr "X$arg" : "X\\(.*\\)$as_nl";
 28397  	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 28398        esac;
 28399        expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 28400      '
 28401      export as_echo_n_body
 28402      as_echo_n='sh -c $as_echo_n_body as_echo'
 28403    fi
 28404    export as_echo_body
 28405    as_echo='sh -c $as_echo_body as_echo'
 28406  fi
 28407  
 28408  # The user is always right.
 28409  if test "${PATH_SEPARATOR+set}" != set; then
 28410    PATH_SEPARATOR=:
 28411    (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 28412      (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 28413        PATH_SEPARATOR=';'
 28414    }
 28415  fi
 28416  
 28417  
 28418  # IFS
 28419  # We need space, tab and new line, in precisely that order.  Quoting is
 28420  # there to prevent editors from complaining about space-tab.
 28421  # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 28422  # splitting by setting IFS to empty value.)
 28423  IFS=" ""	$as_nl"
 28424  
 28425  # Find who we are.  Look in the path if we contain no directory separator.
 28426  as_myself=
 28427  case $0 in #((
 28428    *[\\/]* ) as_myself=$0 ;;
 28429    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 28430  for as_dir in $PATH
 28431  do
 28432    IFS=$as_save_IFS
 28433    test -z "$as_dir" && as_dir=.
 28434      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 28435    done
 28436  IFS=$as_save_IFS
 28437  
 28438       ;;
 28439  esac
 28440  # We did not find ourselves, most probably we were run as `sh COMMAND'
 28441  # in which case we are not to be found in the path.
 28442  if test "x$as_myself" = x; then
 28443    as_myself=$0
 28444  fi
 28445  if test ! -f "$as_myself"; then
 28446    $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 28447    exit 1
 28448  fi
 28449  
 28450  # Unset variables that we do not need and which cause bugs (e.g. in
 28451  # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 28452  # suppresses any "Segmentation fault" message there.  '((' could
 28453  # trigger a bug in pdksh 5.2.14.
 28454  for as_var in BASH_ENV ENV MAIL MAILPATH
 28455  do eval test x\${$as_var+set} = xset \
 28456    && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 28457  done
 28458  PS1='$ '
 28459  PS2='> '
 28460  PS4='+ '
 28461  
 28462  # NLS nuisances.
 28463  LC_ALL=C
 28464  export LC_ALL
 28465  LANGUAGE=C
 28466  export LANGUAGE
 28467  
 28468  # CDPATH.
 28469  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 28470  
 28471  
 28472  # as_fn_error STATUS ERROR [LINENO LOG_FD]
 28473  # ----------------------------------------
 28474  # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 28475  # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 28476  # script with STATUS, using 1 if that was 0.
 28477  as_fn_error ()
 28478  {
 28479    as_status=$1; test $as_status -eq 0 && as_status=1
 28480    if test "$4"; then
 28481      as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 28482      $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 28483    fi
 28484    $as_echo "$as_me: error: $2" >&2
 28485    as_fn_exit $as_status
 28486  } # as_fn_error
 28487  
 28488  
 28489  # as_fn_set_status STATUS
 28490  # -----------------------
 28491  # Set $? to STATUS, without forking.
 28492  as_fn_set_status ()
 28493  {
 28494    return $1
 28495  } # as_fn_set_status
 28496  
 28497  # as_fn_exit STATUS
 28498  # -----------------
 28499  # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 28500  as_fn_exit ()
 28501  {
 28502    set +e
 28503    as_fn_set_status $1
 28504    exit $1
 28505  } # as_fn_exit
 28506  
 28507  # as_fn_unset VAR
 28508  # ---------------
 28509  # Portably unset VAR.
 28510  as_fn_unset ()
 28511  {
 28512    { eval $1=; unset $1;}
 28513  }
 28514  as_unset=as_fn_unset
 28515  # as_fn_append VAR VALUE
 28516  # ----------------------
 28517  # Append the text in VALUE to the end of the definition contained in VAR. Take
 28518  # advantage of any shell optimizations that allow amortized linear growth over
 28519  # repeated appends, instead of the typical quadratic growth present in naive
 28520  # implementations.
 28521  if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 28522    eval 'as_fn_append ()
 28523    {
 28524      eval $1+=\$2
 28525    }'
 28526  else
 28527    as_fn_append ()
 28528    {
 28529      eval $1=\$$1\$2
 28530    }
 28531  fi # as_fn_append
 28532  
 28533  # as_fn_arith ARG...
 28534  # ------------------
 28535  # Perform arithmetic evaluation on the ARGs, and store the result in the
 28536  # global $as_val. Take advantage of shells that can avoid forks. The arguments
 28537  # must be portable across $(()) and expr.
 28538  if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 28539    eval 'as_fn_arith ()
 28540    {
 28541      as_val=$(( $* ))
 28542    }'
 28543  else
 28544    as_fn_arith ()
 28545    {
 28546      as_val=`expr "$@" || test $? -eq 1`
 28547    }
 28548  fi # as_fn_arith
 28549  
 28550  
 28551  if expr a : '\(a\)' >/dev/null 2>&1 &&
 28552     test "X`expr 00001 : '.*\(...\)'`" = X001; then
 28553    as_expr=expr
 28554  else
 28555    as_expr=false
 28556  fi
 28557  
 28558  if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 28559    as_basename=basename
 28560  else
 28561    as_basename=false
 28562  fi
 28563  
 28564  if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 28565    as_dirname=dirname
 28566  else
 28567    as_dirname=false
 28568  fi
 28569  
 28570  as_me=`$as_basename -- "$0" ||
 28571  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 28572  	 X"$0" : 'X\(//\)$' \| \
 28573  	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 28574  $as_echo X/"$0" |
 28575      sed '/^.*\/\([^/][^/]*\)\/*$/{
 28576  	    s//\1/
 28577  	    q
 28578  	  }
 28579  	  /^X\/\(\/\/\)$/{
 28580  	    s//\1/
 28581  	    q
 28582  	  }
 28583  	  /^X\/\(\/\).*/{
 28584  	    s//\1/
 28585  	    q
 28586  	  }
 28587  	  s/.*/./; q'`
 28588  
 28589  # Avoid depending upon Character Ranges.
 28590  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 28591  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 28592  as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 28593  as_cr_digits='0123456789'
 28594  as_cr_alnum=$as_cr_Letters$as_cr_digits
 28595  
 28596  ECHO_C= ECHO_N= ECHO_T=
 28597  case `echo -n x` in #(((((
 28598  -n*)
 28599    case `echo 'xy\c'` in
 28600    *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 28601    xy)  ECHO_C='\c';;
 28602    *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 28603         ECHO_T='	';;
 28604    esac;;
 28605  *)
 28606    ECHO_N='-n';;
 28607  esac
 28608  
 28609  rm -f conf$$ conf$$.exe conf$$.file
 28610  if test -d conf$$.dir; then
 28611    rm -f conf$$.dir/conf$$.file
 28612  else
 28613    rm -f conf$$.dir
 28614    mkdir conf$$.dir 2>/dev/null
 28615  fi
 28616  if (echo >conf$$.file) 2>/dev/null; then
 28617    if ln -s conf$$.file conf$$ 2>/dev/null; then
 28618      as_ln_s='ln -s'
 28619      # ... but there are two gotchas:
 28620      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 28621      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 28622      # In both cases, we have to default to `cp -pR'.
 28623      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 28624        as_ln_s='cp -pR'
 28625    elif ln conf$$.file conf$$ 2>/dev/null; then
 28626      as_ln_s=ln
 28627    else
 28628      as_ln_s='cp -pR'
 28629    fi
 28630  else
 28631    as_ln_s='cp -pR'
 28632  fi
 28633  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 28634  rmdir conf$$.dir 2>/dev/null
 28635  
 28636  
 28637  # as_fn_mkdir_p
 28638  # -------------
 28639  # Create "$as_dir" as a directory, including parents if necessary.
 28640  as_fn_mkdir_p ()
 28641  {
 28642  
 28643    case $as_dir in #(
 28644    -*) as_dir=./$as_dir;;
 28645    esac
 28646    test -d "$as_dir" || eval $as_mkdir_p || {
 28647      as_dirs=
 28648      while :; do
 28649        case $as_dir in #(
 28650        *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 28651        *) as_qdir=$as_dir;;
 28652        esac
 28653        as_dirs="'$as_qdir' $as_dirs"
 28654        as_dir=`$as_dirname -- "$as_dir" ||
 28655  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 28656  	 X"$as_dir" : 'X\(//\)[^/]' \| \
 28657  	 X"$as_dir" : 'X\(//\)$' \| \
 28658  	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 28659  $as_echo X"$as_dir" |
 28660      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 28661  	    s//\1/
 28662  	    q
 28663  	  }
 28664  	  /^X\(\/\/\)[^/].*/{
 28665  	    s//\1/
 28666  	    q
 28667  	  }
 28668  	  /^X\(\/\/\)$/{
 28669  	    s//\1/
 28670  	    q
 28671  	  }
 28672  	  /^X\(\/\).*/{
 28673  	    s//\1/
 28674  	    q
 28675  	  }
 28676  	  s/.*/./; q'`
 28677        test -d "$as_dir" && break
 28678      done
 28679      test -z "$as_dirs" || eval "mkdir $as_dirs"
 28680    } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 28681  
 28682  
 28683  } # as_fn_mkdir_p
 28684  if mkdir -p . 2>/dev/null; then
 28685    as_mkdir_p='mkdir -p "$as_dir"'
 28686  else
 28687    test -d ./-p && rmdir ./-p
 28688    as_mkdir_p=false
 28689  fi
 28690  
 28691  
 28692  # as_fn_executable_p FILE
 28693  # -----------------------
 28694  # Test if FILE is an executable regular file.
 28695  as_fn_executable_p ()
 28696  {
 28697    test -f "$1" && test -x "$1"
 28698  } # as_fn_executable_p
 28699  as_test_x='test -x'
 28700  as_executable_p=as_fn_executable_p
 28701  
 28702  # Sed expression to map a string onto a valid CPP name.
 28703  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 28704  
 28705  # Sed expression to map a string onto a valid variable name.
 28706  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 28707  
 28708  
 28709  exec 6>&1
 28710  ## ----------------------------------- ##
 28711  ## Main body of $CONFIG_STATUS script. ##
 28712  ## ----------------------------------- ##
 28713  _ASEOF
 28714  test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 28715  
 28716  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 28717  # Save the log message, to keep $0 and so on meaningful, and to
 28718  # report actual input values of CONFIG_FILES etc. instead of their
 28719  # values after options handling.
 28720  ac_log="
 28721  This file was extended by GNU MP $as_me 6.1.2, which was
 28722  generated by GNU Autoconf 2.69.  Invocation command line was
 28723  
 28724    CONFIG_FILES    = $CONFIG_FILES
 28725    CONFIG_HEADERS  = $CONFIG_HEADERS
 28726    CONFIG_LINKS    = $CONFIG_LINKS
 28727    CONFIG_COMMANDS = $CONFIG_COMMANDS
 28728    $ $0 $@
 28729  
 28730  on `(hostname || uname -n) 2>/dev/null | sed 1q`
 28731  "
 28732  
 28733  _ACEOF
 28734  
 28735  case $ac_config_files in *"
 28736  "*) set x $ac_config_files; shift; ac_config_files=$*;;
 28737  esac
 28738  
 28739  case $ac_config_headers in *"
 28740  "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 28741  esac
 28742  
 28743  
 28744  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 28745  # Files that config.status was made for.
 28746  config_files="$ac_config_files"
 28747  config_headers="$ac_config_headers"
 28748  config_links="$ac_config_links"
 28749  config_commands="$ac_config_commands"
 28750  
 28751  _ACEOF
 28752  
 28753  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 28754  ac_cs_usage="\
 28755  \`$as_me' instantiates files and other configuration actions
 28756  from templates according to the current configuration.  Unless the files
 28757  and actions are specified as TAGs, all are instantiated by default.
 28758  
 28759  Usage: $0 [OPTION]... [TAG]...
 28760  
 28761    -h, --help       print this help, then exit
 28762    -V, --version    print version number and configuration settings, then exit
 28763        --config     print configuration, then exit
 28764    -q, --quiet, --silent
 28765                     do not print progress messages
 28766    -d, --debug      don't remove temporary files
 28767        --recheck    update $as_me by reconfiguring in the same conditions
 28768        --file=FILE[:TEMPLATE]
 28769                     instantiate the configuration file FILE
 28770        --header=FILE[:TEMPLATE]
 28771                     instantiate the configuration header FILE
 28772  
 28773  Configuration files:
 28774  $config_files
 28775  
 28776  Configuration headers:
 28777  $config_headers
 28778  
 28779  Configuration links:
 28780  $config_links
 28781  
 28782  Configuration commands:
 28783  $config_commands
 28784  
 28785  Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>.
 28786  GNU MP home page: <http://www.gnu.org/software/gmp/>.
 28787  General help using GNU software: <http://www.gnu.org/gethelp/>."
 28788  
 28789  _ACEOF
 28790  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 28791  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 28792  ac_cs_version="\\
 28793  GNU MP config.status 6.1.2
 28794  configured by $0, generated by GNU Autoconf 2.69,
 28795    with options \\"\$ac_cs_config\\"
 28796  
 28797  Copyright (C) 2012 Free Software Foundation, Inc.
 28798  This config.status script is free software; the Free Software Foundation
 28799  gives unlimited permission to copy, distribute and modify it."
 28800  
 28801  ac_pwd='$ac_pwd'
 28802  srcdir='$srcdir'
 28803  INSTALL='$INSTALL'
 28804  MKDIR_P='$MKDIR_P'
 28805  AWK='$AWK'
 28806  test -n "\$AWK" || AWK=awk
 28807  _ACEOF
 28808  
 28809  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 28810  # The default lists apply if the user does not specify any file.
 28811  ac_need_defaults=:
 28812  while test $# != 0
 28813  do
 28814    case $1 in
 28815    --*=?*)
 28816      ac_option=`expr "X$1" : 'X\([^=]*\)='`
 28817      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 28818      ac_shift=:
 28819      ;;
 28820    --*=)
 28821      ac_option=`expr "X$1" : 'X\([^=]*\)='`
 28822      ac_optarg=
 28823      ac_shift=:
 28824      ;;
 28825    *)
 28826      ac_option=$1
 28827      ac_optarg=$2
 28828      ac_shift=shift
 28829      ;;
 28830    esac
 28831  
 28832    case $ac_option in
 28833    # Handling of the options.
 28834    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 28835      ac_cs_recheck=: ;;
 28836    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 28837      $as_echo "$ac_cs_version"; exit ;;
 28838    --config | --confi | --conf | --con | --co | --c )
 28839      $as_echo "$ac_cs_config"; exit ;;
 28840    --debug | --debu | --deb | --de | --d | -d )
 28841      debug=: ;;
 28842    --file | --fil | --fi | --f )
 28843      $ac_shift
 28844      case $ac_optarg in
 28845      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 28846      '') as_fn_error $? "missing file argument" ;;
 28847      esac
 28848      as_fn_append CONFIG_FILES " '$ac_optarg'"
 28849      ac_need_defaults=false;;
 28850    --header | --heade | --head | --hea )
 28851      $ac_shift
 28852      case $ac_optarg in
 28853      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 28854      esac
 28855      as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 28856      ac_need_defaults=false;;
 28857    --he | --h)
 28858      # Conflict between --help and --header
 28859      as_fn_error $? "ambiguous option: \`$1'
 28860  Try \`$0 --help' for more information.";;
 28861    --help | --hel | -h )
 28862      $as_echo "$ac_cs_usage"; exit ;;
 28863    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 28864    | -silent | --silent | --silen | --sile | --sil | --si | --s)
 28865      ac_cs_silent=: ;;
 28866  
 28867    # This is an error.
 28868    -*) as_fn_error $? "unrecognized option: \`$1'
 28869  Try \`$0 --help' for more information." ;;
 28870  
 28871    *) as_fn_append ac_config_targets " $1"
 28872       ac_need_defaults=false ;;
 28873  
 28874    esac
 28875    shift
 28876  done
 28877  
 28878  ac_configure_extra_args=
 28879  
 28880  if $ac_cs_silent; then
 28881    exec 6>/dev/null
 28882    ac_configure_extra_args="$ac_configure_extra_args --silent"
 28883  fi
 28884  
 28885  _ACEOF
 28886  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 28887  if \$ac_cs_recheck; then
 28888    set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 28889    shift
 28890    \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 28891    CONFIG_SHELL='$SHELL'
 28892    export CONFIG_SHELL
 28893    exec "\$@"
 28894  fi
 28895  
 28896  _ACEOF
 28897  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 28898  exec 5>>config.log
 28899  {
 28900    echo
 28901    sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 28902  ## Running $as_me. ##
 28903  _ASBOX
 28904    $as_echo "$ac_log"
 28905  } >&5
 28906  
 28907  _ACEOF
 28908  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 28909  #
 28910  # INIT-COMMANDS
 28911  #
 28912  
 28913  
 28914  # The HP-UX ksh and POSIX shell print the target directory to stdout
 28915  # if CDPATH is set.
 28916  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 28917  
 28918  sed_quote_subst='$sed_quote_subst'
 28919  double_quote_subst='$double_quote_subst'
 28920  delay_variable_subst='$delay_variable_subst'
 28921  NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 28922  AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
 28923  DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 28924  OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 28925  macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 28926  macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 28927  enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 28928  enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 28929  pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 28930  enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 28931  shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
 28932  SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 28933  ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 28934  PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 28935  host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 28936  host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 28937  host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 28938  build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 28939  build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 28940  build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 28941  SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 28942  Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 28943  GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 28944  EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 28945  FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 28946  LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 28947  LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 28948  max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 28949  ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 28950  exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 28951  lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 28952  lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 28953  lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 28954  lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 28955  lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 28956  reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 28957  reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 28958  deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 28959  file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 28960  file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 28961  want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 28962  sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 28963  AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 28964  AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 28965  archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 28966  STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 28967  RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 28968  old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 28969  old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 28970  old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 28971  lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 28972  CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 28973  CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 28974  compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 28975  GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 28976  lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 28977  lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 28978  lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
 28979  lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 28980  lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 28981  lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
 28982  nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 28983  lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 28984  lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
 28985  objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 28986  MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 28987  lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 28988  lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 28989  lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 28990  lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 28991  lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 28992  need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 28993  MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 28994  DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 28995  NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 28996  LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 28997  OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 28998  OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 28999  libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 29000  shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 29001  extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 29002  archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 29003  enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 29004  export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 29005  whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 29006  compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 29007  old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 29008  old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 29009  archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 29010  archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 29011  module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 29012  module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 29013  with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 29014  allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 29015  no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 29016  hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 29017  hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 29018  hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 29019  hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 29020  hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 29021  hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 29022  hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 29023  inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 29024  link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 29025  always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 29026  export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 29027  exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 29028  include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 29029  prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 29030  postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 29031  file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 29032  variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 29033  need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 29034  need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 29035  version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 29036  runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 29037  shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 29038  shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 29039  libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 29040  library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 29041  soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 29042  install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 29043  postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 29044  postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 29045  finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 29046  finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 29047  hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 29048  sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 29049  configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
 29050  configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
 29051  hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 29052  enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 29053  enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 29054  enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 29055  old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 29056  striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 29057  compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 29058  predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 29059  postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 29060  predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 29061  postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 29062  compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 29063  LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 29064  reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 29065  reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29066  old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29067  compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 29068  GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 29069  lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 29070  lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 29071  lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 29072  lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 29073  lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 29074  archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 29075  enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 29076  export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 29077  whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 29078  compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 29079  old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29080  old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29081  archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29082  archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29083  module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29084  module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29085  with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 29086  allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 29087  no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 29088  hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 29089  hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 29090  hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 29091  hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 29092  hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 29093  hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 29094  hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 29095  inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 29096  link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 29097  always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 29098  export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29099  exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 29100  include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 29101  prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29102  postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 29103  file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 29104  hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 29105  compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 29106  predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 29107  postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 29108  predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 29109  postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 29110  compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 29111  
 29112  LTCC='$LTCC'
 29113  LTCFLAGS='$LTCFLAGS'
 29114  compiler='$compiler_DEFAULT'
 29115  
 29116  # A function that is used when there is no print builtin or printf.
 29117  func_fallback_echo ()
 29118  {
 29119    eval 'cat <<_LTECHO_EOF
 29120  \$1
 29121  _LTECHO_EOF'
 29122  }
 29123  
 29124  # Quote evaled strings.
 29125  for var in NM \
 29126  AS \
 29127  DLLTOOL \
 29128  OBJDUMP \
 29129  SHELL \
 29130  ECHO \
 29131  PATH_SEPARATOR \
 29132  SED \
 29133  GREP \
 29134  EGREP \
 29135  FGREP \
 29136  LD \
 29137  LN_S \
 29138  lt_SP2NL \
 29139  lt_NL2SP \
 29140  reload_flag \
 29141  deplibs_check_method \
 29142  file_magic_cmd \
 29143  file_magic_glob \
 29144  want_nocaseglob \
 29145  sharedlib_from_linklib_cmd \
 29146  AR \
 29147  AR_FLAGS \
 29148  archiver_list_spec \
 29149  STRIP \
 29150  RANLIB \
 29151  CC \
 29152  CFLAGS \
 29153  compiler \
 29154  lt_cv_sys_global_symbol_pipe \
 29155  lt_cv_sys_global_symbol_to_cdecl \
 29156  lt_cv_sys_global_symbol_to_import \
 29157  lt_cv_sys_global_symbol_to_c_name_address \
 29158  lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 29159  lt_cv_nm_interface \
 29160  nm_file_list_spec \
 29161  lt_cv_truncate_bin \
 29162  lt_prog_compiler_no_builtin_flag \
 29163  lt_prog_compiler_pic \
 29164  lt_prog_compiler_wl \
 29165  lt_prog_compiler_static \
 29166  lt_cv_prog_compiler_c_o \
 29167  need_locks \
 29168  MANIFEST_TOOL \
 29169  DSYMUTIL \
 29170  NMEDIT \
 29171  LIPO \
 29172  OTOOL \
 29173  OTOOL64 \
 29174  shrext_cmds \
 29175  export_dynamic_flag_spec \
 29176  whole_archive_flag_spec \
 29177  compiler_needs_object \
 29178  with_gnu_ld \
 29179  allow_undefined_flag \
 29180  no_undefined_flag \
 29181  hardcode_libdir_flag_spec \
 29182  hardcode_libdir_separator \
 29183  exclude_expsyms \
 29184  include_expsyms \
 29185  file_list_spec \
 29186  variables_saved_for_relink \
 29187  libname_spec \
 29188  library_names_spec \
 29189  soname_spec \
 29190  install_override_mode \
 29191  finish_eval \
 29192  old_striplib \
 29193  striplib \
 29194  compiler_lib_search_dirs \
 29195  predep_objects \
 29196  postdep_objects \
 29197  predeps \
 29198  postdeps \
 29199  compiler_lib_search_path \
 29200  LD_CXX \
 29201  reload_flag_CXX \
 29202  compiler_CXX \
 29203  lt_prog_compiler_no_builtin_flag_CXX \
 29204  lt_prog_compiler_pic_CXX \
 29205  lt_prog_compiler_wl_CXX \
 29206  lt_prog_compiler_static_CXX \
 29207  lt_cv_prog_compiler_c_o_CXX \
 29208  export_dynamic_flag_spec_CXX \
 29209  whole_archive_flag_spec_CXX \
 29210  compiler_needs_object_CXX \
 29211  with_gnu_ld_CXX \
 29212  allow_undefined_flag_CXX \
 29213  no_undefined_flag_CXX \
 29214  hardcode_libdir_flag_spec_CXX \
 29215  hardcode_libdir_separator_CXX \
 29216  exclude_expsyms_CXX \
 29217  include_expsyms_CXX \
 29218  file_list_spec_CXX \
 29219  compiler_lib_search_dirs_CXX \
 29220  predep_objects_CXX \
 29221  postdep_objects_CXX \
 29222  predeps_CXX \
 29223  postdeps_CXX \
 29224  compiler_lib_search_path_CXX; do
 29225      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 29226      *[\\\\\\\`\\"\\\$]*)
 29227        eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 29228        ;;
 29229      *)
 29230        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 29231        ;;
 29232      esac
 29233  done
 29234  
 29235  # Double-quote double-evaled strings.
 29236  for var in reload_cmds \
 29237  old_postinstall_cmds \
 29238  old_postuninstall_cmds \
 29239  old_archive_cmds \
 29240  extract_expsyms_cmds \
 29241  old_archive_from_new_cmds \
 29242  old_archive_from_expsyms_cmds \
 29243  archive_cmds \
 29244  archive_expsym_cmds \
 29245  module_cmds \
 29246  module_expsym_cmds \
 29247  export_symbols_cmds \
 29248  prelink_cmds \
 29249  postlink_cmds \
 29250  postinstall_cmds \
 29251  postuninstall_cmds \
 29252  finish_cmds \
 29253  sys_lib_search_path_spec \
 29254  configure_time_dlsearch_path \
 29255  configure_time_lt_sys_library_path \
 29256  reload_cmds_CXX \
 29257  old_archive_cmds_CXX \
 29258  old_archive_from_new_cmds_CXX \
 29259  old_archive_from_expsyms_cmds_CXX \
 29260  archive_cmds_CXX \
 29261  archive_expsym_cmds_CXX \
 29262  module_cmds_CXX \
 29263  module_expsym_cmds_CXX \
 29264  export_symbols_cmds_CXX \
 29265  prelink_cmds_CXX \
 29266  postlink_cmds_CXX; do
 29267      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 29268      *[\\\\\\\`\\"\\\$]*)
 29269        eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
 29270        ;;
 29271      *)
 29272        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 29273        ;;
 29274      esac
 29275  done
 29276  
 29277  ac_aux_dir='$ac_aux_dir'
 29278  
 29279  # See if we are running on zsh, and set the options that allow our
 29280  # commands through without removal of \ escapes INIT.
 29281  if test -n "\${ZSH_VERSION+set}"; then
 29282     setopt NO_GLOB_SUBST
 29283  fi
 29284  
 29285  
 29286      PACKAGE='$PACKAGE'
 29287      VERSION='$VERSION'
 29288      RM='$RM'
 29289      ofile='$ofile'
 29290  
 29291  
 29292  
 29293  
 29294  
 29295  
 29296  _ACEOF
 29297  
 29298  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 29299  
 29300  # Handling of arguments.
 29301  for ac_config_target in $ac_config_targets
 29302  do
 29303    case $ac_config_target in
 29304      "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
 29305      "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 29306      "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
 29307      "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
 29308      "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
 29309      "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
 29310      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 29311      "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
 29312      "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
 29313      "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
 29314      "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
 29315      "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
 29316      "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
 29317      "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;;
 29318      "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
 29319      "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 29320      "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
 29321      "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
 29322      "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
 29323      "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
 29324      "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
 29325      "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
 29326      "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
 29327      "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
 29328      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 29329      "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
 29330      "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
 29331      "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
 29332      "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
 29333      "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
 29334  
 29335    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 29336    esac
 29337  done
 29338  
 29339  
 29340  # If the user did not use the arguments to specify the items to instantiate,
 29341  # then the envvar interface is used.  Set only those that are not.
 29342  # We use the long form for the default assignment because of an extremely
 29343  # bizarre bug on SunOS 4.1.3.
 29344  if $ac_need_defaults; then
 29345    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 29346    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 29347    test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 29348    test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 29349  fi
 29350  
 29351  # Have a temporary directory for convenience.  Make it in the build tree
 29352  # simply because there is no reason against having it here, and in addition,
 29353  # creating and moving files from /tmp can sometimes cause problems.
 29354  # Hook for its removal unless debugging.
 29355  # Note that there is a small window in which the directory will not be cleaned:
 29356  # after its creation but before its name has been assigned to `$tmp'.
 29357  $debug ||
 29358  {
 29359    tmp= ac_tmp=
 29360    trap 'exit_status=$?
 29361    : "${ac_tmp:=$tmp}"
 29362    { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 29363  ' 0
 29364    trap 'as_fn_exit 1' 1 2 13 15
 29365  }
 29366  # Create a (secure) tmp directory for tmp files.
 29367  
 29368  {
 29369    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 29370    test -d "$tmp"
 29371  }  ||
 29372  {
 29373    tmp=./conf$$-$RANDOM
 29374    (umask 077 && mkdir "$tmp")
 29375  } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 29376  ac_tmp=$tmp
 29377  
 29378  # Set up the scripts for CONFIG_FILES section.
 29379  # No need to generate them if there are no CONFIG_FILES.
 29380  # This happens for instance with `./config.status config.h'.
 29381  if test -n "$CONFIG_FILES"; then
 29382  
 29383  
 29384  ac_cr=`echo X | tr X '\015'`
 29385  # On cygwin, bash can eat \r inside `` if the user requested igncr.
 29386  # But we know of no other shell where ac_cr would be empty at this
 29387  # point, so we can use a bashism as a fallback.
 29388  if test "x$ac_cr" = x; then
 29389    eval ac_cr=\$\'\\r\'
 29390  fi
 29391  ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 29392  if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 29393    ac_cs_awk_cr='\\r'
 29394  else
 29395    ac_cs_awk_cr=$ac_cr
 29396  fi
 29397  
 29398  echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 29399  _ACEOF
 29400  
 29401  
 29402  {
 29403    echo "cat >conf$$subs.awk <<_ACEOF" &&
 29404    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 29405    echo "_ACEOF"
 29406  } >conf$$subs.sh ||
 29407    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 29408  ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 29409  ac_delim='%!_!# '
 29410  for ac_last_try in false false false false false :; do
 29411    . ./conf$$subs.sh ||
 29412      as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 29413  
 29414    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 29415    if test $ac_delim_n = $ac_delim_num; then
 29416      break
 29417    elif $ac_last_try; then
 29418      as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 29419    else
 29420      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 29421    fi
 29422  done
 29423  rm -f conf$$subs.sh
 29424  
 29425  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 29426  cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 29427  _ACEOF
 29428  sed -n '
 29429  h
 29430  s/^/S["/; s/!.*/"]=/
 29431  p
 29432  g
 29433  s/^[^!]*!//
 29434  :repl
 29435  t repl
 29436  s/'"$ac_delim"'$//
 29437  t delim
 29438  :nl
 29439  h
 29440  s/\(.\{148\}\)..*/\1/
 29441  t more1
 29442  s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 29443  p
 29444  n
 29445  b repl
 29446  :more1
 29447  s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 29448  p
 29449  g
 29450  s/.\{148\}//
 29451  t nl
 29452  :delim
 29453  h
 29454  s/\(.\{148\}\)..*/\1/
 29455  t more2
 29456  s/["\\]/\\&/g; s/^/"/; s/$/"/
 29457  p
 29458  b
 29459  :more2
 29460  s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 29461  p
 29462  g
 29463  s/.\{148\}//
 29464  t delim
 29465  ' <conf$$subs.awk | sed '
 29466  /^[^""]/{
 29467    N
 29468    s/\n//
 29469  }
 29470  ' >>$CONFIG_STATUS || ac_write_fail=1
 29471  rm -f conf$$subs.awk
 29472  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 29473  _ACAWK
 29474  cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 29475    for (key in S) S_is_set[key] = 1
 29476    FS = ""
 29477  
 29478  }
 29479  {
 29480    line = $ 0
 29481    nfields = split(line, field, "@")
 29482    substed = 0
 29483    len = length(field[1])
 29484    for (i = 2; i < nfields; i++) {
 29485      key = field[i]
 29486      keylen = length(key)
 29487      if (S_is_set[key]) {
 29488        value = S[key]
 29489        line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 29490        len += length(value) + length(field[++i])
 29491        substed = 1
 29492      } else
 29493        len += 1 + keylen
 29494    }
 29495  
 29496    print line
 29497  }
 29498  
 29499  _ACAWK
 29500  _ACEOF
 29501  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 29502  if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 29503    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 29504  else
 29505    cat
 29506  fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 29507    || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 29508  _ACEOF
 29509  
 29510  # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 29511  # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 29512  # trailing colons and then remove the whole line if VPATH becomes empty
 29513  # (actually we leave an empty line to preserve line numbers).
 29514  if test "x$srcdir" = x.; then
 29515    ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
 29516  h
 29517  s///
 29518  s/^/:/
 29519  s/[	 ]*$/:/
 29520  s/:\$(srcdir):/:/g
 29521  s/:\${srcdir}:/:/g
 29522  s/:@srcdir@:/:/g
 29523  s/^:*//
 29524  s/:*$//
 29525  x
 29526  s/\(=[	 ]*\).*/\1/
 29527  G
 29528  s/\n//
 29529  s/^[^=]*=[	 ]*$//
 29530  }'
 29531  fi
 29532  
 29533  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 29534  fi # test -n "$CONFIG_FILES"
 29535  
 29536  # Set up the scripts for CONFIG_HEADERS section.
 29537  # No need to generate them if there are no CONFIG_HEADERS.
 29538  # This happens for instance with `./config.status Makefile'.
 29539  if test -n "$CONFIG_HEADERS"; then
 29540  cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 29541  BEGIN {
 29542  _ACEOF
 29543  
 29544  # Transform confdefs.h into an awk script `defines.awk', embedded as
 29545  # here-document in config.status, that substitutes the proper values into
 29546  # config.h.in to produce config.h.
 29547  
 29548  # Create a delimiter string that does not exist in confdefs.h, to ease
 29549  # handling of long lines.
 29550  ac_delim='%!_!# '
 29551  for ac_last_try in false false :; do
 29552    ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 29553    if test -z "$ac_tt"; then
 29554      break
 29555    elif $ac_last_try; then
 29556      as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 29557    else
 29558      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 29559    fi
 29560  done
 29561  
 29562  # For the awk script, D is an array of macro values keyed by name,
 29563  # likewise P contains macro parameters if any.  Preserve backslash
 29564  # newline sequences.
 29565  
 29566  ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 29567  sed -n '
 29568  s/.\{148\}/&'"$ac_delim"'/g
 29569  t rset
 29570  :rset
 29571  s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 29572  t def
 29573  d
 29574  :def
 29575  s/\\$//
 29576  t bsnl
 29577  s/["\\]/\\&/g
 29578  s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 29579  D["\1"]=" \3"/p
 29580  s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 29581  d
 29582  :bsnl
 29583  s/["\\]/\\&/g
 29584  s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 29585  D["\1"]=" \3\\\\\\n"\\/p
 29586  t cont
 29587  s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 29588  t cont
 29589  d
 29590  :cont
 29591  n
 29592  s/.\{148\}/&'"$ac_delim"'/g
 29593  t clear
 29594  :clear
 29595  s/\\$//
 29596  t bsnlc
 29597  s/["\\]/\\&/g; s/^/"/; s/$/"/p
 29598  d
 29599  :bsnlc
 29600  s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 29601  b cont
 29602  ' <confdefs.h | sed '
 29603  s/'"$ac_delim"'/"\\\
 29604  "/g' >>$CONFIG_STATUS || ac_write_fail=1
 29605  
 29606  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 29607    for (key in D) D_is_set[key] = 1
 29608    FS = ""
 29609  }
 29610  /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 29611    line = \$ 0
 29612    split(line, arg, " ")
 29613    if (arg[1] == "#") {
 29614      defundef = arg[2]
 29615      mac1 = arg[3]
 29616    } else {
 29617      defundef = substr(arg[1], 2)
 29618      mac1 = arg[2]
 29619    }
 29620    split(mac1, mac2, "(") #)
 29621    macro = mac2[1]
 29622    prefix = substr(line, 1, index(line, defundef) - 1)
 29623    if (D_is_set[macro]) {
 29624      # Preserve the white space surrounding the "#".
 29625      print prefix "define", macro P[macro] D[macro]
 29626      next
 29627    } else {
 29628      # Replace #undef with comments.  This is necessary, for example,
 29629      # in the case of _POSIX_SOURCE, which is predefined and required
 29630      # on some systems where configure will not decide to define it.
 29631      if (defundef == "undef") {
 29632        print "/*", prefix defundef, macro, "*/"
 29633        next
 29634      }
 29635    }
 29636  }
 29637  { print }
 29638  _ACAWK
 29639  _ACEOF
 29640  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 29641    as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 29642  fi # test -n "$CONFIG_HEADERS"
 29643  
 29644  
 29645  eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
 29646  shift
 29647  for ac_tag
 29648  do
 29649    case $ac_tag in
 29650    :[FHLC]) ac_mode=$ac_tag; continue;;
 29651    esac
 29652    case $ac_mode$ac_tag in
 29653    :[FHL]*:*);;
 29654    :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 29655    :[FH]-) ac_tag=-:-;;
 29656    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 29657    esac
 29658    ac_save_IFS=$IFS
 29659    IFS=:
 29660    set x $ac_tag
 29661    IFS=$ac_save_IFS
 29662    shift
 29663    ac_file=$1
 29664    shift
 29665  
 29666    case $ac_mode in
 29667    :L) ac_source=$1;;
 29668    :[FH])
 29669      ac_file_inputs=
 29670      for ac_f
 29671      do
 29672        case $ac_f in
 29673        -) ac_f="$ac_tmp/stdin";;
 29674        *) # Look for the file first in the build tree, then in the source tree
 29675  	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 29676  	 # because $ac_f cannot contain `:'.
 29677  	 test -f "$ac_f" ||
 29678  	   case $ac_f in
 29679  	   [\\/$]*) false;;
 29680  	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 29681  	   esac ||
 29682  	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 29683        esac
 29684        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 29685        as_fn_append ac_file_inputs " '$ac_f'"
 29686      done
 29687  
 29688      # Let's still pretend it is `configure' which instantiates (i.e., don't
 29689      # use $as_me), people would be surprised to read:
 29690      #    /* config.h.  Generated by config.status.  */
 29691      configure_input='Generated from '`
 29692  	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 29693  	`' by configure.'
 29694      if test x"$ac_file" != x-; then
 29695        configure_input="$ac_file.  $configure_input"
 29696        { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 29697  $as_echo "$as_me: creating $ac_file" >&6;}
 29698      fi
 29699      # Neutralize special characters interpreted by sed in replacement strings.
 29700      case $configure_input in #(
 29701      *\&* | *\|* | *\\* )
 29702         ac_sed_conf_input=`$as_echo "$configure_input" |
 29703         sed 's/[\\\\&|]/\\\\&/g'`;; #(
 29704      *) ac_sed_conf_input=$configure_input;;
 29705      esac
 29706  
 29707      case $ac_tag in
 29708      *:-:* | *:-) cat >"$ac_tmp/stdin" \
 29709        || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 29710      esac
 29711      ;;
 29712    esac
 29713  
 29714    ac_dir=`$as_dirname -- "$ac_file" ||
 29715  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 29716  	 X"$ac_file" : 'X\(//\)[^/]' \| \
 29717  	 X"$ac_file" : 'X\(//\)$' \| \
 29718  	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 29719  $as_echo X"$ac_file" |
 29720      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 29721  	    s//\1/
 29722  	    q
 29723  	  }
 29724  	  /^X\(\/\/\)[^/].*/{
 29725  	    s//\1/
 29726  	    q
 29727  	  }
 29728  	  /^X\(\/\/\)$/{
 29729  	    s//\1/
 29730  	    q
 29731  	  }
 29732  	  /^X\(\/\).*/{
 29733  	    s//\1/
 29734  	    q
 29735  	  }
 29736  	  s/.*/./; q'`
 29737    as_dir="$ac_dir"; as_fn_mkdir_p
 29738    ac_builddir=.
 29739  
 29740  case "$ac_dir" in
 29741  .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 29742  *)
 29743    ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 29744    # A ".." for each directory in $ac_dir_suffix.
 29745    ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 29746    case $ac_top_builddir_sub in
 29747    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 29748    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 29749    esac ;;
 29750  esac
 29751  ac_abs_top_builddir=$ac_pwd
 29752  ac_abs_builddir=$ac_pwd$ac_dir_suffix
 29753  # for backward compatibility:
 29754  ac_top_builddir=$ac_top_build_prefix
 29755  
 29756  case $srcdir in
 29757    .)  # We are building in place.
 29758      ac_srcdir=.
 29759      ac_top_srcdir=$ac_top_builddir_sub
 29760      ac_abs_top_srcdir=$ac_pwd ;;
 29761    [\\/]* | ?:[\\/]* )  # Absolute name.
 29762      ac_srcdir=$srcdir$ac_dir_suffix;
 29763      ac_top_srcdir=$srcdir
 29764      ac_abs_top_srcdir=$srcdir ;;
 29765    *) # Relative name.
 29766      ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 29767      ac_top_srcdir=$ac_top_build_prefix$srcdir
 29768      ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 29769  esac
 29770  ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 29771  
 29772  
 29773    case $ac_mode in
 29774    :F)
 29775    #
 29776    # CONFIG_FILE
 29777    #
 29778  
 29779    case $INSTALL in
 29780    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 29781    *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 29782    esac
 29783    ac_MKDIR_P=$MKDIR_P
 29784    case $MKDIR_P in
 29785    [\\/$]* | ?:[\\/]* ) ;;
 29786    */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 29787    esac
 29788  _ACEOF
 29789  
 29790  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 29791  # If the template does not know about datarootdir, expand it.
 29792  # FIXME: This hack should be removed a few years after 2.60.
 29793  ac_datarootdir_hack=; ac_datarootdir_seen=
 29794  ac_sed_dataroot='
 29795  /datarootdir/ {
 29796    p
 29797    q
 29798  }
 29799  /@datadir@/p
 29800  /@docdir@/p
 29801  /@infodir@/p
 29802  /@localedir@/p
 29803  /@mandir@/p'
 29804  case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 29805  *datarootdir*) ac_datarootdir_seen=yes;;
 29806  *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 29807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 29808  $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 29809  _ACEOF
 29810  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 29811    ac_datarootdir_hack='
 29812    s&@datadir@&$datadir&g
 29813    s&@docdir@&$docdir&g
 29814    s&@infodir@&$infodir&g
 29815    s&@localedir@&$localedir&g
 29816    s&@mandir@&$mandir&g
 29817    s&\\\${datarootdir}&$datarootdir&g' ;;
 29818  esac
 29819  _ACEOF
 29820  
 29821  # Neutralize VPATH when `$srcdir' = `.'.
 29822  # Shell code in configure.ac might set extrasub.
 29823  # FIXME: do we really want to maintain this feature?
 29824  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 29825  ac_sed_extra="$ac_vpsub
 29826  $extrasub
 29827  _ACEOF
 29828  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 29829  :t
 29830  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 29831  s|@configure_input@|$ac_sed_conf_input|;t t
 29832  s&@top_builddir@&$ac_top_builddir_sub&;t t
 29833  s&@top_build_prefix@&$ac_top_build_prefix&;t t
 29834  s&@srcdir@&$ac_srcdir&;t t
 29835  s&@abs_srcdir@&$ac_abs_srcdir&;t t
 29836  s&@top_srcdir@&$ac_top_srcdir&;t t
 29837  s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 29838  s&@builddir@&$ac_builddir&;t t
 29839  s&@abs_builddir@&$ac_abs_builddir&;t t
 29840  s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 29841  s&@INSTALL@&$ac_INSTALL&;t t
 29842  s&@MKDIR_P@&$ac_MKDIR_P&;t t
 29843  $ac_datarootdir_hack
 29844  "
 29845  eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 29846    >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 29847  
 29848  test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 29849    { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 29850    { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
 29851        "$ac_tmp/out"`; test -z "$ac_out"; } &&
 29852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 29853  which seems to be undefined.  Please make sure it is defined" >&5
 29854  $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 29855  which seems to be undefined.  Please make sure it is defined" >&2;}
 29856  
 29857    rm -f "$ac_tmp/stdin"
 29858    case $ac_file in
 29859    -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 29860    *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 29861    esac \
 29862    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 29863   ;;
 29864    :H)
 29865    #
 29866    # CONFIG_HEADER
 29867    #
 29868    if test x"$ac_file" != x-; then
 29869      {
 29870        $as_echo "/* $configure_input  */" \
 29871        && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 29872      } >"$ac_tmp/config.h" \
 29873        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 29874      if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 29875        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 29876  $as_echo "$as_me: $ac_file is unchanged" >&6;}
 29877      else
 29878        rm -f "$ac_file"
 29879        mv "$ac_tmp/config.h" "$ac_file" \
 29880  	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
 29881      fi
 29882    else
 29883      $as_echo "/* $configure_input  */" \
 29884        && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 29885        || as_fn_error $? "could not create -" "$LINENO" 5
 29886    fi
 29887  # Compute "$ac_file"'s index in $config_headers.
 29888  _am_arg="$ac_file"
 29889  _am_stamp_count=1
 29890  for _am_header in $config_headers :; do
 29891    case $_am_header in
 29892      $_am_arg | $_am_arg:* )
 29893        break ;;
 29894      * )
 29895        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 29896    esac
 29897  done
 29898  echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 29899  $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 29900  	 X"$_am_arg" : 'X\(//\)[^/]' \| \
 29901  	 X"$_am_arg" : 'X\(//\)$' \| \
 29902  	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 29903  $as_echo X"$_am_arg" |
 29904      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 29905  	    s//\1/
 29906  	    q
 29907  	  }
 29908  	  /^X\(\/\/\)[^/].*/{
 29909  	    s//\1/
 29910  	    q
 29911  	  }
 29912  	  /^X\(\/\/\)$/{
 29913  	    s//\1/
 29914  	    q
 29915  	  }
 29916  	  /^X\(\/\).*/{
 29917  	    s//\1/
 29918  	    q
 29919  	  }
 29920  	  s/.*/./; q'`/stamp-h$_am_stamp_count
 29921   ;;
 29922    :L)
 29923    #
 29924    # CONFIG_LINK
 29925    #
 29926  
 29927    if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
 29928      :
 29929    else
 29930      # Prefer the file from the source tree if names are identical.
 29931      if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
 29932        ac_source=$srcdir/$ac_source
 29933      fi
 29934  
 29935      { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
 29936  $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
 29937  
 29938      if test ! -r "$ac_source"; then
 29939        as_fn_error $? "$ac_source: file not found" "$LINENO" 5
 29940      fi
 29941      rm -f "$ac_file"
 29942  
 29943      # Try a relative symlink, then a hard link, then a copy.
 29944      case $ac_source in
 29945      [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
 29946  	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
 29947      esac
 29948      ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
 29949        ln "$ac_source" "$ac_file" 2>/dev/null ||
 29950        cp -p "$ac_source" "$ac_file" ||
 29951        as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
 29952    fi
 29953   ;;
 29954    :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 29955  $as_echo "$as_me: executing $ac_file commands" >&6;}
 29956   ;;
 29957    esac
 29958  
 29959  
 29960    case $ac_file$ac_mode in
 29961      "libtool":C)
 29962  
 29963      # See if we are running on zsh, and set the options that allow our
 29964      # commands through without removal of \ escapes.
 29965      if test -n "${ZSH_VERSION+set}"; then
 29966        setopt NO_GLOB_SUBST
 29967      fi
 29968  
 29969      cfgfile=${ofile}T
 29970      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 29971      $RM "$cfgfile"
 29972  
 29973      cat <<_LT_EOF >> "$cfgfile"
 29974  #! $SHELL
 29975  # Generated automatically by $as_me ($PACKAGE) $VERSION
 29976  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 29977  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 29978  
 29979  # Provide generalized library-building support services.
 29980  # Written by Gordon Matzigkeit, 1996
 29981  
 29982  # Copyright (C) 2014 Free Software Foundation, Inc.
 29983  # This is free software; see the source for copying conditions.  There is NO
 29984  # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 29985  
 29986  # GNU Libtool is free software; you can redistribute it and/or modify
 29987  # it under the terms of the GNU General Public License as published by
 29988  # the Free Software Foundation; either version 2 of of the License, or
 29989  # (at your option) any later version.
 29990  #
 29991  # As a special exception to the GNU General Public License, if you
 29992  # distribute this file as part of a program or library that is built
 29993  # using GNU Libtool, you may include this file under the  same
 29994  # distribution terms that you use for the rest of that program.
 29995  #
 29996  # GNU Libtool is distributed in the hope that it will be useful, but
 29997  # WITHOUT ANY WARRANTY; without even the implied warranty of
 29998  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 29999  # GNU General Public License for more details.
 30000  #
 30001  # You should have received a copy of the GNU General Public License
 30002  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 30003  
 30004  
 30005  # The names of the tagged configurations supported by this script.
 30006  available_tags='CXX '
 30007  
 30008  # Configured defaults for sys_lib_dlsearch_path munging.
 30009  : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
 30010  
 30011  # ### BEGIN LIBTOOL CONFIG
 30012  
 30013  # A BSD- or MS-compatible name lister.
 30014  NM=$lt_NM
 30015  
 30016  # Assembler program.
 30017  AS=$lt_AS
 30018  
 30019  # DLL creation program.
 30020  DLLTOOL=$lt_DLLTOOL
 30021  
 30022  # Object dumper program.
 30023  OBJDUMP=$lt_OBJDUMP
 30024  
 30025  # Which release of libtool.m4 was used?
 30026  macro_version=$macro_version
 30027  macro_revision=$macro_revision
 30028  
 30029  # Whether or not to build shared libraries.
 30030  build_libtool_libs=$enable_shared
 30031  
 30032  # Whether or not to build static libraries.
 30033  build_old_libs=$enable_static
 30034  
 30035  # What type of objects to build.
 30036  pic_mode=$pic_mode
 30037  
 30038  # Whether or not to optimize for fast installation.
 30039  fast_install=$enable_fast_install
 30040  
 30041  # Shared archive member basename,for filename based shared library versioning on AIX.
 30042  shared_archive_member_spec=$shared_archive_member_spec
 30043  
 30044  # Shell to use when invoking shell scripts.
 30045  SHELL=$lt_SHELL
 30046  
 30047  # An echo program that protects backslashes.
 30048  ECHO=$lt_ECHO
 30049  
 30050  # The PATH separator for the build system.
 30051  PATH_SEPARATOR=$lt_PATH_SEPARATOR
 30052  
 30053  # The host system.
 30054  host_alias=$host_alias
 30055  host=$host
 30056  host_os=$host_os
 30057  
 30058  # The build system.
 30059  build_alias=$build_alias
 30060  build=$build
 30061  build_os=$build_os
 30062  
 30063  # A sed program that does not truncate output.
 30064  SED=$lt_SED
 30065  
 30066  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 30067  Xsed="\$SED -e 1s/^X//"
 30068  
 30069  # A grep program that handles long lines.
 30070  GREP=$lt_GREP
 30071  
 30072  # An ERE matcher.
 30073  EGREP=$lt_EGREP
 30074  
 30075  # A literal string matcher.
 30076  FGREP=$lt_FGREP
 30077  
 30078  # Whether we need soft or hard links.
 30079  LN_S=$lt_LN_S
 30080  
 30081  # What is the maximum length of a command?
 30082  max_cmd_len=$max_cmd_len
 30083  
 30084  # Object file suffix (normally "o").
 30085  objext=$ac_objext
 30086  
 30087  # Executable file suffix (normally "").
 30088  exeext=$exeext
 30089  
 30090  # whether the shell understands "unset".
 30091  lt_unset=$lt_unset
 30092  
 30093  # turn spaces into newlines.
 30094  SP2NL=$lt_lt_SP2NL
 30095  
 30096  # turn newlines into spaces.
 30097  NL2SP=$lt_lt_NL2SP
 30098  
 30099  # convert \$build file names to \$host format.
 30100  to_host_file_cmd=$lt_cv_to_host_file_cmd
 30101  
 30102  # convert \$build files to toolchain format.
 30103  to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 30104  
 30105  # Method to check whether dependent libraries are shared objects.
 30106  deplibs_check_method=$lt_deplibs_check_method
 30107  
 30108  # Command to use when deplibs_check_method = "file_magic".
 30109  file_magic_cmd=$lt_file_magic_cmd
 30110  
 30111  # How to find potential files when deplibs_check_method = "file_magic".
 30112  file_magic_glob=$lt_file_magic_glob
 30113  
 30114  # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 30115  want_nocaseglob=$lt_want_nocaseglob
 30116  
 30117  # Command to associate shared and link libraries.
 30118  sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 30119  
 30120  # The archiver.
 30121  AR=$lt_AR
 30122  
 30123  # Flags to create an archive.
 30124  AR_FLAGS=$lt_AR_FLAGS
 30125  
 30126  # How to feed a file listing to the archiver.
 30127  archiver_list_spec=$lt_archiver_list_spec
 30128  
 30129  # A symbol stripping program.
 30130  STRIP=$lt_STRIP
 30131  
 30132  # Commands used to install an old-style archive.
 30133  RANLIB=$lt_RANLIB
 30134  old_postinstall_cmds=$lt_old_postinstall_cmds
 30135  old_postuninstall_cmds=$lt_old_postuninstall_cmds
 30136  
 30137  # Whether to use a lock for old archive extraction.
 30138  lock_old_archive_extraction=$lock_old_archive_extraction
 30139  
 30140  # A C compiler.
 30141  LTCC=$lt_CC
 30142  
 30143  # LTCC compiler flags.
 30144  LTCFLAGS=$lt_CFLAGS
 30145  
 30146  # Take the output of nm and produce a listing of raw symbols and C names.
 30147  global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 30148  
 30149  # Transform the output of nm in a proper C declaration.
 30150  global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 30151  
 30152  # Transform the output of nm into a list of symbols to manually relocate.
 30153  global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
 30154  
 30155  # Transform the output of nm in a C name address pair.
 30156  global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 30157  
 30158  # Transform the output of nm in a C name address pair when lib prefix is needed.
 30159  global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 30160  
 30161  # The name lister interface.
 30162  nm_interface=$lt_lt_cv_nm_interface
 30163  
 30164  # Specify filename containing input files for \$NM.
 30165  nm_file_list_spec=$lt_nm_file_list_spec
 30166  
 30167  # The root where to search for dependent libraries,and where our libraries should be installed.
 30168  lt_sysroot=$lt_sysroot
 30169  
 30170  # Command to truncate a binary pipe.
 30171  lt_truncate_bin=$lt_lt_cv_truncate_bin
 30172  
 30173  # The name of the directory that contains temporary libtool files.
 30174  objdir=$objdir
 30175  
 30176  # Used to examine libraries when file_magic_cmd begins with "file".
 30177  MAGIC_CMD=$MAGIC_CMD
 30178  
 30179  # Must we lock files when doing compilation?
 30180  need_locks=$lt_need_locks
 30181  
 30182  # Manifest tool.
 30183  MANIFEST_TOOL=$lt_MANIFEST_TOOL
 30184  
 30185  # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 30186  DSYMUTIL=$lt_DSYMUTIL
 30187  
 30188  # Tool to change global to local symbols on Mac OS X.
 30189  NMEDIT=$lt_NMEDIT
 30190  
 30191  # Tool to manipulate fat objects and archives on Mac OS X.
 30192  LIPO=$lt_LIPO
 30193  
 30194  # ldd/readelf like tool for Mach-O binaries on Mac OS X.
 30195  OTOOL=$lt_OTOOL
 30196  
 30197  # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 30198  OTOOL64=$lt_OTOOL64
 30199  
 30200  # Old archive suffix (normally "a").
 30201  libext=$libext
 30202  
 30203  # Shared library suffix (normally ".so").
 30204  shrext_cmds=$lt_shrext_cmds
 30205  
 30206  # The commands to extract the exported symbol list from a shared archive.
 30207  extract_expsyms_cmds=$lt_extract_expsyms_cmds
 30208  
 30209  # Variables whose values should be saved in libtool wrapper scripts and
 30210  # restored at link time.
 30211  variables_saved_for_relink=$lt_variables_saved_for_relink
 30212  
 30213  # Do we need the "lib" prefix for modules?
 30214  need_lib_prefix=$need_lib_prefix
 30215  
 30216  # Do we need a version for libraries?
 30217  need_version=$need_version
 30218  
 30219  # Library versioning type.
 30220  version_type=$version_type
 30221  
 30222  # Shared library runtime path variable.
 30223  runpath_var=$runpath_var
 30224  
 30225  # Shared library path variable.
 30226  shlibpath_var=$shlibpath_var
 30227  
 30228  # Is shlibpath searched before the hard-coded library search path?
 30229  shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 30230  
 30231  # Format of library name prefix.
 30232  libname_spec=$lt_libname_spec
 30233  
 30234  # List of archive names.  First name is the real one, the rest are links.
 30235  # The last name is the one that the linker finds with -lNAME
 30236  library_names_spec=$lt_library_names_spec
 30237  
 30238  # The coded name of the library, if different from the real name.
 30239  soname_spec=$lt_soname_spec
 30240  
 30241  # Permission mode override for installation of shared libraries.
 30242  install_override_mode=$lt_install_override_mode
 30243  
 30244  # Command to use after installation of a shared archive.
 30245  postinstall_cmds=$lt_postinstall_cmds
 30246  
 30247  # Command to use after uninstallation of a shared archive.
 30248  postuninstall_cmds=$lt_postuninstall_cmds
 30249  
 30250  # Commands used to finish a libtool library installation in a directory.
 30251  finish_cmds=$lt_finish_cmds
 30252  
 30253  # As "finish_cmds", except a single script fragment to be evaled but
 30254  # not shown.
 30255  finish_eval=$lt_finish_eval
 30256  
 30257  # Whether we should hardcode library paths into libraries.
 30258  hardcode_into_libs=$hardcode_into_libs
 30259  
 30260  # Compile-time system search path for libraries.
 30261  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 30262  
 30263  # Detected run-time system search path for libraries.
 30264  sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
 30265  
 30266  # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
 30267  configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
 30268  
 30269  # Whether dlopen is supported.
 30270  dlopen_support=$enable_dlopen
 30271  
 30272  # Whether dlopen of programs is supported.
 30273  dlopen_self=$enable_dlopen_self
 30274  
 30275  # Whether dlopen of statically linked programs is supported.
 30276  dlopen_self_static=$enable_dlopen_self_static
 30277  
 30278  # Commands to strip libraries.
 30279  old_striplib=$lt_old_striplib
 30280  striplib=$lt_striplib
 30281  
 30282  
 30283  # The linker used to build libraries.
 30284  LD=$lt_LD
 30285  
 30286  # How to create reloadable object files.
 30287  reload_flag=$lt_reload_flag
 30288  reload_cmds=$lt_reload_cmds
 30289  
 30290  # Commands used to build an old-style archive.
 30291  old_archive_cmds=$lt_old_archive_cmds
 30292  
 30293  # A language specific compiler.
 30294  CC=$lt_compiler
 30295  
 30296  # Is the compiler the GNU compiler?
 30297  with_gcc=$GCC
 30298  
 30299  # Compiler flag to turn off builtin functions.
 30300  no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 30301  
 30302  # Additional compiler flags for building library objects.
 30303  pic_flag=$lt_lt_prog_compiler_pic
 30304  
 30305  # How to pass a linker flag through the compiler.
 30306  wl=$lt_lt_prog_compiler_wl
 30307  
 30308  # Compiler flag to prevent dynamic linking.
 30309  link_static_flag=$lt_lt_prog_compiler_static
 30310  
 30311  # Does compiler simultaneously support -c and -o options?
 30312  compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 30313  
 30314  # Whether or not to add -lc for building shared libraries.
 30315  build_libtool_need_lc=$archive_cmds_need_lc
 30316  
 30317  # Whether or not to disallow shared libs when runtime libs are static.
 30318  allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 30319  
 30320  # Compiler flag to allow reflexive dlopens.
 30321  export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 30322  
 30323  # Compiler flag to generate shared objects directly from archives.
 30324  whole_archive_flag_spec=$lt_whole_archive_flag_spec
 30325  
 30326  # Whether the compiler copes with passing no objects directly.
 30327  compiler_needs_object=$lt_compiler_needs_object
 30328  
 30329  # Create an old-style archive from a shared archive.
 30330  old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 30331  
 30332  # Create a temporary old-style archive to link instead of a shared archive.
 30333  old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 30334  
 30335  # Commands used to build a shared archive.
 30336  archive_cmds=$lt_archive_cmds
 30337  archive_expsym_cmds=$lt_archive_expsym_cmds
 30338  
 30339  # Commands used to build a loadable module if different from building
 30340  # a shared archive.
 30341  module_cmds=$lt_module_cmds
 30342  module_expsym_cmds=$lt_module_expsym_cmds
 30343  
 30344  # Whether we are building with GNU ld or not.
 30345  with_gnu_ld=$lt_with_gnu_ld
 30346  
 30347  # Flag that allows shared libraries with undefined symbols to be built.
 30348  allow_undefined_flag=$lt_allow_undefined_flag
 30349  
 30350  # Flag that enforces no undefined symbols.
 30351  no_undefined_flag=$lt_no_undefined_flag
 30352  
 30353  # Flag to hardcode \$libdir into a binary during linking.
 30354  # This must work even if \$libdir does not exist
 30355  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 30356  
 30357  # Whether we need a single "-rpath" flag with a separated argument.
 30358  hardcode_libdir_separator=$lt_hardcode_libdir_separator
 30359  
 30360  # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 30361  # DIR into the resulting binary.
 30362  hardcode_direct=$hardcode_direct
 30363  
 30364  # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 30365  # DIR into the resulting binary and the resulting library dependency is
 30366  # "absolute",i.e impossible to change by setting \$shlibpath_var if the
 30367  # library is relocated.
 30368  hardcode_direct_absolute=$hardcode_direct_absolute
 30369  
 30370  # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 30371  # into the resulting binary.
 30372  hardcode_minus_L=$hardcode_minus_L
 30373  
 30374  # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 30375  # into the resulting binary.
 30376  hardcode_shlibpath_var=$hardcode_shlibpath_var
 30377  
 30378  # Set to "yes" if building a shared library automatically hardcodes DIR
 30379  # into the library and all subsequent libraries and executables linked
 30380  # against it.
 30381  hardcode_automatic=$hardcode_automatic
 30382  
 30383  # Set to yes if linker adds runtime paths of dependent libraries
 30384  # to runtime path list.
 30385  inherit_rpath=$inherit_rpath
 30386  
 30387  # Whether libtool must link a program against all its dependency libraries.
 30388  link_all_deplibs=$link_all_deplibs
 30389  
 30390  # Set to "yes" if exported symbols are required.
 30391  always_export_symbols=$always_export_symbols
 30392  
 30393  # The commands to list exported symbols.
 30394  export_symbols_cmds=$lt_export_symbols_cmds
 30395  
 30396  # Symbols that should not be listed in the preloaded symbols.
 30397  exclude_expsyms=$lt_exclude_expsyms
 30398  
 30399  # Symbols that must always be exported.
 30400  include_expsyms=$lt_include_expsyms
 30401  
 30402  # Commands necessary for linking programs (against libraries) with templates.
 30403  prelink_cmds=$lt_prelink_cmds
 30404  
 30405  # Commands necessary for finishing linking programs.
 30406  postlink_cmds=$lt_postlink_cmds
 30407  
 30408  # Specify filename containing input files.
 30409  file_list_spec=$lt_file_list_spec
 30410  
 30411  # How to hardcode a shared library path into an executable.
 30412  hardcode_action=$hardcode_action
 30413  
 30414  # The directories searched by this compiler when creating a shared library.
 30415  compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 30416  
 30417  # Dependencies to place before and after the objects being linked to
 30418  # create a shared library.
 30419  predep_objects=$lt_predep_objects
 30420  postdep_objects=$lt_postdep_objects
 30421  predeps=$lt_predeps
 30422  postdeps=$lt_postdeps
 30423  
 30424  # The library search path used internally by the compiler when linking
 30425  # a shared library.
 30426  compiler_lib_search_path=$lt_compiler_lib_search_path
 30427  
 30428  # ### END LIBTOOL CONFIG
 30429  
 30430  _LT_EOF
 30431  
 30432      cat <<'_LT_EOF' >> "$cfgfile"
 30433  
 30434  # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
 30435  
 30436  # func_munge_path_list VARIABLE PATH
 30437  # -----------------------------------
 30438  # VARIABLE is name of variable containing _space_ separated list of
 30439  # directories to be munged by the contents of PATH, which is string
 30440  # having a format:
 30441  # "DIR[:DIR]:"
 30442  #       string "DIR[ DIR]" will be prepended to VARIABLE
 30443  # ":DIR[:DIR]"
 30444  #       string "DIR[ DIR]" will be appended to VARIABLE
 30445  # "DIRP[:DIRP]::[DIRA:]DIRA"
 30446  #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 30447  #       "DIRA[ DIRA]" will be appended to VARIABLE
 30448  # "DIR[:DIR]"
 30449  #       VARIABLE will be replaced by "DIR[ DIR]"
 30450  func_munge_path_list ()
 30451  {
 30452      case x$2 in
 30453      x)
 30454          ;;
 30455      *:)
 30456          eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
 30457          ;;
 30458      x:*)
 30459          eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
 30460          ;;
 30461      *::*)
 30462          eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 30463          eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
 30464          ;;
 30465      *)
 30466          eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
 30467          ;;
 30468      esac
 30469  }
 30470  
 30471  
 30472  # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 30473  func_cc_basename ()
 30474  {
 30475      for cc_temp in $*""; do
 30476        case $cc_temp in
 30477          compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 30478          distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 30479          \-*) ;;
 30480          *) break;;
 30481        esac
 30482      done
 30483      func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 30484  }
 30485  
 30486  
 30487  # ### END FUNCTIONS SHARED WITH CONFIGURE
 30488  
 30489  _LT_EOF
 30490  
 30491    case $host_os in
 30492    aix3*)
 30493      cat <<\_LT_EOF >> "$cfgfile"
 30494  # AIX sometimes has problems with the GCC collect2 program.  For some
 30495  # reason, if we set the COLLECT_NAMES environment variable, the problems
 30496  # vanish in a puff of smoke.
 30497  if test set != "${COLLECT_NAMES+set}"; then
 30498    COLLECT_NAMES=
 30499    export COLLECT_NAMES
 30500  fi
 30501  _LT_EOF
 30502      ;;
 30503    esac
 30504  
 30505  
 30506  ltmain=$ac_aux_dir/ltmain.sh
 30507  
 30508  
 30509    # We use sed instead of cat because bash on DJGPP gets confused if
 30510    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 30511    # text mode, it properly converts lines to CR/LF.  This bash problem
 30512    # is reportedly fixed, but why not run on old versions too?
 30513    sed '$q' "$ltmain" >> "$cfgfile" \
 30514       || (rm -f "$cfgfile"; exit 1)
 30515  
 30516     mv -f "$cfgfile" "$ofile" ||
 30517      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 30518    chmod +x "$ofile"
 30519  
 30520  
 30521      cat <<_LT_EOF >> "$ofile"
 30522  
 30523  # ### BEGIN LIBTOOL TAG CONFIG: CXX
 30524  
 30525  # The linker used to build libraries.
 30526  LD=$lt_LD_CXX
 30527  
 30528  # How to create reloadable object files.
 30529  reload_flag=$lt_reload_flag_CXX
 30530  reload_cmds=$lt_reload_cmds_CXX
 30531  
 30532  # Commands used to build an old-style archive.
 30533  old_archive_cmds=$lt_old_archive_cmds_CXX
 30534  
 30535  # A language specific compiler.
 30536  CC=$lt_compiler_CXX
 30537  
 30538  # Is the compiler the GNU compiler?
 30539  with_gcc=$GCC_CXX
 30540  
 30541  # Compiler flag to turn off builtin functions.
 30542  no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 30543  
 30544  # Additional compiler flags for building library objects.
 30545  pic_flag=$lt_lt_prog_compiler_pic_CXX
 30546  
 30547  # How to pass a linker flag through the compiler.
 30548  wl=$lt_lt_prog_compiler_wl_CXX
 30549  
 30550  # Compiler flag to prevent dynamic linking.
 30551  link_static_flag=$lt_lt_prog_compiler_static_CXX
 30552  
 30553  # Does compiler simultaneously support -c and -o options?
 30554  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 30555  
 30556  # Whether or not to add -lc for building shared libraries.
 30557  build_libtool_need_lc=$archive_cmds_need_lc_CXX
 30558  
 30559  # Whether or not to disallow shared libs when runtime libs are static.
 30560  allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 30561  
 30562  # Compiler flag to allow reflexive dlopens.
 30563  export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 30564  
 30565  # Compiler flag to generate shared objects directly from archives.
 30566  whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 30567  
 30568  # Whether the compiler copes with passing no objects directly.
 30569  compiler_needs_object=$lt_compiler_needs_object_CXX
 30570  
 30571  # Create an old-style archive from a shared archive.
 30572  old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 30573  
 30574  # Create a temporary old-style archive to link instead of a shared archive.
 30575  old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 30576  
 30577  # Commands used to build a shared archive.
 30578  archive_cmds=$lt_archive_cmds_CXX
 30579  archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 30580  
 30581  # Commands used to build a loadable module if different from building
 30582  # a shared archive.
 30583  module_cmds=$lt_module_cmds_CXX
 30584  module_expsym_cmds=$lt_module_expsym_cmds_CXX
 30585  
 30586  # Whether we are building with GNU ld or not.
 30587  with_gnu_ld=$lt_with_gnu_ld_CXX
 30588  
 30589  # Flag that allows shared libraries with undefined symbols to be built.
 30590  allow_undefined_flag=$lt_allow_undefined_flag_CXX
 30591  
 30592  # Flag that enforces no undefined symbols.
 30593  no_undefined_flag=$lt_no_undefined_flag_CXX
 30594  
 30595  # Flag to hardcode \$libdir into a binary during linking.
 30596  # This must work even if \$libdir does not exist
 30597  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 30598  
 30599  # Whether we need a single "-rpath" flag with a separated argument.
 30600  hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 30601  
 30602  # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 30603  # DIR into the resulting binary.
 30604  hardcode_direct=$hardcode_direct_CXX
 30605  
 30606  # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
 30607  # DIR into the resulting binary and the resulting library dependency is
 30608  # "absolute",i.e impossible to change by setting \$shlibpath_var if the
 30609  # library is relocated.
 30610  hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 30611  
 30612  # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 30613  # into the resulting binary.
 30614  hardcode_minus_L=$hardcode_minus_L_CXX
 30615  
 30616  # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 30617  # into the resulting binary.
 30618  hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 30619  
 30620  # Set to "yes" if building a shared library automatically hardcodes DIR
 30621  # into the library and all subsequent libraries and executables linked
 30622  # against it.
 30623  hardcode_automatic=$hardcode_automatic_CXX
 30624  
 30625  # Set to yes if linker adds runtime paths of dependent libraries
 30626  # to runtime path list.
 30627  inherit_rpath=$inherit_rpath_CXX
 30628  
 30629  # Whether libtool must link a program against all its dependency libraries.
 30630  link_all_deplibs=$link_all_deplibs_CXX
 30631  
 30632  # Set to "yes" if exported symbols are required.
 30633  always_export_symbols=$always_export_symbols_CXX
 30634  
 30635  # The commands to list exported symbols.
 30636  export_symbols_cmds=$lt_export_symbols_cmds_CXX
 30637  
 30638  # Symbols that should not be listed in the preloaded symbols.
 30639  exclude_expsyms=$lt_exclude_expsyms_CXX
 30640  
 30641  # Symbols that must always be exported.
 30642  include_expsyms=$lt_include_expsyms_CXX
 30643  
 30644  # Commands necessary for linking programs (against libraries) with templates.
 30645  prelink_cmds=$lt_prelink_cmds_CXX
 30646  
 30647  # Commands necessary for finishing linking programs.
 30648  postlink_cmds=$lt_postlink_cmds_CXX
 30649  
 30650  # Specify filename containing input files.
 30651  file_list_spec=$lt_file_list_spec_CXX
 30652  
 30653  # How to hardcode a shared library path into an executable.
 30654  hardcode_action=$hardcode_action_CXX
 30655  
 30656  # The directories searched by this compiler when creating a shared library.
 30657  compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 30658  
 30659  # Dependencies to place before and after the objects being linked to
 30660  # create a shared library.
 30661  predep_objects=$lt_predep_objects_CXX
 30662  postdep_objects=$lt_postdep_objects_CXX
 30663  predeps=$lt_predeps_CXX
 30664  postdeps=$lt_postdeps_CXX
 30665  
 30666  # The library search path used internally by the compiler when linking
 30667  # a shared library.
 30668  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 30669  
 30670  # ### END LIBTOOL TAG CONFIG: CXX
 30671  _LT_EOF
 30672  
 30673   ;;
 30674  
 30675    esac
 30676  done # for ac_tag
 30677  
 30678  
 30679  as_fn_exit 0
 30680  _ACEOF
 30681  ac_clean_files=$ac_clean_files_save
 30682  
 30683  test $ac_write_fail = 0 ||
 30684    as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 30685  
 30686  
 30687  # configure is writing to config.log, and then calls config.status.
 30688  # config.status does its own redirection, appending to config.log.
 30689  # Unfortunately, on DOS this fails, as config.log is still kept open
 30690  # by configure, so config.status won't be able to write to it; its
 30691  # output is simply discarded.  So we exec the FD to /dev/null,
 30692  # effectively closing config.log, so it can be properly (re)opened and
 30693  # appended to by config.status.  When coming back to configure, we
 30694  # need to make the FD available again.
 30695  if test "$no_create" != yes; then
 30696    ac_cs_success=:
 30697    ac_config_status_args=
 30698    test "$silent" = yes &&
 30699      ac_config_status_args="$ac_config_status_args --quiet"
 30700    exec 5>/dev/null
 30701    $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 30702    exec 5>>config.log
 30703    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 30704    # would make configure fail if this is the last instruction.
 30705    $ac_cs_success || as_fn_exit 1
 30706  fi
 30707  if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 30708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 30709  $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 30710  fi
 30711  
 30712  
 30713  { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
 30714  
 30715    Version:           ${PACKAGE_STRING}
 30716    Host type:         ${host}
 30717    ABI:               ${ABI}
 30718    Install prefix:    ${prefix}
 30719    Compiler:          ${CC}
 30720    Static libraries:  ${enable_static}
 30721    Shared libraries:  ${enable_shared}
 30722  " >&5
 30723  $as_echo "$as_me: summary of build options:
 30724  
 30725    Version:           ${PACKAGE_STRING}
 30726    Host type:         ${host}
 30727    ABI:               ${ABI}
 30728    Install prefix:    ${prefix}
 30729    Compiler:          ${CC}
 30730    Static libraries:  ${enable_static}
 30731    Shared libraries:  ${enable_shared}
 30732  " >&6;}
 30733  
 30734  if test x$cross_compiling = xyes ; then
 30735     case "$host" in
 30736       *-*-mingw* | *-*-cygwin)
 30737       if test x$ABI = x64 ; then
 30738  	{ $as_echo "$as_me:${as_lineno-$LINENO}: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&5
 30739  $as_echo "$as_me: If wine64 is installed, use make check TESTS_ENVIRONMENT=wine64." >&6;}
 30740       else
 30741  	{ $as_echo "$as_me:${as_lineno-$LINENO}: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&5
 30742  $as_echo "$as_me: If wine is installed, use make check TESTS_ENVIRONMENT=wine." >&6;}
 30743       fi
 30744       ;;
 30745     esac
 30746  fi