#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
PACKAGE_URL=

ac_unique_file="interpret.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

enable_option_checking=no
ac_subst_vars='LTLIBOBJS
LIBOBJS
make_variables_in
dmmsrc
ac_configure_args
INSTALL
YACC
subdirs
DTRACE_REQUIREMENTS
EXTRA_MODULE_REQUIREMENTS
DEBUGDEF
EXTRA_OBJS
OPTIMIZE
PROFIL
WARN
OSFLAGS
PIKE_ICON_RES
MT_FIX_PIKE_EXE
PMOD_TARGETS
DYNAMIC_MODULE_FLAGS
STATIC_POST_MODULES_LINKOPTS
POST_MODULE_BUILD_TYPE
BUILD_PIKE
MODULE_O
PIKE_LIB
INTERPRET_DEOPTIMIZE
UNCOMPRESS_LIBZ
INSTALL_EXPORT_ARGS
LINKFORSHARED
CCSHARED
LDSHARED_MODULE_REQS
LDSHARED_BASE_REQS
LDSHARED
SO
ALLOCA
PTHREAD_CONFIG
YY_FROM_CONST
YY_COUNT_TYPE
RCEXE
MTEXE
LIGHT
CANDLE
RNTANY
AR
RANLIB
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
RUNTPIKE
RUNPIKE
PIKE_MODULE_RELOC
dtrace_prog
VALGRINDARGS
VALGRIND
with_valgrind
LC_REQ
LD
FALLBACK_CC
REALCXX
REALCC
SMARTLINK
SMARTBUILDCC
PKG_CONFIG
uname_prog
CROSS
BUILDDIR
BASEDIR
DOCDIR
MANDIR
BINDIR
LIBDIR
EGREP
GREP
CXXCPP
CPP
ac_ct_CXX
CXXFLAGS
CXX
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
SET_MAKE
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL
PKG_CONFIG_PATH'
ac_subst_files='dependencies
common_module_makefile
propagated_variables
make_variables'
ac_user_opts='
enable_option_checking
enable_pikelib
enable_make_conf
with_cflags
with_cppflags
with_ldflags
with_thread_library
enable_binary
with_abi
enable_smartlink_binary
with_patch_gcc
with_force_ua32
with_root
with_relocatable_dumped_modules
with_dynamic_modules
with_static_linking
with_crt
with_debug_crt
with_site_prefixes
with_include_path
with_lib_path
with_long_double_precision
with_double_precision
with_long_long_int
with_long_int
with_int_int
enable_dlmalloc
with_cleanup_on_exit
with_dmalloc
with_dmalloc_malloc
with_dmalloc_malloc_leaks
with_dmalloc_trace
with_dmalloc_c_stack_trace
with_dmalloc_track_free
with_debug
with_rtldebug
with_cdebug
with_copt
with_threads
with_malloc_overhead
with_malloc_page_size
with_thread_c_stack
with_devpoll
with_gdbm
with_gmp
with_zlib
with_mysql
with_valgrind
with_dtrace
with_checker
with_gcov
with_profiling
with_internal_profiling
with_pg
with_poll
with_max_fd
with_oob
with_compiler_trace
with_security
with_deprecated_security
with_computed_goto
with_machine_code
with_small_eval_instruction
with_keypair_loop
with_portable_bytecode
enable_pedantic
enable_werror
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CXX
CXXFLAGS
CCC
CPP
CXXCPP'
ac_subdirs_all='modules post_modules'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir runstatedir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-pikelib                  build pike as a library
  --disable-make.conf               do not use settings from /etc/make.conf
  --disable-binary                  do not configure for binary build, only do tests for precompilation stuff
  --disable-smartlink-binary        do not build and use the smartlink binary
  --enable-dlmalloc                 use Doug Leas malloc implementation instead of system malloc
  --enable-pedantic                 enable -pedantic compilation
  --enable-werror                   enable -Werror compilation

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-cflags=cflags              specify extra c compiler flags
  --with-cppflags=cppflags          specify extra c preprocessor flags
  --with-ldflags=ldflags            specify extra linker flags
  --with-thread-library=lib         Use a specific thread library
  --with-abi=32/64                  specify ABI to use in case there are multiple
  --with-patch-gcc                  attempt to patch the UA32 relocation bug.
  --with-force-ua32                 ignore the UA32 relocation bug.
  --with-root=path                  specify a cross-compilation root-directory
  --with-relocatable-dumped-modules make dumped modules relocatable
  --without-dynamic-modules         link modules statically
  --with-static-linking             link statically, if possible
  --with-crt=dynamic|static         force linking with dynamic or static CRT in Visual Studio
  --with-debug-crt                  compile and link with debug CRT in Visual Studio
  --with-site-prefixes              :-separated list of prefixes to search for include, lib and bin dirs.
  --with-include-path               a list of paths to search for include files.
  --with-lib-path                   a list of paths to search for libraries.
  --with-long-double-precision      use long double precision floats
  --with-double-precision           use double precision floats
  --with-long-long-int              use long long native type int
  --with-long-int                   use long native type int
  --with-int-int                    use int native type int
  --with-cleanup-on-exit            Do full cleanup at exit to detect leaks better.
  --with-dmalloc                    Enable memory leak checks.
  --with-dmalloc-malloc             Enable overloading of malloc(3)
  --with-dmalloc-malloc-leaks       Report memory allocated by malloc(3) as leaks.
  --with-dmalloc-trace              enable tracepoints
  --with-dmalloc-c-stack-trace      record C stack traces for block allocations
  --with-dmalloc-track-free         track freed memory too
  --with-debug                      same as --with-cdebug --with-rtldebug
  --without-debug                   same as --without-cdebug --without-rtldebug
  --with-rtldebug                   enable run time self tests
  --without-cdebug                  disable -g
  --without-copt                    disable -O2
  --without-threads                 disable threads support
  --with-malloc-overhead=n          tune the malloc block overhead (default is 2 * sizeof(void *))
  --with-malloc-page-size=n         tune to the memory page size (default is 4 kb)
  --with-thread-c-stack=n           tune the thread c-stack (default is 1024 * 1024)
  --without-devpoll                 disable support for /dev/poll
  --without-gdbm                    no GNU database manager support
  --without-gmp                     no support for Gmp bignums
  --without-zlib                    disable gz compression support
  --without-mysql                   disable support for the Mysql database
  --with-valgrind=path              Support for running with valgrind. Implies --with-cleanup-on-exit.
                                    Specify --without-cleanup-on-exit if you do not want this.
  --with-dtrace                     embed DTrace probes
  --with-checker                    add extra memory checking overhead (Purify)
  --with-gcov                       compile with support for gcov (gcc-only)
  --with-profiling                  add code used to profile pike code
  --with-internal-profiling         add profiling code for various internal things
  --with-pg                         use the gcc -pg option
  --with-poll                       use poll instead of select
  --with-max-fd=X                   set how many filedescriptors can be used at once
  --without-oob                     disable out-of-band data handling (INVALID)
  --with-compiler-trace             enable tracing of the compiler
  --with-security                   enable internal pike security system
  --with-deprecated-security        enable internal pike security system
  --with-computed-goto              enable use of gcc-style computed goto (EXPERIMENTAL).
  --without-machine-code            do not try to use of machine code on supported architectures.
  --with-small-eval-instruction     attempt to reduce the size of eval_instruction (EXPERIMENTAL).
  --with-keypair-loop               enable use of keypair mapping loop method.
  --without-portable-bytecode       disable portable bytecode support.

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
configure
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_cpp

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    $as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    $as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      $as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu



  CONFIG_HEADERS="machine.h"

  ac_config_headers="$ac_config_headers machine.h"



rm -f config.warnings 2>/dev/null



# We want an absolute path to the source-dir.
case "$srcdir" in
    /*)
    ;;
    *)
	oldsrcdir="$srcdir"
	srcdir="`cd \"$srcdir\";pwd`"
	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Converted $oldsrcdir to $srcdir,
If this does not work, please use an absolute path to the configure script." >&5
$as_echo "$as_me: WARNING: Converted $oldsrcdir to $srcdir,
If this does not work, please use an absolute path to the configure script." >&2;}
    ;;
esac

# Check that we can write to the source directory.
if touch "$srcdir/configure~"; then
  # Check that the system time is reasonably correct.
  if test `cd "$srcdir" && ls -1t configure configure~ | head -n 1` = "configure"; then
    echo "Current system time is `date`."
    as_fn_error $? "
$srcdir/configure has modification time in the future.
Check and set your system time.
" "$LINENO" 5
  fi
else
  ls -ld "$srcdir"
  as_fn_error $? "
Failed to write in source directory.
Fix your permissions.
" "$LINENO" 5
fi

if test "x$cache_file" = "x/dev/null"; then
    if uname | grep -i windows >/dev/null; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Windows detected.
" >&5
$as_echo "$as_me: WARNING:

Windows detected.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Windows detected.

EOF


  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Enabling the configure cache for performance reasons.
" >&5
$as_echo "$as_me: WARNING:

Enabling the configure cache for performance reasons.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Enabling the configure cache for performance reasons.

EOF

      cache_file=./config.cache
      if test -r "$cache_file"; then
	echo "loading cache $cache_file"
	  . $cache_file
      else
	echo "creating cache $cache_file"
	  > $cache_file
      fi
    fi
  fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi



rm -f "conftest_VPATH.in" 2>/dev/null
touch "$srcdir/conftest_VPATH.in"
if test -f conftest_VPATH.in; then :; else
  # Not building in source tree.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports VPATH" >&5
$as_echo_n "checking whether ${MAKE-make} supports VPATH... " >&6; }
  if ${pike_cv_make_supports_VPATH+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat > conftestmake <<EOF
VPATH=.$PATH_SEPARATOR$srcdir
.SUFFIXES: .in .out
.in.out:
	cat "\$<" >"\$@"
EOF
    pike_cv_make_supports_VPATH=no
    if ${MAKE-make} -f conftestmake conftest_VPATH.out >/dev/null 2>&5; then
      if test -f conftest_VPATH.out; then
        pike_cv_make_supports_VPATH=yes
      else :; fi
    else :; fi
    rm -f conftestmake conftest_VPATH.out

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_make_supports_VPATH" >&5
$as_echo "$pike_cv_make_supports_VPATH" >&6; }
  if test "x$pike_cv_make_supports_VPATH" = "xno"; then
    as_fn_error $? "
Building in a separate directory is not supported without VPATH.

Build in the source directory, or try another make (eg gnumake).
" "$LINENO" 5
    exit 1
  else :; fi
fi
rm -f "$srcdir/conftest_VPATH.in" 2>/dev/null

# Check whether --enable-pikelib was given.
if test "${enable_pikelib+set}" = set; then :
  enableval=$enable_pikelib; enable_pikelib=yes
else
  enable_pikelib=no
fi


if test "x$enable_pikelib" != "xno"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

BUILDING PIKE AS A LIBRARY -- HIGHLY EXPERIMENTAL!
" >&5
$as_echo "$as_me: WARNING:

BUILDING PIKE AS A LIBRARY -- HIGHLY EXPERIMENTAL!
" >&2;}
  cat >>config.warnings <<EOF
WARNING: BUILDING PIKE AS A LIBRARY -- HIGHLY EXPERIMENTAL!

EOF

   $as_echo "#define LIBPIKE 1" >>confdefs.h

fi

# Check whether --enable-make_conf was given.
if test "${enable_make_conf+set}" = set; then :
  enableval=$enable_make_conf;
else
  enable_make_conf=yes
fi


initial_cflags="${CFLAGS}"
initial_cppflags="${CPPFLAGS}"
initial_ldflags="${LDFLAGS}"

if test "x${CFLAGS-}" = x ; then
  cflags_is_set=no
else
  cflags_is_set=yes
fi

if test "x${CPPFLAGS-}" = x ; then
  cppflags_is_set=no
else
  cppflags_is_set=yes
fi

if test "x${LDFLAGS-}" = x ; then
  ldflags_is_set=no
else
  ldflags_is_set=yes
fi

# if test "x$enable_make_conf" = x"yes" -a -f /etc/make.conf; then
#   set >conftest.tmp
#   echo Using settings from /etc/make.conf...
#   . /etc/make.conf
#   set | diff -u conftest.tmp -  | grep '^+C'
#   PIKE_MSG_WARN([Using settings from /etc/make.conf.])
# fi


# Check whether --with-cflags was given.
if test "${with_cflags+set}" = set; then :
  withval=$with_cflags;  CFLAGS="$with_cflags $CFLAGS"
fi


# Check whether --with-cppflags was given.
if test "${with_cppflags+set}" = set; then :
  withval=$with_cppflags;  CPPFLAGS="$with_cppflags $CPPFLAGS"
fi


# Check whether --with-ldflags was given.
if test "${with_ldflags+set}" = set; then :
  withval=$with_ldflags;  LDFLAGS="$with_ldflags $LDFLAGS"
fi


# Force use of thread libs LIBS

# Check whether --with-thread-library was given.
if test "${with_thread_library+set}" = set; then :
  withval=$with_thread_library;
	      case "x$withval" in
	        x-*)
		  with_thread_library="$withval"
		;;
		*)
		  with_thread_library="-l$withval"
		;;
	      esac

else
   with_thread_library=no
fi


for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

You are using a site file to initialize configure, please
note that this can lead to problems if anything in
$ac_site_file is not correct. If Pike does not compile, or
does not run, please try this to compile Pike again:
rm -f ./config.cache ; CONFIG_SITE=x ./configure ; make
" >&5
$as_echo "$as_me: WARNING:

You are using a site file to initialize configure, please
note that this can lead to problems if anything in
$ac_site_file is not correct. If Pike does not compile, or
does not run, please try this to compile Pike again:
rm -f ./config.cache ; CONFIG_SITE=x ./configure ; make
" >&2;}
  cat >>config.warnings <<EOF
WARNING: You are using a site file to initialize configure, please
note that this can lead to problems if anything in
$ac_site_file is not correct. If Pike does not compile, or
does not run, please try this to compile Pike again:
rm -f ./config.cache ; CONFIG_SITE=x ./configure ; make

EOF

  fi
done

# Check whether --enable-binary was given.
if test "${enable_binary+set}" = set; then :
  enableval=$enable_binary;
else
  enable_binary=yes
fi


if test "x$enable_binary" = "xno"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Short-circuiting configure tests for binary building. Only some
targets in the Makefile can be used, typically those that only
operates on the source directory, e.g. depend.
" >&5
$as_echo "$as_me: WARNING:

Short-circuiting configure tests for binary building. Only some
targets in the Makefile can be used, typically those that only
operates on the source directory, e.g. depend.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Short-circuiting configure tests for binary building. Only some
targets in the Makefile can be used, typically those that only
operates on the source directory, e.g. depend.

EOF

  $as_echo "#define DISABLE_BINARY 1" >>confdefs.h

else

  if test ! -z "$pike_cv_prog_CC_save" -a ! -z "$CC" -a "$CC" != "$pike_cv_prog_CC_save"
  then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

CC is different than last time Pike was compiled,
It is probably best to delete ./config.cache before proceeding.
" >&5
$as_echo "$as_me: WARNING:

CC is different than last time Pike was compiled,
It is probably best to delete ./config.cache before proceeding.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: CC is different than last time Pike was compiled,
It is probably best to delete ./config.cache before proceeding.

EOF

  fi

  pike_cv_prog_CC_save="$CC"

fi

# Do the below even when --disable-binary is used, since we need a
# real $CPP, and AC_PROG_CPP wants AC_PROG_CC to be called earlier.
# $CC will be overridden with a dummy later on.

# MY_AC_PROG_CC
# The above has problems if the smartlink binary is removed. /grubba

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Workaround for COMPILER_EXEEXT bailing out with icc and too new gcc.
# "Command-line error: invalid GNU version number: 403".
# The following seem to be the max gcc-versions:
#
#   icc   gcc-version
#   8.1     340
#   9.0     400?
#   9.1     410?
if test "x$CC" = "x"; then :; else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an icc workaround" >&5
$as_echo_n "checking whether we need an icc workaround... " >&6; }
  if ${pike_cv_need_icc_gcc_version+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat >conftest.c <<EOF
  int main() { return 0; }
EOF
    ORIG_CFLAGS="$CFLAGS"
    for pike_cv_need_icc_gcc_version in no 420 410 400 340 330 320 310 no; do
      if test "x$pike_cv_need_icc_gcc_version" = "xno"; then :; else
        CFLAGS="$ORIG_CFLAGS -gcc-version=$pike_cv_need_icc_gcc_version"
      fi
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        break;
      fi
    done
    CFLAGS="$ORIG_CFLAGS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_need_icc_gcc_version" >&5
$as_echo "$pike_cv_need_icc_gcc_version" >&6; }
  if test "x$pike_cv_need_icc_gcc_version" = "xno"; then :; else
    CFLAGS="$CFLAGS -gcc-version=$pike_cv_need_icc_gcc_version"
  fi
fi

# AC_PROG_CC won't modify CFLAGS if it's already set from the icc
# workaround test above, so we make sure it's always set and then
# modify CFLAGS ourselves afterwards.
: ${CFLAGS:=}




  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "$ac_cv_prog_cc_g" = no; then
    # The -g test is broken for some compilers (eg ecc), since
    # they always have output (they echo the name of the source file).
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -g might not be ok after all" >&5
$as_echo_n "checking if -g might not be ok after all... " >&6; }
    if ${pike_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else

      echo 'void f(){}' > conftest.c
      if test "`${CC-cc} -g -c conftest.c 2>&1`" = \
	      "`${CC-cc} -c conftest.c 2>&1`"; then
	pike_cv_prog_cc_g=yes
      else
	pike_cv_prog_cc_g=no
      fi
      rm -f conftest*

fi

    if test "$pike_cv_prog_cc_g" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      ac_cv_prog_cc_g=yes
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi

  if test "$ac_test_CFLAGS" = set; then :; else
    if test "$GCC" = yes; then
      # Remove -O2, and use a real test to restore it.
      if test "$ac_cv_prog_cc_g" = yes; then
	CFLAGS="-g"
      else
	CFLAGS=
      fi
    else :; fi
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using TCC (TenDRA C Compiler)" >&5
$as_echo_n "checking if we are using TCC (TenDRA C Compiler)... " >&6; }
  if ${pike_cv_prog_tcc+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if $CC -V 2>&1 | grep -i TenDRA >/dev/null; then
      pike_cv_prog_tcc="yes"
    else
      pike_cv_prog_tcc="no"
    fi

fi

  if test "x$pike_cv_prog_tcc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    TCC="yes"
    if echo "$CC $CFLAGS $CPPFLAGS" | grep " -Y" >/dev/null; then :; else
      # We want to use the system API's...
      CPPFLAGS="-Ysystem $CPPFLAGS"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    TCC=no
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using ICC (Intel C Compiler)" >&5
$as_echo_n "checking if we are using ICC (Intel C Compiler)... " >&6; }
  if ${pike_cv_prog_icc+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if $CC -V 2>&1 | grep -i Intel >/dev/null; then
      pike_cv_prog_icc="yes"
    else
      pike_cv_prog_icc="no"
    fi

fi

  if test "x$pike_cv_prog_icc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    ICC="yes"
    # Make sure libimf et al are linked statically.
    # NB: icc 6, 7 and 8 only have static versions.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it is ICC 9.0 or later" >&5
$as_echo_n "checking if it is ICC 9.0 or later... " >&6; }
    icc_version="`$CC -V 2>&1 | sed -e '/^Version /s/Version \(0-9*\)\..*/\1/p' -ed`"
    if test "0$icc_version" -ge 9; then
      if echo "$CC $LDFLAGS $LIBS" | grep " -i-" >/dev/null; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $icc_version" >&5
$as_echo "yes - $icc_version" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $icc_version - Adding -i-static" >&5
$as_echo "yes - $icc_version - Adding -i-static" >&6; }
        LDFLAGS="-i-static $LDFLAGS"
      fi
    else
      if test "x$icc_version" = x; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - no version information" >&5
$as_echo "no - no version information" >&6; }
      else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - $icc_version" >&5
$as_echo "no - $icc_version" >&6; }
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    ICC=no
  fi

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Only need to think of -g since -O2 or other optimization flags gets
# added through other configure tests.
test "$ac_cv_prog_cc_g" = yes && CFLAGS="-g $CFLAGS"

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if ${ac_cv_prog_CXXCPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C" >&5
$as_echo_n "checking whether we are using Intel C... " >&6; }


if ${pike_cv_prog_icc+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__ECC) || defined(__ICC) || defined(__INTEL_COMPILER)
  oui;
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "oui" >/dev/null 2>&1; then :
  pike_cv_prog_icc=yes
else
  pike_cv_prog_icc=no
fi
rm -f conftest*


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_prog_icc" >&5
$as_echo "$pike_cv_prog_icc" >&6; }
if test "$pike_cv_prog_icc" = "yes"; then
  ICC=yes
fi

# This segment is disabled for now.
if :; then :; else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for option to enter C99-mode" >&5
$as_echo_n "checking for option to enter C99-mode... " >&6; }
if ${pike_cv_flag_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else

  ORIG_CPPFLAGS="$CPPFLAGS"
  for pike_cv_flag_c99 in '' '-std=gnu99' '-std=gnu9x' '-xc99' no; do
    if test "x$pike_cv_flag_c99" = "xno"; then break; fi
    # C99 is supported only in XPG6/POSIX.1-2001.
    pike_cv_flag_c99="$pike_cv_flag_c99 -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -DPOSIX_C_SOURCE=200112"
    CPPFLAGS="$ORIG_CPPFLAGS $pike_cv_flag_c99"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Include THE standard header file to check for C99 compliance. */
#include <stdio.h>
#if __STDC_VERSION__ - 0 >= 199901
    oui
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "oui" >/dev/null 2>&1; then :

      # Ok.
      break;

fi
rm -f conftest*

  done
  ORIG_CPPFLAGS="$CPPFLAGS"

fi

if test "x$pike_cv_flag_c99" = "xno"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
$as_echo "not supported" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for level of XPG support" >&5
$as_echo_n "checking for level of XPG support... " >&6; }
  if ${pike_cv_flag_xpg+:} false; then :
  $as_echo_n "(cached) " >&6
else

    # FIXME: How determine what the max level of XPG support is?
    :;

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_flag_xpg" >&5
$as_echo "$pike_cv_flag_xpg" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pike_cv_flag_c99:-(none)}" >&5
$as_echo "${pike_cv_flag_c99:-(none)}" >&6; }
  CPPFLAGS="$CPPFLAGS $pike_cv_flag_c99"
fi
fi

#############################################################################

if test "x$enable_binary" != "xno"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
$as_echo_n "checking for library containing strerror... " >&6; }
if ${ac_cv_search_strerror+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char strerror ();
int
main ()
{
return strerror ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' cposix; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_strerror=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_strerror+:} false; then :
  break
fi
done
if ${ac_cv_search_strerror+:} false; then :

else
  ac_cv_search_strerror=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
$as_echo "$ac_cv_search_strerror" >&6; }
ac_res=$ac_cv_search_strerror
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi


  test "x" != x && pike_cv_funcs_need_decls=""
  if test "x$pike_cv_funcs_need_decls" = xyes; then
    echo > hdrlist.h
  fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.

  if test "x$enable_binary" != "xno"; then
    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :


  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "$ac_header" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <$ac_header>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF


fi


done

  else
    for ac_hdr in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi





  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = xyes; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "minix/config.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <minix/config.h>
#endif
EOF
    fi
    MINIX=yes

else
  MINIX=
fi



  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if ${ac_cv_safe_to_define___extensions__+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h




fi

#############################################################################

# ABI selection.


  if test "x$ac_cv_objext" = "x"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking object file extension" >&5
$as_echo_n "checking object file extension... " >&6; }
    if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else

      # In autoconf 2.13 it was named ac_objext.
      ac_cv_objext="$ac_objext"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking default compiler ABI" >&5
$as_echo_n "checking default compiler ABI... " >&6; }
  if ${pike_cv_default_compiler_abi+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat >"conftest.$ac_ext" <<\EOF
int main(int argc, char **argv)
{
  return 0;
}
EOF
    pike_cv_default_compiler_abi="unknown"
    if (eval $ac_compile) 2>&5; then

  PIKE_filetype=`file "conftest.$ac_cv_objext" 2>/dev/null | sed -e 's/.*://'`
  case "$PIKE_filetype" in
    *64-bit*)
      pike_cv_default_compiler_abi=64
      ;;
    *32-bit*)
      pike_cv_default_compiler_abi=32
      ;;
    *64*)
      pike_cv_default_compiler_abi=64
      ;;
    *32*)
      pike_cv_default_compiler_abi=32
      ;;
    *386*)
      # Probably NT or SCO file for i386:
      #   iAPX 386 executable (COFF)
      #   80386 COFF executable
      pike_cv_default_compiler_abi=32
      ;;
    *ppc*)
      # Probably 32-bit MacOS X object file:
      #   Mach-O object ppc
      pike_cv_default_compiler_abi=32
      ;;
    *)
      # Unknown. Probably cross-compiling.

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Unrecognized object file format: $filetype
" >&5
$as_echo "$as_me: WARNING:

Unrecognized object file format: $filetype
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Unrecognized object file format: $filetype

EOF

      if dd if="conftest.$ac_cv_objext" count=2 bs=1 2>/dev/null | \
	grep 'L' >/dev/null; then
	# A common case is rntcl...
	# If the file begins with 0x4c 0x01 it's a 80386 COFF executable.
	pike_cv_default_compiler_abi=32
      fi
      ;;
  esac

    fi
    rm -f conftest.$ac_cv_objext conftest.$ac_ext

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_default_compiler_abi" >&5
$as_echo "$pike_cv_default_compiler_abi" >&6; }



# Check whether --with-abi was given.
if test "${with_abi+set}" = set; then :
  withval=$with_abi;
fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which ABI to use" >&5
$as_echo_n "checking which ABI to use... " >&6; }
  if ${pike_cv_wanted_abi+:} false; then :
  $as_echo_n "(cached) " >&6
else

    case "x$with_abi" in
      *32)
        pike_cv_wanted_abi="32"
      ;;
      *64)
        pike_cv_wanted_abi="64"
      ;;
      *)
        # Defaults
	if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
          pike_cv_wanted_abi="32"
	else
	  # Default to the compiler default.
	  pike_cv_wanted_abi="$pike_cv_default_compiler_abi"
	fi
        case "x`uname -m`" in
          x*64)
            pike_cv_wanted_abi="64"
          ;;
          xalpha)
	    pike_cv_wanted_abi="64"
          ;;
        esac
        if type isainfo 2>/dev/null >/dev/null; then
          # Solaris
          pike_cv_wanted_abi="`isainfo -b`"
        elif type sysctl 2>/dev/null >/dev/null; then
          # MacOS X or Linux.
          #
          # On MacOS X hw.optional.64bitop is set to 1 if
          # 64bit is supported and useful.
          if test "`sysctl -n hw.optional.64bitops 2>/dev/null`" = "1"; then
            pike_cv_wanted_abi="64"
          fi
          # On MacOS X hw.cpu64bit_capable is set to 1 if
          # 64bit is supported and useful.
          if test "`sysctl -n hw.cpu64bit_capable 2>/dev/null`" = "1"; then
            pike_cv_wanted_abi="64"
          fi
        fi
      ;;
    esac

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: attempt $pike_cv_wanted_abi" >&5
$as_echo "attempt $pike_cv_wanted_abi" >&6; }



  if test "x$pike_cv_wanted_abi" = "x$pike_cv_default_compiler_abi"; then
    # The compiler defaults to the wanted ABI.
    pike_cv_abi="$pike_cv_wanted_abi"
  else
    if test "x$pike_cv_wanted_abi" = "x64"; then

  #
  # We want 64bit mode if possible.
  #

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -q64" >&5
$as_echo_n "checking -q64... " >&6; }
  if test "x$pike_disabled_option_q64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_q64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_q64=yes
else
  pike_cv_option_q64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_q64=yes
else
  pike_cv_option_q64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_q64" = "xyes" ; then
      CC="$CC -q64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
$as_echo_n "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_m64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CC="$CC -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  # Sun Studio 10

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic64" >&5
$as_echo_n "checking -xtarget=generic64... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xtarget_generic64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xtarget_generic64=yes
else
  pike_cv_option_xtarget_generic64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xtarget_generic64=yes
else
  pike_cv_option_xtarget_generic64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xtarget_generic64" = "xyes" ; then
      CC="$CC -xtarget=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xarch=generic64" >&5
$as_echo_n "checking -xarch=generic64... " >&6; }
  if test "x$pike_disabled_option_xarch_generic64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xarch_generic64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xarch_generic64=yes
else
  pike_cv_option_xarch_generic64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xarch_generic64=yes
else
  pike_cv_option_xarch_generic64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xarch_generic64" = "xyes" ; then
      CC="$CC -xarch=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q64:$pike_cv_option_m64:$pike_cv_option_xtarget_generic64:$pike_cv_option_xarch_generic64" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  #
  # We want 32bit mode if possible.
  #

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -q32" >&5
$as_echo_n "checking -q32... " >&6; }
  if test "x$pike_disabled_option_q32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_q32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_q32=yes
else
  pike_cv_option_q32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_q32=yes
else
  pike_cv_option_q32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_q32" = "xyes" ; then
      CC="$CC -q32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m32" >&5
$as_echo_n "checking -m32... " >&6; }
  if test "x$pike_disabled_option_m32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_m32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_m32=yes
else
  pike_cv_option_m32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_m32=yes
else
  pike_cv_option_m32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_m32" = "xyes" ; then
      CC="$CC -m32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  # Sun Studio 10

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic32" >&5
$as_echo_n "checking -xtarget=generic32... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xtarget_generic32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xtarget_generic32=yes
else
  pike_cv_option_xtarget_generic32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xtarget_generic32=yes
else
  pike_cv_option_xtarget_generic32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xtarget_generic32" = "xyes" ; then
      CC="$CC -xtarget=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xarch=generic32" >&5
$as_echo_n "checking -xarch=generic32... " >&6; }
  if test "x$pike_disabled_option_xarch_generic32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xarch_generic32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xarch_generic32=yes
else
  pike_cv_option_xarch_generic32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xarch_generic32=yes
else
  pike_cv_option_xarch_generic32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xarch_generic32" = "xyes" ; then
      CC="$CC -xarch=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32:$pike_cv_option_xarch_generic32" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Found no option to force 64 bit ABI.
" >&5
$as_echo "$as_me: WARNING:

Found no option to force 64 bit ABI.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Found no option to force 64 bit ABI.

EOF

          # We hope this is correct...
	  pike_cv_abi="64"

    else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
$as_echo "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="32"
  fi


    else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
$as_echo "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="64"
  fi

    else

  #
  # We want 32bit mode if possible.
  #

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -q32" >&5
$as_echo_n "checking -q32... " >&6; }
  if test "x$pike_disabled_option_q32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_q32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_q32=yes
else
  pike_cv_option_q32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_q32=yes
else
  pike_cv_option_q32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_q32" = "xyes" ; then
      CC="$CC -q32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m32" >&5
$as_echo_n "checking -m32... " >&6; }
  if test "x$pike_disabled_option_m32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_m32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_m32=yes
else
  pike_cv_option_m32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_m32=yes
else
  pike_cv_option_m32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_m32" = "xyes" ; then
      CC="$CC -m32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  # Sun Studio 10

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic32" >&5
$as_echo_n "checking -xtarget=generic32... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xtarget_generic32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xtarget_generic32=yes
else
  pike_cv_option_xtarget_generic32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xtarget_generic32=yes
else
  pike_cv_option_xtarget_generic32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xtarget_generic32" = "xyes" ; then
      CC="$CC -xtarget=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xarch=generic32" >&5
$as_echo_n "checking -xarch=generic32... " >&6; }
  if test "x$pike_disabled_option_xarch_generic32" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xarch_generic32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic32"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xarch_generic32=yes
else
  pike_cv_option_xarch_generic32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xarch_generic32=yes
else
  pike_cv_option_xarch_generic32=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic32=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic32=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic32=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic32=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic32=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic32=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic32=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic32=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xarch_generic32" = "xyes" ; then
      CC="$CC -xarch=generic32"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic32"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32:$pike_cv_option_xarch_generic32" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  #
  # We want 64bit mode if possible.
  #

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -q64" >&5
$as_echo_n "checking -q64... " >&6; }
  if test "x$pike_disabled_option_q64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_q64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -q64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_q64=yes
else
  pike_cv_option_q64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_q64=yes
else
  pike_cv_option_q64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_q64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_q64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_q64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_q64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_q64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_q64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_q64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_q64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_q64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_q64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_q64" = "xyes" ; then
      CC="$CC -q64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -q64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
$as_echo_n "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_m64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CC="$CC -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -m64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  # Sun Studio 10

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic64" >&5
$as_echo_n "checking -xtarget=generic64... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xtarget_generic64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xtarget_generic64=yes
else
  pike_cv_option_xtarget_generic64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xtarget_generic64=yes
else
  pike_cv_option_xtarget_generic64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xtarget_generic64" = "xyes" ; then
      CC="$CC -xtarget=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xtarget=generic64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xarch=generic64" >&5
$as_echo_n "checking -xarch=generic64... " >&6; }
  if test "x$pike_disabled_option_xarch_generic64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xarch_generic64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xarch_generic64=yes
else
  pike_cv_option_xarch_generic64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xarch_generic64=yes
else
  pike_cv_option_xarch_generic64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xarch_generic64" = "xyes" ; then
      CC="$CC -xarch=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.
      CXX="$CXX -xarch=generic64"


      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  if test "$pike_cv_option_q64:$pike_cv_option_m64:$pike_cv_option_xtarget_generic64:$pike_cv_option_xarch_generic64" = "no:no:no:no"; then
    if test "x$pike_cv_default_compiler_abi" = "xunknown"; then
      :


  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Found no option to force 32 bit ABI.
" >&5
$as_echo "$as_me: WARNING:

Found no option to force 32 bit ABI.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Found no option to force 32 bit ABI.

EOF

          # We hope this is correct...
	  pike_cv_abi="32"

    else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
$as_echo "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="64"
  fi


    else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&5
$as_echo "$as_me: WARNING:

Using compiler default ABI: $pike_cv_default_compiler_abi
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Using compiler default ABI: $pike_cv_default_compiler_abi

EOF

      pike_cv_abi="$pike_cv_default_compiler_abi"
    fi
  else
    pike_cv_abi="32"
  fi

    fi
  fi
  if test "x$pike_cv_abi" = "x32"; then
    #
    # Make sure no later tests will add -q64 or -m64.
    #
    pike_disabled_option_q64=yes
    pike_disabled_option_m64=yes
  fi

  echo
  echo "Using ABI $pike_cv_abi."
  echo

  # ABI-dirs
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI lib-suffixes" >&5
$as_echo_n "checking for ABI lib-suffixes... " >&6; }
  if ${pike_cv_abi_suffixes+:} false; then :
  $as_echo_n "(cached) " >&6
else

    extra_abi_dirs=""
    if type isainfo 2>/dev/null >/dev/null; then
      # Solaris
      # Some installations lack the symlink 64 -> amd64 or sparcv9,
      # or the corresponding 32 link.
      extra_abi_dirs=`isainfo -v 2>/dev/null|awk "/$pike_cv_abi"'-bit/ { print "/" $2 }'`
    fi
    if test "x`uname -p`" = "xpowerpc"; then
      # MacOS X
      # The 64-bit libraries are typically in the subdirectory ppc64.
      extra_abi_dirs="$extra_abi_dirs /ppc$pike_cv_abi"
    fi
    pike_cv_abi_suffixes="$pike_cv_abi /$pike_cv_abi $extra_abi_dirs /."

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_abi_suffixes" >&5
$as_echo "$pike_cv_abi_suffixes" >&6; }

  # Prefix for pkg-config and other tools that don't support multiple ABIs
  # natively.
  if test "x$ac_tool_prefix" = x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking For $pike_cv_abi ABI tool prefix" >&5
$as_echo_n "checking For $pike_cv_abi ABI tool prefix... " >&6; }
    if ${pike_cv_tool_prefix+:} false; then :
  $as_echo_n "(cached) " >&6
else

      SAVE_IFS="$IFS"
      IFS=":"
      file_abi=""
      for d in $PATH; do
	IFS="$SAVE_IFS"
	for f in "$d/"*-pkg-config"$exeext"; do
	  if test -f "$f"; then

  PIKE_filetype=`file ""$f"" 2>/dev/null | sed -e 's/.*://'`
  case "$PIKE_filetype" in
    *64-bit*)
      file_abi=64
      ;;
    *32-bit*)
      file_abi=32
      ;;
    *64*)
      file_abi=64
      ;;
    *32*)
      file_abi=32
      ;;
    *386*)
      # Probably NT or SCO file for i386:
      #   iAPX 386 executable (COFF)
      #   80386 COFF executable
      file_abi=32
      ;;
    *ppc*)
      # Probably 32-bit MacOS X object file:
      #   Mach-O object ppc
      file_abi=32
      ;;
    *)
      # Unknown. Probably cross-compiling.

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Unrecognized object file format: $filetype
" >&5
$as_echo "$as_me: WARNING:

Unrecognized object file format: $filetype
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Unrecognized object file format: $filetype

EOF

      if dd if=""$f"" count=2 bs=1 2>/dev/null | \
	grep 'L' >/dev/null; then
	# A common case is rntcl...
	# If the file begins with 0x4c 0x01 it's a 80386 COFF executable.
	file_abi=32
      fi
      ;;
  esac

	    if test "x$file_abi" = "x$pike_cv_abi"; then
	      pike_cv_tool_prefix=`echo "$f" | sed -e 's|.*/||g' -e 's|pkg-config.*||'`
	      break;
	    fi
	  fi
	done
        if test "x$pike_cv_tool_prefix" = x; then :; else
	  break;
	fi
      done
      IFS="$SAVE_IFS"

fi

    if test "x$pike_cv_tool_prefix" = "x"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_tool_prefix" >&5
$as_echo "$pike_cv_tool_prefix" >&6; }
      ac_tool_prefix="$pike_cv_tool_prefix"
    fi
  fi

  # Compat
  with_abi="$pike_cv_abi"


#############################################################################

if test "x$GCC" = "x"; then
  GCC=no
else
  :;
fi

if test "x$GCC" = "xno" -a "x$TCC" = "xno"; then

  if test "x$ac_cv_prog_cc_cross" = "xyes"; then
    # The AIX 5L/cc beta can not generate working binaries without a
    # data-segment...
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are really using a cross-compiler" >&5
$as_echo_n "checking if we are really using a cross-compiler... " >&6; }

    if ${pike_cv_datasegment_required+:} false; then :
  $as_echo_n "(cached) " >&6
else

      ac_cv_prog_cc_cross=no;
      if test "$cross_compiling" = yes; then :

        pike_cv_datasegment_required=no
	ac_cv_prog_cc_cross=yes

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo;main(){return(0);}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

        pike_cv_datasegment_required=yes

else

        pike_cv_datasegment_required=no
	ac_cv_prog_cc_cross=yes

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

    if test "x$pike_cv_datasegment_required" = "xyes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- Applying data-segment kludge" >&5
$as_echo "no -- Applying data-segment kludge" >&6; }
      ac_cv_prog_cc_cross=no
      cat >conftest.c <<EOF
static int foo;
EOF
      pike_cv_datasegemnt_file=no
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  rm -f "data-segment.$ac_objext"
	  if mv "conftest.$ac_objext" "data-segment.$ac_objext"; then
	    if test -f "`pwd`/data-segment.$ac_objext"; then
	      pike_cv_datasegemnt_file="`pwd`/data-segment.$ac_objext"
	    else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Lost track of data-segment kludge-file.
" >&5
$as_echo "$as_me: WARNING:

Lost track of data-segment kludge-file.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Lost track of data-segment kludge-file.

EOF

	    fi
	  else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Failed to rename data-segment kludge-file.
" >&5
$as_echo "$as_me: WARNING:

Failed to rename data-segment kludge-file.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Failed to rename data-segment kludge-file.

EOF

	  fi
	else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Can not find data-segment kludgefile.
" >&5
$as_echo "$as_me: WARNING:

Can not find data-segment kludgefile.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Can not find data-segment kludgefile.

EOF

	fi
      else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Failed to compile data-segment kludge.
" >&5
$as_echo "$as_me: WARNING:

Failed to compile data-segment kludge.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Failed to compile data-segment kludge.

EOF

      fi
      if test "x$pike_cv_datasegment_file" = "xno"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Some tests may yield false results.
" >&5
$as_echo "$as_me: WARNING:

Some tests may yield false results.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Some tests may yield false results.

EOF

      else
        LIBS="$pike_cv_datasegment_file $LIBS"
	export LIBS

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Data-segment kludge applied.
" >&5
$as_echo "$as_me: WARNING:

Data-segment kludge applied.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Data-segment kludge applied.

EOF

      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    fi
  fi
elif test "x$TCC" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use pragma TenDRA longlong" >&5
$as_echo_n "checking if we can use pragma TenDRA longlong... " >&6; }
  if ${pike_cv_pragma_tendra_longlong+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#pragma TenDRA longlong type allow

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_pragma_tendra_longlong=yes

else
   pike_cv_pragma_tendra_longlong=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "x$pike_cv_pragma_tendra_longlong" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define HAVE_PRAGMA_TENDRA_LONGLONG 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use pragma TenDRA set longlong type" >&5
$as_echo_n "checking if we can use pragma TenDRA set longlong type... " >&6; }
  if ${pike_cv_pragma_tendra_set_longlong_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_TENDRA_LONGLONG */
#pragma TenDRA set longlong type : long long

long long foo;

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_pragma_tendra_set_longlong_type=yes

else
   pike_cv_pragma_tendra_set_longlong_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "x$pike_cv_pragma_tendra_set_longlong_type" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi
else :; fi

#############################################################################

if test "x$enable_binary" != "xno"; then

#
# The purpose of this test is to check that there is no filesystem
# caching preventing pike from compiling correctly.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking filesystem synchronization" >&5
$as_echo_n "checking filesystem synchronization... " >&6; }

if ${pike_cv_filesystem_syncronization+:} false; then :
  $as_echo_n "(cached) " >&6
else

  pike_cv_filesystem_syncronization=working

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 true
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "true" >/dev/null 2>&1; then :

else
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 false
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "false" >/dev/null 2>&1; then :

else
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 oui
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "oui" >/dev/null 2>&1; then :

else
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 no
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "no" >/dev/null 2>&1; then :

else
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 far
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "near" >/dev/null 2>&1; then :
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 up
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "up" >/dev/null 2>&1; then :

else
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
 down
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "down" >/dev/null 2>&1; then :

else
  pike_cv_filesystem_syncronization=broken
fi
rm -f conftest*


fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_filesystem_syncronization" >&5
$as_echo "$pike_cv_filesystem_syncronization" >&6; }
if test "x$pike_cv_filesystem_syncronization" = xbroken ; then
  as_fn_error $? "Filesystem caching is too aggressive. If you are using
Samba, make sure to have the following line in your smb.conf:
oplocks = False
" "$LINENO" 5
  exit 1
fi

fi

#############################################################################

LIBDIR=`(cd $srcdir/../lib ; pwd)`
BINDIR=`(cd $srcdir/../bin ; pwd)`
MANDIR=`(cd $srcdir/../man ; pwd)`
DOCDIR=`(cd $srcdir/../refdoc ; pwd)`
BASEDIR=`(cd $srcdir/.. ; pwd)`
BUILDDIR=`pwd`







#############################################################################

#
# Some cross-compilation support and --disable-binary stuff
#

if test "x$enable_binary" = "xno"; then
  CROSS=yes
else
  CROSS="$ac_cv_prog_cc_cross"
fi

if test "x$enable_binary" = "xno"; then
  CC="$BINDIR/nobinary_dummy cc"
  RUNPIKE="USE_PIKE"
  RUNTPIKE="USE_PIKE"
elif test "x$cross_compiling" = "xyes"; then
  RUNPIKE="DEFAULT_RUNPIKE"
  RUNTPIKE="USE_PIKE"
else
  RUNPIKE="DEFAULT_RUNPIKE"
  RUNTPIKE="USE_TPIKE"
fi

#############################################################################
if test "x$enable_binary" != "xno"; then
# The following tests are only relevant if we intend to build binaries.
#############################################################################


  if test "x$enable_binary" != "xno"; then
    for ac_header in fnord/fnord/fnord.h
do :


  ac_fn_c_check_header_mongrel "$LINENO" "fnord/fnord/fnord.h" "ac_cv_header_fnord_fnord_fnord_h" "$ac_includes_default"
if test "x$ac_cv_header_fnord_fnord_fnord_h" = xyes; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "fnord/fnord/fnord.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <fnord/fnord/fnord.h>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define HAVE_FNORD_FNORD_FNORD_H 1
_ACEOF


fi


done

  else
    for ac_hdr in fnord/fnord/fnord.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if CHECK_HEADERS works" >&5
$as_echo_n "checking if CHECK_HEADERS works... " >&6; }
if test "x$ac_cv_header_fnord_fnord_fnord_h" = xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  exit 1
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can allocate large auto variables" >&5
$as_echo_n "checking if we can allocate large auto variables... " >&6; }
if ${pike_cv_C_supports_large_auto+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
    int eat_stack(int foo)
    {
      char large_array[131072] = "";
      int i, sum = 0;

      for (i = 0; i < foo; i++) {
        /* Make sure the compiler does not optimize away the array. */
	large_array[i] = sum;
	sum += foo;
      }
      for (i = 0; i < foo; i++) {
        sum += large_array[i] - large_array[foo-1-i];
      }
      return sum;
    }

int
main ()
{

    return !eat_stack(4711);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

    pike_cv_C_supports_large_auto=yes

else

    pike_cv_C_supports_large_auto=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

if test "$pike_cv_C_supports_large_auto" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - good" >&5
$as_echo "yes - good" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make a workaround by defining _chkstk to call __chkstk" >&5
$as_echo_n "checking if we can make a workaround by defining _chkstk to call __chkstk... " >&6; }
  if ${pike_cv_kludge__chkstk+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
      int eat_stack(int foo)
      {
  	char large_array[131072] = "";
  	int i, sum = 0;

  	for (i = 0; i < foo; i++) {
  	  /* Make sure the compiler does not optimize away the array. */
  	  large_array[i] = sum;
  	  sum += foo;
  	}
  	for (i = 0; i < foo; i++) {
  	  sum += large_array[i] - large_array[foo-1-i];
  	}
  	return sum;
      }

      extern size_t __chkstk();
      size_t _chkstk() { return __chkstk(); }


int
main ()
{

      return !eat_stack(4711);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

      pike_cv_kludge__chkstk=yes

else

      pike_cv_kludge__chkstk=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

  if test "$pike_cv_kludge__chkstk" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - applying workaround" >&5
$as_echo "yes - applying workaround" >&6; }
    $as_echo "#define HAVE_BROKEN_CHKSTK 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    as_fn_error $? "Your C compiler does not link code that uses large auto variables.

Please check config.log, and fix the problem." "$LINENO" 5
    exit 1
  fi
fi

#############################################################################

## Build smartlink
# Check whether --enable-smartlink_binary was given.
if test "${enable_smartlink_binary+set}" = set; then :
  enableval=$enable_smartlink_binary; if test "x$enableval" = "xno"; then
                 force_smartlink_script_only=yes
               fi
fi


if test -x /usr/bin/uname 2>/dev/null; then
  UNAME=`/usr/bin/uname -sr`
elif test -x /bin/uname 2>/dev/null; then
  UNAME=`/bin/uname -sr`
else
  UNAME=unknown
fi

# We need some special hacks when running slowaris and winblows.

  # Extract the first word of "uname", so it can be a program name with args.
set dummy uname; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_uname_prog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $uname_prog in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_uname_prog="$uname_prog" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_uname_prog="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_uname_prog" && ac_cv_path_uname_prog="no"
  ;;
esac
fi
uname_prog=$ac_cv_path_uname_prog
if test -n "$uname_prog"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uname_prog" >&5
$as_echo "$uname_prog" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
$as_echo_n "checking operating system... " >&6; }
  if ${pike_cv_sys_os+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = "yes"; then
      case "$host_alias" in
	*amigaos*)	pike_cv_sys_os="AmigaOS";;
	*linux*)	pike_cv_sys_os="Linux";;
	*solaris*)	pike_cv_sys_os="Solaris";;
	*sunos*)	pike_cv_sys_os="SunOS";;
	*windows*)	pike_cv_sys_os="Windows_NT";;
	*mingw*|*MINGW*)
			pike_cv_sys_os="Windows_NT"
			pike_cv_is_mingw="yes";;
	*)		pike_cv_sys_os="Unknown";;
      esac
    elif test "$uname_prog" != "no"; then
      # uname on UNICOS doesn't work like other people's uname...
      if getconf CRAY_RELEASE >/dev/null 2>&1; then
	pike_cv_sys_os="UNICOS"
      else
	pike_cv_sys_os="`uname`"
      fi

      case "$pike_cv_sys_os" in
	SunOS)
	  case "`uname -r`" in
	    5.*) pike_cv_sys_os="Solaris" ;;
	  esac
	  ;;
	Monterey64)
	  # According to the release notes, the string "Monterey64"
	  # will be changed to "AIX" in the final release.
	  # (Monterey 64 is also known as AIX 5L).
	  pike_cv_sys_os="AIX"
	;;
	*Windows*|*windows*)
	  pike_cv_sys_os="Windows_NT"
	;;
	*MINGW*|*mingw*)
	  pike_cv_is_mingw="yes"
	  pike_cv_sys_os="Windows_NT"
	;;
      esac
    else
      pike_cv_sys_os="Not Solaris"
    fi

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_os" >&5
$as_echo "$pike_cv_sys_os" >&6; }


if test "x$pike_cv_sys_os" = xWindows_NT; then

  test "xyes" != x && pike_cv_funcs_need_decls="yes"
  if test "x$pike_cv_funcs_need_decls" = xyes; then
    echo > hdrlist.h
  fi

fi

# NB: We need to have gmp.h in the search path for the entirety of Pike,
#     since gmp.h is included by bignum.h, which in turn is included
#     by much of Pike.

  # NB: pkg-config does not have native support for multiple ABIs.

  if test "x$enable_binary" = "xno"; then
    for ac_prog in nobinary_dummy
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $BINDIR
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PKG_CONFIG" && break
done
test -n "$PKG_CONFIG" || PKG_CONFIG="no"

  else
    for ac_prog in ${ac_tool_prefix}pkg-config pkg-config
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PKG_CONFIG" && break
done
test -n "$PKG_CONFIG" || PKG_CONFIG="no"

  fi



    if test "${PKG_CONFIG}" = no; then :; else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a pkg-config based libgmp is installed" >&5
$as_echo_n "checking if a pkg-config based libgmp is installed... " >&6; }
    if "${PKG_CONFIG}" "libgmp"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stuff to add to CPPFLAGS" >&5
$as_echo_n "checking for stuff to add to CPPFLAGS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --cflags-only-I libgmp`"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
$as_echo "${pkg_stuff}" >&6; }
  CPPFLAGS="$CPPFLAGS ${pkg_stuff}"


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stuff to add to CFLAGS" >&5
$as_echo_n "checking for stuff to add to CFLAGS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --cflags-only-other libgmp`"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
$as_echo "${pkg_stuff}" >&6; }
  CFLAGS="$CFLAGS ${pkg_stuff}"


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stuff to add to LDFLAGS" >&5
$as_echo_n "checking for stuff to add to LDFLAGS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --libs-only-L libgmp`"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
$as_echo "${pkg_stuff}" >&6; }
  LDFLAGS="$LDFLAGS ${pkg_stuff}"


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stuff to add to LIBS" >&5
$as_echo_n "checking for stuff to add to LIBS... " >&6; }
  pkg_stuff="`${PKG_CONFIG} --libs-only-l --libs-only-other libgmp`"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_stuff}" >&5
$as_echo "${pkg_stuff}" >&6; }
  LIBS="$LIBS ${pkg_stuff}"

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi



  if test "x$enable_binary" != "xno"; then
    for ac_header in gmp.h stdlib.h string.h unistd.h sys/stat.h sys/types.h sys/errno.h
do :


  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "$ac_header" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <$ac_header>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF


fi


done

  else
    for ac_hdr in gmp.h stdlib.h string.h unistd.h sys/stat.h sys/types.h sys/errno.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


if test "$GCC" = "yes"; then :; else
#
# Special hack for HP-UX stupid cc
#
  if test "$pike_cv_sys_os" = "HP-UX"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(int bar);
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else

      OLD_CC="${CC-cc}"
      OLD_CFLAGS="$CFLAGS"
      case "/$CC" in
        */smartlink\ cc)
           if test -x /usr/bin/cc; then
	     CC="`echo $CC|sed -e 's/ cc/ \/usr\/bin\/cc/'`"
           else
             : ;
           fi
        ;;
      esac
      CFLAGS="-Ae +Olibcalls $CFLAGS"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(int bar);
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else

        CC="$OLD_CC"
	CFLAGS="$OLD_CFLAGS"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      pike_cv_prog_CC="${CC}"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  fi
fi

if test "$pike_cv_sys_os" = "Solaris" ; then
  $as_echo "#define SOLARIS 1" >>confdefs.h

else
  :
fi

# Workaround for compiling Pike on some OS that have some clues
case "$pike_cv_sys_os" in
   CYGWIN*)
      # Cygwin has both Windows includes and Unix ones.
      # Hiding them makes it a somewhat Unix compliant OS.
      echo 'Cygwin host detected. Enabling workarounds...'
      # winsock.h, winbase.h, winsock2.h, windows.h, wingdi.h, windef.h
      # are part of VC api but given as headers in cygwin. We
      # should not detect them when using cygwin
      ac_cv_header_wingdi_h="no"
      ac_cv_header_windef_h="no"
      ac_cv_header_winsock_h="no"
      ac_cv_header_winsock2_h="no"
      ac_cv_header_winbase_h="no"
      ac_cv_header_windows_h="no"
      with_machine_code="no"
   ;;
  Windows_NT)
   if test "$pike_cv_is_mingw" = "yes"; then
     #with_machine_code="no"
     ac_cv_func_fpclass="no"
   fi
   ;;
  FreeBSD*)
      # FreeBSD has different naming convention for gtk-config and sdl-config
      if test "x${GTK_CONFIG}" = "x"; then
         GTK_CONFIG=`which ${ac_tool_prefix}gtk12-config`
         export GTK_CONFIG
      fi
      if test "x${SDL_CONFIG}" = "x"; then
         SDL_CONFIG=`which ${ac_tool_prefix}sdl11-config`
	 export SDL_CONFIG
      fi
   ;;
esac

# Skip if user does not wish to use smartlink binary.
if test "x$force_smartlink_script_only" = "x"; then
# Strip smartlink and arguments from $CC
REALCC="`echo $CC|sed -e 's/.*smartlink *//'`";
RAWCC="`echo $REALCC|sed -e 's/ .*//g'`"


# FIXME: Add proper tests
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld.so run path method" >&5
$as_echo_n "checking for ld.so run path method... " >&6; }
if ${pike_cv_ld_so_run_path_method+:} false; then :
  $as_echo_n "(cached) " >&6
else

  case "$UNAME" in
    OSF1\ V4.*|OSF1\ V5.*|OSF1\ V6.*)
      pike_cv_run_path_method=rpath
    ;;
    HPUX\ 11.*)
      pike_cv_run_path_method=plus_b
    ;;
    IRIX\ 6.*)
      pike_cv_run_path_method=rpath
    ;;
    IRIX\ 5.*)
      pike_cv_run_path_method=rpath
    ;;
    SunOS\ 5.*)
      if test "$TCC" = "yes"; then
  	# tcc doesn't know about -R
        pike_cv_run_path_method=wl_r
      else
        pike_cv_run_path_method=r
      fi
    ;;
    Linux\ 2.* | GNU/kFreeBSD* )
      if test "$ICC" = "yes"; then
        # icc or ecc.
        pike_cv_run_path_method=qoption
      else
        pike_cv_run_path_method=wl
      fi
    ;;
    UnixWare\ 7.*|OpenUNIX\ 8.*)
      if test "$ac_cv_c_compiler_gnu" = "yes"; then
        pike_cv_run_path_method=xlinker_yp_
      else
        pike_cv_run_path_method=yp_
      fi
    ;;
    Darwin\ *|NetBSD\ *)
      pike_cv_run_path_method=darwin_rpath
    ;;
    *)
      pike_cv_run_path_method=ld_library_path
    ;;
  esac

fi

case "$pike_cv_run_path_method" in
  rpath)
    $as_echo "#define USE_RPATH 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -rpath" >&5
$as_echo "use -rpath" >&6; }
  ;;
  plus_b)
    $as_echo "#define USE_PLUS_b 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use +b" >&5
$as_echo "use +b" >&6; }
  ;;
  yp_)
    $as_echo "#define USE_YP_ 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -Yp," >&5
$as_echo "use -Yp," >&6; }
  ;;
  xlinker_yp_)
    $as_echo "#define USE_XLINKER_YP_ 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -Xlinker -Yp, -Xlinker" >&5
$as_echo "use -Xlinker -Yp, -Xlinker" >&6; }
  ;;
  wl_r)
    $as_echo "#define USE_Wl_R 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -Wl,-R" >&5
$as_echo "use -Wl,-R" >&6; }
  ;;
  r)
    $as_echo "#define USE_R 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -R" >&5
$as_echo "use -R" >&6; }
  ;;
  wl)
    $as_echo "#define USE_Wl 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -Wl,-rpath" >&5
$as_echo "use -Wl,-rpath" >&6; }
  ;;
   darwin_rpath)
    $as_echo "#define USE_Wl_rpath_darwin 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -Wl,-rpath (Darwin-style)" >&5
$as_echo "use -Wl,-rpath (Darwin-style)" >&6; }
  ;;
  qoption)
    $as_echo "#define USE_Qoption 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use -Qoption,ld,-rpath" >&5
$as_echo "use -Qoption,ld,-rpath" >&6; }
  ;;
  ld_library_path|*)
    $as_echo "#define USE_LD_LIBRARY_PATH 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: use LD_LIBRARY_PATH/LD_RUN_PATH" >&5
$as_echo "use LD_LIBRARY_PATH/LD_RUN_PATH" >&6; }
  ;;
esac

# Smartlink needs to know if OS X uses flat or two-level namespace
if test "$pike_cv_sys_os" = "Darwin" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin linker namespace" >&5
$as_echo_n "checking for Darwin linker namespace... " >&6; }
  case "`uname -r`" in
    1-6.*)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: flat (10.2 or older)" >&5
$as_echo "flat (10.2 or older)" >&6; }
      pike_cv_osx_twolevel_namespace=no
    ;;
    *)
      $as_echo "#define USE_OSX_TWOLEVEL_NAMESPACE 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: two-level (10.3 or newer)" >&5
$as_echo "two-level (10.3 or newer)" >&6; }
      pike_cv_osx_twolevel_namespace=yes
    ;;
  esac
fi


# Fix a smartlink
SMARTLINK="$BUILDDIR/smartlink"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $SMARTLINK exists is up to date and works" >&5
$as_echo_n "checking if $SMARTLINK exists is up to date and works... " >&6; }
if ls -1tr "$SMARTLINK${ac_exeext}" "$srcdir/smartlink.$ac_ext" 2>/dev/null | head -n 1 | grep "smartlink.$ac_ext" >/dev/null 2>&5 && "$SMARTLINK" -v >/dev/null 2>&5; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SMARTBUILDCC="${REALCC-cc}"

  if echo foo "$CC" | egrep 'rntc.|rnt.cl' >/dev/null; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

rntcc/rntcl/rnticl/rntecl detected.
" >&5
$as_echo "$as_me: WARNING:

rntcc/rntcl/rnticl/rntecl detected.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: rntcc/rntcl/rnticl/rntecl detected.

EOF

    for ac_prog in gcc cc egcs
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_SMARTBUILDCC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $SMARTBUILDCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SMARTBUILDCC="$SMARTBUILDCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_SMARTBUILDCC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SMARTBUILDCC=$ac_cv_path_SMARTBUILDCC
if test -n "$SMARTBUILDCC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SMARTBUILDCC" >&5
$as_echo "$SMARTBUILDCC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$SMARTBUILDCC" && break
done
test -n "$SMARTBUILDCC" || SMARTBUILDCC="gcc"

    echo Using $SMARTBUILDCC to compile smartlink.
  elif test "x$ac_cv_prog_cc_cross" = "xyes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Crosscompiler detected.
" >&5
$as_echo "$as_me: WARNING:

Crosscompiler detected.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Crosscompiler detected.

EOF

    for ac_prog in gcc cc egcs
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_SMARTBUILDCC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $SMARTBUILDCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SMARTBUILDCC="$SMARTBUILDCC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:/bin/:/usr/ccs/bin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin:/opt/csw/bin:$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_SMARTBUILDCC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
SMARTBUILDCC=$ac_cv_path_SMARTBUILDCC
if test -n "$SMARTBUILDCC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SMARTBUILDCC" >&5
$as_echo "$SMARTBUILDCC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$SMARTBUILDCC" && break
done
test -n "$SMARTBUILDCC" || SMARTBUILDCC="gcc"

    echo Using $SMARTBUILDCC to compile smartlink.
  fi

  rm -f "$SMARTLINK"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartlink compiles" >&5
$as_echo_n "checking whether smartlink compiles... " >&6; }

  link_cmd='${SMARTBUILDCC-cc} -o smartlink${ac_exeext} $CFLAGS -I. $CPPFLAGS $LDFLAGS $srcdir/smartlink.$ac_ext $LIBS 2>&5'
  if { (eval echo Compiling smartlink: \"$link_cmd\") 1>&5; (eval $link_cmd) 2>&5; } && "$BUILDDIR/smartlink" -v >/dev/null 2>&5; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - use the sh script" >&5
$as_echo "no - use the sh script" >&6; }
    SMARTLINK="$BINDIR/smartlink"
  fi
fi
else # force_smartlink_script_only
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smartlink build script" >&5
$as_echo_n "checking for smartlink build script... " >&6; }
     SMARTLINK="$BINDIR/smartlink"
     REALCC="$CC"
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SMARTLINK" >&5
$as_echo "$SMARTLINK" >&6; }
fi # force_smartlink_script_only

CC="$SMARTLINK $REALCC"
pike_cv_prog_CC="$CC"

# Strip smartlink and arguments from $CXX
REALCXX="`echo $CXX|sed -e 's/.*smartlink *//'`"
RAWCXX="`echo $REALCXX|sed -e 's/ .*//g'`"
CXX="$SMARTLINK $REALCXX"
pike_cv_prog_CXX="$CXX"




export CC CXX REALCC REALCXX SMARTLINK

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback compiler" >&5
$as_echo_n "checking for a fallback compiler... " >&6; }
# Strip smartlink and arguments from $FALLBACK_CC
FALLBACK_CC="`echo $FALLBACK_CC|sed -e 's/.*smartlink *//'`"
if test "x$FALLBACK_CC" = "x"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  FALLBACK_CC="$SMARTLINK $FALLBACK_CC"
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_CC" >&5
$as_echo "$FALLBACK_CC" >&6; }
fi

export FALLBACK_CC

#############################################################################
fi #if test "x$enable_binary" != "xno"
#############################################################################

# Something seems to mess with the stack ulimit on some architectures...
#
# Cause found. GNU make 3.81 apparently raises the stack ulimit to max
# without restoring it for the subprocesses. (Bug 18396 and 22010 at
# http://savannah.gnu.org/projects/make)


# Convenience function for querying Frameworks
# AC_CHECK_FRAMEWORK

# AH_CHECK_FRAMEWORK(FRAMEWORK)
# ---------------------





  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


if :; then :; else
# Disabled for now.
# It looks this makes it even worse...
# It seems to cause bash to loop on a SIGSEGV in the signal handler
# on Gentoo Linux/IA64.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the stack ulimit is excessive" >&5
$as_echo_n "checking if the stack ulimit is excessive... " >&6; }
if ulimit -s 1>&5 2>&5; then
  orig_ulimit="`ulimit -s 2>&5`"
  if test "$orig_ulimit" -gt "65536"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $orig_ulimit - reducing to 8192." >&5
$as_echo "yes, $orig_ulimit - reducing to 8192." >&6; }
    if ulimit -s 8192 1>&5 2>&5; then :; else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to reduce stack ulimit to 8192." >&5
$as_echo "$as_me: WARNING: Failed to reduce stack ulimit to 8192." >&2;}
    fi

  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $orig_ulimit" >&5
$as_echo "no, $orig_ulimit" >&6; }
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown, ulimit -s failed." >&5
$as_echo "unknown, ulimit -s failed." >&6; }
fi
fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fvisibility=hidden" >&5
$as_echo_n "checking -fvisibility=hidden... " >&6; }
  if test "x$pike_disabled_option_fvisibility_hidden" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fvisibility_hidden+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fvisibility=hidden"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fvisibility_hidden=yes
else
  pike_cv_option_fvisibility_hidden=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fvisibility_hidden=yes
else
  pike_cv_option_fvisibility_hidden=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fvisibility_hidden=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fvisibility_hidden=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fvisibility_hidden" = "xyes" ; then
      CFLAGS="$CFLAGS -fvisibility=hidden"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking +O3" >&5
$as_echo_n "checking +O3... " >&6; }
  if test "x$pike_disabled_option_plus_O3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O3" >&5
$as_echo_n "checking -O3... " >&6; }
  if test "x$pike_disabled_option_O3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
$as_echo_n "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_O2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_O3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O3=yes
else
  pike_cv_option_O3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O3=yes
else
  pike_cv_option_O3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O3"
      CXXFLAGS="$CXXFLAGS -O3"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
$as_echo_n "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_O2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_plus_O3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +O3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_plus_O3=yes
else
  pike_cv_option_plus_O3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_plus_O3=yes
else
  pike_cv_option_plus_O3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_O3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_O3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_O3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_O3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_O3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_O3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_O3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_O3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_O3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_O3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_plus_O3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +O3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +O3"
      CXXFLAGS="$CXXFLAGS +O3"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O3" >&5
$as_echo_n "checking -O3... " >&6; }
  if test "x$pike_disabled_option_O3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
$as_echo_n "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_O2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_O3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O3=yes
else
  pike_cv_option_O3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O3=yes
else
  pike_cv_option_O3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O3"
      CXXFLAGS="$CXXFLAGS -O3"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O2" >&5
$as_echo_n "checking -O2... " >&6; }
  if test "x$pike_disabled_option_O2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_O2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O2=yes
else
  pike_cv_option_O2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O2"
      CXXFLAGS="$CXXFLAGS -O2"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -O" >&5
$as_echo_n "checking -O... " >&6; }
  if test "x$pike_disabled_option_O" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_O+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -O"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_O=yes
else
  pike_cv_option_O=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_O=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_O=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_O=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_O=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_O=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_O=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_O=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_O=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_O=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_O=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_O" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -O"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -O"
      CXXFLAGS="$CXXFLAGS -O"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


if test "$GCC" = "yes"; then

  if test "$cflags_is_set" = "no"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -pipe" >&5
$as_echo_n "checking -pipe... " >&6; }
  if test "x$pike_disabled_option_pipe" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pipe+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -pipe"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pipe=yes
else
  pike_cv_option_pipe=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pipe=yes
else
  pike_cv_option_pipe=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pipe=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pipe=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pipe=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pipe=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pipe=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pipe=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pipe=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pipe=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pipe=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pipe=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pipe" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -pipe"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -pipe"
      CXXFLAGS="$CXXFLAGS -pipe"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    # The following segment is obsolete, since executable memory is
    # now allocated with mmap instead of with malloc().
    #	/grubba 2005-06-09
    #
    #     #### For exec-shield in newer linux kernels.
    #     #### Linux's mprotect(2) is broken, so we unfortunately
    #     #### need to enable executabe stack.
    #     #### This test crashes under mingw32 so let's disable for win32 for now.
    #     if test "$pike_cv_sys_os" != "Windows_NT"; then
    #       AC_SYS_COMPILER_FLAG([[-Wa,--execstack]],executableheap,CFLAGS)
    #     fi
  fi
fi

LD='$(CC) $(CFLAGS)'
LC_REQ="-lc"

case "$pike_cv_sys_os" in
  Darwin*)
      ;;
  SCO*)
     case "$CFLAGS" in
        *-belf*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -belf" >&5
$as_echo_n "checking -belf... " >&6; }
  if test "x$pike_disabled_option_sco_belf_option" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_sco_belf_option+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -belf"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_sco_belf_option=yes
else
  pike_cv_option_sco_belf_option=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_sco_belf_option=yes
else
  pike_cv_option_sco_belf_option=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_sco_belf_option=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_sco_belf_option=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_sco_belf_option=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_sco_belf_option=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_sco_belf_option=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_sco_belf_option=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_sco_belf_option=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_sco_belf_option=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_sco_belf_option=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_sco_belf_option=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_sco_belf_option" = "xyes" ; then
      CFLAGS="$CFLAGS -belf"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

            case "$LDFLAGS" in
              *-belf*) ;;
              *)
                echo "Adding -belf option to ldflags."
                LDFLAGS="$LDFLAGS -belf"
              ;;
            esac

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

       ;;
       *)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -belf" >&5
$as_echo_n "checking -belf... " >&6; }
  if test "x$pike_disabled_option_belf" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -belf"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_belf=yes
else
  pike_cv_option_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_belf=yes
else
  pike_cv_option_belf=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_belf=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_belf=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_belf=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_belf=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_belf=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_belf=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_belf=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_belf=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_belf=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_belf=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_belf" = "xyes" ; then
      CFLAGS="$CFLAGS -belf"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

       ;;
     esac
     case "$LDFLAGS" in
       *-belf*) ;;
       *)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -belf" >&5
$as_echo_n "checking -belf... " >&6; }
  if test "x$pike_disabled_option_belf" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_belf+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -belf"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_belf=yes
else
  pike_cv_option_belf=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_belf=yes
else
  pike_cv_option_belf=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_belf=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_belf=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_belf=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_belf=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_belf=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_belf=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_belf=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_belf=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_belf=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_belf=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_belf" = "xyes" ; then
      LDFLAGS="$LDFLAGS -belf"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

       ;;
     esac
  ;;
  SunOS*)
    # gcc on SunOS 4 forgets to define this:
    echo "SunOS. Adding -D__USE_FIXED_PROTOTYPES__"
    CFLAGS="$CFLAGS -D__USE_FIXED_PROTOTYPES__"
  ;;
  BSD/OS*)
    case "`uname -r`" in
      4-9.*) ;;
      *) LD="$BINDIR/smartlink shlicc";;
    esac
  ;;
  UnixWare*|OpenUNIX*)
    case "$CFLAGS" in
      *-Kalloca*) ;;
      *)
	if test "$GCC" != "yes"; then
	  # We are using built-in inline function
	  CFLAGS="$CFLAGS -Kalloca"
	  CXX="$CXX -DNO_CPLUSPLUS_ALLOCA"
	  LC_REQ=""
	fi
      ;;
    esac
  ;;
  Linux*)
    if $REALCC -V 2>&1 | head -1 | grep "Intel(R) C" >/dev/null; then
      # icc or ecc.
      LC_REQ=""
    fi
  ;;
esac




#############################################################################


# Check whether --with-patch_gcc was given.
if test "${with_patch_gcc+set}" = set; then :
  withval=$with_patch_gcc;
else
  with_patch_gcc=no
fi



# Check whether --with-force_ua32 was given.
if test "${with_force_ua32+set}" = set; then :
  withval=$with_force_ua32;
else
  with_force_ua32=no
fi


# Some sanity checks.

if test "$GCC" = "yes" -a "$pike_cv_sys_os" = "Solaris" && test "`uname -p`" = "sparc"; then
  # Solaris/sparc:
  #   Check that gnu ld isn't used.
  #   It's usually hidden in $prefix/sparc-sun-solaris2.?/bin/.
  # NOTE: M4 uses [] as quotes.
  gcc_ld_path="`$CC -v 2>&1 | sed -e '1,1s/[^\/]*\(\/.*\/\)[^\/]*$/\1/p;d' | sed -e '/lib\/gcc-lib\//s/lib\/gcc-lib\///;s/\/[0-9]*\.[0-9]*\.[0-9]*\/$/\/bin/'`"
  if test "x$gcc_ld_path" = "x"; then :;
  elif test -d "$gcc_ld_path/."; then
    if "$gcc_ld_path/ld" -v 2>&1 | grep -i GNU >/dev/null; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

GNU ld found on Solaris sparc system ($gcc_ld_path/ld).
This may cause the dynamic module support to fail.
" >&5
$as_echo "$as_me: WARNING:

GNU ld found on Solaris sparc system ($gcc_ld_path/ld).
This may cause the dynamic module support to fail.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: GNU ld found on Solaris sparc system ($gcc_ld_path/ld).
This may cause the dynamic module support to fail.

EOF

    else :; fi
  else :; fi
  unset gcc_ld_path


  # Watch out for gcc-2.8.1 on Solaris 7 sparc machines. It generates
  # assembler code which contains .uaword directives, which in turn
  # generates code with R_SPARC_UA32 relocations, which /usr/bin/ld.so
  # has buggy support for (it doesn't relocate the MSB).

  #  Check that gcc doesn't generate uaword opcodes
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your gcc generates uaword opcodes" >&5
$as_echo_n "checking if your gcc generates uaword opcodes... " >&6; }
  if ${pike_cv_gcc_uaword+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat > conftest.c <<EOF
char *foo[] = { "bar" };
EOF
    pike_compile='${CC-cc} -S $CPPFLAGS conftest.c 1>&5'
    pike_cv_gcc_uaword=no
    if { (eval echo configure: \"$pike_compile\") >&5; (eval $pike_compile) 2>&5; }; then
      if grep ".uaword" conftest.s 2>&5 >/dev/null; then
        echo "configure: result contains .uaword:" >&5
	cat conftest.s >&5
        pike_cv_gcc_uaword=yes
      else :; fi
    else
      echo "configure: failed program was:" >&5
      cat conftest.c >&5
    fi
    rm -rf conftest.*

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_gcc_uaword" >&5
$as_echo "$pike_cv_gcc_uaword" >&6; }

  # Check if as generates R_SPARC_UA32 relocations from .uaword.
  if test "$pike_cv_gcc_uaword" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your as generates R_SPARC_UA32 relocations" >&5
$as_echo_n "checking if your as generates R_SPARC_UA32 relocations... " >&6; }
    if ${pike_cv_as_r_sparc_ua32+:} false; then :
  $as_echo_n "(cached) " >&6
else

      ac_c_ext=$ac_ext
 ac_ext=${ac_s_ext-s}
 cat > conftest.$ac_ext <<EOF
	.file "configure"

.section	".rodata"
	.align 8
.STRING:
	.asciz	"String"
.section	".data"
	.align 4
	.type	string,#object
	.size	string,4
string:
	.uaword	.STRING

EOF
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  ac_ext=$ac_c_ext

        if /usr/ccs/bin/elfdump -r conftest.o | grep -i R_SPARC_UA32 >/dev/null 2>&5; then
	  pike_cv_ac_r_sparc_ua32=yes
	else
	  pike_cv_ac_r_sparc_ua32=no
	fi

  rm -rf conftest*
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_ext=$ac_c_ext
  rm -rf conftest*

        pike_cv_ac_r_sparc_ua32=no

fi
rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_ac_r_sparc_ua32" >&5
$as_echo "$pike_cv_ac_r_sparc_ua32" >&6; }
    if test "$pike_cv_ac_r_sparc_ua32" = "yes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Your gcc/as combo may generate R_SPARC_UA32 relocations.
R_SPARC_UA32 relocations are unsupported in Solaris >= 2.3,
and have broken support in Solaris 7.
" >&5
$as_echo "$as_me: WARNING:

Your gcc/as combo may generate R_SPARC_UA32 relocations.
R_SPARC_UA32 relocations are unsupported in Solaris >= 2.3,
and have broken support in Solaris 7.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Your gcc/as combo may generate R_SPARC_UA32 relocations.
R_SPARC_UA32 relocations are unsupported in Solaris >= 2.3,
and have broken support in Solaris 7.

EOF


      if test "x$with_patch_gcc$with_force_ua32" = "xnono"; then
  	if test -d "/var/sadm/patch/107058-01/."; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Back out patch 107058-01, or
recompile gcc with a modified config/sparc/sol2.h.
" >&5
$as_echo "$as_me: WARNING:

Back out patch 107058-01, or
recompile gcc with a modified config/sparc/sol2.h.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Back out patch 107058-01, or
recompile gcc with a modified config/sparc/sol2.h.

EOF

  	else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Recompile gcc with a modified config/sparc/sol2.h.
" >&5
$as_echo "$as_me: WARNING:

Recompile gcc with a modified config/sparc/sol2.h.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Recompile gcc with a modified config/sparc/sol2.h.

EOF

  	fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

You may want to try binary patching gcc.
In that case rerun configure with --with-patch-gcc.
NOTE: Binary patching is highly experimental and risky,
      and may break your existing gcc even more.

R_SPARC_UA32 relocations are supported on some versions
of Solaris. If you want to try a binary with R_SPARC_UA32
relocations, rerun configure with --with-force-ua32.
" >&5
$as_echo "$as_me: WARNING:

You may want to try binary patching gcc.
In that case rerun configure with --with-patch-gcc.
NOTE: Binary patching is highly experimental and risky,
      and may break your existing gcc even more.

R_SPARC_UA32 relocations are supported on some versions
of Solaris. If you want to try a binary with R_SPARC_UA32
relocations, rerun configure with --with-force-ua32.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: You may want to try binary patching gcc.
In that case rerun configure with --with-patch-gcc.
NOTE: Binary patching is highly experimental and risky,
      and may break your existing gcc even more.

R_SPARC_UA32 relocations are supported on some versions
of Solaris. If you want to try a binary with R_SPARC_UA32
relocations, rerun configure with --with-force-ua32.

EOF

        exit 1
      fi

      if test "x$with_patch_gcc" = "xno"; then :; else
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will attempt to patch gcc." >&5
$as_echo "$as_me: WARNING: Will attempt to patch gcc." >&2;}

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc1" >&5
$as_echo_n "checking for cc1... " >&6; }
        if test "x$with_patch_gcc" = "xyes"; then
          cc1="`$CC -v 2>&1|sed -e '/\//s!^[^/]*\(/.*\)/specs$!\1/cc1!p' -ed`"
        else
	  cc1="$with_patch_gcc";
        fi
        if test -f "$cc1"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc1" >&5
$as_echo "$cc1" >&6; }
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Tried $cc1" >&5
$as_echo "not found. Tried $cc1" >&6; }
	  exit 1
        fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $cc1 looks unpatched" >&5
$as_echo_n "checking if $cc1 looks unpatched... " >&6; }
        if /usr/bin/strings "$cc1" | grep uaword >/dev/null 2>&1; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- strange" >&5
$as_echo "no -- strange" >&6; }
          exit 1
        fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if patch_cc1 compiles" >&5
$as_echo_n "checking if patch_cc1 compiles... " >&6; }
        link_cmd='${CC-cc} -o patch_cc1${ac_exeext} $CFLAGS -I. $CPPFLAGS $LDFLAGS $srcdir/patch_cc1.$ac_ext $LIBS 2>&5'
        if { (eval echo Compiling patch_cc1: \"$link_cmd\") 1>&5; (eval $link_cmd) 2>&5; } && "$BUILDDIR/patch_cc1" -v >/dev/null 2>&5; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

          if test -f "$cc1.patched"; then
            as_fn_error $? "$cc1.patched already exists.
Please move it out of the way." "$LINENO" 5
            exit 1;
          fi

          if test -f "$cc1.orig"; then
            as_fn_error $? "$cc1.orig already exists.
Please move it out of the way." "$LINENO" 5
            exit 1;
          fi

	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if patch_cc1 works" >&5
$as_echo_n "checking if patch_cc1 works... " >&6; }
	  if ./patch_cc1 "$cc1" 2>&5 >"$cc1.patched"; then
	    if test -f "$cc1.patched"; then :; else
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - failed to create $cc1.patched" >&5
$as_echo "no - failed to create $cc1.patched" >&6; }
	      exit 1
	    fi
	    if chmod 755 "$cc1.patched"; then :; else
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - failed to set permission to 755 on $cc1.patched" >&5
$as_echo "no - failed to set permission to 755 on $cc1.patched" >&6; }
	      exit 1
	    fi

	    if test "`/bin/ls -l \"$cc1\"|awk '{print $5}'`" = "`/bin/ls -l \"$cc1.patched\"|awk '{print $5}'`"; then
              if /usr/bin/strings "$cc1.patched" | grep uaword >/dev/null 2>&1; then
	        rm -f "$cc1.patched"
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- patching failed" >&5
$as_echo "no -- patching failed" >&6; }
                exit 1
	      fi

	      if "$cc1.patched" --help >/dev/null 2>&1; then :; else
	        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- the patched binary does not seem to work" >&5
$as_echo "no -- the patched binary does not seem to work" >&6; }
	        exit 1
	      fi

              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Activating the patched cc1.
NOTE: Entering critical section.
If configure fails at this point a broken gcc my result." >&5
$as_echo "$as_me: WARNING: Activating the patched cc1.
NOTE: Entering critical section.
If configure fails at this point a broken gcc my result." >&2;}
	      if /usr/bin/mv -f "$cc1" "$cc1.orig"; then

	        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Moved $cc1 to $cc1.orig." >&5
$as_echo "$as_me: WARNING: Moved $cc1 to $cc1.orig." >&2;}

	        if /usr/bin/mv -f "$cc1.patched" "$cc1"; then
	          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Patching seems to have succeeded.
Please rerun configure." >&5
$as_echo "$as_me: WARNING: Patching seems to have succeeded.
Please rerun configure." >&2;}
		  exit 1
	        fi

	        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Moving the patched cc1 into place failed.
Will try to restore the old cc1." >&5
$as_echo "$as_me: WARNING: Moving the patched cc1 into place failed.
Will try to restore the old cc1." >&2;}

	        if /usr/bin/mv -f "$cc1.orig" "$cc1"; then
	          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The old cc1 has been restored." >&5
$as_echo "$as_me: WARNING: The old cc1 has been restored." >&2;}
	          exit 1
	        fi

	        as_fn_error $? "Restoring the old cc1 failed.
Your installation of gcc is most likely broken now.
Sorry, you will have to restore it yourself.
Please move $cc1.orig to $cc1." "$LINENO" 5
	        exit 1
	      else
	        as_fn_error $? "Failed to move the old cc1 to safety.
Please replace $cc1 with $cc1.patched by hand." "$LINENO" 5
	        exit 1
	      fi
	    else
	      rm -f "$cc1.patched"
	      as_fn_error $? "The size has changed.
You need to patch cc1 by hand." "$LINENO" 5
	      exit 1
	    fi
	  else
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- you need to patch cc1 by hand" >&5
$as_echo "no -- you need to patch cc1 by hand" >&6; }
	    exit 1
	  fi
        else
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- you need to patch cc1 by hand" >&5
$as_echo "no -- you need to patch cc1 by hand" >&6; }
          exit 1
        fi
      fi
    else :; fi
  else :; fi
else :; fi

#############################################################################



# Check whether --with-root was given.
if test "${with_root+set}" = set; then :
  withval=$with_root;
  case "$with_root" in
    /)
      with_root=""
    ;;
    /*)
    ;;
    no)
      with_root=""
    ;;
    *)

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Root path $with_root is not absolute. Ignored.
" >&5
$as_echo "$as_me: WARNING:

Root path $with_root is not absolute. Ignored.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Root path $with_root is not absolute. Ignored.

EOF

      with_root=""
    ;;
  esac

else
  with_root=""
fi



# Check whether --with-relocatable_dumped_modules was given.
if test "${with_relocatable_dumped_modules+set}" = set; then :
  withval=$with_relocatable_dumped_modules;
    if test "x$withval" = "xno"; then
      :
    else
      with_relocatable_dumped_modules=yes
    fi

fi



# Check whether --with-dynamic_modules was given.
if test "${with_dynamic_modules+set}" = set; then :
  withval=$with_dynamic_modules;
fi



# Check whether --with-static_linking was given.
if test "${with_static_linking+set}" = set; then :
  withval=$with_static_linking;
    if test "x$withval" = "xno"; then
      :
    else
      with_static_linking=yes
    fi

fi



# Check whether --with-crt was given.
if test "${with_crt+set}" = set; then :
  withval=$with_crt;
fi


# --with-debug-crt is a nop on most systems since a debug C runtime
# lib normally is used simply by setting LD_LIBRARY_PATH, but in MSVC
# the choice affects both the compiler and the linker.
#
# Note that all libs need to be linked to the same CRT in VC8 if they
# are linked to the DLL variant (i.e. using -MD), otherwise the MS
# loader won't load them. This restriction is reinforced by the
# manifest stuff that's used in VC8, and it doesn't apply when running
# directly in the build dir. See
# http://msdn2.microsoft.com/en-us/library/ms235299.aspx
#
# Also note that the debug CRT DLL in VC8 isn't redistributable.

# Check whether --with-debug-crt was given.
if test "${with_debug_crt+set}" = set; then :
  withval=$with_debug_crt;
else
  with_debug_crt=no
fi



# Check whether --with-site-prefixes was given.
if test "${with_site_prefixes+set}" = set; then :
  withval=$with_site_prefixes;
fi


# Check whether --with-include-path was given.
if test "${with_include_path+set}" = set; then :
  withval=$with_include_path;
fi


# Check whether --with-lib-path was given.
if test "${with_lib_path+set}" = set; then :
  withval=$with_lib_path;
fi



# Check whether --with-long-double-precision was given.
if test "${with_long_double_precision+set}" = set; then :
  withval=$with_long_double_precision;
fi


# Check whether --with-double-precision was given.
if test "${with_double_precision+set}" = set; then :
  withval=$with_double_precision;
fi



# Check whether --with-long-long-int was given.
if test "${with_long_long_int+set}" = set; then :
  withval=$with_long_long_int;
fi


# Check whether --with-long-int was given.
if test "${with_long_int+set}" = set; then :
  withval=$with_long_int;
fi


# Check whether --with-int-int was given.
if test "${with_int_int+set}" = set; then :
  withval=$with_int_int;
fi


# Check whether --enable-dlmalloc was given.
if test "${enable_dlmalloc+set}" = set; then :
  enableval=$enable_dlmalloc;
else
  test "$pike_cv_sys_os" = Windows_NT && enable_dlmalloc=yes
fi

# dlmalloc is enabled by default on windows since the OS heap manager
# Sucketh. (Well, it's possible to enable a "low-fragmentation heap"
# but it only works for blocks up to 16kb.)
if test "x$enable_dlmalloc" = xyes; then
  EXTRA_OBJS="$EXTRA_OBJS malloc.o"
  $as_echo "#define USE_DL_MALLOC 1" >>confdefs.h

else
  enable_dlmalloc=no
fi



# Check whether --with-cleanup-on-exit was given.
if test "${with_cleanup_on_exit+set}" = set; then :
  withval=$with_cleanup_on_exit;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define DO_PIKE_CLEANUP 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc was given.
if test "${with_dmalloc+set}" = set; then :
  withval=$with_dmalloc;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define DEBUG_MALLOC 10" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-malloc was given.
if test "${with_dmalloc_malloc+set}" = set; then :
  withval=$with_dmalloc_malloc;
    if test "x$withval" = "xno"; then
      :
    else
       $as_echo "#define ENCAPSULATE_MALLOC 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-malloc-leaks was given.
if test "${with_dmalloc_malloc_leaks+set}" = set; then :
  withval=$with_dmalloc_malloc_leaks;
    if test "x$withval" = "xno"; then
      :
    else
       $as_echo "#define REPORT_ENCAPSULATED_MALLOC 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-trace was given.
if test "${with_dmalloc_trace+set}" = set; then :
  withval=$with_dmalloc_trace;
    if test "x$withval" = "xno"; then
      :
    else
      with_dmalloc_trace="yes" $as_echo "#define DMALLOC_TRACE 10" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-c-stack-trace was given.
if test "${with_dmalloc_c_stack_trace+set}" = set; then :
  withval=$with_dmalloc_c_stack_trace;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define DMALLOC_C_STACK_TRACE 1" >>confdefs.h

    fi

fi




# Check whether --with-dmalloc-track-free was given.
if test "${with_dmalloc_track_free+set}" = set; then :
  withval=$with_dmalloc_track_free;
    if test "x$withval" = "xno"; then
      :
    else
       with_dmalloc_track_free="yes"
		 $as_echo "#define DMALLOC_TRACK_FREE 10" >>confdefs.h

    fi

fi



# Check whether --with-debug was given.
if test "${with_debug+set}" = set; then :
  withval=$with_debug;
else
  with_debug=
fi


# Check whether --with-debug was given.
if test "${with_debug+set}" = set; then :
  withval=$with_debug;
else
  with_debug=
fi


# Check whether --with-rtldebug was given.
if test "${with_rtldebug+set}" = set; then :
  withval=$with_rtldebug;
else
  with_rtldebug=
fi


# Check whether --with-cdebug was given.
if test "${with_cdebug+set}" = set; then :
  withval=$with_cdebug;
else

  case "$pike_cv_sys_os:$GCC" in
    Solaris:no)
      # Solaris/cc has problems with combining optimizations and debuginfo.

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Defaulting to --without-cdebug since the OS is Solaris,
and gcc is not being used.
" >&5
$as_echo "$as_me: WARNING:

Defaulting to --without-cdebug since the OS is Solaris,
and gcc is not being used.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Defaulting to --without-cdebug since the OS is Solaris,
and gcc is not being used.

EOF

      with_cdebug=no
    ;;
    HP-UX:no|HPUX:no)
      # HP-UX/cc has problems with combining optimizations and debuginfo.
      #
      # cc: internal panic 7815: Malloc: underflow detected in free(). (7815)

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Defaulting to --without-cdebug since the OS is HP-UX,
and gcc is not being used.
" >&5
$as_echo "$as_me: WARNING:

Defaulting to --without-cdebug since the OS is HP-UX,
and gcc is not being used.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Defaulting to --without-cdebug since the OS is HP-UX,
and gcc is not being used.

EOF

      with_cdebug=no
    ;;
    *)
      with_cdebug=
    ;;
  esac

fi


# Check whether --with-copt was given.
if test "${with_copt+set}" = set; then :
  withval=$with_copt;
else
  with_copt=
fi


# Check whether --with-threads was given.
if test "${with_threads+set}" = set; then :
  withval=$with_threads;
else

   case "x$pike_cv_sys_os" in
     xFreeBSD*)
        if test "`uname -r|sed -e 's/\([0-9]*\).*/\1/'`" -lt 4; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

FreeBSD <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&5
$as_echo "$as_me: WARNING:

FreeBSD <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: FreeBSD <= 3.x detected, disabling threads.
Use --with-threads to force threads support.

EOF

           with_threads=no
        fi
     ;;
     xOpenBSD*)
        if test "`uname -r|sed -e 's/\([0-9]*\).*/\1/'`" -lt 4 \
             -a "x`uname -m`" = "xalpha"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

OpenBSD/alpha <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&5
$as_echo "$as_me: WARNING:

OpenBSD/alpha <= 3.x detected, disabling threads.
Use --with-threads to force threads support.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: OpenBSD/alpha <= 3.x detected, disabling threads.
Use --with-threads to force threads support.

EOF

           with_threads=no
        fi
     ;;
   esac

   if test "x${with_threads-}" = x; then
     with_threads=yes
   fi

fi



  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5



# Check whether --with-malloc_overhead was given.
if test "${with_malloc_overhead+set}" = set; then :
  withval=$with_malloc_overhead; $as_echo "#define PIKE_MALLOC_OVERHEAD (\$withval)" >>confdefs.h

else
  $as_echo "#define PIKE_MALLOC_OVERHEAD (2 * sizeof(void *))" >>confdefs.h

fi


# Check whether --with-malloc_page_size was given.
if test "${with_malloc_page_size+set}" = set; then :
  withval=$with_malloc_page_size; $as_echo "#define PIKE_MALLOC_PAGE_SIZE (\$withval)" >>confdefs.h

else
  $as_echo "#define PIKE_MALLOC_PAGE_SIZE (4 * 1024)" >>confdefs.h

fi



  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5



# Check whether --with-thread_c_stack was given.
if test "${with_thread_c_stack+set}" = set; then :
  withval=$with_thread_c_stack; cat >>confdefs.h <<_ACEOF
#define PIKE_THREAD_C_STACK_SIZE ($withval)
_ACEOF

else
  $as_echo "#define PIKE_THREAD_C_STACK_SIZE (1024 * 1024)" >>confdefs.h

fi



# Check whether --with-devpoll was given.
if test "${with_devpoll+set}" = set; then :
  withval=$with_devpoll;
else
  with_devpoll=yes
fi


# Check whether --with-gdbm was given.
if test "${with_gdbm+set}" = set; then :
  withval=$with_gdbm;
fi


# Check whether --with-gmp was given.
if test "${with_gmp+set}" = set; then :
  withval=$with_gmp;
fi


# Check whether --with-zlib was given.
if test "${with_zlib+set}" = set; then :
  withval=$with_zlib;
else
  with_zlib=yes
fi


# Check whether --with-mysql was given.
if test "${with_mysql+set}" = set; then :
  withval=$with_mysql;
else
  with_mysql=yes
fi


# Check whether --with-valgrind was given.
if test "${with_valgrind+set}" = set; then :
  withval=$with_valgrind;
  if test "x$with_valgrind" = "xyes"; then
    # Extract the first word of "valgrind", so it can be a program name with args.
set dummy valgrind; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_with_valgrind+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $with_valgrind in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_with_valgrind="$with_valgrind" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_with_valgrind="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_with_valgrind" && ac_cv_path_with_valgrind="no"
  ;;
esac
fi
with_valgrind=$ac_cv_path_with_valgrind
if test -n "$with_valgrind"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
$as_echo "$with_valgrind" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "x$with_valgrind" = "xno"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

valgrind not found
" >&5
$as_echo "$as_me: WARNING:

valgrind not found
" >&2;}
  cat >>config.warnings <<EOF
WARNING: valgrind not found

EOF

    else :; fi
  else :; fi

else
  with_valgrind=no
fi


# Check whether --with-dtrace was given.
if test "${with_dtrace+set}" = set; then :
  withval=$with_dtrace;
fi


# Check whether --with-checker was given.
if test "${with_checker+set}" = set; then :
  withval=$with_checker;
fi


# Check whether --with-gcov was given.
if test "${with_gcov+set}" = set; then :
  withval=$with_gcov;
fi



# Check whether --with-profiling was given.
if test "${with_profiling+set}" = set; then :
  withval=$with_profiling;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define PROFILING 1" >>confdefs.h

    fi

fi




# Check whether --with-internal-profiling was given.
if test "${with_internal_profiling+set}" = set; then :
  withval=$with_internal_profiling;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define INTERNAL_PROFILING 1" >>confdefs.h

    fi

fi




# Check whether --with-pg was given.
if test "${with_pg+set}" = set; then :
  withval=$with_pg;
    if test "x$withval" = "xno"; then
      :
    else
      PROFIL=-pg
    fi

fi



# Check whether --with-poll was given.
if test "${with_poll+set}" = set; then :
  withval=$with_poll;
else

  # Neither --with-poll nor --without-poll was specified
  case "$pike_cv_sys_os" in
    Solaris|HP-UX|OSF1|IRIX|Linux|UnixWare|OpenUNIX)
#    PIKE_MSG_WARN([Defaulting to --with-poll since the OS is $pike_cv_sys_os.])
# Nothing to warn about, really...
# NOTE: Darwin (OSX/iOS) have poll, but it's layered on kqueue, so there's no
#   real benefit to supporting it separately there.
      with_poll=yes
    ;;
    AIX)
      # poll(2) is broken on AIX 4.1 and earlier.
      if test "`uname -r`" -ge 2 -a "`uname -v`" -ge 4 ; then
        with_poll=yes
      elif test "`uname -v`" -gt 4 ; then
        with_poll=yes
      else :; fi
    ;;
  esac

fi


# Check whether --with-max-fd was given.
if test "${with_max_fd+set}" = set; then :
  withval=$with_max_fd; pike_cv_max_open_fd=$withval
fi



# Check whether --with-oob was given.
if test "${with_oob+set}" = set; then :
  withval=$with_oob;
    if test "x$withval" = "xno"; then

  as_fn_error $? "Support for out of band data is mandatory in Pike 7.5 and later." "$LINENO" 5

    else
      :
    fi

fi




# Check whether --with-compiler-trace was given.
if test "${with_compiler_trace+set}" = set; then :
  withval=$with_compiler_trace;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define YYDEBUG 1" >>confdefs.h

    fi

fi



# Check whether --with-security was given.
if test "${with_security+set}" = set; then :
  withval=$with_security; as_fn_error $? "Pike security is deprecated. Use --with-deprecated-security to enable." "$LINENO" 5
fi


# Check whether --with-deprecated-security was given.
if test "${with_deprecated_security+set}" = set; then :
  withval=$with_deprecated_security; $as_echo "#define PIKE_SECURITY 1" >>confdefs.h

fi


# Check whether --with-computed-goto was given.
if test "${with_computed_goto+set}" = set; then :
  withval=$with_computed_goto;
else
  with_computed_goto=no
fi



# Check whether --with-machine-code was given.
if test "${with_machine_code+set}" = set; then :
  withval=$with_machine_code;
else

          case "x$pike_cv_sys_os" in
            xOpenBSD*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

OpenBSD detected, disabling machine code.
  Use --with-machine-code to force usage of machine code support.
" >&5
$as_echo "$as_me: WARNING:

OpenBSD detected, disabling machine code.
  Use --with-machine-code to force usage of machine code support.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: OpenBSD detected, disabling machine code.
  Use --with-machine-code to force usage of machine code support.

EOF

              with_machine_code="no"
            ;;
            xFreeBSD*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

FreeBSD detected, disabling machine code.
  Use --with-machine-code to force usage of machine code support.
" >&5
$as_echo "$as_me: WARNING:

FreeBSD detected, disabling machine code.
  Use --with-machine-code to force usage of machine code support.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: FreeBSD detected, disabling machine code.
  Use --with-machine-code to force usage of machine code support.

EOF

              with_machine_code="no"
            ;;

          esac

          if test "x${with_machine_code-}" = x; then
            with_machine_code="yes"
          fi


fi


# Check whether --with-small-eval-instruction was given.
if test "${with_small_eval_instruction+set}" = set; then :
  withval=$with_small_eval_instruction;
	  $as_echo "#define PIKE_SMALL_EVAL_INSTRUCTION 1" >>confdefs.h

	  with_machine_code="no"
	  with_computed_goto="no"

fi




# Check whether --with-keypair-loop was given.
if test "${with_keypair_loop+set}" = set; then :
  withval=$with_keypair_loop;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define PIKE_MAPPING_KEYPAIR_LOOP 1" >>confdefs.h

    fi

fi





# Check whether --with-portable-bytecode was given.
if test "${with_portable_bytecode+set}" = set; then :
  withval=$with_portable_bytecode;
    if test "x$withval" = "xno"; then
      :
    else
      $as_echo "#define PIKE_PORTABLE_BYTECODE 1" >>confdefs.h

    fi

else
  $as_echo "#define PIKE_PORTABLE_BYTECODE 1" >>confdefs.h

fi



if test "x$with_pike_type" = "xno"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Disabling of USE_PIKE_TYPE is no longer supported.
" >&5
$as_echo "$as_me: WARNING:

Disabling of USE_PIKE_TYPE is no longer supported.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Disabling of USE_PIKE_TYPE is no longer supported.

EOF

fi

$as_echo "#define AUTO_BIGNUM 1" >>confdefs.h

if test "x$with_gmp" = xno; then
  as_fn_error $? "The GMP library is required to compile Pike." "$LINENO" 5
fi

  $as_echo "#define SHARED_NODES 1" >>confdefs.h


if test "x$with_poll" = "xyes"; then
  $as_echo "#define HAVE_AND_USE_POLL 1" >>confdefs.h

else :; fi

if test "x$with_valgrind" = "xno"; then
  VALGRIND=""
  VALGRINDARGS=""
else
  VALGRIND="$with_valgrind"
  # Make valgrind a bit silent by default.
  VALGRINDARGS="-q --tool=memcheck"
  $as_echo "#define USE_VALGRIND 1" >>confdefs.h


  if test "x$with_cleanup_on_exit" = "x"; then
    $as_echo "#define DO_PIKE_CLEANUP 1" >>confdefs.h

  fi

  if test "x$with_copt" != "xno"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

--without-copt is advisable when using valgrind!
" >&5
$as_echo "$as_me: WARNING:

--without-copt is advisable when using valgrind!
" >&2;}
  cat >>config.warnings <<EOF
WARNING: --without-copt is advisable when using valgrind!

EOF

  fi
fi
export VALGRIND VALGRINDARGS



# DTrace probes
if test "x$with_dtrace" = "xyes"; then
   # Extract the first word of "dtrace", so it can be a program name with args.
set dummy dtrace; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_dtrace_prog+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $dtrace_prog in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_dtrace_prog="$dtrace_prog" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_dtrace_prog="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_dtrace_prog" && ac_cv_path_dtrace_prog="no"
  ;;
esac
fi
dtrace_prog=$ac_cv_path_dtrace_prog
if test -n "$dtrace_prog"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dtrace_prog" >&5
$as_echo "$dtrace_prog" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


   if test "x$ac_cv_path_dtrace_prog" != "xno"; then
      $as_echo "#define USE_DTRACE 1" >>confdefs.h

      DTRACE_REQUIREMENTS="dtrace_probes.h"
   fi
fi

if test "x$with_relocatable_dumped_modules" = xyes; then
  PIKE_MODULE_RELOC=1
else
  PIKE_MODULE_RELOC=""
fi



#
# Allow --with(out)-debug to toggle both cdebug and rtldebug, but
# let --with(out)-{c,rtl}debug take precedence.
#
if test "x$with_cdebug" = x ; then
  with_cdebug="$with_debug"
fi

if test "x$with_rtldebug" = x ; then
  with_rtldebug="$with_debug"
fi


#
# --with-dmalloc requires --with-rtldebug
#
if test "x$with_dmalloc" = "x"; then
  :;
elif test "x$with_rtldebug" = "xyes"; then :; else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Debug malloc requires rtldebug. Enabling rtldebug.
" >&5
$as_echo "$as_me: WARNING:

Debug malloc requires rtldebug. Enabling rtldebug.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Debug malloc requires rtldebug. Enabling rtldebug.

EOF

  with_rtldebug=yes
fi


#
# Defaults for cdebug and rtldebug here:
#

if test "x$with_cdebug" = x ; then
  with_cdebug=yes
fi

if test "x$with_rtldebug" = x ; then
  with_rtldebug=no
#  with_rtldebug=yes
fi

if test "x$with_rtldebug" = xyes ; then
  $as_echo "#define PIKE_DEBUG 1" >>confdefs.h

fi

#############################################################################

OSFLAGS=""
WARN=""
OPTIMIZE="${OPTFLAGS-}"

# Check whether --enable-pedantic was given.
if test "${enable_pedantic+set}" = set; then :
  enableval=$enable_pedantic;
fi


# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
  enableval=$enable_werror;
fi


if test "$cflags_is_set" = "no"; then
  if test "x$with_cdebug" = "xno" ; then
    CFLAGS=`echo " $CFLAGS " | sed -e 's@ -g @ @g'`
  else
    :
  fi

  if test "x$enable_pedantic" = "xyes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -pedantic" >&5
$as_echo_n "checking -pedantic... " >&6; }
  if test "x$pike_disabled_option_pedantic" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pedantic+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -pedantic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pedantic=yes
else
  pike_cv_option_pedantic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pedantic=yes
else
  pike_cv_option_pedantic=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pedantic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pedantic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pedantic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pedantic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pedantic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pedantic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pedantic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pedantic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pedantic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pedantic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pedantic" = "xyes" ; then
      WARN="$WARN -pedantic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  fi

  if test "x$enable_werror" = "xyes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Werror" >&5
$as_echo_n "checking -Werror... " >&6; }
  if test "x$pike_disabled_option_error" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_error+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Werror"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_error=yes
else
  pike_cv_option_error=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_error=yes
else
  pike_cv_option_error=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_error=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_error=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_error=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_error=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_error=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_error=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_error=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_error=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_error=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_error=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_error" = "xyes" ; then
      WARN="$WARN -Werror"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  fi

  if test "x${GCC-}" = xyes ; then
  # Do not use -Wall, since that produces a lot of warnings that are not
  # really interresting (such as the warning for if( ... ) ... if(
  # ... ) .... else

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -W" >&5
$as_echo_n "checking -W... " >&6; }
  if test "x$pike_disabled_option_W" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_W+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -W"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_W=yes
else
  pike_cv_option_W=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_W=yes
else
  pike_cv_option_W=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_W=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_W=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_W=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_W=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_W=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_W=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_W=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_W=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_W=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_W=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_W" = "xyes" ; then
      WARN="$WARN -W"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wall" >&5
$as_echo_n "checking -Wall... " >&6; }
  if test "x$pike_disabled_option_Wall" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wall+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wall"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wall=yes
else
  pike_cv_option_Wall=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wall=yes
else
  pike_cv_option_Wall=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wall=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wall=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wall=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wall=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wall=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wall=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wall=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wall=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wall=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wall=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wall" = "xyes" ; then
      WARN="$WARN -Wall"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wno-unused" >&5
$as_echo_n "checking -Wno-unused... " >&6; }
  if test "x$pike_disabled_option_Wno_unused" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wno_unused+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wno-unused"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wno_unused=yes
else
  pike_cv_option_Wno_unused=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wno_unused=yes
else
  pike_cv_option_Wno_unused=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wno_unused=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wno_unused=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wno_unused=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wno_unused=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wno_unused=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wno_unused=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wno_unused=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wno_unused=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wno_unused=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wno_unused=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wno_unused" = "xyes" ; then
      WARN="$WARN -Wno-unused"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wcomment" >&5
$as_echo_n "checking -Wcomment... " >&6; }
  if test "x$pike_disabled_option_Wcomment" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wcomment+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wcomment"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wcomment=yes
else
  pike_cv_option_Wcomment=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wcomment=yes
else
  pike_cv_option_Wcomment=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wcomment=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wcomment=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wcomment=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wcomment=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wcomment=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wcomment=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wcomment=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wcomment=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wcomment=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wcomment=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wcomment" = "xyes" ; then
      WARN="$WARN -Wcomment"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wformat" >&5
$as_echo_n "checking -Wformat... " >&6; }
  if test "x$pike_disabled_option_Wformat" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wformat+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wformat"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wformat=yes
else
  pike_cv_option_Wformat=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wformat=yes
else
  pike_cv_option_Wformat=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wformat=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wformat=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wformat=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wformat=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wformat=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wformat=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wformat=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wformat=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wformat=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wformat=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wformat" = "xyes" ; then
      WARN="$WARN -Wformat"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wformat-security" >&5
$as_echo_n "checking -Wformat-security... " >&6; }
  if test "x$pike_disabled_option_Wformat_security" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wformat_security+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wformat-security"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wformat_security=yes
else
  pike_cv_option_Wformat_security=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wformat_security=yes
else
  pike_cv_option_Wformat_security=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wformat_security=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wformat_security=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wformat_security=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wformat_security=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wformat_security=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wformat_security=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wformat_security=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wformat_security=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wformat_security=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wformat_security=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wformat_security" = "xyes" ; then
      WARN="$WARN -Wformat-security"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wimplicit-function-declaration" >&5
$as_echo_n "checking -Wimplicit-function-declaration... " >&6; }
  if test "x$pike_disabled_option_Wimplicit_function_declaration" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wimplicit_function_declaration+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wimplicit-function-declaration"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wimplicit_function_declaration=yes
else
  pike_cv_option_Wimplicit_function_declaration=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wimplicit_function_declaration=yes
else
  pike_cv_option_Wimplicit_function_declaration=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wimplicit_function_declaration=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wimplicit_function_declaration=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wimplicit_function_declaration" = "xyes" ; then
      WARN="$WARN -Wimplicit-function-declaration"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wmultichar" >&5
$as_echo_n "checking -Wmultichar... " >&6; }
  if test "x$pike_disabled_option_Wmultichar" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wmultichar+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wmultichar"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wmultichar=yes
else
  pike_cv_option_Wmultichar=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wmultichar=yes
else
  pike_cv_option_Wmultichar=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wmultichar=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wmultichar=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wmultichar=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wmultichar=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wmultichar=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wmultichar=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wmultichar=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wmultichar=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wmultichar=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wmultichar=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wmultichar" = "xyes" ; then
      WARN="$WARN -Wmultichar"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wunused-function" >&5
$as_echo_n "checking -Wunused-function... " >&6; }
  if test "x$pike_disabled_option_Wunused_function" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wunused_function+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wunused-function"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wunused_function=yes
else
  pike_cv_option_Wunused_function=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wunused_function=yes
else
  pike_cv_option_Wunused_function=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wunused_function=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wunused_function=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wunused_function=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wunused_function=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wunused_function=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wunused_function=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wunused_function=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wunused_function=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wunused_function=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wunused_function=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wunused_function" = "xyes" ; then
      WARN="$WARN -Wunused-function"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wswitch" >&5
$as_echo_n "checking -Wswitch... " >&6; }
  if test "x$pike_disabled_option_Wswitch" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wswitch+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wswitch"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wswitch=yes
else
  pike_cv_option_Wswitch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wswitch=yes
else
  pike_cv_option_Wswitch=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wswitch=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wswitch=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wswitch=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wswitch=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wswitch=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wswitch=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wswitch=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wswitch=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wswitch=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wswitch=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wswitch" = "xyes" ; then
      WARN="$WARN -Wswitch"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    if test "x$with_copt" != xno; then
      # gcc complains that it doesn't support this when compiling
      # without optimizations.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wuninitialized" >&5
$as_echo_n "checking -Wuninitialized... " >&6; }
  if test "x$pike_disabled_option_Wuninitialized" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wuninitialized+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wuninitialized"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wuninitialized=yes
else
  pike_cv_option_Wuninitialized=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wuninitialized=yes
else
  pike_cv_option_Wuninitialized=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wuninitialized=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wuninitialized=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wuninitialized=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wuninitialized=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wuninitialized=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wuninitialized=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wuninitialized=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wuninitialized=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wuninitialized=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wuninitialized=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wuninitialized" = "xyes" ; then
      WARN="$WARN -Wuninitialized"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wpointer-arith" >&5
$as_echo_n "checking -Wpointer-arith... " >&6; }
  if test "x$pike_disabled_option_Wpointer_arith" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wpointer_arith+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wpointer-arith"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wpointer_arith=yes
else
  pike_cv_option_Wpointer_arith=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wpointer_arith=yes
else
  pike_cv_option_Wpointer_arith=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wpointer_arith=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wpointer_arith=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wpointer_arith" = "xyes" ; then
      WARN="$WARN -Wpointer-arith"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wchar-subscripts" >&5
$as_echo_n "checking -Wchar-subscripts... " >&6; }
  if test "x$pike_disabled_option_Wchar_subscripts" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wchar_subscripts+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wchar-subscripts"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wchar_subscripts=yes
else
  pike_cv_option_Wchar_subscripts=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wchar_subscripts=yes
else
  pike_cv_option_Wchar_subscripts=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wchar_subscripts=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wchar_subscripts=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wchar_subscripts" = "xyes" ; then
      WARN="$WARN -Wchar-subscripts"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wno-long-long" >&5
$as_echo_n "checking -Wno-long-long... " >&6; }
  if test "x$pike_disabled_option_Wno_long_long" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wno_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wno-long-long"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wno_long_long=yes
else
  pike_cv_option_Wno_long_long=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wno_long_long=yes
else
  pike_cv_option_Wno_long_long=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wno_long_long=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wno_long_long=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wno_long_long=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wno_long_long=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wno_long_long=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wno_long_long=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wno_long_long=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wno_long_long=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wno_long_long=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wno_long_long=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wno_long_long" = "xyes" ; then
      WARN="$WARN -Wno-long-long"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wdeclaration-after-statement" >&5
$as_echo_n "checking -Wdeclaration-after-statement... " >&6; }
  if test "x$pike_disabled_option_Wdeclaration_after_statement" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wdeclaration_after_statement+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wdeclaration-after-statement"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wdeclaration_after_statement=yes
else
  pike_cv_option_Wdeclaration_after_statement=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wdeclaration_after_statement=yes
else
  pike_cv_option_Wdeclaration_after_statement=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wdeclaration_after_statement=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wdeclaration_after_statement=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wdeclaration_after_statement" = "xyes" ; then
      WARN="$WARN -Wdeclaration-after-statement"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    if test "x${with_static_linking-}" = "xyes" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -static" >&5
$as_echo_n "checking -static... " >&6; }
  if test "x$pike_disabled_option_link_static" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_link_static+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -static"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_link_static=yes
else
  pike_cv_option_link_static=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_link_static=yes
else
  pike_cv_option_link_static=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_link_static=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_link_static=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_link_static=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_link_static=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_link_static=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_link_static=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_link_static=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_link_static=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_link_static=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_link_static=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_link_static" = "xyes" ; then
      CFLAGS="$CFLAGS -static"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    else
      :
    fi

    if test "x$with_gcov" = "xyes"; then
      # Support for gcov

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fprofile-arcs" >&5
$as_echo_n "checking -fprofile-arcs... " >&6; }
  if test "x$pike_disabled_option_fprofile_arcs" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fprofile_arcs+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fprofile-arcs"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fprofile_arcs=yes
else
  pike_cv_option_fprofile_arcs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fprofile_arcs=yes
else
  pike_cv_option_fprofile_arcs=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fprofile_arcs=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fprofile_arcs=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fprofile_arcs" = "xyes" ; then
      CFLAGS="$CFLAGS -fprofile-arcs"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -ftest-coverage" >&5
$as_echo_n "checking -ftest-coverage... " >&6; }
  if test "x$pike_disabled_option_ftest_coverage" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_ftest_coverage+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ftest-coverage"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_ftest_coverage=yes
else
  pike_cv_option_ftest_coverage=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_ftest_coverage=yes
else
  pike_cv_option_ftest_coverage=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ftest_coverage=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ftest_coverage=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ftest_coverage=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ftest_coverage=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ftest_coverage=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ftest_coverage=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ftest_coverage=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ftest_coverage=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ftest_coverage=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ftest_coverage=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_ftest_coverage" = "xyes" ; then
      CFLAGS="$CFLAGS -ftest-coverage"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    else :; fi

    if test "x$with_cdebug" = "xyes" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -ggdb" >&5
$as_echo_n "checking -ggdb... " >&6; }
  if test "x$pike_disabled_option_ggdb" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_ggdb+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ggdb"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_ggdb=yes
else
  pike_cv_option_ggdb=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_ggdb=yes
else
  pike_cv_option_ggdb=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ggdb=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ggdb=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ggdb=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ggdb=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ggdb=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ggdb=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ggdb=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ggdb=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ggdb=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ggdb=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_ggdb" = "xyes" ; then
      CFLAGS="$CFLAGS -ggdb"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fvar-tracking-assignments" >&5
$as_echo_n "checking -fvar-tracking-assignments... " >&6; }
  if test "x$pike_disabled_option_vartracking" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_vartracking+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fvar-tracking-assignments"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_vartracking=yes
else
  pike_cv_option_vartracking=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_vartracking=yes
else
  pike_cv_option_vartracking=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_vartracking=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_vartracking=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_vartracking=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_vartracking=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_vartracking=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_vartracking=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_vartracking=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_vartracking=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_vartracking=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_vartracking=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_vartracking" = "xyes" ; then
      CFLAGS="$CFLAGS -fvar-tracking-assignments"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    fi

    ##
    ## -fomit-frame-pointer does not work with egcs 1.1.1
    ## /Hubbe 1998-12-20
    ##
    #if test "x$with_cdebug" = "xno" ; then
    #  AC_SYS_COMPILER_FLAG(-fomit-frame-pointer,fomit_frame_pointer,OPTIMIZE)
    #else
    #  :
    #fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -funswitch-loops" >&5
$as_echo_n "checking -funswitch-loops... " >&6; }
  if test "x$pike_disabled_option_unswitch_loops" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_unswitch_loops+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -funswitch-loops"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_unswitch_loops=yes
else
  pike_cv_option_unswitch_loops=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_unswitch_loops=yes
else
  pike_cv_option_unswitch_loops=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_unswitch_loops=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_unswitch_loops=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_unswitch_loops=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_unswitch_loops=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_unswitch_loops=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_unswitch_loops=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_unswitch_loops=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_unswitch_loops=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_unswitch_loops=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_unswitch_loops=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_unswitch_loops" = "xyes" ; then
      CFLAGS="$CFLAGS -funswitch-loops"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

### Optimize for different SUN machines. If there is no working 'uname'
### no extra optimization will be done, but nothing should break either.
  case "`uname -m 2>/dev/null`" in
   sun4c)
    # The -msparclite option seems to generate assembler that /bin/as doesn't
    # understand.	/grubba 1998-07-17
    # AC_SYS_COMPILER_FLAG(-msparclite,sparclite,CFLAGS)
   ;;
   sun4m)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mv8" >&5
$as_echo_n "checking -mv8... " >&6; }
  if test "x$pike_disabled_option_microsparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_microsparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mv8"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_microsparc=yes
else
  pike_cv_option_microsparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_microsparc=yes
else
  pike_cv_option_microsparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_microsparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_microsparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_microsparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_microsparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_microsparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_microsparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_microsparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_microsparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_microsparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_microsparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_microsparc" = "xyes" ; then
      CFLAGS="$CFLAGS -mv8"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

   ;;
   sun4d)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
$as_echo_n "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_supersparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

   ;;
   sun4u)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=ultrasparc" >&5
$as_echo_n "checking -mcpu=ultrasparc... " >&6; }
  if test "x$pike_disabled_option_mcpu_ultrasparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
$as_echo_n "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_supersparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_ultrasparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=ultrasparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_ultrasparc=yes
else
  pike_cv_option_mcpu_ultrasparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_ultrasparc=yes
else
  pike_cv_option_mcpu_ultrasparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_ultrasparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_ultrasparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi

      if test "$pike_cv_option_mcpu_ultrasparc" = yes; then
        :

      # Some versions of gcc define __sparcv9 but aren't LP64.
      # Definition of __sparcv9 causes <sys/isa_defs.h> to define _LP64,
      # which is not a good thing for ILP32 systems...
      # Some versions of gcc define __sparc_v9__, which causes the
      # fix-included <limits.h> to think the same...
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
#include <sys/types.h>
#if defined(_LP64) || (LONG_MAX != 2147483647L)
#error "We might have a problem."
#endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else

        # We might have a problem...
        # Check that we indeed have a LP64 system.
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but LP64" >&5
$as_echo "yes, but LP64" >&6; }

        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long ... crosscompiling or tcc" >&5
$as_echo_n "checking size of long ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 17243 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long=4
        fi
      else
        ac_cv_sizeof_long=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



	# Note: the result for the following message is provided
	# by SYS_COMPILER_FLAG
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking are we really an LP64 system" >&5
$as_echo_n "checking are we really an LP64 system... " >&6; }
	if test "x$ac_cv_sizeof_long" = "x8"; then
	  :; #OK, we have an LP64 system!
	else
	  pike_cv_option_mcpu_ultrasparc=no
	fi

fi
rm -f conftest.err conftest.i conftest.$ac_ext

      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_ultrasparc" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=ultrasparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
$as_echo_n "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_supersparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi

   ;;
   sun4v)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=niagara" >&5
$as_echo_n "checking -mcpu=niagara... " >&6; }
  if test "x$pike_disabled_option_mcpu_niagara" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
$as_echo_n "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_supersparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_niagara+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=niagara"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_niagara=yes
else
  pike_cv_option_mcpu_niagara=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_niagara=yes
else
  pike_cv_option_mcpu_niagara=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_niagara=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_niagara=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi

      if test "$pike_cv_option_mcpu_niagara" = yes; then
        :

      # Some versions of gcc define __sparcv9 but aren't LP64.
      # Definition of __sparcv9 causes <sys/isa_defs.h> to define _LP64,
      # which is not a good thing for ILP32 systems...
      # Some versions of gcc define __sparc_v9__, which causes the
      # fix-included <limits.h> to think the same...
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
#include <sys/types.h>
#if defined(_LP64) || (LONG_MAX != 2147483647L)
#error "We might have a problem."
#endif

_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else

        # We might have a problem...
        # Check that we indeed have a LP64 system.
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but LP64" >&5
$as_echo "yes, but LP64" >&6; }

        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long ... crosscompiling or tcc" >&5
$as_echo_n "checking size of long ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 17807 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long=4
        fi
      else
        ac_cv_sizeof_long=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF



	# Note: the result for the following message is provided
	# by SYS_COMPILER_FLAG
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking are we really an LP64 system" >&5
$as_echo_n "checking are we really an LP64 system... " >&6; }
	if test "x$ac_cv_sizeof_long" = "x8"; then
	  :; #OK, we have an LP64 system!
	else
	  pike_cv_option_mcpu_niagara=no
	fi

fi
rm -f conftest.err conftest.i conftest.$ac_ext

      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_niagara" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=niagara"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -msupersparc" >&5
$as_echo_n "checking -msupersparc... " >&6; }
  if test "x$pike_disabled_option_supersparc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_supersparc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msupersparc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_supersparc=yes
else
  pike_cv_option_supersparc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_supersparc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_supersparc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_supersparc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_supersparc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_supersparc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_supersparc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_supersparc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_supersparc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_supersparc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_supersparc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_supersparc" = "xyes" ; then
      CFLAGS="$CFLAGS -msupersparc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi

   ;;
   i586)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=pentium" >&5
$as_echo_n "checking -mtune=pentium... " >&6; }
  if test "x$pike_disabled_option_mtune_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_pentium=yes
else
  pike_cv_option_mtune_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_pentium=yes
else
  pike_cv_option_mtune_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi

   ;;
   i686)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
$as_echo_n "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

#    AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS)
   ;;
   x86_64)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
$as_echo_n "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
$as_echo_n "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_m64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CFLAGS="$CFLAGS -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
$as_echo_n "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

   ;;
   i86pc)
     # Solaris x86
     case "`optisa \`isalist 2>/dev/null\` 2>/dev/null || isalist 2>/dev/null`" in
	*amd64*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m64" >&5
$as_echo_n "checking -m64... " >&6; }
  if test "x$pike_disabled_option_m64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
$as_echo_n "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_m64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_m64=yes
else
  pike_cv_option_m64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_m64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_m64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_m64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_m64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_m64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_m64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_m64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_m64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_m64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_m64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_m64" = "xyes" ; then
      CFLAGS="$CFLAGS -m64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
$as_echo_n "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

#         AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS)
	;;
        *pentium_pro*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=i686" >&5
$as_echo_n "checking -mtune=i686... " >&6; }
  if test "x$pike_disabled_option_mtune_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_i686=yes
else
  pike_cv_option_mtune_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=i686" >&5
$as_echo_n "checking -mcpu=i686... " >&6; }
  if test "x$pike_disabled_option_mcpu_i686" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_i686+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=i686"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_i686=yes
else
  pike_cv_option_mcpu_i686=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_i686=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_i686=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_i686=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_i686=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_i686=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_i686=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_i686=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_i686=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_i686" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=i686"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentiumpro" >&5
$as_echo_n "checking -mpentiumpro... " >&6; }
  if test "x$pike_disabled_option_pentiumpro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_pentiumpro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentiumpro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentiumpro=yes
else
  pike_cv_option_pentiumpro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentiumpro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentiumpro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentiumpro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentiumpro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentiumpro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentiumpro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentiumpro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentiumpro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentiumpro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentiumpro" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentiumpro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

#         AC_SYS_COMPILER_FLAG(-march=i686,march_i686,CFLAGS)
	;;
        *pentium*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=pentium" >&5
$as_echo_n "checking -mtune=pentium... " >&6; }
  if test "x$pike_disabled_option_mtune_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mtune_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_pentium=yes
else
  pike_cv_option_mtune_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_pentium=yes
else
  pike_cv_option_mtune_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=pentium" >&5
$as_echo_n "checking -mcpu=pentium... " >&6; }
  if test "x$pike_disabled_option_mcpu_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


  else
    if ${pike_cv_option_mcpu_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=pentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_pentium=yes
else
  pike_cv_option_mcpu_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=pentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mpentium" >&5
$as_echo_n "checking -mpentium... " >&6; }
  if test "x$pike_disabled_option_pentium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_pentium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mpentium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pentium=yes
else
  pike_cv_option_pentium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pentium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pentium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pentium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pentium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pentium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pentium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pentium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pentium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pentium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pentium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pentium" = "xyes" ; then
      CFLAGS="$CFLAGS -mpentium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -m486" >&5
$as_echo_n "checking -m486... " >&6; }
  if test "x$pike_disabled_option_486" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_486+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -m486"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_486=yes
else
  pike_cv_option_486=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_486=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_486=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_486=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_486=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_486=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_486=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_486=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_486=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_486=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_486=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_486" = "xyes" ; then
      CFLAGS="$CFLAGS -m486"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi


    fi
  fi


    fi
  fi

	;;
     esac
   ;;
   ia64)
     case "`uname -p`" in
       Iitanium*2)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=itanium2" >&5
$as_echo_n "checking -mtune=itanium2... " >&6; }
  if test "x$pike_disabled_option_mtune_itanium2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_mtune_itanium2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=itanium2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_itanium2=yes
else
  pike_cv_option_mtune_itanium2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_itanium2=yes
else
  pike_cv_option_mtune_itanium2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_itanium2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_itanium2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_itanium2" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=itanium2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

       ;;
       Iitanium)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=itanium1" >&5
$as_echo_n "checking -mtune=itanium1... " >&6; }
  if test "x$pike_disabled_option_mtune_itanium1" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_mtune_itanium1+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=itanium1"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mtune_itanium1=yes
else
  pike_cv_option_mtune_itanium1=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mtune_itanium1=yes
else
  pike_cv_option_mtune_itanium1=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mtune_itanium1=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mtune_itanium1=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mtune_itanium1" = "xyes" ; then
      CFLAGS="$CFLAGS -mtune=itanium1"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

       ;;
     esac
   ;;
   ppc64)
    case "`uname -p 2>/dev/null`" in
      Cell\ Broadband\ Engine*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=cell" >&5
$as_echo_n "checking -mcpu=cell... " >&6; }
  if test "x$pike_disabled_option_mcpu_cell" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_mcpu_cell+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=cell"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mcpu_cell=yes
else
  pike_cv_option_mcpu_cell=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mcpu_cell=yes
else
  pike_cv_option_mcpu_cell=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mcpu_cell=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mcpu_cell=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mcpu_cell=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mcpu_cell=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mcpu_cell=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mcpu_cell=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mcpu_cell=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mcpu_cell=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mcpu_cell=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mcpu_cell=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mcpu_cell" = "xyes" ; then
      CFLAGS="$CFLAGS -mcpu=cell"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      ;;
    esac
   ;;
  esac

  # AIX

  if test "x$pike_cv_sys_os" = "xAIX" ; then

    # Tell the linker to generate a large toc if needed
    #
    # This option is not needed on AIX 5L/ia64.
    if test "x`uname -p`" = "xia64"; then :; else

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -bbigtoc" >&5
$as_echo_n "checking -bbigtoc... " >&6; }
  if test "x$pike_disabled_option_bbigtoc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_bbigtoc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -bbigtoc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_bbigtoc=yes
else
  pike_cv_option_bbigtoc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_bbigtoc=yes
else
  pike_cv_option_bbigtoc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_bbigtoc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_bbigtoc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_bbigtoc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_bbigtoc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_bbigtoc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_bbigtoc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_bbigtoc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_bbigtoc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_bbigtoc" = "xyes" ; then
      LDFLAGS="$LDFLAGS -bbigtoc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wl" >&5
$as_echo_n "checking -Wl... " >&6; }
  if test "x$pike_disabled_option_Wlbbigtoc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Wlbbigtoc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wl,-bbigtoc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Wlbbigtoc=yes
else
  pike_cv_option_Wlbbigtoc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Wlbbigtoc=yes
else
  pike_cv_option_Wlbbigtoc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Wlbbigtoc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Wlbbigtoc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Wlbbigtoc" = "xyes" ; then
      LDFLAGS="$LDFLAGS -Wl,-bbigtoc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    fi

  fi



  if test "x$pike_cv_sys_os" = "xDarwin" ; then

    # aka MacOS X.
    # Foundation framework needed by JavaVM.framework. The OS X 10.1 linker
    # no longer includes indirect dependencies so we need to add them here.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -framework Foundation" >&5
$as_echo_n "checking -framework Foundation... " >&6; }
  if test "x$pike_disabled_option_framework_Foundation" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_framework_Foundation+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -framework Foundation"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_framework_Foundation=yes
else
  pike_cv_option_framework_Foundation=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_framework_Foundation=yes
else
  pike_cv_option_framework_Foundation=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_framework_Foundation=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_framework_Foundation=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_framework_Foundation=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_framework_Foundation=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_framework_Foundation=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_framework_Foundation=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_framework_Foundation=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_framework_Foundation=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_framework_Foundation=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_framework_Foundation=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_framework_Foundation" = "xyes" ; then
      LDFLAGS="$LDFLAGS -framework Foundation"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -framework System" >&5
$as_echo_n "checking -framework System... " >&6; }
  if test "x$pike_disabled_option_framework_System" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_framework_System+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -framework System"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_framework_System=yes
else
  pike_cv_option_framework_System=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_framework_System=yes
else
  pike_cv_option_framework_System=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_framework_System=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_framework_System=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_framework_System=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_framework_System=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_framework_System=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_framework_System=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_framework_System=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_framework_System=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_framework_System=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_framework_System=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_framework_System" = "xyes" ; then
      LDFLAGS="$LDFLAGS -framework System"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    # Needed for MakeDataExecutable which comes from CarbonLib

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -framework CoreServices" >&5
$as_echo_n "checking -framework CoreServices... " >&6; }
  if test "x$pike_disabled_option_framework_CoreServices" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_framework_CoreServices+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -framework CoreServices"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_framework_CoreServices=yes
else
  pike_cv_option_framework_CoreServices=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_framework_CoreServices=yes
else
  pike_cv_option_framework_CoreServices=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_framework_CoreServices=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_framework_CoreServices=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_framework_CoreServices" = "xyes" ; then
      LDFLAGS="$LDFLAGS -framework CoreServices"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    # -flat_namespace only needed for linking with libMallocDebug
    # AC_SYS_COMPILER_FLAG(-flat_namespace, flat_namespace, LDFLAGS)

    # Take care of warning when linking with GMP libraries (not on 64-bit)
    if test "x$with_abi" != "x64"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -read_only_relocs warning" >&5
$as_echo_n "checking -read_only_relocs warning... " >&6; }
  if test "x$pike_disabled_option_ro_relocs_warn" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_ro_relocs_warn+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -read_only_relocs warning"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_ro_relocs_warn=yes
else
  pike_cv_option_ro_relocs_warn=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_ro_relocs_warn=yes
else
  pike_cv_option_ro_relocs_warn=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ro_relocs_warn=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ro_relocs_warn=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_ro_relocs_warn" = "xyes" ; then
      LDFLAGS="$LDFLAGS -read_only_relocs warning"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    fi

    # Tune based on processor family
    case "`machine`" in
      i486)
        # Darwin x86 runs on Intel Core Solo/Duo (based on Pentium M) and newer
        if test "x$with_abi" != "x64"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -march=pentium-m" >&5
$as_echo_n "checking -march=pentium-m... " >&6; }
  if test "x$pike_disabled_option_arch_pentium_m" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_arch_pentium_m+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -march=pentium-m"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_arch_pentium_m=yes
else
  pike_cv_option_arch_pentium_m=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_arch_pentium_m=yes
else
  pike_cv_option_arch_pentium_m=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_arch_pentium_m=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_arch_pentium_m=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_arch_pentium_m" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -march=pentium-m"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -march=pentium-m"
      CXXFLAGS="$CXXFLAGS -march=pentium-m"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -msse3" >&5
$as_echo_n "checking -msse3... " >&6; }
  if test "x$pike_disabled_option_opt_sse3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_opt_sse3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -msse3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_opt_sse3=yes
else
  pike_cv_option_opt_sse3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_opt_sse3=yes
else
  pike_cv_option_opt_sse3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_opt_sse3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_opt_sse3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_opt_sse3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_opt_sse3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_opt_sse3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_opt_sse3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_opt_sse3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_opt_sse3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_opt_sse3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_opt_sse3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_opt_sse3" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -msse3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -msse3"
      CXXFLAGS="$CXXFLAGS -msse3"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mfpmath=sse" >&5
$as_echo_n "checking -mfpmath=sse... " >&6; }
  if test "x$pike_disabled_option_opt_mfpmath_sse" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_opt_mfpmath_sse+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mfpmath=sse"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_opt_mfpmath_sse=yes
else
  pike_cv_option_opt_mfpmath_sse=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_opt_mfpmath_sse=yes
else
  pike_cv_option_opt_mfpmath_sse=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_opt_mfpmath_sse=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_opt_mfpmath_sse=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_opt_mfpmath_sse" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mfpmath=sse"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mfpmath=sse"
      CXXFLAGS="$CXXFLAGS -mfpmath=sse"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

	fi

	# no-pic required for machine code to work

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mdynamic-no-pic" >&5
$as_echo_n "checking -mdynamic-no-pic... " >&6; }
  if test "x$pike_disabled_option_dynamicnopic" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_dynamicnopic+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mdynamic-no-pic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_dynamicnopic=yes
else
  pike_cv_option_dynamicnopic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_dynamicnopic=yes
else
  pike_cv_option_dynamicnopic=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_dynamicnopic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_dynamicnopic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_dynamicnopic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_dynamicnopic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_dynamicnopic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_dynamicnopic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_dynamicnopic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_dynamicnopic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_dynamicnopic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_dynamicnopic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_dynamicnopic" = "xyes" ; then
      OSFLAGS="$OSFLAGS -mdynamic-no-pic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


	# Silence warnings about not working on systems older than the base
	# version of the current machine. We'll convert e.g. 10.5.8 to 1050.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -DMAC_OS_X_VERSION_MIN_REQUIRED=\`sw_vers -productVersion | tr -d . | cut -c -3\`0" >&5
$as_echo_n "checking -DMAC_OS_X_VERSION_MIN_REQUIRED=\`sw_vers -productVersion | tr -d . | cut -c -3\`0... " >&6; }
  if test "x$pike_disabled_option_osxminversion" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_osxminversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=`sw_vers -productVersion | tr -d . | cut -c -3`0"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_osxminversion=yes
else
  pike_cv_option_osxminversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_osxminversion=yes
else
  pike_cv_option_osxminversion=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_osxminversion=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_osxminversion=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_osxminversion=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_osxminversion=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_osxminversion=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_osxminversion=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_osxminversion=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_osxminversion=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_osxminversion=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_osxminversion=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_osxminversion" = "xyes" ; then
      CFLAGS="$CFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=`sw_vers -productVersion | tr -d . | cut -c -3`0"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      ;;
      ppc970|ppc7450|ppc7400)
	# Improve performance on G4 and G5. Note that if the build machine
	# is a G4 or newer the resulting pike won't run on a G3.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=7400" >&5
$as_echo_n "checking -mcpu=7400... " >&6; }
  if test "x$pike_disabled_option_cpu7400" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_cpu7400+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=7400"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_cpu7400=yes
else
  pike_cv_option_cpu7400=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_cpu7400=yes
else
  pike_cv_option_cpu7400=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cpu7400=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cpu7400=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cpu7400=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cpu7400=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cpu7400=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cpu7400=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cpu7400=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cpu7400=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cpu7400=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cpu7400=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_cpu7400" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mcpu=7400"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mcpu=7400"
      CXXFLAGS="$CXXFLAGS -mcpu=7400"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=7400" >&5
$as_echo_n "checking -mtune=7400... " >&6; }
  if test "x$pike_disabled_option_tune7400" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_tune7400+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=7400"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_tune7400=yes
else
  pike_cv_option_tune7400=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_tune7400=yes
else
  pike_cv_option_tune7400=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_tune7400=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_tune7400=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_tune7400=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_tune7400=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_tune7400=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_tune7400=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_tune7400=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_tune7400=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_tune7400=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_tune7400=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_tune7400" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mtune=7400"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mtune=7400"
      CXXFLAGS="$CXXFLAGS -mtune=7400"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      ;;
      *)
        # G3 is the baseline on PPC since Mac OS X doesn't support anything
        # older.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mcpu=750" >&5
$as_echo_n "checking -mcpu=750... " >&6; }
  if test "x$pike_disabled_option_cpu750" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_cpu750+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mcpu=750"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_cpu750=yes
else
  pike_cv_option_cpu750=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_cpu750=yes
else
  pike_cv_option_cpu750=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cpu750=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cpu750=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cpu750=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cpu750=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cpu750=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cpu750=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cpu750=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cpu750=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cpu750=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cpu750=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_cpu750" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mcpu=750"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mcpu=750"
      CXXFLAGS="$CXXFLAGS -mcpu=750"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mtune=750" >&5
$as_echo_n "checking -mtune=750... " >&6; }
  if test "x$pike_disabled_option_tune750" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_tune750+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mtune=750"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_tune750=yes
else
  pike_cv_option_tune750=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_tune750=yes
else
  pike_cv_option_tune750=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_tune750=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_tune750=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_tune750=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_tune750=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_tune750=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_tune750=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_tune750=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_tune750=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_tune750=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_tune750=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_tune750" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mtune=750"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mtune=750"
      CXXFLAGS="$CXXFLAGS -mtune=750"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      ;;
    esac

  fi



  if test "x$pike_cv_sys_os" = "xLinux" ; then

  :
  # The following segment is obsolete, since executable memory is
  # now allocated with mmap instead of with malloc().
  #	/grubba 2005-06-09
  #
  #     if test "x$with_machine_code" = "xno"; then :; else
  #       # WORKAROUND: mprotect(PROT_EXEC) doesn't work on Linux/x86.
  #       # Try to set the stackexec flag on the binary.
  #       # First try -z execstack (ld).
  #       AC_SYS_COMPILER_FLAG([-z execstack], z_execstack, LDFLAGS, [
  #         # No, try passing it directly to the linker.
  #         AC_SYS_COMPILER_FLAG([-Wl,-z,execstack], Wl_z_execstack, LDFLAGS, [
  # 	  # No, try --execstack (gas).
  # 	  AC_SYS_COMPILER_FLAG([--execstack], execstack, CFLAGS, [
  # 	    # No, try passing it directly to the assembler.
  # 	    AC_SYS_COMPILER_FLAG([-Wa,--execstack], Wa_execstack, CFLAGS, [
  # 	      # No.
  # 	      # FIXME: Add support for use of chstk(1).
  # 	      PIKE_MSG_WARN([Could not find any way to enable executable stack.])
  # 	    ])
  # 	  ])
  # 	])
  #       ])
  #     fi

  fi


  elif test "x${TCC-}" = xyes ; then

    # Yikes! We're using the TenDRA compiler!

    # Make sure we can use the system headerfiles...
    # Already done by the CC test in aclocal.m4.
    # AC_SYS_COMPILER_FLAG(-Ysystem, ysystem, CPPFLAGS)

    # Use lenient ANSI compliance...
    #AC_SYS_COMPILER_FLAG(-Xa, xa, CFLAGS)

    # Find out where libtdf.a is hidden.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine dependant library directory" >&5
$as_echo_n "checking for machine dependant library directory... " >&6; }
    if ${pike_cv_tcc_lib_path+:} false; then :
  $as_echo_n "(cached) " >&6
else

      pike_cv_tcc_lib_path="`${CC-cc} -dry conftest.c -i 2>&1 | sed -e '/tdfc/s/bin\/tdfc.*/lib\/sys/p' -ed| head -n 1`"
      if test -d "$pike_cv_tcc_lib_path/." ; then :; else
        # Failed.
        pike_cv_tcc_lib_path="no"
      fi

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_tcc_lib_path" >&5
$as_echo "$pike_cv_tcc_lib_path" >&6; }

    if test "$pike_cv_tcc_lib_path" = "no" ; then :; else
      LDFLAGS="$LDFLAGS -L$pike_cv_tcc_lib_path"

      # This library is needed for 64bit support on 32bit machines/OS's.
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __TDFUnot in -ltdf" >&5
$as_echo_n "checking for __TDFUnot in -ltdf... " >&6; }
if ${ac_cv_lib_tdf___TDFUnot+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltdf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char __TDFUnot ();
int
main ()
{
return __TDFUnot ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_tdf___TDFUnot=yes
else
  ac_cv_lib_tdf___TDFUnot=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tdf___TDFUnot" >&5
$as_echo "$ac_cv_lib_tdf___TDFUnot" >&6; }
if test "x$ac_cv_lib_tdf___TDFUnot" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBTDF 1
_ACEOF

  LIBS="-ltdf $LIBS"

fi

    fi

  else

    # Assume system compiler "cc".

    if test "x${with_static_linking-}" = "xyes" ; then

  if test "x$pike_cv_sys_os" = "xAIX" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wl" >&5
$as_echo_n "checking -Wl... " >&6; }
  if test "x$pike_disabled_option_wl_link_static" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_wl_link_static+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wl,-bstatic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_wl_link_static=yes
else
  pike_cv_option_wl_link_static=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_wl_link_static=yes
else
  pike_cv_option_wl_link_static=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wl_link_static=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wl_link_static=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wl_link_static=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wl_link_static=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wl_link_static=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wl_link_static=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wl_link_static=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wl_link_static=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wl_link_static=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wl_link_static=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_wl_link_static" = "xyes" ; then
      CFLAGS="$CFLAGS -Wl,-bstatic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS} -bstatic"

  fi



  if test "x$pike_cv_sys_os" = "xOSF1" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -non_shared" >&5
$as_echo_n "checking -non_shared... " >&6; }
  if test "x$pike_disabled_option_non_shared" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_non_shared+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -non_shared"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_non_shared=yes
else
  pike_cv_option_non_shared=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_non_shared=yes
else
  pike_cv_option_non_shared=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_non_shared=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_non_shared=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_non_shared=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_non_shared=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_non_shared=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_non_shared=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_non_shared=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_non_shared=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_non_shared=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_non_shared=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_non_shared" = "xyes" ; then
      CFLAGS="$CFLAGS -non_shared"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS} -non_shared"

  fi



  if test "x$pike_cv_sys_os" = "xIRIX" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -non_shared" >&5
$as_echo_n "checking -non_shared... " >&6; }
  if test "x$pike_disabled_option_non_shared" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_non_shared+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -non_shared"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_non_shared=yes
else
  pike_cv_option_non_shared=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_non_shared=yes
else
  pike_cv_option_non_shared=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_non_shared=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_non_shared=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_non_shared=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_non_shared=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_non_shared=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_non_shared=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_non_shared=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_non_shared=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_non_shared=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_non_shared=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_non_shared" = "xyes" ; then
      CFLAGS="$CFLAGS -non_shared"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS} -B static"

  fi


      # how do you link statically on HP-UX ?
    else
      :
    fi

### Non-gcc thingies. This should probably be enhanced...


    if test "x$with_cdebug" = "xyes" ; then
      # FIXME:
      # Maybe should remove the -g flag if this succeeds.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -g3" >&5
$as_echo_n "checking -g3... " >&6; }
  if test "x$pike_disabled_option_g3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_g3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -g3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_g3=yes
else
  pike_cv_option_g3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_g3=yes
else
  pike_cv_option_g3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_g3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_g3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_g3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_g3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_g3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_g3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_g3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_g3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_g3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_g3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_g3" = "xyes" ; then
      CFLAGS="$CFLAGS -g3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -trapuv" >&5
$as_echo_n "checking -trapuv... " >&6; }
  if test "x$pike_disabled_option_trapuv" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_trapuv+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -trapuv"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_trapuv=yes
else
  pike_cv_option_trapuv=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_trapuv=yes
else
  pike_cv_option_trapuv=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_trapuv=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_trapuv=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_trapuv=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_trapuv=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_trapuv=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_trapuv=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_trapuv=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_trapuv=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_trapuv=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_trapuv=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_trapuv" = "xyes" ; then
      WARN="$WARN -trapuv"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

    fi

    # Solaris

  if test "x$pike_cv_sys_os" = "xSolaris" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fast" >&5
$as_echo_n "checking -fast... " >&6; }
  if test "x$pike_disabled_option_fast" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fast+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fast"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fast=yes
else
  pike_cv_option_fast=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fast=yes
else
  pike_cv_option_fast=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fast=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fast=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fast=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fast=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fast=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fast=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fast=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fast=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fast=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fast=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fast" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -fast"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -fast"
      CXXFLAGS="$CXXFLAGS -fast"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

        if test "x$with_abi" = "x64"; then
          # -fast implies -xarch=native, which implies 32-bit ABI.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xtarget=generic64" >&5
$as_echo_n "checking -xtarget=generic64... " >&6; }
  if test "x$pike_disabled_option_xtarget_generic64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xtarget_generic64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xtarget=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xtarget_generic64=yes
else
  pike_cv_option_xtarget_generic64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xtarget_generic64=yes
else
  pike_cv_option_xtarget_generic64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xtarget_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xtarget_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xtarget_generic64" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -xtarget=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -xtarget=generic64"
      CXXFLAGS="$CXXFLAGS -xtarget=generic64"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xarch=generic64" >&5
$as_echo_n "checking -xarch=generic64... " >&6; }
  if test "x$pike_disabled_option_xarch_generic64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xarch_generic64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xarch=generic64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xarch_generic64=yes
else
  pike_cv_option_xarch_generic64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xarch_generic64=yes
else
  pike_cv_option_xarch_generic64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xarch_generic64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xarch_generic64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xarch_generic64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xarch_generic64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xarch_generic64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xarch_generic64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xarch_generic64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xarch_generic64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xarch_generic64" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -xarch=generic64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -xarch=generic64"
      CXXFLAGS="$CXXFLAGS -xarch=generic64"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        fi
        # -fast implies -fns, which turns off gradual underflow.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fns=no" >&5
$as_echo_n "checking -fns=no... " >&6; }
  if test "x$pike_disabled_option_fns_no" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fns_no+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fns=no"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fns_no=yes
else
  pike_cv_option_fns_no=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fns_no=yes
else
  pike_cv_option_fns_no=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fns_no=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fns_no=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fns_no=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fns_no=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fns_no=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fns_no=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fns_no=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fns_no=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fns_no=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fns_no=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fns_no" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -fns=no"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -fns=no"
      CXXFLAGS="$CXXFLAGS -fns=no"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xdepend" >&5
$as_echo_n "checking -xdepend... " >&6; }
  if test "x$pike_disabled_option_xdepend" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xdepend+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xdepend"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xdepend=yes
else
  pike_cv_option_xdepend=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xdepend=yes
else
  pike_cv_option_xdepend=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xdepend=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xdepend=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xdepend=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xdepend=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xdepend=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xdepend=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xdepend=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xdepend=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xdepend=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xdepend=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xdepend" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -xdepend"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -xdepend"
      CXXFLAGS="$CXXFLAGS -xdepend"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xs" >&5
$as_echo_n "checking -xs... " >&6; }
  if test "x$pike_disabled_option_xs" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xs+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xs"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xs=yes
else
  pike_cv_option_xs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xs=yes
else
  pike_cv_option_xs=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xs=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xs=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xs=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xs=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xs=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xs=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xs=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xs=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xs=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xs=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xs" = "xyes" ; then
      CFLAGS="$CFLAGS -xs"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      # Causes __STDC__ to be 1 which causes several headerfiles to behave
      # differently.
      # AC_SYS_OS_COMPILER_FLAG(-Xc,Xc,WARN)

  fi


    # AIX

  if test "x$pike_cv_sys_os" = "xAIX" ; then

      # This one is needed to get the compiler to fail on errors,
      # which is needed for several configure-tests.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qhalt=e" >&5
$as_echo_n "checking -qhalt=e... " >&6; }
  if test "x$pike_disabled_option_qhalt_e" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qhalt_e+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qhalt=e"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qhalt_e=yes
else
  pike_cv_option_qhalt_e=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qhalt_e=yes
else
  pike_cv_option_qhalt_e=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qhalt_e=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qhalt_e=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qhalt_e=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qhalt_e=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qhalt_e=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qhalt_e=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qhalt_e=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qhalt_e=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qhalt_e" = "xyes" ; then
      CFLAGS="$CFLAGS -qhalt=e"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qro" >&5
$as_echo_n "checking -qro... " >&6; }
  if test "x$pike_disabled_option_qro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qro=yes
else
  pike_cv_option_qro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qro=yes
else
  pike_cv_option_qro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qro" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -qro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -qro"
      CXXFLAGS="$CXXFLAGS -qro"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qfold" >&5
$as_echo_n "checking -qfold... " >&6; }
  if test "x$pike_disabled_option_qfold" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qfold+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qfold"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qfold=yes
else
  pike_cv_option_qfold=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qfold=yes
else
  pike_cv_option_qfold=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qfold=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qfold=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qfold=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qfold=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qfold=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qfold=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qfold=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qfold=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qfold=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qfold=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qfold" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -qfold"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -qfold"
      CXXFLAGS="$CXXFLAGS -qfold"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qwarn64" >&5
$as_echo_n "checking -qwarn64... " >&6; }
  if test "x$pike_disabled_option_qwarn64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qwarn64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qwarn64"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qwarn64=yes
else
  pike_cv_option_qwarn64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qwarn64=yes
else
  pike_cv_option_qwarn64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qwarn64=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qwarn64=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qwarn64=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qwarn64=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qwarn64=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qwarn64=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qwarn64=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qwarn64=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qwarn64=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qwarn64=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qwarn64" = "xyes" ; then
      WARN="$WARN -qwarn64"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qflag=w:w" >&5
$as_echo_n "checking -qflag=w:w... " >&6; }
  if test "x$pike_disabled_option_qflag_w_w" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qflag_w_w+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qflag=w:w"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qflag_w_w=yes
else
  pike_cv_option_qflag_w_w=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qflag_w_w=yes
else
  pike_cv_option_qflag_w_w=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qflag_w_w=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qflag_w_w=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qflag_w_w=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qflag_w_w=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qflag_w_w=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qflag_w_w=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qflag_w_w=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qflag_w_w=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qflag_w_w=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qflag_w_w=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qflag_w_w" = "xyes" ; then
      WARN="$WARN -qflag=w:w"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=cmp" >&5
$as_echo_n "checking -qinfo=cmp... " >&6; }
  if test "x$pike_disabled_option_qinfo_cmp" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_cmp+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cmp"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_cmp=yes
else
  pike_cv_option_qinfo_cmp=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_cmp=yes
else
  pike_cv_option_qinfo_cmp=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cmp=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cmp=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_cmp" = "xyes" ; then
      WARN="$WARN -qinfo=cmp"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=cnd" >&5
$as_echo_n "checking -qinfo=cnd... " >&6; }
  if test "x$pike_disabled_option_qinfo_cnd" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_cnd+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cnd"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_cnd=yes
else
  pike_cv_option_qinfo_cnd=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_cnd=yes
else
  pike_cv_option_qinfo_cnd=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cnd=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cnd=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_cnd" = "xyes" ; then
      WARN="$WARN -qinfo=cnd"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=cns" >&5
$as_echo_n "checking -qinfo=cns... " >&6; }
  if test "x$pike_disabled_option_qinfo_cns" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_cns+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cns"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_cns=yes
else
  pike_cv_option_qinfo_cns=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_cns=yes
else
  pike_cv_option_qinfo_cns=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cns=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cns=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cns=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cns=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cns=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cns=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cns=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cns=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cns=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cns=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_cns" = "xyes" ; then
      WARN="$WARN -qinfo=cns"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=cnv" >&5
$as_echo_n "checking -qinfo=cnv... " >&6; }
  if test "x$pike_disabled_option_qinfo_cnv" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_cnv+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=cnv"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_cnv=yes
else
  pike_cv_option_qinfo_cnv=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_cnv=yes
else
  pike_cv_option_qinfo_cnv=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_cnv=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_cnv=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_cnv" = "xyes" ; then
      WARN="$WARN -qinfo=cnv"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=dcl" >&5
$as_echo_n "checking -qinfo=dcl... " >&6; }
  if test "x$pike_disabled_option_qinfo_dcl" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_dcl+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=dcl"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_dcl=yes
else
  pike_cv_option_qinfo_dcl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_dcl=yes
else
  pike_cv_option_qinfo_dcl=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_dcl=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_dcl=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_dcl" = "xyes" ; then
      WARN="$WARN -qinfo=dcl"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=eff" >&5
$as_echo_n "checking -qinfo=eff... " >&6; }
  if test "x$pike_disabled_option_qinfo_eff" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_eff+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=eff"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_eff=yes
else
  pike_cv_option_qinfo_eff=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_eff=yes
else
  pike_cv_option_qinfo_eff=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_eff=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_eff=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_eff=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_eff=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_eff=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_eff=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_eff=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_eff=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_eff=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_eff=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_eff" = "xyes" ; then
      WARN="$WARN -qinfo=eff"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=enu" >&5
$as_echo_n "checking -qinfo=enu... " >&6; }
  if test "x$pike_disabled_option_qinfo_enu" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_enu+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=enu"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_enu=yes
else
  pike_cv_option_qinfo_enu=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_enu=yes
else
  pike_cv_option_qinfo_enu=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_enu=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_enu=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_enu=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_enu=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_enu=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_enu=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_enu=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_enu=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_enu=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_enu=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_enu" = "xyes" ; then
      WARN="$WARN -qinfo=enu"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=ext" >&5
$as_echo_n "checking -qinfo=ext... " >&6; }
  if test "x$pike_disabled_option_qinfo_ext" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_ext+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ext"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_ext=yes
else
  pike_cv_option_qinfo_ext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_ext=yes
else
  pike_cv_option_qinfo_ext=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ext=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ext=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ext=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ext=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ext=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ext=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ext=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ext=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ext=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ext=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_ext" = "xyes" ; then
      WARN="$WARN -qinfo=ext"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=gen" >&5
$as_echo_n "checking -qinfo=gen... " >&6; }
  if test "x$pike_disabled_option_qinfo_gen" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_gen+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=gen"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_gen=yes
else
  pike_cv_option_qinfo_gen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_gen=yes
else
  pike_cv_option_qinfo_gen=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_gen=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_gen=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_gen=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_gen=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_gen=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_gen=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_gen=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_gen=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_gen=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_gen=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_gen" = "xyes" ; then
      WARN="$WARN -qinfo=gen"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=gnr" >&5
$as_echo_n "checking -qinfo=gnr... " >&6; }
  if test "x$pike_disabled_option_qinfo_gnr" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_gnr+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=gnr"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_gnr=yes
else
  pike_cv_option_qinfo_gnr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_gnr=yes
else
  pike_cv_option_qinfo_gnr=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_gnr=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_gnr=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_gnr" = "xyes" ; then
      WARN="$WARN -qinfo=gnr"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=got" >&5
$as_echo_n "checking -qinfo=got... " >&6; }
  if test "x$pike_disabled_option_qinfo_got" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_got+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=got"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_got=yes
else
  pike_cv_option_qinfo_got=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_got=yes
else
  pike_cv_option_qinfo_got=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_got=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_got=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_got=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_got=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_got=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_got=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_got=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_got=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_got=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_got=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_got" = "xyes" ; then
      WARN="$WARN -qinfo=got"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=ini" >&5
$as_echo_n "checking -qinfo=ini... " >&6; }
  if test "x$pike_disabled_option_qinfo_ini" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_ini+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ini"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_ini=yes
else
  pike_cv_option_qinfo_ini=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_ini=yes
else
  pike_cv_option_qinfo_ini=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ini=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ini=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ini=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ini=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ini=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ini=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ini=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ini=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ini=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ini=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_ini" = "xyes" ; then
      WARN="$WARN -qinfo=ini"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=inl" >&5
$as_echo_n "checking -qinfo=inl... " >&6; }
  if test "x$pike_disabled_option_qinfo_inl" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_inl+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=inl"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_inl=yes
else
  pike_cv_option_qinfo_inl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_inl=yes
else
  pike_cv_option_qinfo_inl=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_inl=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_inl=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_inl=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_inl=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_inl=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_inl=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_inl=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_inl=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_inl=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_inl=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_inl" = "xyes" ; then
      WARN="$WARN -qinfo=inl"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=lan" >&5
$as_echo_n "checking -qinfo=lan... " >&6; }
  if test "x$pike_disabled_option_qinfo_lan" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_lan+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=lan"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_lan=yes
else
  pike_cv_option_qinfo_lan=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_lan=yes
else
  pike_cv_option_qinfo_lan=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_lan=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_lan=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_lan=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_lan=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_lan=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_lan=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_lan=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_lan=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_lan=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_lan=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_lan" = "xyes" ; then
      WARN="$WARN -qinfo=lan"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=obs" >&5
$as_echo_n "checking -qinfo=obs... " >&6; }
  if test "x$pike_disabled_option_qinfo_obs" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_obs+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=obs"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_obs=yes
else
  pike_cv_option_qinfo_obs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_obs=yes
else
  pike_cv_option_qinfo_obs=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_obs=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_obs=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_obs=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_obs=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_obs=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_obs=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_obs=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_obs=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_obs=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_obs=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_obs" = "xyes" ; then
      WARN="$WARN -qinfo=obs"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=ord" >&5
$as_echo_n "checking -qinfo=ord... " >&6; }
  if test "x$pike_disabled_option_qinfo_ord" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_ord+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ord"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_ord=yes
else
  pike_cv_option_qinfo_ord=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_ord=yes
else
  pike_cv_option_qinfo_ord=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ord=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ord=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ord=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ord=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ord=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ord=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ord=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ord=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ord=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ord=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_ord" = "xyes" ; then
      WARN="$WARN -qinfo=ord"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=par" >&5
$as_echo_n "checking -qinfo=par... " >&6; }
  if test "x$pike_disabled_option_qinfo_par" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_par+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=par"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_par=yes
else
  pike_cv_option_qinfo_par=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_par=yes
else
  pike_cv_option_qinfo_par=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_par=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_par=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_par=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_par=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_par=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_par=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_par=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_par=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_par=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_par=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_par" = "xyes" ; then
      WARN="$WARN -qinfo=par"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=por" >&5
$as_echo_n "checking -qinfo=por... " >&6; }
  if test "x$pike_disabled_option_qinfo_por" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_por+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=por"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_por=yes
else
  pike_cv_option_qinfo_por=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_por=yes
else
  pike_cv_option_qinfo_por=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_por=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_por=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_por=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_por=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_por=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_por=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_por=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_por=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_por=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_por=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_por" = "xyes" ; then
      WARN="$WARN -qinfo=por"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


      # ppc disabled since it complains about the system header files.
      # AC_SYS_COMPILER_FLAG_QINFO(ppc)
      # ppt disabled since tracing the preprocessor isn't interresting.
      # AC_SYS_COMPILER_FLAG_QINFO(ppt)


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=pro" >&5
$as_echo_n "checking -qinfo=pro... " >&6; }
  if test "x$pike_disabled_option_qinfo_pro" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_pro+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=pro"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_pro=yes
else
  pike_cv_option_qinfo_pro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_pro=yes
else
  pike_cv_option_qinfo_pro=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_pro=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_pro=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_pro=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_pro=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_pro=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_pro=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_pro=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_pro=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_pro=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_pro=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_pro" = "xyes" ; then
      WARN="$WARN -qinfo=pro"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=rea" >&5
$as_echo_n "checking -qinfo=rea... " >&6; }
  if test "x$pike_disabled_option_qinfo_rea" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_rea+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=rea"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_rea=yes
else
  pike_cv_option_qinfo_rea=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_rea=yes
else
  pike_cv_option_qinfo_rea=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_rea=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_rea=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_rea=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_rea=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_rea=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_rea=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_rea=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_rea=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_rea=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_rea=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_rea" = "xyes" ; then
      WARN="$WARN -qinfo=rea"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=ret" >&5
$as_echo_n "checking -qinfo=ret... " >&6; }
  if test "x$pike_disabled_option_qinfo_ret" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_ret+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=ret"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_ret=yes
else
  pike_cv_option_qinfo_ret=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_ret=yes
else
  pike_cv_option_qinfo_ret=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_ret=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_ret=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_ret=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_ret=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_ret=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_ret=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_ret=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_ret=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_ret=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_ret=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_ret" = "xyes" ; then
      WARN="$WARN -qinfo=ret"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


      # trd disabled, since it adds extra errors (in particular 1506-419).
      # AC_SYS_COMPILER_FLAG_QINFO(trd)


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=tru" >&5
$as_echo_n "checking -qinfo=tru... " >&6; }
  if test "x$pike_disabled_option_qinfo_tru" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_tru+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=tru"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_tru=yes
else
  pike_cv_option_qinfo_tru=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_tru=yes
else
  pike_cv_option_qinfo_tru=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_tru=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_tru=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_tru=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_tru=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_tru=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_tru=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_tru=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_tru=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_tru=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_tru=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_tru" = "xyes" ; then
      WARN="$WARN -qinfo=tru"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=uni" >&5
$as_echo_n "checking -qinfo=uni... " >&6; }
  if test "x$pike_disabled_option_qinfo_uni" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_uni+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=uni"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_uni=yes
else
  pike_cv_option_qinfo_uni=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_uni=yes
else
  pike_cv_option_qinfo_uni=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_uni=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_uni=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_uni=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_uni=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_uni=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_uni=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_uni=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_uni=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_uni=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_uni=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_uni" = "xyes" ; then
      WARN="$WARN -qinfo=uni"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qinfo=use" >&5
$as_echo_n "checking -qinfo=use... " >&6; }
  if test "x$pike_disabled_option_qinfo_use" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qinfo_use+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qinfo=use"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qinfo_use=yes
else
  pike_cv_option_qinfo_use=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qinfo_use=yes
else
  pike_cv_option_qinfo_use=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qinfo_use=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qinfo_use=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qinfo_use=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qinfo_use=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qinfo_use=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qinfo_use=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qinfo_use=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qinfo_use=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qinfo_use=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qinfo_use=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qinfo_use" = "xyes" ; then
      WARN="$WARN -qinfo=use"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


      # AC_SYS_COMPILER_FLAG(-qalias=addr,qalias_addr,OPTIMIZE)
      # AC_SYS_COMPILER_FLAG(-qlibansi,qlibansi,OPTIMIZE)

      # Suppress warnings and informational messages we aren't interested in.

      # 1506-010 (W) Macro XX invoked with a null argument for parameter Z.


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qsuppress=1506-010" >&5
$as_echo_n "checking -qsuppress=1506-010... " >&6; }
  if test "x$pike_disabled_option_qsuppress_1506_010" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qsuppress_1506_010+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qsuppress=1506-010"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qsuppress_1506_010=yes
else
  pike_cv_option_qsuppress_1506_010=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qsuppress_1506_010=yes
else
  pike_cv_option_qsuppress_1506_010=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qsuppress_1506_010=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qsuppress_1506_010=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qsuppress_1506_010" = "xyes" ; then
      WARN="$WARN -qsuppress=1506-010"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


      # 1506-219 (W) #line value 40140 too large.


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qsuppress=1506-219" >&5
$as_echo_n "checking -qsuppress=1506-219... " >&6; }
  if test "x$pike_disabled_option_qsuppress_1506_219" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qsuppress_1506_219+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qsuppress=1506-219"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qsuppress_1506_219=yes
else
  pike_cv_option_qsuppress_1506_219=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qsuppress_1506_219=yes
else
  pike_cv_option_qsuppress_1506_219=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qsuppress_1506_219=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qsuppress_1506_219=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qsuppress_1506_219" = "xyes" ; then
      CPPFLAGS="$CPPFLAGS -qsuppress=1506-219"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi



      # Tell the linker to generate a large toc if needed
      #
      # This option is not needed on AIX 5L/ia64.
      if test "x`uname -p`" = "xia64"; then :; else

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -bbigtoc" >&5
$as_echo_n "checking -bbigtoc... " >&6; }
  if test "x$pike_disabled_option_bbigtoc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_bbigtoc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -bbigtoc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_bbigtoc=yes
else
  pike_cv_option_bbigtoc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_bbigtoc=yes
else
  pike_cv_option_bbigtoc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_bbigtoc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_bbigtoc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_bbigtoc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_bbigtoc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_bbigtoc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_bbigtoc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_bbigtoc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_bbigtoc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_bbigtoc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_bbigtoc" = "xyes" ; then
      LDFLAGS="$LDFLAGS -bbigtoc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      fi

  fi


    # HP-UX

  if test "x$pike_cv_sys_os" = "xHP-UX" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -D__STDC_EXT__" >&5
$as_echo_n "checking -D__STDC_EXT__... " >&6; }
  if test "x$pike_disabled_option_stdc_ext" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_stdc_ext+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -D__STDC_EXT__"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_stdc_ext=yes
else
  pike_cv_option_stdc_ext=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_stdc_ext=yes
else
  pike_cv_option_stdc_ext=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_stdc_ext=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_stdc_ext=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_stdc_ext=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_stdc_ext=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_stdc_ext=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_stdc_ext=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_stdc_ext=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_stdc_ext=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_stdc_ext=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_stdc_ext=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_stdc_ext" = "xyes" ; then
      CFLAGS="$CFLAGS -D__STDC_EXT__"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wp" >&5
$as_echo_n "checking -Wp... " >&6; }
  if test "x$pike_disabled_option_cpp_buffer_size" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_cpp_buffer_size+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Wp,-H50000"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_cpp_buffer_size=yes
else
  pike_cv_option_cpp_buffer_size=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_cpp_buffer_size=yes
else
  pike_cv_option_cpp_buffer_size=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cpp_buffer_size=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cpp_buffer_size=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_cpp_buffer_size" = "xyes" ; then
      CFLAGS="$CFLAGS -Wp,-H50000"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking +ESlit" >&5
$as_echo_n "checking +ESlit... " >&6; }
  if test "x$pike_disabled_option_plus_ESlit" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_plus_ESlit+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +ESlit"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_plus_ESlit=yes
else
  pike_cv_option_plus_ESlit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_plus_ESlit=yes
else
  pike_cv_option_plus_ESlit=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_ESlit=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_ESlit=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_ESlit=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_ESlit=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_ESlit=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_ESlit=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_ESlit=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_ESlit=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_ESlit=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_ESlit=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_plus_ESlit" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +ESlit"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +ESlit"
      CXXFLAGS="$CXXFLAGS +ESlit"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking +Odataprefetch" >&5
$as_echo_n "checking +Odataprefetch... " >&6; }
  if test "x$pike_disabled_option_plus_Odataprefetch" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_plus_Odataprefetch+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +Odataprefetch"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_plus_Odataprefetch=yes
else
  pike_cv_option_plus_Odataprefetch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_plus_Odataprefetch=yes
else
  pike_cv_option_plus_Odataprefetch=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_Odataprefetch=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_Odataprefetch=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_plus_Odataprefetch" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +Odataprefetch"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +Odataprefetch"
      CXXFLAGS="$CXXFLAGS +Odataprefetch"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking +Ofailsafe" >&5
$as_echo_n "checking +Ofailsafe... " >&6; }
  if test "x$pike_disabled_option_plus_Ofailsafe" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_plus_Ofailsafe+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS +Ofailsafe"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_plus_Ofailsafe=yes
else
  pike_cv_option_plus_Ofailsafe=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_plus_Ofailsafe=yes
else
  pike_cv_option_plus_Ofailsafe=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_plus_Ofailsafe=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_plus_Ofailsafe=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_plus_Ofailsafe" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE +Ofailsafe"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS +Ofailsafe"
      CXXFLAGS="$CXXFLAGS +Ofailsafe"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      # Ignore the following warnings if you enable +w1
      #   414 Optimization reduced to +O2 for compatibility with Debug.
      #   530 Casting from loose to strict alignment
      #   558 Empty declaration.
      # AC_SYS_COMPILER_FLAG(+w1,plus_w1,WARN)

  fi


    # OSF/1

  if test "x$pike_cv_sys_os" = "xOSF1" ; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fast" >&5
$as_echo_n "checking -fast... " >&6; }
  if test "x$pike_disabled_option_fast" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fast+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fast"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fast=yes
else
  pike_cv_option_fast=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fast=yes
else
  pike_cv_option_fast=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fast=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fast=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fast=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fast=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fast=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fast=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fast=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fast=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fast=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fast=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fast" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -fast"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -fast"
      CXXFLAGS="$CXXFLAGS -fast"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      # The need for -ieee is not detected properly by the FPE tests below.
      # AC_SYS_COMPILER_FLAG(-ieee,ieee,CFLAGS)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -readonly_strings" >&5
$as_echo_n "checking -readonly_strings... " >&6; }
  if test "x$pike_disabled_option_readonly_strings" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_readonly_strings+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -readonly_strings"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_readonly_strings=yes
else
  pike_cv_option_readonly_strings=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_readonly_strings=yes
else
  pike_cv_option_readonly_strings=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_readonly_strings=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_readonly_strings=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_readonly_strings=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_readonly_strings=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_readonly_strings=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_readonly_strings=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_readonly_strings=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_readonly_strings=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_readonly_strings=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_readonly_strings=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_readonly_strings" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -readonly_strings"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -readonly_strings"
      CXXFLAGS="$CXXFLAGS -readonly_strings"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -assume trusted_short_alignment" >&5
$as_echo_n "checking -assume trusted_short_alignment... " >&6; }
  if test "x$pike_disabled_option_assume_trusted_short_alignment" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_assume_trusted_short_alignment+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -assume trusted_short_alignment"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_assume_trusted_short_alignment=yes
else
  pike_cv_option_assume_trusted_short_alignment=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_assume_trusted_short_alignment=yes
else
  pike_cv_option_assume_trusted_short_alignment=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_assume_trusted_short_alignment=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_assume_trusted_short_alignment=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_assume_trusted_short_alignment" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -assume trusted_short_alignment"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -assume trusted_short_alignment"
      CXXFLAGS="$CXXFLAGS -assume trusted_short_alignment"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -assume aligned_objects" >&5
$as_echo_n "checking -assume aligned_objects... " >&6; }
  if test "x$pike_disabled_option_assume_aligned_objects" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_assume_aligned_objects+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -assume aligned_objects"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_assume_aligned_objects=yes
else
  pike_cv_option_assume_aligned_objects=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_assume_aligned_objects=yes
else
  pike_cv_option_assume_aligned_objects=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_assume_aligned_objects=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_assume_aligned_objects=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_assume_aligned_objects" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -assume aligned_objects"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -assume aligned_objects"
      CXXFLAGS="$CXXFLAGS -assume aligned_objects"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -no_misalign" >&5
$as_echo_n "checking -no_misalign... " >&6; }
  if test "x$pike_disabled_option_no_misalign" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_no_misalign+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -no_misalign"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_no_misalign=yes
else
  pike_cv_option_no_misalign=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_no_misalign=yes
else
  pike_cv_option_no_misalign=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_no_misalign=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_no_misalign=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_no_misalign=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_no_misalign=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_no_misalign=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_no_misalign=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_no_misalign=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_no_misalign=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_no_misalign=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_no_misalign=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_no_misalign" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -no_misalign"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -no_misalign"
      CXXFLAGS="$CXXFLAGS -no_misalign"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -host" >&5
$as_echo_n "checking -host... " >&6; }
  if test "x$pike_disabled_option_host" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_host+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -host"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_host=yes
else
  pike_cv_option_host=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_host=yes
else
  pike_cv_option_host=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_host=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_host=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_host=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_host=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_host=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_host=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_host=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_host=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_host=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_host=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_host" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -host"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -host"
      CXXFLAGS="$CXXFLAGS -host"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


      # Flags that cause errors or change compiler behaviour
      # must go in CFLAGS, they can not go in WARN
      # /Hubbe

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -std1" >&5
$as_echo_n "checking -std1... " >&6; }
  if test "x$pike_disabled_option_std1" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_std1+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -std1"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_std1=yes
else
  pike_cv_option_std1=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_std1=yes
else
  pike_cv_option_std1=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_std1=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_std1=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_std1=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_std1=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_std1=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_std1=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_std1=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_std1=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_std1=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_std1=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_std1" = "xyes" ; then
      CFLAGS="$CFLAGS -std1"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -warnprotos" >&5
$as_echo_n "checking -warnprotos... " >&6; }
  if test "x$pike_disabled_option_warnprotos" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_warnprotos+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -warnprotos"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_warnprotos=yes
else
  pike_cv_option_warnprotos=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_warnprotos=yes
else
  pike_cv_option_warnprotos=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_warnprotos=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_warnprotos=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_warnprotos=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_warnprotos=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_warnprotos=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_warnprotos=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_warnprotos=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_warnprotos=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_warnprotos=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_warnprotos=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_warnprotos" = "xyes" ; then
      WARN="$WARN -warnprotos"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  fi


    # IRIX

  if test "x$pike_cv_sys_os" = "xIRIX" ; then

      # sopt disabled since it takes too long time on interpret.c (>45min on an O�)
      # AC_SYS_COMPILER_FLAG(-sopt,sopt,OPTIMIZE)

      # -n32 moved to smartlink so it will affect cc as well as linker
      # this way the user can override it by setting LDFLAGS and/or CFLAGS
      # AC_SYS_COMPILER_FLAG(-n32,n32,CFLAGS)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fullwarn" >&5
$as_echo_n "checking -fullwarn... " >&6; }
  if test "x$pike_disabled_option_fullwarn" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fullwarn+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fullwarn"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fullwarn=yes
else
  pike_cv_option_fullwarn=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fullwarn=yes
else
  pike_cv_option_fullwarn=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fullwarn=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fullwarn=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fullwarn=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fullwarn=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fullwarn=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fullwarn=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fullwarn=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fullwarn=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fullwarn=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fullwarn=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fullwarn" = "xyes" ; then
      WARN="$WARN -fullwarn"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -woff 1209" >&5
$as_echo_n "checking -woff 1209... " >&6; }
  if test "x$pike_disabled_option_woff_1209" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_woff_1209+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -woff 1209"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_woff_1209=yes
else
  pike_cv_option_woff_1209=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_woff_1209=yes
else
  pike_cv_option_woff_1209=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_woff_1209=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_woff_1209=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_woff_1209=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_woff_1209=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_woff_1209=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_woff_1209=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_woff_1209=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_woff_1209=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_woff_1209=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_woff_1209=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_woff_1209" = "xyes" ; then
      WARN="$WARN -woff 1209"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -OPT:Olimit_opt=on" >&5
$as_echo_n "checking -OPT:Olimit_opt=on... " >&6; }
  if test "x$pike_disabled_option_OPT_Olimit_opt_on" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_OPT_Olimit_opt_on+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -OPT:Olimit_opt=on"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_OPT_Olimit_opt_on=yes
else
  pike_cv_option_OPT_Olimit_opt_on=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_OPT_Olimit_opt_on=yes
else
  pike_cv_option_OPT_Olimit_opt_on=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_OPT_Olimit_opt_on=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_OPT_Olimit_opt_on=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_OPT_Olimit_opt_on" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -OPT:Olimit_opt=on"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -OPT:Olimit_opt=on"
      CXXFLAGS="$CXXFLAGS -OPT:Olimit_opt=on"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      if test x$with_cdebug = xyes ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -g3" >&5
$as_echo_n "checking -g3... " >&6; }
  if test "x$pike_disabled_option_g3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_g3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -g3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_g3=yes
else
  pike_cv_option_g3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_g3=yes
else
  pike_cv_option_g3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_g3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_g3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_g3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_g3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_g3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_g3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_g3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_g3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_g3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_g3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_g3" = "xyes" ; then
      CFLAGS="$CFLAGS -g3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      fi
      if test x$with_rtldebug = xyes ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -trapuw" >&5
$as_echo_n "checking -trapuw... " >&6; }
  if test "x$pike_disabled_option_trapuw" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_trapuw+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -trapuw"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_trapuw=yes
else
  pike_cv_option_trapuw=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_trapuw=yes
else
  pike_cv_option_trapuw=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_trapuw=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_trapuw=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_trapuw=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_trapuw=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_trapuw=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_trapuw=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_trapuw=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_trapuw=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_trapuw=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_trapuw=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_trapuw" = "xyes" ; then
      WARN="$WARN -trapuw"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      fi

  fi


    # Windows NT

  if test "x$pike_cv_sys_os" = "xWindows_NT" ; then


      case "x$CC" in
      *rntecl*)
        # Some options used by ecl (Intel's IA64 compiler).

        # We want threads, and link libc statically.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -MT" >&5
$as_echo_n "checking -MT... " >&6; }
  if test "x$pike_disabled_option_MT" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_MT+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -MT"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_MT=yes
else
  pike_cv_option_MT=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_MT=yes
else
  pike_cv_option_MT=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_MT=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_MT=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_MT=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_MT=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_MT=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_MT=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_MT=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_MT=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_MT=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_MT=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_MT" = "xyes" ; then
      LDFLAGS="$LDFLAGS -MT"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


        # Interprocedural optimizations.
        # For some reason this seems to cause the error:
        # dynamic_buffer.obj : error LNK2001: unresolved external symbol "[Entry] ?1memcpy" (.?1memcpy)
        # AC_SYS_COMPILER_FLAG(-Qip,Qip,OPTIMIZE)

        # More warnings.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -W3" >&5
$as_echo_n "checking -W3... " >&6; }
  if test "x$pike_disabled_option_W3" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_W3+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -W3"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_W3=yes
else
  pike_cv_option_W3=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_W3=yes
else
  pike_cv_option_W3=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_W3=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_W3=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_W3=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_W3=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_W3=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_W3=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_W3=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_W3=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_W3=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_W3=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_W3" = "xyes" ; then
      WARN="$WARN -W3"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


        if test x$with_rtldebug = xyes ; then
          # Initialize auto variables to 0xcc.
  	# (Only if optimizations are turned off with -Od).

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -GZ" >&5
$as_echo_n "checking -GZ... " >&6; }
  if test "x$pike_disabled_option_GZ" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_GZ+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -GZ"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_GZ=yes
else
  pike_cv_option_GZ=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_GZ=yes
else
  pike_cv_option_GZ=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_GZ=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_GZ=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_GZ=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_GZ=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_GZ=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_GZ=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_GZ=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_GZ=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_GZ=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_GZ=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_GZ" = "xyes" ; then
      WARN="$WARN -GZ"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        fi
        ;;

      *rntcl*)
        if test x$with_debug_crt = xyes; then
  	dynamic_crt_flag=-MDd
  	static_crt_flag=-MTd
        else
  	dynamic_crt_flag=-MD
  	static_crt_flag=-MT
        fi
	# We want the full 32-bit address space (not the default 31-bit).

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -LARGEADDRESSAWARE" >&5
$as_echo_n "checking -LARGEADDRESSAWARE... " >&6; }
  if test "x$pike_disabled_option_LARGEADDRESSAWARE" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_LARGEADDRESSAWARE+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -LARGEADDRESSAWARE"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_LARGEADDRESSAWARE=yes
else
  pike_cv_option_LARGEADDRESSAWARE=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_LARGEADDRESSAWARE=yes
else
  pike_cv_option_LARGEADDRESSAWARE=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_LARGEADDRESSAWARE=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_LARGEADDRESSAWARE=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_LARGEADDRESSAWARE" = "xyes" ; then
      LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        ;;
      esac

      if test x$with_dynamic_modules != xno; then
        pike_cv_sys_dynamic_loading=yes
      fi

  fi






        case "$CC" in
      *apcc)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -XO=5" >&5
$as_echo_n "checking -XO=5... " >&6; }
  if test "x$pike_disabled_option_apcc_opt" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_apcc_opt+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -XO=5"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_apcc_opt=yes
else
  pike_cv_option_apcc_opt=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_apcc_opt=yes
else
  pike_cv_option_apcc_opt=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_apcc_opt=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_apcc_opt=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_apcc_opt=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_apcc_opt=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_apcc_opt=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_apcc_opt=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_apcc_opt=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_apcc_opt=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_apcc_opt=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_apcc_opt=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_apcc_opt" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -XO=5"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -XO=5"
      CXXFLAGS="$CXXFLAGS -XO=5"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Xcallmod=2" >&5
$as_echo_n "checking -Xcallmod=2... " >&6; }
  if test "x$pike_disabled_option_apcc_opt_2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_apcc_opt_2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Xcallmod=2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_apcc_opt_2=yes
else
  pike_cv_option_apcc_opt_2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_apcc_opt_2=yes
else
  pike_cv_option_apcc_opt_2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_apcc_opt_2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_apcc_opt_2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_apcc_opt_2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -Xcallmod=2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -Xcallmod=2"
      CXXFLAGS="$CXXFLAGS -Xcallmod=2"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      ;;
    esac

    # Old cc for solaris.
    #  AC_SYS_CPU_COMPILER_FLAG(sun4m,-Xpipe=micro,microsparc,OPTIMIZE)
    #  AC_SYS_CPU_COMPILER_FLAG(sun4d,-Xpipe=super,supersparc,OPTIMIZE)
    #  AC_SYS_CPU_COMPILER_FLAG(sun4u,-Xpipe=super,ultrasparc,OPTIMIZE)

    case "${CFLAGS-} $OPTIMIZE" in
      *-O*) ;;
      *+O*) ;;
      *-fast*) ;;
      *)
        case "$pike_cv_sys_os:$GCC" in
          UnixWare*:no|OpenUNIX*:no)
  	;;
  	*)
  	;;
        esac
      ;;
    esac
  fi

  if test "$ICC" = "yes"; then
    # icc or ecc.

    # Modern versions of icc and ecc claim to be gcc, so we need to have
    # this outside the main if-else segment.


  if test "x$pike_cv_sys_os" = "xLinux" ; then

      # Linux with Intel C++

      # Disable excessive warnings from Linux's header files:
      #   warning #1292: attribute "__nothrow__" ignored

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -wd1292" >&5
$as_echo_n "checking -wd1292... " >&6; }
  if test "x$pike_disabled_option_wd1292" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_wd1292+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd1292"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_wd1292=yes
else
  pike_cv_option_wd1292=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_wd1292=yes
else
  pike_cv_option_wd1292=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd1292=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd1292=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd1292=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd1292=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd1292=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd1292=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd1292=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd1292=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd1292=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd1292=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_wd1292" = "xyes" ; then
      WARN="$WARN -wd1292"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      # And from Pike:
      #   remark #177: function "MKPCHARP" was declared but never referenced

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -wd177" >&5
$as_echo_n "checking -wd177... " >&6; }
  if test "x$pike_disabled_option_wd177" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_wd177+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd177"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_wd177=yes
else
  pike_cv_option_wd177=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_wd177=yes
else
  pike_cv_option_wd177=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd177=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd177=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd177=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd177=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd177=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd177=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd177=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd177=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd177=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd177=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_wd177" = "xyes" ; then
      WARN="$WARN -wd177"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      #   remark #279: controlling expression is constant

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -wd279" >&5
$as_echo_n "checking -wd279... " >&6; }
  if test "x$pike_disabled_option_wd279" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_wd279+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd279"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_wd279=yes
else
  pike_cv_option_wd279=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_wd279=yes
else
  pike_cv_option_wd279=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd279=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd279=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd279=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd279=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd279=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd279=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd279=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd279=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd279=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd279=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_wd279" = "xyes" ; then
      WARN="$WARN -wd279"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      #   remark #869: parameter was never referenced

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -wd869" >&5
$as_echo_n "checking -wd869... " >&6; }
  if test "x$pike_disabled_option_wd869" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_wd869+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -wd869"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_wd869=yes
else
  pike_cv_option_wd869=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_wd869=yes
else
  pike_cv_option_wd869=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_wd869=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_wd869=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_wd869=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_wd869=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_wd869=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_wd869=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_wd869=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_wd869=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_wd869=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_wd869=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_wd869" = "xyes" ; then
      WARN="$WARN -wd869"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Ob2" >&5
$as_echo_n "checking -Ob2... " >&6; }
  if test "x$pike_disabled_option_Ob2" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_Ob2+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -Ob2"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_Ob2=yes
else
  pike_cv_option_Ob2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_Ob2=yes
else
  pike_cv_option_Ob2=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_Ob2=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_Ob2=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_Ob2=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_Ob2=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_Ob2=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_Ob2=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_Ob2=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_Ob2=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_Ob2=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_Ob2=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_Ob2" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -Ob2"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -Ob2"
      CXXFLAGS="$CXXFLAGS -Ob2"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -ip" >&5
$as_echo_n "checking -ip... " >&6; }
  if test "x$pike_disabled_option_ip" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_ip+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ip"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_ip=yes
else
  pike_cv_option_ip=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_ip=yes
else
  pike_cv_option_ip=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ip=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ip=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ip=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ip=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ip=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ip=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ip=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ip=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ip=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ip=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_ip" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -ip"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -ip"
      CXXFLAGS="$CXXFLAGS -ip"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

      # Iterprocedural optimization accross object files.
      # This slows down the compiler quite a bit with Pike's
      # large number of object files.
      # AC_SYS_COMPILER_FLAG(-ipo,ipo,OPTIMIZE)
      # AC_SYS_COMPILER_FLAG(-ipo,ipo,EXTRALDFLAGS)
      # AC_SYS_COMPILER_FLAG(-ipo_obj,ipo_obj,OPTIMIZE)
      # -parallel seems to generate broken code with icc 8.0/ia64.
      # AC_SYS_COMPILER_FLAG(-parallel, parallel,OPTIMIZE)
      # AC_SYS_COMPILER_FLAG(-parallel, parallel,LDFLAGS)
      # arch dependent optimizations while maintaining
      # i386 compatibility

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -axKW" >&5
$as_echo_n "checking -axKW... " >&6; }
  if test "x$pike_disabled_option_axKW" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_axKW+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -axKW"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_axKW=yes
else
  pike_cv_option_axKW=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_axKW=yes
else
  pike_cv_option_axKW=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_axKW=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_axKW=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_axKW=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_axKW=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_axKW=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_axKW=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_axKW=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_axKW=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_axKW=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_axKW=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_axKW" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -axKW"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -axKW"
      CXXFLAGS="$CXXFLAGS -axKW"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  fi

  fi
else
  # CFLAGS has already been set by the user.
  # Avoid adding anything that isn't essential.

  if test "x$pike_cv_sys_os" = "xAIX" ; then

    # This one is needed to get the compiler to fail on errors,
    # which is needed for several configure-tests.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -qhalt=e" >&5
$as_echo_n "checking -qhalt=e... " >&6; }
  if test "x$pike_disabled_option_qhalt_e" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_qhalt_e+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -qhalt=e"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_qhalt_e=yes
else
  pike_cv_option_qhalt_e=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_qhalt_e=yes
else
  pike_cv_option_qhalt_e=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_qhalt_e=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_qhalt_e=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_qhalt_e=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_qhalt_e=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_qhalt_e=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_qhalt_e=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_qhalt_e=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_qhalt_e=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_qhalt_e=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_qhalt_e" = "xyes" ; then
      CFLAGS="$CFLAGS -qhalt=e"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  fi

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking crc32 intrinsics" >&5
$as_echo_n "checking crc32 intrinsics... " >&6; }
if ${pike_cv_sys_have_crc_intrinsics+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    __attribute__((target("sse4"))) int c(int a) {
      return __builtin_ia32_crc32si(0,a);
    }
int
main ()
{

      return c(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_sys_have_crc_intrinsics=yes
else
  pike_cv_sys_have_crc_intrinsics=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_have_crc_intrinsics" >&5
$as_echo "$pike_cv_sys_have_crc_intrinsics" >&6; }

if test "x$pike_cv_sys_have_crc_intrinsics" = "xyes" ; then

$as_echo "#define HAVE_CRC32_INTRINSICS /**/" >>confdefs.h

fi

# test for several buildins






# RDRND hardware random support

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mrdrnd" >&5
$as_echo_n "checking -mrdrnd... " >&6; }
  if test "x$pike_disabled_option_opt_rdrnd" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_opt_rdrnd+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mrdrnd"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_opt_rdrnd=yes
else
  pike_cv_option_opt_rdrnd=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_opt_rdrnd=yes
else
  pike_cv_option_opt_rdrnd=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_opt_rdrnd=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_opt_rdrnd=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_opt_rdrnd" = "xyes" ; then
      OPTIMIZE="$OPTIMIZE -mrdrnd"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.

      CFLAGS="$CFLAGS -mrdrnd"
      CXXFLAGS="$CXXFLAGS -mrdrnd"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ia32_rdrand32_step" >&5
$as_echo_n "checking for __builtin_ia32_rdrand32_step... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ia32_rdrand32_step(&foo);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_IA32_RDRAND32_STEP 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext



    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
$as_echo_n "checking for __builtin_unreachable... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
__builtin_unreachable();
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_UNREACHABLE 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
$as_echo_n "checking for __builtin_expect... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
__builtin_expect(1,1);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_EXPECT 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
$as_echo_n "checking for __builtin_memset... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_memset(&foo,0,0);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_MEMSET 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
$as_echo_n "checking for __builtin_clz... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_clz(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_CLZ 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
$as_echo_n "checking for __builtin_clzl... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_clzl(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_CLZL 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
$as_echo_n "checking for __builtin_clzll... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_clzll(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_CLZLL 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
$as_echo_n "checking for __builtin_ctz... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ctz(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_CTZ 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5
$as_echo_n "checking for __builtin_ctzl... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ctzl(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_CTZL 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5
$as_echo_n "checking for __builtin_ctzll... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_ctzll(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_CTZLL 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
$as_echo_n "checking for __builtin_bswap32... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_bswap32(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_BSWAP32 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
$as_echo_n "checking for __builtin_bswap64... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_bswap64(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_BSWAP64 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
$as_echo_n "checking for __builtin_expect... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__builtin_expect(foo,0);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___BUILTIN_EXPECT 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

# ICC builtins

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _bswap" >&5
$as_echo_n "checking for _bswap... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bswap(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BSWAP 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _bswap64" >&5
$as_echo_n "checking for _bswap64... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bswap64(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BSWAP64 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _bit_scan_reverse" >&5
$as_echo_n "checking for _bit_scan_reverse... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bit_scan_reverse(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BIT_SCAN_REVERSE 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _bit_scan_forward" >&5
$as_echo_n "checking for _bit_scan_forward... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_bit_scan_forward(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BIT_SCAN_FORWARD 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

# Visual Studio builtins

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanForward" >&5
$as_echo_n "checking for _BitScanForward... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanForward(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BITSCANFORWARD 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanForward64" >&5
$as_echo_n "checking for _BitScanForward64... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanForward64(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BITSCANFORWARD64 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse" >&5
$as_echo_n "checking for _BitScanReverse... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanReverse(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BITSCANREVERSE 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse64" >&5
$as_echo_n "checking for _BitScanReverse64... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <intrin.h>


int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_BitScanReverse64(&lint, 23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BITSCANREVERSE64 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ulong" >&5
$as_echo_n "checking for _byteswap_ulong... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <stdlib.h>


int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_byteswap_ulong(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BYTESWAP_ULONG 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_uint64" >&5
$as_echo_n "checking for _byteswap_uint64... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


    #include <stdlib.h>


int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)_byteswap_uint64(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS__BYTESWAP_UINT64 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

# IBM C builtins

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cntlz4" >&5
$as_echo_n "checking for __cntlz4... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cntlz4(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___CNTLZ4 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cntlz8" >&5
$as_echo_n "checking for __cntlz8... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cntlz8(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___CNTLZ8 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cnttz4" >&5
$as_echo_n "checking for __cnttz4... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cnttz4(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___CNTTZ4 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cnttz8" >&5
$as_echo_n "checking for __cnttz8... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */



int
main ()
{

unsigned long lint;
volatile int foo = 0;
foo = (int)__cnttz8(23);
return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAS___CNTTZ8 1" >>confdefs.h


else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext



#############################################################################

# Script to translate from POSIX paths to native paths.
echo "Creating posix_to_native.sh..."
if test "x$PIKE_PATH_TRANSLATE" = "x"; then
  if test "x$pike_cv_is_mingw" = "xyes"; then
    # MinGW system.
    cat <<\EOF
#!/bin/sh
# Automatically generated.
# MinGW-version. Do NOT edit.
posix_name="`cat`"
posix_prefix="/"
native_prefix="/"
case "$posix_name" in
  /*) ;;
  *) posix_name="`pwd`/$posix_name" ;;
esac
case "$posix_name" in
EOF
    # Split and recombine the lines.
    # Sort the lines according to longest path first.
    # Convert backslashes to forward slashes.
    # Escape spaces, tabs and dollars.
    # Note, dollars must be escaped both for sed, sh and sed.
    # Split, and generate the case entries.
    # Remove any duplicate sequences of slashes.
    mount | \
      sed -e 's/\(.*\) on \(.*\) type user.*/\2 _split_ \1/p' -ed | \
      sort -r | \
      sed -e 's/\\/\//g' | \
      sed -e 's/\([ 	]\)/\\\1/g' -e 's/\$/\\\\\\\$/g' | \
      sed -e 's/\(.*\)\\ _split_\\ \(.*\)/  \1|\1\/*)\
    posix_prefix=\1\
    native_prefix=\2\/\
  \;\;/p' -ed | \
      sed -e 's/\/\//\//g'
    cat <<\EOF
esac
echo "$posix_name" | \
  sed -e "s,^$posix_prefix,$native_prefix," | \
  sed -e 's/\/\//\//g'
EOF
  else
    # Native POSIX system.
  cat <<\EOF
#!/bin/sh
# Automatically generated.
# POSIX-version. Do NOT edit.
cat
EOF
  fi
else
  # rntcl-style
  cat <<\EOF
#!/bin/sh
# Automatically generated.
# RNTCL-version. Do NOT edit.
sed -e "$PIKE_PATH_TRANSLATE"
EOF
fi >posix_to_native.sh

chmod a+x posix_to_native.sh

#############################################################################

if test ! -d modules/. ; then
  mkdir modules
fi

#############################################################################

## Search for some popular places where libraries may be hidden.

#############################################################################

if test "x$pike_cv_sys_os$pike_cv_is_mingw" != xWindows_NT ; then

echo Searching for library and include directories...

#Don't add include dirs if they give us warnings...
OLD_ac_c_preproc_warn_flag="$ac_c_preproc_warn_flag"
ac_c_preproc_warn_flag=yes
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Turning on preprocessor warnings causes cpp test to fail." >&5
$as_echo "$as_me: WARNING: Turning on preprocessor warnings causes cpp test to fail." >&2;}
  ac_c_preproc_warn_flag="$OLD_ac_c_preproc_warn_flag"

fi
rm -f conftest.err conftest.i conftest.$ac_ext


  real_dirs='/ /usr'
  real_incs='/include /usr/include'


if test "x$with_lib_path" = "x"; then
  : # Actual code for this case appears later...
else
  for dd in `echo $with_lib_path | sed -e 's/:/ /g'`; do
    if test "$dd" = "/lib"; then continue; fi
    if test "$dd" = "/usr/lib"; then continue; fi
    for suff in $pike_cv_abi_suffixes; do
      d="$dd$suff"



  pike_file_follow_symlink_opt=""

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $d contains $pike_cv_abi-bit ABI files" >&5
$as_echo_n "checking whether $d contains $pike_cv_abi-bit ABI files... " >&6; }
  abi_dir_ok="no"
  abi_dir_dynamic="unknown"
  real_dir="$d"
  while :; do
    if test -d "$d/." ; then :; else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - does not exist" >&5
$as_echo "no - does not exist" >&6; }
      break
    fi
    cached="(cached) "
    real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      cached="(pwd failed) "
      real_dir="$d"
    fi
    if echo " $pike_cv_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=yes
    elif echo " $pike_cv_not_32bit_dir " | grep " $real_dir " >/dev/null; then
      abi_32=no
    else
      abi_32=unknown
    fi
    if echo " $pike_cv_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=yes
    elif echo " $pike_cv_not_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=no
    else
      abi_64=unknown
    fi
    if echo " $pike_cv_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=yes
    elif echo " $pike_cv_not_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=no
    else
      abi_dir_dynamic=unknown
    fi
    empty=no
    if echo "$abi_32:$abi_64:$abi_dir_dynamic" | \
	 grep "unknown" >/dev/null; then
      cached=""
      empty=yes
      for f in "$d"/* no; do
        if test -f "$f"; then
	  empty=no
	  # NB: GNU file and BSD file default to not following symlinks.
	  #	Solaris /bin/file does not understand -L. The following
	  #	should support most cases.
          filetype="`POSIXLY_CORRECT=yes file $pike_follow_symlink_opt $f 2>/dev/null`"

	  case "$filetype" in
	    *"symbolic link"*)
	      if file -L $f >/dev/null 2>&1; then
	        pike_file_follow_symbolic_link="-L";
		filetype="`POSIXLY_CORRECT=yes file -L $f 2>/dev/null`"
	      fi
	      ;;
	  esac

	  # NB: /bin/file on Solaris 11 says
	  #     "current ar archive, 32-bit symbol table"
	  #     about most archives. We don't want this
	  #     to be matched in the ABI check below.
	  filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"

	  case "$filetype" in
            *32-bit*)
  	      abi_32=yes
	      ;;
  	    *64-bit*)
  	      abi_64=yes
	      ;;
	    *32*)
  	      abi_32=yes
	      ;;
	    *64*)
  	      abi_64=yes
	      ;;
	    *386*)
  	      abi_32=yes
	      ;;
	    *ppc*)
              abi_32=yes
	      ;;
	    *archive*)
	      # Try looking deeper into the archive.
	      if type elffile 2>/dev/null >/dev/null; then
		# Solaris 11 or later.
		# Typical output:
		# i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1"
		# amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1"
	        filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`"
	      elif type elfdump 2>/dev/null >/dev/null; then
		# Solaris 10 or earlier.
		# Typical output:
		# i386: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB" (repeated)
		# amd64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2LSB" (repeated)
		filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`"
	      elif type readelf 2>/dev/null >/dev/null; then
		# GNU binutils.
		# Typical output:
		# x86: "Class:                             ELF32"
		# x86_64: "Class:                             ELF64"
		filetype="`readelf -h $f 2>/dev/null | grep -i class`"
	      fi
	      # NB: Avoid matching "32-bit symbol table".
	      filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"
	      case "$filetype" in
		*ELFCLASS64*)
		  abi_64=yes
		  ;;
		*ELFCLASS32*)
		  abi_32=yes
		  ;;
		*ELF4*)
		  abi_64=yes
		  ;;
		*ELF32*)
		  abi_32=yes
		  ;;
		*64-bit*)
		  abi_64=yes
		  ;;
		*32-bit*)
		  abi_32=yes
		  ;;
		*64*)
		  abi_64=yes
		  ;;
		*32*)
		  abi_32=yes
		  ;;
	      esac
	      ;;
	  esac
	  case "$filetype" in
	    *not\ a\ dynamic*)
	      ;;
	    *not\ a\ shared*)
	      ;;
	    *dynamic*)
	      abi_dir_dynamic=yes
	      ;;
	    *shared*)
	      abi_dir_dynamic=yes
	      ;;
	  esac
	  if test "$abi_dir_dynamic" = "unknown"; then
	     continue;
	  elif test "$abi_64:$pike_cv_abi" = "yes:64" ; then
             break
          elif test "$abi_32:$pike_cv_abi" = "yes:32" ; then
             break
          fi
	elif test "x$empty" = "xyes"; then
	  empty=other
        fi
      done
      if test "$abi_32" = "yes"; then
        pike_cv_32bit_dirs="$pike_cv_32bit_dirs $real_dir"
	if test "$abi_64" = "unknown"; then
          abi_64="no"
	fi
      else
        pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
      fi
      if test "$abi_64" = "yes"; then
        pike_cv_64bit_dirs="$pike_cv_64bit_dirs $real_dir"
	if test "$abi_32" = "unknown"; then
          abi_32="no"
	fi
      elif test "$abi_64" = "no"; then
        pike_cv_not_64bit_dirs="$pike_cv_not_64bit_dirs $real_dir"
      fi
      if test "$abi_32" = "no"; then
        pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
      fi
      if test "$abi_dir_dynamic" = "yes"; then
	pike_cv_dynamic_dirs="$pike_cv_dynamic_dirs $real_dir"
      else
	pike_cv_not_dynamic_dirs="$pike_cv_not_dynamic_dirs $real_dir"
      fi
    fi
    if test "$abi_32:$pike_cv_abi" = "no:32" \
         -o "$abi_64:$pike_cv_abi" = "no:64" \
	 -o "x$empty" = "xyes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&5
$as_echo "${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&6; }
    else
      abi_dir_ok="yes"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cached}ABI ok" >&5
$as_echo "${cached}ABI ok" >&6; }
    fi
    break
  done
  if test "$abi_dir_ok" = "yes"; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to add to LDFLAGS" >&5
$as_echo_n "checking what to add to LDFLAGS... " >&6; }
    add_ldflags=""
    if echo " $LDFLAGS " | grep " -L$real_dir " >/dev/null; then :; else
      add_ldflags="-L$real_dir"
    fi
    if test "x$abi_dir_dynamic" = "xyes"; then
      if echo " $LDFLAGS " | grep " -R$real_dir " >/dev/null; then :; else
        add_ldflags="$add_ldflags -R$real_dir"
      fi
    fi
    if test "x$add_ldflags" = "x"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing - already added" >&5
$as_echo "nothing - already added" >&6; }
      :
    else
      OLD_LDFLAGS="${LDFLAGS}"
      LDFLAGS="${LDFLAGS} $add_ldflags -lm"
      if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <math.h>

int
main ()
{

    	     double (*foo)(double) = ceil;
    	     exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
$as_echo "$add_ldflags" >&6; }

else
   LDFLAGS="$OLD_LDFLAGS"
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
$as_echo "nothing - $add_ldflags causes failures" >&6; }
               add_ldflags=""

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <math.h>
int main(int argc, char **argv)
{
  double (*foo)(double) = ceil;
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
$as_echo "$add_ldflags" >&6; }

else
   LDFLAGS="$OLD_LDFLAGS"
    	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
$as_echo "nothing - $add_ldflags causes failures" >&6; }
            add_ldflags=""

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if test "x$add_ldflags" = "x"; then
        :
      else
        :
      fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkgconfig directory" >&5
$as_echo_n "checking for pkgconfig directory... " >&6; }
    if test -d "$real_dir/pkgconfig/."; then
      PKG_CONFIG_PATH="$PKG_CONFIG_PATH${PKG_CONFIG_PATH:+:}$real_dir/pkgconfig"
      export PKG_CONFIG_PATH
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $real_dir/pkgconfig" >&5
$as_echo "yes - $real_dir/pkgconfig" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

  elif test "$abi_dir_ok" = "no"; then
    :
  fi


    done
  done
fi

if test "x$with_include_path" = "x"; then :; else
  for d in `echo $with_include_path | sed -e 's/:/ /g'`; do
    if test "$d" = "/lib/include"; then continue; fi
    if test "$d" = "/usr/lib/include"; then continue; fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
$as_echo_n "checking $d... " >&6; }
    if test -d "$d/." ; then
      real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
      if test "x$real_dir" = "x"; then
        real_dir="UNKNOWN"
      else
	case " $real_incs " in
	  *\ $real_dir\ *)
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: already checked" >&5
$as_echo "already checked" >&6; }
	    continue
	  ;;
	esac
	real_incs="$real_incs $real_dir"
      fi
      case " $CPPFLAGS " in
        *\ -I$d\ * | *\ -I$real_dir\ *)
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
$as_echo "already added" >&6; }
          ;;
        *)
	  OLD_CPPFLAGS="${CPPFLAGS}"
          CPPFLAGS="${CPPFLAGS} -I$d"
	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

            { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
$as_echo "added" >&6; }

else

	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: fails" >&5
$as_echo "fails" >&6; }
	    CPPFLAGS="${OLD_CPPFLAGS}"

fi
rm -f conftest.err conftest.i conftest.$ac_ext
          ;;
      esac
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
  done
fi

primary_path=""
fallback_path=""

if test $ldflags_is_set = yes -a $cppflags_is_set = yes ; then :; else
  for dd in \
    `echo "${with_site_prefixes}"|sed -e 's/:/ /g'` \
    `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$with_root$ac_default_prefix@g"` \
    $with_root/usr \
    $with_root/usr/local $with_root/sw/local $with_root/sw \
    $with_root/usr/gnu $with_root/opt/gnu $with_root/sw/gnu \
    $with_root/usr/freeware $with_root/usr/pkg \
    `echo $with_root/opt/gnome* | sort -r` \
    `echo $with_root/usr/X* | sort -r` \
    $with_root/usr/sfw $with_root/opt/sfw $with_root/opt/csw \
    $with_root/usr/ccs
  do
    if test "$dd" = "/"; then continue; fi
    #if test "$dd" = "/usr"; then continue; fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dd" >&5
$as_echo_n "checking $dd... " >&6; }
    if test -d "$dd/."; then :; else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      continue
    fi
    real_dir=`cd "$dd/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok but pwd failed" >&5
$as_echo "ok but pwd failed" >&6; }
    else case " $real_dirs " in
      *\ $real_dir\ *)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: already checked" >&5
$as_echo "already checked" >&6; }
	continue
	;;
      esac
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
      real_dirs="$real_dirs $real_dir"
    fi
    libs_found=""
    if test $ldflags_is_set = yes ; then :; else
      for suff in $pike_cv_abi_suffixes; do
        d="$dd/lib$suff"



  pike_file_follow_symlink_opt=""

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $d contains $pike_cv_abi-bit ABI files" >&5
$as_echo_n "checking whether $d contains $pike_cv_abi-bit ABI files... " >&6; }
  abi_dir_ok="no"
  abi_dir_dynamic="unknown"
  real_dir="$d"
  while :; do
    if test -d "$d/." ; then :; else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - does not exist" >&5
$as_echo "no - does not exist" >&6; }
      break
    fi
    cached="(cached) "
    real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      cached="(pwd failed) "
      real_dir="$d"
    fi
    if echo " $pike_cv_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=yes
    elif echo " $pike_cv_not_32bit_dir " | grep " $real_dir " >/dev/null; then
      abi_32=no
    else
      abi_32=unknown
    fi
    if echo " $pike_cv_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=yes
    elif echo " $pike_cv_not_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=no
    else
      abi_64=unknown
    fi
    if echo " $pike_cv_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=yes
    elif echo " $pike_cv_not_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=no
    else
      abi_dir_dynamic=unknown
    fi
    empty=no
    if echo "$abi_32:$abi_64:$abi_dir_dynamic" | \
	 grep "unknown" >/dev/null; then
      cached=""
      empty=yes
      for f in "$d"/* no; do
        if test -f "$f"; then
	  empty=no
	  # NB: GNU file and BSD file default to not following symlinks.
	  #	Solaris /bin/file does not understand -L. The following
	  #	should support most cases.
          filetype="`POSIXLY_CORRECT=yes file $pike_follow_symlink_opt $f 2>/dev/null`"

	  case "$filetype" in
	    *"symbolic link"*)
	      if file -L $f >/dev/null 2>&1; then
	        pike_file_follow_symbolic_link="-L";
		filetype="`POSIXLY_CORRECT=yes file -L $f 2>/dev/null`"
	      fi
	      ;;
	  esac

	  # NB: /bin/file on Solaris 11 says
	  #     "current ar archive, 32-bit symbol table"
	  #     about most archives. We don't want this
	  #     to be matched in the ABI check below.
	  filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"

	  case "$filetype" in
            *32-bit*)
  	      abi_32=yes
	      ;;
  	    *64-bit*)
  	      abi_64=yes
	      ;;
	    *32*)
  	      abi_32=yes
	      ;;
	    *64*)
  	      abi_64=yes
	      ;;
	    *386*)
  	      abi_32=yes
	      ;;
	    *ppc*)
              abi_32=yes
	      ;;
	    *archive*)
	      # Try looking deeper into the archive.
	      if type elffile 2>/dev/null >/dev/null; then
		# Solaris 11 or later.
		# Typical output:
		# i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1"
		# amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1"
	        filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`"
	      elif type elfdump 2>/dev/null >/dev/null; then
		# Solaris 10 or earlier.
		# Typical output:
		# i386: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB" (repeated)
		# amd64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2LSB" (repeated)
		filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`"
	      elif type readelf 2>/dev/null >/dev/null; then
		# GNU binutils.
		# Typical output:
		# x86: "Class:                             ELF32"
		# x86_64: "Class:                             ELF64"
		filetype="`readelf -h $f 2>/dev/null | grep -i class`"
	      fi
	      # NB: Avoid matching "32-bit symbol table".
	      filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"
	      case "$filetype" in
		*ELFCLASS64*)
		  abi_64=yes
		  ;;
		*ELFCLASS32*)
		  abi_32=yes
		  ;;
		*ELF4*)
		  abi_64=yes
		  ;;
		*ELF32*)
		  abi_32=yes
		  ;;
		*64-bit*)
		  abi_64=yes
		  ;;
		*32-bit*)
		  abi_32=yes
		  ;;
		*64*)
		  abi_64=yes
		  ;;
		*32*)
		  abi_32=yes
		  ;;
	      esac
	      ;;
	  esac
	  case "$filetype" in
	    *not\ a\ dynamic*)
	      ;;
	    *not\ a\ shared*)
	      ;;
	    *dynamic*)
	      abi_dir_dynamic=yes
	      ;;
	    *shared*)
	      abi_dir_dynamic=yes
	      ;;
	  esac
	  if test "$abi_dir_dynamic" = "unknown"; then
	     continue;
	  elif test "$abi_64:$pike_cv_abi" = "yes:64" ; then
             break
          elif test "$abi_32:$pike_cv_abi" = "yes:32" ; then
             break
          fi
	elif test "x$empty" = "xyes"; then
	  empty=other
        fi
      done
      if test "$abi_32" = "yes"; then
        pike_cv_32bit_dirs="$pike_cv_32bit_dirs $real_dir"
	if test "$abi_64" = "unknown"; then
          abi_64="no"
	fi
      else
        pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
      fi
      if test "$abi_64" = "yes"; then
        pike_cv_64bit_dirs="$pike_cv_64bit_dirs $real_dir"
	if test "$abi_32" = "unknown"; then
          abi_32="no"
	fi
      elif test "$abi_64" = "no"; then
        pike_cv_not_64bit_dirs="$pike_cv_not_64bit_dirs $real_dir"
      fi
      if test "$abi_32" = "no"; then
        pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
      fi
      if test "$abi_dir_dynamic" = "yes"; then
	pike_cv_dynamic_dirs="$pike_cv_dynamic_dirs $real_dir"
      else
	pike_cv_not_dynamic_dirs="$pike_cv_not_dynamic_dirs $real_dir"
      fi
    fi
    if test "$abi_32:$pike_cv_abi" = "no:32" \
         -o "$abi_64:$pike_cv_abi" = "no:64" \
	 -o "x$empty" = "xyes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&5
$as_echo "${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&6; }
    else
      abi_dir_ok="yes"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cached}ABI ok" >&5
$as_echo "${cached}ABI ok" >&6; }
    fi
    break
  done
  if test "$abi_dir_ok" = "yes"; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to add to LDFLAGS" >&5
$as_echo_n "checking what to add to LDFLAGS... " >&6; }
    add_ldflags=""
    if echo " $LDFLAGS " | grep " -L$real_dir " >/dev/null; then :; else
      add_ldflags="-L$real_dir"
    fi
    if test "x$abi_dir_dynamic" = "xyes"; then
      if echo " $LDFLAGS " | grep " -R$real_dir " >/dev/null; then :; else
        add_ldflags="$add_ldflags -R$real_dir"
      fi
    fi
    if test "x$add_ldflags" = "x"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing - already added" >&5
$as_echo "nothing - already added" >&6; }
      libs_found="yes"
    else
      OLD_LDFLAGS="${LDFLAGS}"
      LDFLAGS="${LDFLAGS} $add_ldflags -lm"
      if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <math.h>

int
main ()
{

    	     double (*foo)(double) = ceil;
    	     exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
$as_echo "$add_ldflags" >&6; }

else
   LDFLAGS="$OLD_LDFLAGS"
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
$as_echo "nothing - $add_ldflags causes failures" >&6; }
               add_ldflags=""

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <math.h>
int main(int argc, char **argv)
{
  double (*foo)(double) = ceil;
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   LDFLAGS="$OLD_LDFLAGS $add_ldflags"
    	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $add_ldflags" >&5
$as_echo "$add_ldflags" >&6; }

else
   LDFLAGS="$OLD_LDFLAGS"
    	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing - $add_ldflags causes failures" >&5
$as_echo "nothing - $add_ldflags causes failures" >&6; }
            add_ldflags=""

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if test "x$add_ldflags" = "x"; then

  	  if test "x$libs_found" = "x"; then
  	    libs_found="no"
  	  fi

      else
        libs_found="yes"
      fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkgconfig directory" >&5
$as_echo_n "checking for pkgconfig directory... " >&6; }
    if test -d "$real_dir/pkgconfig/."; then
      PKG_CONFIG_PATH="$PKG_CONFIG_PATH${PKG_CONFIG_PATH:+:}$real_dir/pkgconfig"
      export PKG_CONFIG_PATH
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $real_dir/pkgconfig" >&5
$as_echo "yes - $real_dir/pkgconfig" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi

  elif test "$abi_dir_ok" = "no"; then
    if test "x$libs_found" = "x"; then
  	    libs_found="no"
  	  fi

  fi


      done
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dd/bin" >&5
$as_echo_n "checking $dd/bin... " >&6; }
    if test -d "$dd/bin/."; then
      if test "x$libs_found" = "xno"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - use as fallback" >&5
$as_echo "yes - use as fallback" >&6; }
	if test "x$fallback_path" = "x"; then
	  fallback_path="$dd/bin"
	else
	  fallback_path="$fallback_path:$dd/bin"
	fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	if test "x$primary_path" = "x"; then
	  primary_path="$dd/bin"
	else
	  primary_path="$primary_path:$dd/bin"
	fi
      fi
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    fi
    if test $cppflags_is_set = no -a "x$C_INCLUDE_PATH" = "x"; then
      d="$dd/include"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
$as_echo_n "checking $d... " >&6; }
      if test "x$libs_found" = "xno"; then
        # Don't add includes that correspond to libraries for the wrong ABI.
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped - bad libraries" >&5
$as_echo "skipped - bad libraries" >&6; }
        continue
      fi
      if test -d "$d/." ; then
        real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
        if test "x$real_dir" = "x"; then
          real_dir="UNKNOWN"
        else
	  case " $real_incs " in
	    *\ $real_dir\ *)
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: already checked" >&5
$as_echo "already checked" >&6; }
	      continue
	    ;;
	  esac
	  real_incs="$real_incs $real_dir"
        fi
        case " $CPPFLAGS " in
          *\ -I$d\ * | *\ -I$real_dir\ *)
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
$as_echo "already added" >&6; }
            ;;
          *)
	    OLD_CPPFLAGS="${CPPFLAGS}"
            CPPFLAGS="${CPPFLAGS} -I$d"
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

              { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
$as_echo "added" >&6; }

else

	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: fails" >&5
$as_echo "fails" >&6; }
	      CPPFLAGS="${OLD_CPPFLAGS}"

fi
rm -f conftest.err conftest.i conftest.$ac_ext
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi
    fi
  done
fi

if test "x$primary_path" = "x"; then
  EXTRA_PATH="$fallback_path"
elif test "x$fallback_path" = "x"; then
  EXTRA_PATH="$primary_path"
else
  EXTRA_PATH="$primary_path:$fallback_path"
fi
export EXTRA_PATH

#Restore preprocessor warning sensitivity
ac_c_preproc_warn_flag="$OLD_ac_c_preproc_warn_flag"

if test "x$with_lib_path" = "x"; then
  if test "x$with_dynamic_modules" = "xno"; then
    :;
  elif test "x$GCC" = "xno"; then :; else
    # Extract the default library paths from gcc,
    # so that we can pass them along to ld later on.
    for dd in `$CC -print-search-dirs 2>/dev/null | sed -e '/^libraries:/s/^[^=]*=//p' -ed | sed -e 's/\/:/ /g' -e 's/:/ /g' -e 's/\/$//'` /lib; do
      if test -d "$dd"; then :; else continue; fi
      # Normalize the paths.
      dd=`cd "$dd" && pwd`
      if test "$dd" = "/lib"; then continue; fi
      if test "$dd" = "/usr/lib"; then continue; fi
      for suff in $pike_cv_abi_suffixes; do
	d="$dd$suff"


  pike_file_follow_symlink_opt=""

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $d contains $pike_cv_abi-bit ABI files" >&5
$as_echo_n "checking whether $d contains $pike_cv_abi-bit ABI files... " >&6; }
  abi_dir_ok="no"
  abi_dir_dynamic="unknown"
  real_dir="$d"
  while :; do
    if test -d "$d/." ; then :; else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - does not exist" >&5
$as_echo "no - does not exist" >&6; }
      break
    fi
    cached="(cached) "
    real_dir=`cd "$d/." && /bin/pwd 2>/dev/null`
    if test "x$real_dir" = "x"; then
      cached="(pwd failed) "
      real_dir="$d"
    fi
    if echo " $pike_cv_32bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_32=yes
    elif echo " $pike_cv_not_32bit_dir " | grep " $real_dir " >/dev/null; then
      abi_32=no
    else
      abi_32=unknown
    fi
    if echo " $pike_cv_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=yes
    elif echo " $pike_cv_not_64bit_dirs " | grep " $real_dir " >/dev/null; then
      abi_64=no
    else
      abi_64=unknown
    fi
    if echo " $pike_cv_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=yes
    elif echo " $pike_cv_not_dynamic_dirs " | grep " $real_dir " >/dev/null; then
      abi_dir_dynamic=no
    else
      abi_dir_dynamic=unknown
    fi
    empty=no
    if echo "$abi_32:$abi_64:$abi_dir_dynamic" | \
	 grep "unknown" >/dev/null; then
      cached=""
      empty=yes
      for f in "$d"/* no; do
        if test -f "$f"; then
	  empty=no
	  # NB: GNU file and BSD file default to not following symlinks.
	  #	Solaris /bin/file does not understand -L. The following
	  #	should support most cases.
          filetype="`POSIXLY_CORRECT=yes file $pike_follow_symlink_opt $f 2>/dev/null`"

	  case "$filetype" in
	    *"symbolic link"*)
	      if file -L $f >/dev/null 2>&1; then
	        pike_file_follow_symbolic_link="-L";
		filetype="`POSIXLY_CORRECT=yes file -L $f 2>/dev/null`"
	      fi
	      ;;
	  esac

	  # NB: /bin/file on Solaris 11 says
	  #     "current ar archive, 32-bit symbol table"
	  #     about most archives. We don't want this
	  #     to be matched in the ABI check below.
	  filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"

	  case "$filetype" in
            *32-bit*)
  	      abi_32=yes
	      ;;
  	    *64-bit*)
  	      abi_64=yes
	      ;;
	    *32*)
  	      abi_32=yes
	      ;;
	    *64*)
  	      abi_64=yes
	      ;;
	    *386*)
  	      abi_32=yes
	      ;;
	    *ppc*)
              abi_32=yes
	      ;;
	    *archive*)
	      # Try looking deeper into the archive.
	      if type elffile 2>/dev/null >/dev/null; then
		# Solaris 11 or later.
		# Typical output:
		# i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1"
		# amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1"
	        filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`"
	      elif type elfdump 2>/dev/null >/dev/null; then
		# Solaris 10 or earlier.
		# Typical output:
		# i386: "ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB" (repeated)
		# amd64: "ei_class:   ELFCLASS64          ei_data:      ELFDATA2LSB" (repeated)
		filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`"
	      elif type readelf 2>/dev/null >/dev/null; then
		# GNU binutils.
		# Typical output:
		# x86: "Class:                             ELF32"
		# x86_64: "Class:                             ELF64"
		filetype="`readelf -h $f 2>/dev/null | grep -i class`"
	      fi
	      # NB: Avoid matching "32-bit symbol table".
	      filetype="`echo $filetype | sed -e 's/...bit symbol table//'`"
	      case "$filetype" in
		*ELFCLASS64*)
		  abi_64=yes
		  ;;
		*ELFCLASS32*)
		  abi_32=yes
		  ;;
		*ELF4*)
		  abi_64=yes
		  ;;
		*ELF32*)
		  abi_32=yes
		  ;;
		*64-bit*)
		  abi_64=yes
		  ;;
		*32-bit*)
		  abi_32=yes
		  ;;
		*64*)
		  abi_64=yes
		  ;;
		*32*)
		  abi_32=yes
		  ;;
	      esac
	      ;;
	  esac
	  case "$filetype" in
	    *not\ a\ dynamic*)
	      ;;
	    *not\ a\ shared*)
	      ;;
	    *dynamic*)
	      abi_dir_dynamic=yes
	      ;;
	    *shared*)
	      abi_dir_dynamic=yes
	      ;;
	  esac
	  if test "$abi_dir_dynamic" = "unknown"; then
	     continue;
	  elif test "$abi_64:$pike_cv_abi" = "yes:64" ; then
             break
          elif test "$abi_32:$pike_cv_abi" = "yes:32" ; then
             break
          fi
	elif test "x$empty" = "xyes"; then
	  empty=other
        fi
      done
      if test "$abi_32" = "yes"; then
        pike_cv_32bit_dirs="$pike_cv_32bit_dirs $real_dir"
	if test "$abi_64" = "unknown"; then
          abi_64="no"
	fi
      else
        pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
      fi
      if test "$abi_64" = "yes"; then
        pike_cv_64bit_dirs="$pike_cv_64bit_dirs $real_dir"
	if test "$abi_32" = "unknown"; then
          abi_32="no"
	fi
      elif test "$abi_64" = "no"; then
        pike_cv_not_64bit_dirs="$pike_cv_not_64bit_dirs $real_dir"
      fi
      if test "$abi_32" = "no"; then
        pike_cv_not_32bit_dirs="$pike_cv_not_32bit_dirs $real_dir"
      fi
      if test "$abi_dir_dynamic" = "yes"; then
	pike_cv_dynamic_dirs="$pike_cv_dynamic_dirs $real_dir"
      else
	pike_cv_not_dynamic_dirs="$pike_cv_not_dynamic_dirs $real_dir"
      fi
    fi
    if test "$abi_32:$pike_cv_abi" = "no:32" \
         -o "$abi_64:$pike_cv_abi" = "no:64" \
	 -o "x$empty" = "xyes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&5
$as_echo "${cached}no, does not contain any $pike_cv_abi-bit ABI files" >&6; }
    else
      abi_dir_ok="yes"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cached}ABI ok" >&5
$as_echo "${cached}ABI ok" >&6; }
    fi
    break
  done
  if test "$abi_dir_ok" = "yes"; then

	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to add -L$real_dir to LDFLAGS" >&5
$as_echo_n "checking if we need to add -L$real_dir to LDFLAGS... " >&6; }
	  case " $LDFLAGS " in
	    *\ -L$d\ *)
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
$as_echo "no - already added" >&6; }
	      ;;
	    *\ -L$real_dir\ *)
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
$as_echo "no - already added" >&6; }
	      ;;
	    *)
	      LDFLAGS="$LDFLAGS -L$real_dir"
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - added" >&5
$as_echo "yes - added" >&6; }
	      ;;
	  esac
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to add -R$real_dir to LDFLAGS" >&5
$as_echo_n "checking if we need to add -R$real_dir to LDFLAGS... " >&6; }
	  case " $LDFLAGS " in
	    *\ -R$d\ *)
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
$as_echo "no - already added" >&6; }
	      ;;
	    *\ -R$real_dir\ *)
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - already added" >&5
$as_echo "no - already added" >&6; }
	      ;;
	    *)
	      if test "x$abi_dir_dynamic" = "xyes"; then
	        LDFLAGS="$LDFLAGS -R$real_dir"
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - added" >&5
$as_echo "yes - added" >&6; }
	      else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - does not contain dynamic objects" >&5
$as_echo "no - does not contain dynamic objects" >&6; }
	      fi
	      ;;
	  esac

  elif test "$abi_dir_ok" = "no"; then
    :
  fi

      done
    done
  fi
fi

else
  # We are running NT without MinGW
  :
fi

# During the configure tests we need some extra includes that
# shouldn't be there in the final version.
CONF_CPPFLAGS_EXTRA="-I$srcdir -I`pwd`"
CPPFLAGS="${CPPFLAGS} ${CONF_CPPFLAGS_EXTRA}"

# We want to know if we ought to append any abi indicator to the libdir.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if an abi indicator would be appropriate for libdir" >&5
$as_echo_n "checking if an abi indicator would be appropriate for libdir... " >&6; }
if ${pike_cv_lib_abi+:} false; then :
  $as_echo_n "(cached) " >&6
else

  pike_cv_lib_abi=""
  for dd in "$with_root/lib" "$with_root/usr/lib" "$prefix/lib"; do
    for d in $pike_cv_abi_suffixes; do
      if test "x$d" = "x/."; then :;
      elif test -d "$dd$d/."; then
        pike_cv_lib_abi="$d"
	break
      fi
    done
  done

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_lib_abi" >&5
$as_echo "$pike_cv_lib_abi" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what libdir should be set to" >&5
$as_echo_n "checking what libdir should be set to... " >&6; }
if test "x$pike_cv_lib_abi" = "x"; then :;
elif test -d `eval echo "$libdir$pike_cv_lib_abi/."` -o \
        "x$libdir" = 'x${exec_prefix}/lib'; then
  libdir="$libdir$pike_cv_lib_abi"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdir" >&5
$as_echo "$libdir" >&6; }

#############################################################################

## At this point we have at last initialized the compiler!

#############################################################################

if test ! -f confdefs.h ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Warning, lost confdefs.h, testing will be flawed!!
You might need to use bash instead of /bin/sh to get correct results.
To do this, please type the following at an sh prompt:
	\$ rm ./config.cache
	\$ CONFIG_SHELL=/path/to/bash
	\$ export CONFIG_SHELL
	\$ $CONFIG_SHELL ./configure
" >&5
$as_echo "$as_me: WARNING:

Warning, lost confdefs.h, testing will be flawed!!
You might need to use bash instead of /bin/sh to get correct results.
To do this, please type the following at an sh prompt:
	\$ rm ./config.cache
	\$ CONFIG_SHELL=/path/to/bash
	\$ export CONFIG_SHELL
	\$ $CONFIG_SHELL ./configure
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Warning, lost confdefs.h, testing will be flawed!!
You might need to use bash instead of /bin/sh to get correct results.
To do this, please type the following at an sh prompt:
	\$ rm ./config.cache
	\$ CONFIG_SHELL=/path/to/bash
	\$ export CONFIG_SHELL
	\$ $CONFIG_SHELL ./configure

EOF

fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ansi prototype capability" >&5
$as_echo_n "checking ansi prototype capability... " >&6; }
if ${pike_cv_sys_ansi_prototypes+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int foo(int bar);
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_sys_ansi_prototypes=yes
else
  pike_cv_sys_ansi_prototypes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test "$pike_cv_sys_ansi_prototypes" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, giving up..." >&5
$as_echo "no, giving up..." >&6; }
  exit 1
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to concatenate two symbols" >&5
$as_echo_n "checking how to concatenate two symbols... " >&6; }
if ${pike_cv_cpp_symbol_concat+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int AABB=0;
#define CONCAT(X,Y)	X##Y

int
main ()
{

    return CONCAT(AA,BB);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_cpp_symbol_concat=ANSI
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int AABB=0;
#define CONCAT(X,Y)	X/**/Y

int
main ()
{

      return CONCAT(AA,BB);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_cpp_symbol_concat=KR
else

      pike_cv_cpp_symbol_concat=Unknown

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_cpp_symbol_concat" >&5
$as_echo "$pike_cv_cpp_symbol_concat" >&6; }
case "$pike_cv_cpp_symbol_concat" in
  "ANSI")
    $as_echo "#define HAVE_ANSI_CONCAT 1" >>confdefs.h

  ;;
  "KR")
    $as_echo "#define HAVE_KR_CONCAT 1" >>confdefs.h

  ;;
esac

#############################################################################

# The AC_PROG_INSTALL test is broken if $INSTALL is specified by hand.
# The FreeBSD ports system does this...
# Workaround:

if test "x$INSTALL" = "x"; then :; else
  # $INSTALL overrides ac_cv_path_install anyway...
  ac_cv_path_install="$INSTALL"
fi

ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi


if test "x${AR-}" = x ; then
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $AR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
  ;;
esac
fi
AR=$ac_cv_path_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  export AR
fi


if test "x${RNTANY-}" = x ; then
  # Extract the first word of "rntany", so it can be a program name with args.
set dummy rntany; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_RNTANY+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $RNTANY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RNTANY="$RNTANY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_RNTANY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
RNTANY=$ac_cv_path_RNTANY
if test -n "$RNTANY"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RNTANY" >&5
$as_echo "$RNTANY" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  export RNTANY
fi


# Wix compiler
if test "x${CANDLE-}" = x ; then

  # Extract the first word of "candle", so it can be a program name with args.
set dummy candle; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_CANDLE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $CANDLE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CANDLE="$CANDLE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_CANDLE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
CANDLE=$ac_cv_path_CANDLE
if test -n "$CANDLE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CANDLE" >&5
$as_echo "$CANDLE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$CANDLE" = x; then
    if test "x$RNTANY" != x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RNTANY candle /? can be executed" >&5
$as_echo_n "checking if $RNTANY candle /? can be executed... " >&6; }
      if ${pike_cv_exec_rntany_CANDLE+:} false; then :
  $as_echo_n "(cached) " >&6
else

	if $RNTANY candle '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_CANDLE=yes
	else
	  pike_cv_exec_rntany_CANDLE=no
	fi

fi

      if test "x$pike_cv_exec_rntany_CANDLE" = xyes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	CANDLE="$RNTANY candle"
      else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	CANDLE=""
      fi
    else
      CANDLE=""
    fi
  fi

  export CANDLE
fi


# Wix linker
if test "x${LIGHT-}" = x ; then

  # Extract the first word of "light", so it can be a program name with args.
set dummy light; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_LIGHT+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $LIGHT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIGHT="$LIGHT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_LIGHT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
LIGHT=$ac_cv_path_LIGHT
if test -n "$LIGHT"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIGHT" >&5
$as_echo "$LIGHT" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$LIGHT" = x; then
    if test "x$RNTANY" != x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RNTANY light /? can be executed" >&5
$as_echo_n "checking if $RNTANY light /? can be executed... " >&6; }
      if ${pike_cv_exec_rntany_LIGHT+:} false; then :
  $as_echo_n "(cached) " >&6
else

	if $RNTANY light '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_LIGHT=yes
	else
	  pike_cv_exec_rntany_LIGHT=no
	fi

fi

      if test "x$pike_cv_exec_rntany_LIGHT" = xyes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	LIGHT="$RNTANY light"
      else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	LIGHT=""
      fi
    else
      LIGHT=""
    fi
  fi

  export LIGHT
fi


# Wix tool
# This one doesn't exist any more in WiX 3.x.
#if test "x${TALLOW-}" = x ; then
#  PIKE_NT_PROG(TALLOW, tallow, , $PATH:$EXTRA_PATH)
#  export TALLOW
#fi
#AC_SUBST(TALLOW)

# VC8 manifest tool
if test "x${MTEXE-}" = x ; then

  # Extract the first word of "mt.exe", so it can be a program name with args.
set dummy mt.exe; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_MTEXE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $MTEXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MTEXE="$MTEXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_MTEXE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
MTEXE=$ac_cv_path_MTEXE
if test -n "$MTEXE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTEXE" >&5
$as_echo "$MTEXE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$MTEXE" = x; then
    if test "x$RNTANY" != x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RNTANY mt.exe /? can be executed" >&5
$as_echo_n "checking if $RNTANY mt.exe /? can be executed... " >&6; }
      if ${pike_cv_exec_rntany_MTEXE+:} false; then :
  $as_echo_n "(cached) " >&6
else

	if $RNTANY mt.exe '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_MTEXE=yes
	else
	  pike_cv_exec_rntany_MTEXE=no
	fi

fi

      if test "x$pike_cv_exec_rntany_MTEXE" = xyes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	MTEXE="$RNTANY mt.exe"
      else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	MTEXE=""
      fi
    else
      MTEXE=""
    fi
  fi

  export MTEXE
fi

# Resource compiler
if test "x${RCEXE-}" = x ; then

  # Extract the first word of "rc.exe", so it can be a program name with args.
set dummy rc.exe; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_RCEXE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $RCEXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RCEXE="$RCEXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:$EXTRA_PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_RCEXE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
RCEXE=$ac_cv_path_RCEXE
if test -n "$RCEXE"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCEXE" >&5
$as_echo "$RCEXE" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$RCEXE" = x; then
    if test "x$RNTANY" != x; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RNTANY rc.exe /? can be executed" >&5
$as_echo_n "checking if $RNTANY rc.exe /? can be executed... " >&6; }
      if ${pike_cv_exec_rntany_RCEXE+:} false; then :
  $as_echo_n "(cached) " >&6
else

	if $RNTANY rc.exe '/?' >/dev/null 2>&1; then
	  pike_cv_exec_rntany_RCEXE=yes
	else
	  pike_cv_exec_rntany_RCEXE=no
	fi

fi

      if test "x$pike_cv_exec_rntany_RCEXE" = xyes; then
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	RCEXE="$RNTANY rc.exe"
      else
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	RCEXE=""
      fi
    else
      RCEXE=""
    fi
  fi

  export RCEXE
fi


#############################################################################

# installbsd seems to be broken on some versions of AIX
#
# /grubba 1997-08-16

case "$ac_cv_path_install" in
  *installbsd*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $ac_cv_path_install works" >&5
$as_echo_n "checking if $ac_cv_path_install works... " >&6; }
    if ${pike_cv_install_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if $ac_cv_path_install "$srcdir/configure.in" ./conftest >/dev/null 2>&1
    then
      if cmp "$srcdir/configure.in" ./conftest >/dev/null 2>&1; then
        pike_cv_install_works=yes;
      else
        pike_cv_install_works=no;
      fi
    else
      pike_cv_install_works=no;
    fi
    if test -f ./conftest; then
      rm -f ./conftest
    fi

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_install_works" >&5
$as_echo "$pike_cv_install_works" >&6; }
    if test "$pike_cv_install_works" = "no"; then
      echo "Warning: Falling back to $ac_install_sh"
      INSTALL="$ac_install_sh"
    fi
  ;;
esac

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yacc clone that handles %pure_parser" >&5
$as_echo_n "checking for yacc clone that handles %pure_parser... " >&6; }
if ${pike_cv_prog_working_yacc+:} false; then :
  $as_echo_n "(cached) " >&6
else

for YACC in pyacc byacc "bison -y" yacc "None"; do
  set dummy $YACC; ac_word=$2
  has_it=no
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      has_it="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"

  if test "$has_it" = "yes"; then
cat >conftest.y<<\EOF
%pure_parser
%{
void parse();
void yyerror(char *);
%}
%%
all: foo bar
foo: 'f' 'o' 'o' { parse(); } ;
bar: 'b' 'a' 'r' ;
%%
int context;

int yylex(YYSTYPE *yylval)
{
  switch(context++)
  {
    case 0: return 'f';
    case 1: return 'o';
    case 2: return 'o';
    case 3: return 'b';
    case 4: return 'a';
    case 5: return 'r';
    default: return 0;
  }
}

int depth=0;
void parse()
{
  int tmp;
  if(depth++>5) return;
  tmp=context;
  context=0;
  yyparse();
  context=tmp;
}
int errors=0;
void yyerror(char *fel) { errors++; }
int main()
{
  parse();
  exit(errors);
}
EOF
    if $YACC -d conftest.y 1>&5 2>&5; then
      if test "x$enable_binary" = "xno"; then
        rm -f y.tab.*
	break
      else
	if test "$cross_compiling" = yes; then :
  pure_parser_works=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "y.tab.c"

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pure_parser_works=yes
else
  pure_parser_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	rm -f y.tab.*
	if test "$pure_parser_works" = "yes"; then
	  break
	fi
      fi
    else
      rm -f y.tab.*
    fi
  fi
done
pike_cv_prog_working_yacc="$YACC"

fi


YACC="$pike_cv_prog_working_yacc"

if test "x$YACC" = "xNone" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Get bison if you want to do \"make export\"" >&5
$as_echo "Get bison if you want to do \"make export\"" >&6; }
  YACC="bison -y"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
$as_echo "$YACC" >&6; }
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how bison uses short" >&5
$as_echo_n "checking how bison uses short... " >&6; }
if ${pike_cv_short_use+:} false; then :
  $as_echo_n "(cached) " >&6
else

  pike_cv_short_use=unknown
  for short_use in CT_SHORT CT_SHORT_INT; do
    cat >conftest.y <<EOF
%{
#define $short_use
#ifdef CT_SHORT
#define short int
#else
#define short
#endif
void parse();
void yyerror(char *);
%}
%%
foo: 'f' x y ;
x: 'o' ;
y: 'o' ;
%%
int context = 0;

int yylex(YYSTYPE *yylval)
{
  switch(context++)
  {
    case 0: return 'f';
    case 1: return 'o';
    case 2: return 'o';
    default: return 0;
  }
}

int errors=0;
void yyerror(char *fel) { errors++; }
EOF
    if $YACC -d conftest.y 1>&5 2>&5; then
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "y.tab.c"

int
main ()
{

yyparse();
exit(errors);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ok=yes
else
  ok=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      if test "$ok" = "yes"; then
	pike_cv_short_use=$short_use
	break
      fi
    fi
  done

fi


case "$pike_cv_short_use" in
  CT_SHORT)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
$as_echo "short" >&6; }
    $as_echo "#define BISON_SHORT_EXPANSION int" >>confdefs.h

    ;;
  CT_SHORT_INT)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: short int" >&5
$as_echo "short int" >&6; }
    $as_echo "#define BISON_SHORT_EXPANSION /**/" >>confdefs.h

    ;;
  *)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
    ;;
esac

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the type of __yy_memcpy" >&5
$as_echo_n "checking for the type of __yy_memcpy... " >&6; }
if ${pike_cv___yy_memcpy_count_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

  pike_cv___yy_memcpy_from_const=
  pike_cv___yy_memcpy_count_type=unknown
  for count_type in "unsigned int" "size_t" "unsigned long" "int"; do
    for from_const in "const" ""; do
      cat >conftest.y <<EOF
%pure_parser
%{
#include <stdio.h>

#ifndef __GNUC__
#ifndef __cplusplus
static void __yy_memcpy(char *to, $from_const char *from, $count_type count);
#endif /* !__cplusplus */
#endif /* !__GNUC__ */

void yyerror(char *);
int yylex(void *);
%}
%%
all: foo bar
foo: 'f' 'o' 'o' { fprintf(stderr, "foo\\n"); } ;
bar: 'b' 'a' 'r' ;
%%
int yylex(void *yylval) { return 'f'; }
void yyerror(char *err) { fprintf(stderr, "ERR: %s\\n", err); }
EOF
      echo conftest.y: 1>&5
      cat conftest.y 1>&5
      if $YACC -d conftest.y 1>&5 2>&5; then
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "y.tab.c"

int
main ()
{

  yyparse();
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

          pike_cv___yy_memcpy_count_type=$count_type
	  pike_cv___yy_memcpy_from_const="$from_const"
          break

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      fi
    done
    if test "x$pike_cv___yy_memcpy_count_type" = "xunknown"; then :; else
      break
    fi
  done

fi

if test "x$pike_cv___yy_memcpy_count_type" = "xunknown"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv___yy_memcpy_count_type" >&5
$as_echo "$pike_cv___yy_memcpy_count_type" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to unsigned int." >&5
$as_echo "$as_me: WARNING: Defaulting to unsigned int." >&2;}
  YY_COUNT_TYPE="unsigned int"
  YY_FROM_CONST=""
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: void __yy_memcpy(char *, $pike_cv___yy_memcpy_from_const char *, $pike_cv___yy_memcpy_count_type)" >&5
$as_echo "void __yy_memcpy(char *, $pike_cv___yy_memcpy_from_const char *, $pike_cv___yy_memcpy_count_type)" >&6; }
  YY_COUNT_TYPE="$pike_cv___yy_memcpy_count_type"
  YY_FROM_CONST="$pike_cv___yy_memcpy_from_const"
fi



#############################################################################

## At this point we have found all binaries we are going to use.

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

#ifndef __cplusplus
  /* Ultrix mips cc rejects this sort of thing.  */
  typedef int charset[2];
  const charset cs = { 0, 0 };
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi


# The above doesn't find IBM C's buggy const.

if test "$ac_cv_c_const" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if const really does work" >&5
$as_echo_n "checking if const really does work... " >&6; }
  if ${pike_cv_c_really_const+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

const int foo(int bar) { return bar; }

int
main ()
{

      return bar(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

       pike_cv_c_really_const=yes

else

       pike_cv_c_really_const=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_c_really_const" >&5
$as_echo "$pike_cv_c_really_const" >&6; }
  if test "x$pike_cv_c_really_const" = xno ; then
    $as_echo "#define const /**/" >>confdefs.h

  else
    :
  fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if restrict keyword is available (C99)" >&5
$as_echo_n "checking if restrict keyword is available (C99)... " >&6; }
if ${pike_cv_keyword_restrict+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

extern int foo(void *bar[restrict], void *restrict baz);

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_keyword_restrict="yes"
else
   pike_cv_keyword_restrict="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_keyword_restrict" >&5
$as_echo "$pike_cv_keyword_restrict" >&6; }
if test "x$pike_cv_keyword_restrict" = "xno"; then
  $as_echo "#define restrict  /* Not supported */ " >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
if ${ac_cv_c_char_unsigned+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_char_unsigned=no
else
  ac_cv_c_char_unsigned=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can cast void * to a function pointer" >&5
$as_echo_n "checking if we can cast void * to a function pointer... " >&6; }
if ${pike_cv_function_cast+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    void *foo = 0;

int
main ()
{

    void (*bar)(void) = (void (*)(void)) foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_function_cast="yes"
else
   pike_cv_function_cast="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

if test "$pike_cv_function_cast" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  $as_echo "#define NO_CAST_TO_FUN 1" >>confdefs.h

fi

#############################################################################


  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


# Note: For function detection to work correctly with
# PIKE_FUNCS_NEED_DECLS (i.e. windows), it's necessary that
# AC_CHECK_HEADERS tests all potential header files for a function
# before AC_CHECK_FUNCS is used.

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if ${ac_cv_header_time+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_time=yes
else
  ac_cv_header_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then

$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# Note: winsock2.h has to be included before winsock.h to avoid
# conflict. Thus check for winsock2.h before anything else in case
# winsock.h is included indirectly.

  if test "x$enable_binary" != "xno"; then
    for ac_header in winsock2.h sys/rusage.h time.h sys/time.h sys/types.h \
		 unistd.h stdlib.h memory.h values.h string.h strings.h \
		 fcntl.h sys/filio.h sys/sockio.h crypt.h locale.h \
		 sys/select.h net/socket.h sys/param.h stdio.h wchar.h io.h \
		 sys/mman.h setjmp.h sys/user.h limits.h pthread.h \
		 crt/signal.h sys/id.h mach-o/dyld.h sys/ptrace.h \
		 thread.h dlfcn.h dld.h dl.h sys/times.h sched.h \
		 sys/procfs.h sys/ioct.h sys/socket.h sys/uio.h fcntl.h \
		 malloc.h netinet/in.h sys/wait.h windows.h grp.h pwd.h \
		 passwd.h group.h winsock.h signal.h sys/file.h poll.h \
		 sys/poll.h socket.h ieeefp.h fp_class.h floatingpoint.h \
		 float.h sys/priocntl.h sys/sched.h winbase.h errno.h \
		 stddef.h sys/termio.h sys/termios.h \
		 ws2tcpip.h valgrind/memcheck.h memcheck.h valgrind.h \
		 sys/prctl.h sys/ioctl.h mach/task_info.h mach/task.h \
		 mach/mach_init.h syscall.h sys/syscall.h devices/timer.h \
		 direct.h CoreServices/CoreServices.h execinfo.h \
		 mach/mach.h mach/thread_act.h mach/clock.h urcu.h \
		 machine/bswap.h sys/endian.h
do :


  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)
#define __NT__
#endif
#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#endif
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef _PROTOTYPES
#  define _PROTOTYPES
#endif /* !_PROTOTYPES */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* !_GNU_SOURCE */
#ifdef __NT__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32
#define WIN32   100     /* WinNT 1.0 */
#endif
#if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)
#undef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < 0x05000000)
#undef NTDDI_VERSION
#define NTDDI_VERSION 0x05000000
#endif
#endif /* __NT__ */
#ifdef __amigaos__
#define __USE_NETINET_IN_H
#endif
#ifndef __BUILTIN_VA_ARG_INCR
#define __BUILTIN_VA_ARG_INCR   1
#endif /* !__BUILTIN_VA_ARG_INCR */
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef HAVE_WINDOWS_H
#endif
/* Necessary to find sys/socket.h on MacOS X 10.3 */
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
/* Necessary to find ws2tcpip.h on WIN32. */
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
/* Necessary to find sys/user.h on OpenBSD */
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "$ac_header" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <$ac_header>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF


fi


done

  else
    for ac_hdr in winsock2.h sys/rusage.h time.h sys/time.h sys/types.h \
		 unistd.h stdlib.h memory.h values.h string.h strings.h \
		 fcntl.h sys/filio.h sys/sockio.h crypt.h locale.h \
		 sys/select.h net/socket.h sys/param.h stdio.h wchar.h io.h \
		 sys/mman.h setjmp.h sys/user.h limits.h pthread.h \
		 crt/signal.h sys/id.h mach-o/dyld.h sys/ptrace.h \
		 thread.h dlfcn.h dld.h dl.h sys/times.h sched.h \
		 sys/procfs.h sys/ioct.h sys/socket.h sys/uio.h fcntl.h \
		 malloc.h netinet/in.h sys/wait.h windows.h grp.h pwd.h \
		 passwd.h group.h winsock.h signal.h sys/file.h poll.h \
		 sys/poll.h socket.h ieeefp.h fp_class.h floatingpoint.h \
		 float.h sys/priocntl.h sys/sched.h winbase.h errno.h \
		 stddef.h sys/termio.h sys/termios.h \
		 ws2tcpip.h valgrind/memcheck.h memcheck.h valgrind.h \
		 sys/prctl.h sys/ioctl.h mach/task_info.h mach/task.h \
		 mach/mach_init.h syscall.h sys/syscall.h devices/timer.h \
		 direct.h CoreServices/CoreServices.h execinfo.h \
		 mach/mach.h mach/thread_act.h mach/clock.h urcu.h \
		 machine/bswap.h sys/endian.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


# Setjmp.
#
# POSIX defines sigsetjmp().
# BSD defines both _setjmp() and setjmp(), where setjmp()
# saves the signal mask.
# SVID explicitly defines setjmp() not to save the signal mask.


  if test "x$enable_binary" != "xno"; then
    for ac_header in gnu/stubs.h
do :


  ac_fn_c_check_header_mongrel "$LINENO" "gnu/stubs.h" "ac_cv_header_gnu_stubs_h" "$ac_includes_default"
if test "x$ac_cv_header_gnu_stubs_h" = xyes; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "gnu/stubs.h" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <gnu/stubs.h>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define HAVE_GNU_STUBS_H 1
_ACEOF


fi


done

  else
    for ac_hdr in gnu/stubs.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


for ac_func in sigsetjmp _setjmp siglongjmp _longjmp
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if eval \${ac_cv_func_$ac_func+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef $ac_func
void *f = (void *) $ac_func;
#endif

int
main ()
{

#ifdef $ac_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done


# Make it possible to disable use of /dev/poll.
if test "x$with_devpoll" = "xno"; then :; else

  if test "x$enable_binary" != "xno"; then
    for ac_header in sys/devpoll.h sys/event.h sys/epoll.h
do :


  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "$ac_header" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <$ac_header>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF


fi


done

  else
    for ac_hdr in sys/devpoll.h sys/event.h sys/epoll.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi

  for ac_func in kqueue
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
$as_echo_n "checking for kqueue... " >&6; }
if ${ac_cv_func_kqueue+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef kqueue
void *f = (void *) kqueue;
#endif

int
main ()
{

#ifdef kqueue
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != kqueue;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_kqueue=yes"
else
  eval "ac_cv_func_kqueue=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define kqueue innocuous_kqueue

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char kqueue (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef kqueue
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char kqueue ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_kqueue) || defined (__stub___kqueue)
choke me
#else
char (*f) () = kqueue;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != kqueue;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_kqueue=yes"
else
  eval "ac_cv_func_kqueue=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'kqueue`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define HAVE_KQUEUE 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFRunLoopRunInMode in CoreServices framework" >&5
$as_echo_n "checking for CFRunLoopRunInMode in CoreServices framework... " >&6; }
if ${ac_cv_framework_CoreServices_CFRunLoopRunInMode+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_framework_save_LIBS=$LIBS
LIBS="-framework CoreServices  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char CFRunLoopRunInMode ();
int
main ()
{
return CFRunLoopRunInMode ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_framework_CoreServices_CFRunLoopRunInMode=yes
else
  ac_cv_framework_CoreServices_CFRunLoopRunInMode=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_framework_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreServices_CFRunLoopRunInMode" >&5
$as_echo "$ac_cv_framework_CoreServices_CFRunLoopRunInMode" >&6; }
if test $ac_cv_framework_CoreServices_CFRunLoopRunInMode = yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_FRAMEWORK_CORESERVICES 1
_ACEOF

  LIBS="-framework CoreServices $LIBS"

fi
  for ac_func in CFRunLoopRunInMode
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFRunLoopRunInMode" >&5
$as_echo_n "checking for CFRunLoopRunInMode... " >&6; }
if ${ac_cv_func_CFRunLoopRunInMode+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef CFRunLoopRunInMode
void *f = (void *) CFRunLoopRunInMode;
#endif

int
main ()
{

#ifdef CFRunLoopRunInMode
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != CFRunLoopRunInMode;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_CFRunLoopRunInMode=yes"
else
  eval "ac_cv_func_CFRunLoopRunInMode=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define CFRunLoopRunInMode to an innocuous variant, in case <limits.h> declares CFRunLoopRunInMode.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define CFRunLoopRunInMode innocuous_CFRunLoopRunInMode

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char CFRunLoopRunInMode (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef CFRunLoopRunInMode
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char CFRunLoopRunInMode ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_CFRunLoopRunInMode) || defined (__stub___CFRunLoopRunInMode)
choke me
#else
char (*f) () = CFRunLoopRunInMode;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != CFRunLoopRunInMode;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_CFRunLoopRunInMode=yes"
else
  eval "ac_cv_func_CFRunLoopRunInMode=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'CFRunLoopRunInMode`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define HAVE_CFRUNLOOPRUNINMODE 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll device" >&5
$as_echo_n "checking for poll device... " >&6; }
  if ${pike_cv_device_devpoll+:} false; then :
  $as_echo_n "(cached) " >&6
else

    pike_cv_poll_device="no"
    for device in /dev/poll /dev/epoll; do
      if test -w "$device"; then
        pike_cv_poll_device="$device"
	break
      fi
    done

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_poll_device" >&5
$as_echo "$pike_cv_poll_device" >&6; }
  if test "x$pike_cv_poll_device" = "xno"; then :; else
    cat >>confdefs.h <<_ACEOF
#define PIKE_POLL_DEVICE "$pike_cv_poll_device"
_ACEOF

  fi

  if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if epoll is available" >&5
$as_echo_n "checking if epoll is available... " >&6; }
    if ${pike_cv_epoll_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

      if test "x$pike_cv_poll_device" = "xno"; then
        if test "$cross_compiling" = yes; then :

          pike_cv_epoll_works=unknown

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include <sys/epoll.h>
#ifdef __stub_epoll_create
/* We have a libc without the wrappers for epoll support.
 */
#ifdef HAVE_SYSCALL_H
#include <syscall.h>
#elif defined(HAVE_SYS_SYSCALL_H)
#include <sys/syscall.h>
#endif /* HAVE_SYSCALL_H || HAVE_SYS_SYSCALL_H */
#ifndef __NR_epoll_create
/* Our libc does not even know the syscall numbers for the epoll syscalls.
 */
#ifdef __i386__
#define __NR_epoll_create 254
#elif defined(__ia64__)
#define __NR_epoll_create 1243
#elif defined(__x86_64__)
#define __NR_epoll_create 214
#else /* cpu types */
#error Syscall numbers for epoll_create et al not known on this architecture.
#endif /* cpu types */
#endif /* !defined(__NR_epoll_create) */

#if defined(_syscall1) && defined(_syscall4)
_syscall1(int, epoll_create, int, size);
#undef __stub_epoll_create
#else /* !_syscall1 || !_syscall4 */
#error Missing macros for generation of syscall wrappers.
#endif /* _syscall1 && _syscall4 */
#endif /* __stub_epoll_{create, ctl, wait} */
int main(int argc, char **argv)
{
  int fd;
  do {
    fd = epoll_create(32);
  } while ((fd < 0) && (errno == EINTR));
  return fd < 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

          pike_cv_epoll_works=yes

else

          pike_cv_epoll_works=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      else
        pike_cv_epoll_works=yes
      fi

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_epoll_works" >&5
$as_echo "$pike_cv_epoll_works" >&6; }
    if test "x$pike_cv_epoll_works" = "xyes"; then
      $as_echo "#define WITH_EPOLL 1" >>confdefs.h

    fi
  fi
fi

# some Linux systems have a broken resource.h that compiles anyway /Mirar
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/resource.h" >&5
$as_echo_n "checking for sys/resource.h... " >&6; }
if ${pike_cv_sys_resource_h+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#ifdef HAVE_TIME_H
#include <time.h>
#endif /* HAVE_TIME_H */
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */

#include <sys/resource.h>


int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_sys_resource_h=yes
else
  pike_cv_sys_resource_h=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

if test "x$pike_cv_sys_resource_h" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char * ... crosscompiling or tcc" >&5
$as_echo_n "checking size of char * ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66377 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(char *), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_char_p=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_char_p" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_char_p=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_char_p=4
        fi
      else
        ac_cv_sizeof_char_p=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_char_p=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
$as_echo_n "checking size of char *... " >&6; }
if ${ac_cv_sizeof_char_p+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_char_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char *)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_char_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
$as_echo "$ac_cv_sizeof_char_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int ... crosscompiling or tcc" >&5
$as_echo_n "checking size of int ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66474 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(int), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_int=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_int" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_int=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_int=4
        fi
      else
        ac_cv_sizeof_int=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_int=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short ... crosscompiling or tcc" >&5
$as_echo_n "checking size of short ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66571 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(short), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_short=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_short" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_short=2
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_short=2
        fi
      else
        ac_cv_sizeof_short=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_short=2
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float ... crosscompiling or tcc" >&5
$as_echo_n "checking size of float ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_float+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66668 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(float), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_float=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_float" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_float=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_float=4
        fi
      else
        ac_cv_sizeof_float=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
$as_echo "$ac_cv_sizeof_float" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_float=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
$as_echo_n "checking size of float... " >&6; }
if ${ac_cv_sizeof_float+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_float" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (float)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_float=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
$as_echo "$ac_cv_sizeof_float" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double ... crosscompiling or tcc" >&5
$as_echo_n "checking size of double ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_double+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66765 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(double), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_double=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_double" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_double=8
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_double=8
        fi
      else
        ac_cv_sizeof_double=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_double=8
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
$as_echo_n "checking size of double... " >&6; }
if ${ac_cv_sizeof_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (double)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double ... crosscompiling or tcc" >&5
$as_echo_n "checking size of long double ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66862 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long double), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long_double=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long_double" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long_double=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long_double=0
        fi
      else
        ac_cv_sizeof_long_double=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
$as_echo "$ac_cv_sizeof_long_double" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long_double=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
$as_echo_n "checking size of long double... " >&6; }
if ${ac_cv_sizeof_long_double+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long double)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
$as_echo "$ac_cv_sizeof_long_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long ... crosscompiling or tcc" >&5
$as_echo_n "checking size of long ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 66959 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long=4
        fi
      else
        ac_cv_sizeof_long=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long ... crosscompiling or tcc" >&5
$as_echo_n "checking size of long long ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67056 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(long long), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_long_long=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_long_long" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_long_long=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_long_long=0
        fi
      else
        ac_cv_sizeof_long_long=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_long_long=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64 ... crosscompiling or tcc" >&5
$as_echo_n "checking size of __int64 ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof___int64+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67153 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__int64), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___int64=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___int64" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___int64=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___int64=0
        fi
      else
        ac_cv_sizeof___int64=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
$as_echo "$ac_cv_sizeof___int64" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___int64=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
$as_echo_n "checking size of __int64... " >&6; }
if ${ac_cv_sizeof___int64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int64" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int64)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int64=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
$as_echo "$ac_cv_sizeof___int64" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT64 $ac_cv_sizeof___int64
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t ... crosscompiling or tcc" >&5
$as_echo_n "checking size of time_t ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67250 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(time_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_time_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_time_t" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_time_t=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_time_t=4
        fi
      else
        ac_cv_sizeof_time_t=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_time_t=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128 ... crosscompiling or tcc" >&5
$as_echo_n "checking size of __int128 ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof___int128+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67347 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__int128), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___int128=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___int128" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___int128=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___int128=0
        fi
      else
        ac_cv_sizeof___int128=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5
$as_echo "$ac_cv_sizeof___int128" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___int128=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128" >&5
$as_echo_n "checking size of __int128... " >&6; }
if ${ac_cv_sizeof___int128+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128))" "ac_cv_sizeof___int128"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int128" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int128)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int128=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5
$as_echo "$ac_cv_sizeof___int128" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT128 $ac_cv_sizeof___int128
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128_t ... crosscompiling or tcc" >&5
$as_echo_n "checking size of __int128_t ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof___int128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67444 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__int128_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___int128_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___int128_t" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___int128_t=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___int128_t=0
        fi
      else
        ac_cv_sizeof___int128_t=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128_t" >&5
$as_echo "$ac_cv_sizeof___int128_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___int128_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128_t" >&5
$as_echo_n "checking size of __int128_t... " >&6; }
if ${ac_cv_sizeof___int128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128_t))" "ac_cv_sizeof___int128_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int128_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int128_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int128_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128_t" >&5
$as_echo "$ac_cv_sizeof___int128_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT128_T $ac_cv_sizeof___int128_t
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128 ... crosscompiling or tcc" >&5
$as_echo_n "checking size of unsigned __int128 ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_unsigned___int128+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67541 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(unsigned __int128), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_unsigned___int128=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_unsigned___int128" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_unsigned___int128=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_unsigned___int128=0
        fi
      else
        ac_cv_sizeof_unsigned___int128=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
$as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_unsigned___int128=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
$as_echo_n "checking size of unsigned __int128... " >&6; }
if ${ac_cv_sizeof_unsigned___int128+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned___int128" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (unsigned __int128)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned___int128=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
$as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128_t ... crosscompiling or tcc" >&5
$as_echo_n "checking size of unsigned __int128_t ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_unsigned___int128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67638 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(unsigned __int128_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_unsigned___int128_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_unsigned___int128_t" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_unsigned___int128_t=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_unsigned___int128_t=0
        fi
      else
        ac_cv_sizeof_unsigned___int128_t=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128_t" >&5
$as_echo "$ac_cv_sizeof_unsigned___int128_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_unsigned___int128_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128_t" >&5
$as_echo_n "checking size of unsigned __int128_t... " >&6; }
if ${ac_cv_sizeof_unsigned___int128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128_t))" "ac_cv_sizeof_unsigned___int128_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned___int128_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (unsigned __int128_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned___int128_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128_t" >&5
$as_echo "$ac_cv_sizeof_unsigned___int128_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED___INT128_T $ac_cv_sizeof_unsigned___int128_t
_ACEOF




        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t ... crosscompiling or tcc" >&5
$as_echo_n "checking size of __uint128_t ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof___uint128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 67735 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(__uint128_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof___uint128_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof___uint128_t" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof___uint128_t=0
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof___uint128_t=0
        fi
      else
        ac_cv_sizeof___uint128_t=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
$as_echo "$ac_cv_sizeof___uint128_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof___uint128_t=0
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t" >&5
$as_echo_n "checking size of __uint128_t... " >&6; }
if ${ac_cv_sizeof___uint128_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__uint128_t))" "ac_cv_sizeof___uint128_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___uint128_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__uint128_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___uint128_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
$as_echo "$ac_cv_sizeof___uint128_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___UINT128_T $ac_cv_sizeof___uint128_t
_ACEOF





{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
$as_echo_n "checking for size_t... " >&6; }
if ${ac_cv_type_size_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

size_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_size_t=yes
else
  ac_cv_type_size_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_size_t = no; then
  $as_echo "#define size_t unsigned long" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t" >&5
$as_echo_n "checking for ptrdiff_t... " >&6; }
if ${ac_cv_type_ptrdiff_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

ptrdiff_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_ptrdiff_t=yes
else
  ac_cv_type_ptrdiff_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_ptrdiff_t = no; then
  $as_echo "#define ptrdiff_t long" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for off_t" >&5
$as_echo_n "checking for off_t... " >&6; }
if ${ac_cv_type_off_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

off_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_off_t=yes
else
  ac_cv_type_off_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_off_t = no; then
  $as_echo "#define off_t long" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
$as_echo_n "checking for pid_t... " >&6; }
if ${ac_cv_type_pid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

pid_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_pid_t=yes
else
  ac_cv_type_pid_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_pid_t = no; then
  $as_echo "#define pid_t int" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t" >&5
$as_echo_n "checking for uid_t... " >&6; }
if ${ac_cv_type_uid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

uid_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_uid_t=yes
else
  ac_cv_type_uid_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_uid_t = no; then
  $as_echo "#define uid_t int" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t" >&5
$as_echo_n "checking for gid_t... " >&6; }
if ${ac_cv_type_gid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

gid_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_gid_t=yes
else
  ac_cv_type_gid_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_gid_t = no; then
  $as_echo "#define gid_t int" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
$as_echo_n "checking for time_t... " >&6; }
if ${ac_cv_type_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

time_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_time_t=yes
else
  ac_cv_type_time_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_time_t = no; then
  $as_echo "#define time_t INT32" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pri_t" >&5
$as_echo_n "checking for pri_t... " >&6; }
if ${ac_cv_type_pri_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>

#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif




int
main ()
{

pri_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_pri_t=yes
else
  ac_cv_type_pri_t=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test $ac_cv_type_pri_t = no; then
  $as_echo "#define pri_t short" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi



        if test "x$cross_compiling" = "xyes" -o "x$TCC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t ... crosscompiling or tcc" >&5
$as_echo_n "checking size of off_t ... crosscompiling or tcc... " >&6; }
    if ${ac_cv_sizeof_off_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat > conftest.$ac_ext <<EOF
#line 68234 "configure"
#include "confdefs.h"

/* The worlds most stringent C compiler? */
#ifdef __TenDRA__
/* We want to be able to use 64bit arithmetic */
#ifdef HAVE_PRAGMA_TENDRA_LONGLONG
#pragma TenDRA longlong type allow
#endif /* HAVE_PRAGMA_TENDRA_LONGLONG */
#ifdef HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE
#pragma TenDRA set longlong type : long long
#endif /* HAVE_PRAGMA_TENDRA_SET_LONGLONG_TYPE */

#ifdef _NO_LONGLONG
#undef _NO_LONGLONG
#endif /* _NO_LONGLONG */
#endif /* __TenDRA__ */

#include <stdio.h>

char size_info[] = {
  0, 'S', 'i', 'Z', 'e', '_', 'I', 'n', 'F', 'o', '_',
  '0' + sizeof(off_t), 0
};
EOF
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
        if test -f "conftest.$ac_objext"; then
	  ac_cv_sizeof_off_t=`strings "conftest.$ac_objext" | sed -e '/^SiZe_InFo_[0-9]$/s/SiZe_InFo_//p' -ed | head -n 1`
          if test "x$ac_cv_sizeof_off_t" = "x"; then
	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Magic cookie not found." >&5
$as_echo "$as_me: WARNING: Magic cookie not found." >&2;}
	    ac_cv_sizeof_off_t=4
	  else :; fi
        else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found." >&5
$as_echo "$as_me: WARNING: Object file not found." >&2;}
	  ac_cv_sizeof_off_t=4
        fi
      else
        ac_cv_sizeof_off_t=0
      fi
      rm -rf conftest*

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
$as_echo "$ac_cv_sizeof_off_t" >&6; }
  elif test "x$enable_binary" = "xno"; then
    ac_cv_sizeof_off_t=4
  fi
    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
$as_echo_n "checking size of off_t... " >&6; }
if ${ac_cv_sizeof_off_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_off_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (off_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_off_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
$as_echo "$ac_cv_sizeof_off_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
_ACEOF




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sizeof anything" >&5
$as_echo_n "checking for sizeof anything... " >&6; }
if test "$ac_cv_sizeof_long_double" != 0 -a \
	"x$with_long_double_precision" = xyes ; then
  sizeof_float_type="$ac_cv_sizeof_long_double"
elif test "x$with_double_precision" = xyes ; then
  sizeof_float_type="$ac_cv_sizeof_double"
else
  sizeof_float_type="$ac_cv_sizeof_float"
fi

if test "$ac_cv_sizeof_long_long" != 0 -a \
	"x$with_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long_long"
elif test "$ac_cv_sizeof___int64" != 0 -a \
	"x$with_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof___int64"
elif test "x$with_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long"
elif test "x$with_short_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_short"
elif test "x$with_unsigned_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long"
elif test "$ac_cv_sizeof_long_long" != 0 -a \
	  "x$with_unsigned_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof_long_long"
elif test "$ac_cv_sizeof___int64" != 0 -a \
	   "x$with_unsigned_long_long_int" = xyes ; then
  sizeof_int_type="$ac_cv_sizeof___int64"
else
  sizeof_int_type="$ac_cv_sizeof_int"
fi
sizeof_anything="$ac_cv_sizeof_char_p"
if test "$sizeof_float_type" -gt "$sizeof_anything"; then
  sizeof_anything="$sizeof_float_type"
fi
if test "$sizeof_int_type" -gt "$sizeof_anything"; then
  sizeof_anything="$sizeof_int_type"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sizeof_anything" >&5
$as_echo "$sizeof_anything" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOAT_TYPE" >&5
$as_echo_n "checking for FLOAT_TYPE... " >&6; }

if test "x$with_long_double_precision" = x -a \
	"x$with_double_precision" = x ; then
  # Choose the longest available float that fits in a pointer.
  if test "$ac_cv_sizeof_long_double" != 0 -a \
	  "$ac_cv_sizeof_long_double" -le "$sizeof_anything" ; then
    with_long_double_precision=yes
  elif test "$ac_cv_sizeof_double" -le "$sizeof_anything" ; then
    with_double_precision=yes
  fi
fi

if test "$ac_cv_sizeof_long_double" != 0 -a \
	"x$with_long_double_precision" = xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: long double" >&5
$as_echo "long double" >&6; }
  $as_echo "#define WITH_LONG_DOUBLE_PRECISION_SVALUE 1" >>confdefs.h

  $as_echo "#define FLOAT_TYPE long double" >>confdefs.h

  $as_echo "#define SIZEOF_FLOAT_TYPE SIZEOF_LONG_DOUBLE" >>confdefs.h

  float_type="long double"
  sizeof_float_type="$ac_cv_sizeof_long_double"
elif test "x$with_double_precision" = xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: double" >&5
$as_echo "double" >&6; }
  $as_echo "#define WITH_DOUBLE_PRECISION_SVALUE 1" >>confdefs.h

  $as_echo "#define FLOAT_TYPE double" >>confdefs.h

  $as_echo "#define SIZEOF_FLOAT_TYPE SIZEOF_DOUBLE" >>confdefs.h

  float_type="double"
  sizeof_float_type="$ac_cv_sizeof_double"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: float" >&5
$as_echo "float" >&6; }
  $as_echo "#define FLOAT_TYPE float" >>confdefs.h

  $as_echo "#define SIZEOF_FLOAT_TYPE SIZEOF_FLOAT" >>confdefs.h

  float_type="float"
  sizeof_float_type="$ac_cv_sizeof_float"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT_TYPE" >&5
$as_echo_n "checking for INT_TYPE... " >&6; }

if test "x$with_long_long_int" = x -a \
	"x$with_long_int" = x -a \
	"x$with_int_int" = x -a \
	"x$with_short_int" = x ; then
  # Choose the longest available integer that fits in a pointer.
#  if test $ac_cv_sizeof_long_long != 0 -a \
#	   $ac_cv_sizeof_long_long -le $ac_cv_sizeof_char_p ; then
#    # This isn't a good idea on architectures where
#    # sizeof(long int) < sizeof(LONGEST).
#    # This is due to the gmp mpz api's using long int instead of
#    # mp_limb_{signed_}t.
#    #with_long_long_int=yes
#    :
#  fi
  if test "$ac_cv_sizeof_long" -le "$sizeof_anything" ; then
    with_long_int=yes
  else
    with_int_int=yes
  fi
  :
fi

if test "$ac_cv_sizeof_long_long" != 0 -a \
	"x$with_long_long_int" = xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long" >&5
$as_echo "long long" >&6; }
  $as_echo "#define WITH_LONG_LONG_INT 1" >>confdefs.h

  $as_echo "#define INT_TYPE long long" >>confdefs.h

  $as_echo "#define SIZEOF_INT_TYPE SIZEOF_LONG_LONG" >>confdefs.h

  int_type="long long"
  sizeof_int_type="$ac_cv_sizeof_long_long"
elif test "$ac_cv_sizeof___int64" != 0 -a \
	  "x$with_long_long_int" = xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: __int64" >&5
$as_echo "__int64" >&6; }
  $as_echo "#define WITH_LONG_LONG_INT 1" >>confdefs.h

  $as_echo "#define INT_TYPE __int64" >>confdefs.h

  $as_echo "#define SIZEOF_INT_TYPE SIZEOF___INT64" >>confdefs.h

  int_type="__int64"
  sizeof_int_type="$ac_cv_sizeof___int64"
elif test "x$with_long_int" = xyes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: long" >&5
$as_echo "long" >&6; }
  $as_echo "#define WITH_LONG_INT 1" >>confdefs.h

  $as_echo "#define INT_TYPE long" >>confdefs.h

  $as_echo "#define SIZEOF_INT_TYPE SIZEOF_LONG" >>confdefs.h

  int_type="long"
  sizeof_int_type="$ac_cv_sizeof_long"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
$as_echo "int" >&6; }
  $as_echo "#define WITH_INT_INT 1" >>confdefs.h

  $as_echo "#define INT_TYPE int" >>confdefs.h

  $as_echo "#define SIZEOF_INT_TYPE SIZEOF_INT" >>confdefs.h

  int_type="int"
  sizeof_int_type="$ac_cv_sizeof_int"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if ${ac_cv_type_signal+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <signal.h>

int
main ()
{
return *(signal (0, 0)) (0) == 1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_type_signal=int
else
  ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
$as_echo_n "checking for poll in -lpoll... " >&6; }
if ${ac_cv_lib_poll_poll+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpoll  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char poll ();
int
main ()
{
return poll ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_poll_poll=yes
else
  ac_cv_lib_poll_poll=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
$as_echo "$ac_cv_lib_poll_poll" >&6; }
if test "x$ac_cv_lib_poll_poll" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPOLL 1
_ACEOF

  LIBS="-lpoll $LIBS"

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
$as_echo_n "checking for floor in -lm... " >&6; }
if ${ac_cv_lib_m_floor+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char floor ();
int
main ()
{
return floor ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_m_floor=yes
else
  ac_cv_lib_m_floor=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
$as_echo "$ac_cv_lib_m_floor" >&6; }
if test "x$ac_cv_lib_m_floor" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBM 1
_ACEOF

  LIBS="-lm $LIBS"

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
$as_echo_n "checking for socket in -lsocket... " >&6; }
if ${ac_cv_lib_socket_socket+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
return socket ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_socket=yes
else
  ac_cv_lib_socket_socket=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
$as_echo "$ac_cv_lib_socket_socket" >&6; }
if test "x$ac_cv_lib_socket_socket" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

fi


if test x"$pike_cv_sys_os" = xWindows_NT ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the 64 bit API" >&5
$as_echo_n "checking if we should use the 64 bit API... " >&6; }
  if ${pike_cv_sys_win64+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(_WIN64) || defined(__WIN64__)
  oui
#else
  no
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "oui" >/dev/null 2>&1; then :
   pike_cv_sys_win64=yes
else
   pike_cv_sys_win64=no
fi
rm -f conftest*


fi

  if test "x$pike_cv_sys_win64" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    # Apparently the libraries are stilled named *32...
    # LIBS="-lkernel64 -lws2_64 -ladvapi64 $LIBS"
    LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 $LIBS"
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 $LIBS"
  fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rcu_init_mb in -lurcu" >&5
$as_echo_n "checking for rcu_init_mb in -lurcu... " >&6; }
if ${ac_cv_lib_urcu_rcu_init_mb+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lurcu  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char rcu_init_mb ();
int
main ()
{
return rcu_init_mb ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_urcu_rcu_init_mb=yes
else
  ac_cv_lib_urcu_rcu_init_mb=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_urcu_rcu_init_mb" >&5
$as_echo "$ac_cv_lib_urcu_rcu_init_mb" >&6; }
if test "x$ac_cv_lib_urcu_rcu_init_mb" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBURCU 1
_ACEOF

  LIBS="-lurcu $LIBS"

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_nsl_gethostbyname=yes
else
  ac_cv_lib_nsl_gethostbyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
_ACEOF

  LIBS="-lnsl $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
$as_echo_n "checking for nanosleep in -lrt... " >&6; }
if ${ac_cv_lib_rt_nanosleep+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nanosleep ();
int
main ()
{
return nanosleep ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_rt_nanosleep=yes
else
  ac_cv_lib_rt_nanosleep=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRT 1
_ACEOF

  LIBS="-lrt $LIBS"

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dl_dlopen=yes
else
  ac_cv_lib_dl_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF

  LIBS="-ldl $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if ${ac_cv_lib_dld_shl_load+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
else
  ac_cv_lib_dld_shl_load=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDLD 1
_ACEOF

  LIBS="-ldld $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if ${ac_cv_lib_dld_dld_link+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_dld_link=yes
else
  ac_cv_lib_dld_dld_link=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDLD 1
_ACEOF

  LIBS="-ldld $LIBS"

fi



if test "${pike_cv_sys_os}" = "Linux"; then
  if test "${ac_cv_lib_m_floor}" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I will compensate for this by adding -lc -lm." >&5
$as_echo "$as_me: WARNING: I will compensate for this by adding -lc -lm." >&2;}
    LIBS="${LIBS} -lc -lm"
  fi

  if test "$ac_cv_header_sched_h" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sched.h has a typo" >&5
$as_echo_n "checking if sched.h has a typo... " >&6; }
    if ${pike_cv_broken_sched_h+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sched.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_broken_shed_h=no
else

        OLDCPPFLAGS="$CPPFLAGS"
	CPPFLAGS="$CPPFLAGS -D_P=__P"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sched.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_broken_sched_h=yes
else

          pike_cv_broken_sched_h="very broken"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$OLDCPPFLAGS"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_broken_sched_h" >&5
$as_echo "$pike_cv_broken_sched_h" >&6; }
    if test "$pike_cv_broken_sched_h" = "yes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Applying workaround for sched.h typo.
" >&5
$as_echo "$as_me: WARNING:

Applying workaround for sched.h typo.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Applying workaround for sched.h typo.

EOF

      CPPFLAGS="$CPPFLAGS -D_P=__P"
    fi
  fi
fi

########################################################################


  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


using_threads="no (forced)"

if test x$with_threads = xyes ; then
  using_threads="no (no known threads found)"
  OLDLIBS="$LIBS"
  OLDCFLAGS="$CFLAGS"

if test "x$pike_cv_sys_os" = "xWindows_NT" ; then
  # NT has threads...

  $as_echo "#define _REENTRANT 1" >>confdefs.h

  $as_echo "#define _THREAD_SAFE 1" >>confdefs.h

  $as_echo "#define _UNIX_THREADS 1" >>confdefs.h

  $as_echo "#define NT_THREADS 1" >>confdefs.h

  $as_echo "#define PIKE_THREADS 1" >>confdefs.h

  using_threads="yes (nt)"

  pike_cv_thread_t_type=integer

else

  # Test for POSIX threads

  if test "x$with_thread_library" != "xno"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
$as_echo_n "checking for thread library... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_thread_library (--with-thread-library)" >&5
$as_echo "$with_thread_library (--with-thread-library)" >&6; }
    LIBS="${OLDLIBS} $with_thread_library"
  else
  case "x$pike_cv_sys_os" in
    xOSF1*)
#      LIBS="${OLDLIBS} -lpthread -lmach -lexc -lc"
      LIBS="${OLDLIBS} -lpthread -lmach -lexc"
    ;;

    xBSD/OS*)
      LIBS="${OLDLIBS}"
    ;;

    xUnixWare*|xOpenUNIX*)
      if test "$GCC" = yes ; then
        CFLAGS="${CFLAGS} -pthread"
      else
        CFLAGS="${CFLAGS} -Kthread"
      fi
    ;;

    xOpenBSD*)
      CFLAGS="${CFLAGS} -pthread"
      LDFLAGS="${LDFLAGS} -pthread"
    ;;

    xFreeBSD*)
      # Threads on FreeBSD earlier than 1998-06-07 are broken.
      LIBS="${OLDLIBS}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this version of FreeBSD may have working threads" >&5
$as_echo_n "checking if this version of FreeBSD may have working threads... " >&6; }
      if ${pike_cv_freebsd_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

        if test "$cross_compiling" = yes; then :
  pike_cv_freebsd_threads=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <osreldate.h>

int main(int argc, char **argv)
{
  /* FreeBSD before 228000 and 300000 - 300005 have broken threads.
   */
  if (__FreeBSD_version < 228000)
    return(1);
  if (__FreeBSD_version < 300000)
    return(0);
  if (__FreeBSD_version < 300006)
    return(1);
  return(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_freebsd_threads=yes
else
  pike_cv_freebsd_threads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

      if test "x$pike_cv_freebsd_threads" = "xno"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if this version of FreeBSD might require use of pthread-config" >&5
$as_echo_n "checking if this version of FreeBSD might require use of pthread-config... " >&6; }
	if ${pike_cv_freebsd_pthread_config+:} false; then :
  $as_echo_n "(cached) " >&6
else

          if test "$cross_compiling" = yes; then :
  pike_cv_freebsd_pthread_config=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <osreldate.h>

int main(int argc, char **argv)
{
  /* pthread-config is a remnant of the GNU pth library, and should not
   * be used on more recent versions of FreeBSD. */
  if (__FreeBSD_version < 500000)
    return(0);
  return(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_freebsd_pthread_config=yes
else
  pike_cv_freebsd_pthread_config=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

	if test "x$pike_cv_freebsd_pthread_config" = "xyes"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
          # Extract the first word of "${ac_tool_prefix}pthread-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pthread-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PTHREAD_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PTHREAD_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PTHREAD_CONFIG="$PTHREAD_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PTHREAD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PTHREAD_CONFIG" && ac_cv_path_PTHREAD_CONFIG="no"
  ;;
esac
fi
PTHREAD_CONFIG=$ac_cv_path_PTHREAD_CONFIG
if test -n "$PTHREAD_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CONFIG" >&5
$as_echo "$PTHREAD_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	  PTHREAD_CONFIG=no
	fi
        if test "x$PTHREAD_CONFIG" = xno ; then
	  # -pthread should work with all versions of FreeBSD,
	  # but some custom compilers (ie tcc) may not support it.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -pthread" >&5
$as_echo_n "checking -pthread... " >&6; }
  if test "x$pike_disabled_option_pthread" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

	    # FIXME: Might want to look at OS version:
	    #   500000 <= version < 500016: -pthread
	    #   500016 <= version < 502102: -lc_r
	    #   502102 <= version         : -lpthread
	    #
	    LIBS="$LIBS -lc_r"
            LDFLAGS="${LDFLAGS-} -lc_r"

  else
    if ${pike_cv_option_pthread+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -pthread"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_pthread=yes
else
  pike_cv_option_pthread=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_pthread=yes
else
  pike_cv_option_pthread=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_pthread=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_pthread=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_pthread=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_pthread=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_pthread=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_pthread=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_pthread=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_pthread=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_pthread=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_pthread=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_pthread" = "xyes" ; then
      CFLAGS="$CFLAGS -pthread"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

            LDFLAGS="${LDFLAGS-} -pthread"

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

	    # FIXME: Might want to look at OS version:
	    #   500000 <= version < 500016: -pthread
	    #   500016 <= version < 502102: -lc_r
	    #   502102 <= version         : -lpthread
	    #
	    LIBS="$LIBS -lc_r"
            LDFLAGS="${LDFLAGS-} -lc_r"

    fi
  fi

        else
          CFLAGS="$CFLAGS `${PTHREAD_CONFIG} --cflags`"
          LIBS="${OLDLIBS} `${PTHREAD_CONFIG} --libs`"
          LDFLAGS="$CFLAGS `${PTHREAD_CONFIG} --ldflags`"
        fi
      fi
    ;;

    xAIX*)
      if test "`uname -v`" -gt 4 ; then
        LIBS="${OLDLIBS} -lpthread"
      else
        LIBS="${OLDLIBS} -lpthreads -lc_r"
      fi
    ;;

    xSolaris*)
      # Some versions of Solaris 2.5.1 require linking with -lthread too.
      LIBS="${OLDLIBS} -lpthread -lthread"
    ;;

    xDarwin*)
      LIBS="${OLDLIBS}"

      # pthread_init() is not part of public headers though the symbol will be detected
      # in a link test so we force it off.
      ac_cv_func_pthread_init="no";

      #
      # it would probably be better to create a compilation test should this
      # behavior change in the future, however for now, we accept this as "good enough"
      #
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin dislikes threads and mach includes" >&5
$as_echo_n "checking whether Darwin dislikes threads and mach includes... " >&6; }
      case "`uname -r`" in
        1-9.*)
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (10.5 or older)" >&5
$as_echo "no (10.5 or older)" >&6; }
      	  ;;
        *)

$as_echo "#define USE_DARWIN_THREADS_WITHOUT_MACH 1" >>confdefs.h

          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (10.6 or newer)" >&5
$as_echo "yes (10.6 or newer)" >&6; }
          pike_cv_osx_threads_dislike_mach=yes
      	  ;;
      esac
    ;;

    *)
      LIBS="${OLDLIBS} -lpthread"
    ;;
  esac
  fi


  echo "DEBUG: ----------------------------------" 1>&5
  echo "Current limits: " 1>&5
  ulimit -a 1>&5
  echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&5


  for ac_func in pthread_init pthread_mutexattr_init pthread_kill \
                 pthread_cond_reltimedwait_np pthread_mach_thread_np
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if eval \${ac_cv_func_$ac_func+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef $ac_func
void *f = (void *) $ac_func;
#endif

int
main ()
{

#ifdef $ac_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking posix threads" >&5
$as_echo_n "checking posix threads... " >&6; }

  if ${pike_cv_posix_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1

#include <pthread.h>

void *foo(void *bar) { pthread_exit(0); return 0; }
pthread_mutexattr_t attr;
pthread_mutex_t tmp;
pthread_t gazonk;


int
main ()
{

{
  void *sune;
#ifdef HAVE_PTHREAD_INIT
  pthread_init();
#endif /* HAVE_PTHREAD_INIT */
#ifdef HAVE_PTHREAD_MUTEXATTR_INIT
  pthread_mutexattr_init(&attr);
#else
  memset(&attr, 0, sizeof(attr));
#endif /* HAVE_PTHREAD_MUTEXATTR_INIT */
  pthread_mutex_init(&tmp, &attr);
  pthread_mutex_lock(&tmp);
  pthread_create(&gazonk,0,foo,0);
  pthread_join(gazonk,&sune);
  exit(0);
}

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   pike_cv_posix_threads=yes
else
   pike_cv_posix_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1

#include <pthread.h>

void *foo(void *bar) { pthread_exit(0); return 0; }
pthread_mutexattr_t attr;
pthread_mutex_t tmp;
pthread_t gazonk;

int main()
{
  void *sune;
#ifdef HAVE_PTHREAD_INIT
  pthread_init();
#endif /* HAVE_PTHREAD_INIT */
#ifdef HAVE_PTHREAD_MUTEXATTR_INIT
  pthread_mutexattr_init(&attr);
#else
  memset(&attr, 0, sizeof(attr));
#endif /* HAVE_PTHREAD_MUTEXATTR_INIT */
  pthread_mutex_init(&tmp, &attr);
  pthread_mutex_lock(&tmp);
  pthread_create(&gazonk,0,foo,0);
  pthread_join(gazonk,&sune);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   pike_cv_posix_threads=yes
else
   pike_cv_posix_threads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


  if test $pike_cv_posix_threads = yes ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define _REENTRANT 1" >>confdefs.h

    $as_echo "#define _THREAD_SAFE 1" >>confdefs.h

    $as_echo "#define _MIT_POSIX_THREADS 1" >>confdefs.h

    $as_echo "#define PIKE_THREADS 1" >>confdefs.h

    using_threads="yes (posix)"

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
$as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
    if ${pike_cv_have_pthread_attr_setstacksize+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_attr_t*x) { pthread_attr_setstacksize(x, 1024*1024); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_attr_setstacksize=yes

else

        pike_cv_have_pthread_attr_setstacksize=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_attr_setstacksize" >&5
$as_echo "$pike_cv_have_pthread_attr_setstacksize" >&6; }
    if test x$pike_cv_have_pthread_attr_setstacksize = xyes ; then
      $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_atfork" >&5
$as_echo_n "checking for pthread_atfork... " >&6; }
    if ${pike_cv_have_pthread_atfork+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(void) { pthread_atfork(0,0,0); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_atfork=yes

else

        pike_cv_have_pthread_atfork=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

    if test x$pike_cv_have_pthread_atfork = xyes ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      $as_echo "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - FreeBSD?" >&5
$as_echo "no - FreeBSD?" >&6; }
    fi

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield" >&5
$as_echo_n "checking for pthread_yield... " >&6; }
    if ${pike_cv_have_pthread_yield+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(void) { pthread_yield(); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_yield=yes

else

        pike_cv_have_pthread_yield=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_yield" >&5
$as_echo "$pike_cv_have_pthread_yield" >&6; }
    if test x$pike_cv_have_pthread_yield = xyes ; then
      $as_echo "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield_np" >&5
$as_echo_n "checking for pthread_yield_np... " >&6; }
    if ${pike_cv_have_pthread_yield_np+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(void) { pthread_yield_np(); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_yield_np=yes

else

        pike_cv_have_pthread_yield_np=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_yield_np" >&5
$as_echo "$pike_cv_have_pthread_yield_np" >&6; }
    if test x$pike_cv_have_pthread_yield_np = xyes ; then
      $as_echo "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_init" >&5
$as_echo_n "checking for pthread_cond_init... " >&6; }
    if ${pike_cv_have_pthread_cond_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_cond_t*x, pthread_condattr_t*y) { pthread_cond_init(x,y); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_cond_init=yes

else

        pike_cv_have_pthread_cond_init=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_cond_init" >&5
$as_echo "$pike_cv_have_pthread_cond_init" >&6; }
    if test x$pike_cv_have_pthread_cond_init = xyes ; then
      $as_echo "#define HAVE_PTHREAD_COND_INIT 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_condattr_default is defined" >&5
$as_echo_n "checking if pthread_condattr_default is defined... " >&6; }
    if ${pike_cv_have_pthread_condattr_default+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_cond_t *bar) { pthread_cond_init(bar, pthread_condattr_default); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_condattr_default=yes

else

        pike_cv_have_pthread_condattr_default=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_condattr_default" >&5
$as_echo "$pike_cv_have_pthread_condattr_default" >&6; }

    if test x$pike_cv_have_pthread_condattr_default = xyes ; then
      $as_echo "#define HAVE_PTHREAD_CONDATTR_DEFAULT 1" >>confdefs.h

    else
      :
    fi


    #
    # FreeBSD doesn't like the &, while AIX requires it...
    #

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_condattr_default is needs an & (AIX)" >&5
$as_echo_n "checking if pthread_condattr_default is needs an & (AIX)... " >&6; }
    if ${pike_cv_have_pthread_condattr_default_aix+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        void foo(pthread_cond_t *bar) { pthread_cond_init(bar, &pthread_condattr_default); }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_condattr_default_aix=yes

else

        pike_cv_have_pthread_condattr_default_aix=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_condattr_default_aix" >&5
$as_echo "$pike_cv_have_pthread_condattr_default_aix" >&6; }

    if test x$pike_cv_have_pthread_condattr_default_aix = xyes ; then
      $as_echo "#define HAVE_PTHREAD_CONDATTR_DEFAULT_AIX 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_initial_thread_bos" >&5
$as_echo_n "checking for __pthread_initial_thread_bos... " >&6; }
    if ${pike_cv_have_pthread_initial_thread_bos+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <pthread.h>
        char *foo(void) { extern char *__pthread_initial_thread_bos;
           return __pthread_initial_thread_bos; }

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

        pike_cv_have_pthread_initial_thread_bos=yes

else

        pike_cv_have_pthread_initial_thread_bos=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_pthread_initial_thread_bos" >&5
$as_echo "$pike_cv_have_pthread_initial_thread_bos" >&6; }

    if test x$pike_cv_have_pthread_initial_thread_bos = xyes ; then
      $as_echo "#define HAVE_PTHREAD_INITIAL_THREAD_BOS 1" >>confdefs.h

    else
      :
    fi

##########################################################################

    # On Linux the threads don't inherit euid & egid from the main thread.
    # FIXME: Add a real test here!
	case "$pike_cv_sys_os" in
	  Linux*)
           # Since 2.6 it is not actually very likely to be broken,
           # since LinuxThreads is not used unless you patch the
           # kernel source and build your own kernel.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking If threads are broken ..." >&5
$as_echo_n "checking If threads are broken ...... " >&6; };
    if test "$cross_compiling" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
$as_echo "assuming no" >&6; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1

#include <pthread.h>

void *foo(void *bar) { return (void *)getpid();  }
pthread_mutexattr_t attr;
pthread_mutex_t tmp;
pthread_t gazonk;

int main()
{
  void *sune;
#ifdef HAVE_PTHREAD_INIT
  pthread_init();
#endif /* HAVE_PTHREAD_INIT */
  pthread_create(&gazonk,0,foo,0);
  pthread_join(gazonk,&sune);
  exit(((int)sune) != getpid());
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

else

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
 $as_echo "#define HAVE_BROKEN_LINUX_THREAD_EUID 1" >>confdefs.h

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	  ;;
          *kFreeBSD*)
	  ;;
	esac

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking behaviour of the pthread_t type" >&5
$as_echo_n "checking behaviour of the pthread_t type... " >&6; }
    if ${pike_cv_thread_t_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/types.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <pthread.h>
extern pthread_t bar;

int
main ()
{

	void *foo = (void *)(ptrdiff_t)bar;
	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_thread_t_type=integer
else
   pike_cv_thread_t_type=pointer
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_thread_t_type" >&5
$as_echo "$pike_cv_thread_t_type" >&6; }

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    LIBS="$OLDLIBS"
    CFLAGS="$OLDCFLAGS"

    echo "POSIX threads not working." >&5
    ulimit -a >&5 2>&5
    echo >&5

    # No POSIX threads.

    # Try UNIX threads instead

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking unix threads" >&5
$as_echo_n "checking unix threads... " >&6; }
    case "x$pike_cv_sys_os" in
      xUnixWare*|xOpenUNIX*)
  	if test "$GCC" = yes ; then
  	  CFLAGS="${CFLAGS} -pthread"
  	else
  	  CFLAGS="${CFLAGS} -Kthread"
  	fi
  	CFLAGS="${CFLAGS} -D_UNIXWARE_THREADS_"
      ;;
      *)
  	LIBS="${LIBS} -lthread"
      ;;
    esac

    if ${pike_cv_unix_threads+:} false; then :
  $as_echo_n "(cached) " >&6
else

      if test "$cross_compiling" = yes; then :
  pike_cv_unix_threads=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define _REENTRANT
#define _THREAD_SAFE
#define _MIT_POSIX_THREADS 1
#include <thread.h>
#ifdef _UNIXWARE_THREADS_
#include <synch.h>
#endif

void *foo(void *bar) { thr_exit(0); return 0; }
mutex_t tmp;
thread_t gazonk;

int main()
{
  void *sune;
  mutex_lock(& tmp);
  thr_create(0,0,foo,0,0,&gazonk);
  thr_join(gazonk,0,&sune);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_unix_threads=yes
else
  pike_cv_unix_threads=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


    if test x$pike_cv_unix_threads = xyes ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      $as_echo "#define _REENTRANT 1" >>confdefs.h

      $as_echo "#define _THREAD_SAFE 1" >>confdefs.h

      $as_echo "#define _UNIX_THREADS 1" >>confdefs.h

      $as_echo "#define PIKE_THREADS 1" >>confdefs.h

      using_threads="yes (unix)"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      LIBS="$OLDLIBS"
      CFLAGS="$OLDCFLAGS"

      # Now we've sunk really low -- test for proprietary threads

      # SGI old-style shared group processes
      # AC_CHECK_FUNCS(sproc oserror)
      #
      # AC_MSG_CHECKING(Fallback to sproc)
      #
      # if test x$ac_cv_func_sproc$ac_cv_func_oserror = xyesyes; then
      #   AC_MSG_RESULT(yes)
      #   AC_DEFINE(_REENTRANT)
      #   AC_DEFINE(_THREAD_SAFE)
      #   AC_DEFINE(_SGI_SPROC_THREADS)
      #   AC_DEFINE(_SGI_MP_SOURCE)
      #   using_threads="yes (sgi)"
      # else
      #   AC_MSG_RESULT(no)
      #   :
      # fi
    fi # UNIX threads

    pike_cv_thread_t_type=integer
  fi # POSIX threads
fi  # NT
else
  # Without threads
  pike_cv_thread_t_type=integer
  :
fi

if test "x$pike_cv_thread_t_type" = "xpointer"; then
  $as_echo "#define PIKE_THREAD_T_IS_POINTER 1" >>confdefs.h

fi

if test "x$pike_cv_sys_os" = "xWindows_NT" -o "x$pike_cv_sys_os" = "xAmigaOS"; then :; else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking initial stack limit" >&5
$as_echo_n "checking initial stack limit... " >&6; }
  if ${pike_cv_initial_stack_size+:} false; then :
  $as_echo_n "(cached) " >&6
else

    old_core_limit=`ulimit -c`
    ulimit -Sc 0
    rm -f confdefs.out.2 >/dev/null 2>&1 || :
    if test "$cross_compiling" = yes; then :
  pike_cv_initial_stack_size=''
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

      static int depth=0;
      FILE *f;

      void save_depth(void);

      void use_stack(void *page)
      {
        void *X[8190];
        X[0]=page;
        save_depth();
        use_stack(&X);
      }

      void save_depth(void)
      {
        depth+=sizeof(void *)*8192;
        fprintf(f,"%d\n",depth);
        fflush(f);
        if(depth>0x80000000) exit(0);
      }

      int main(int argc)
      {
        f=fopen("confdefs.out.2", "w");
	/* weird filename to circumvent configure weirdness */
        save_depth();
        use_stack(0);
      }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_initial_stack_size=''
else

      pike_cv_initial_stack_size=32768
      while read x; do
	# Some paranoia in case fprintf outputs junk at and of stack...
	if test "$pike_cv_initial_stack_size" -lt "$x"; then
          pike_cv_initial_stack_size="$x";
	fi
      done <confdefs.out.2
      if test "$pike_cv_initial_stack_size" = "32768"; then
	# Some sort of unsupported failure.
	pike_cv_initial_stack_size=''
      fi

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    ulimit -c $old_core_limit
    unset old_core_limit
    rm -f confdefs.out.2 >/dev/null 2>/dev/null || :

fi

  if test x$pike_cv_initial_stack_size = x ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unlimited" >&5
$as_echo "unlimited" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_initial_stack_size" >&5
$as_echo "$pike_cv_initial_stack_size" >&6; }
    cat >>confdefs.h <<_ACEOF
#define Pike_INITIAL_STACK_SIZE $pike_cv_initial_stack_size
_ACEOF

  fi
fi

########################################################################


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking mutex error check flag" >&5
$as_echo_n "checking mutex error check flag... " >&6; }
  if ${pike_cv_PIKE_MUTEX_ERRORCHECK_value+:} false; then :
  $as_echo_n "(cached) " >&6
else

    pike_cv_PIKE_MUTEX_ERRORCHECK_value=""
    for const in PTHREAD_MUTEX_ERRORCHECK PTHREAD_MUTEX_ERRORCHECK_NP
    do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#elif defined (HAVE_THREAD_H)
#include <thread.h>
#endif

int
main ()
{
int tmp = (int) $const;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	pike_cv_PIKE_MUTEX_ERRORCHECK_value="$const"
	break

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    done

fi

  if test x"$pike_cv_PIKE_MUTEX_ERRORCHECK_value" != x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_PIKE_MUTEX_ERRORCHECK_value" >&5
$as_echo "$pike_cv_PIKE_MUTEX_ERRORCHECK_value" >&6; }
    cat >>confdefs.h <<_ACEOF
#define PIKE_MUTEX_ERRORCHECK $pike_cv_PIKE_MUTEX_ERRORCHECK_value
_ACEOF

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  fi


########################################################################


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking recursive mutex flag" >&5
$as_echo_n "checking recursive mutex flag... " >&6; }
  if ${pike_cv_PIKE_MUTEX_RECURSIVE_value+:} false; then :
  $as_echo_n "(cached) " >&6
else

    pike_cv_PIKE_MUTEX_RECURSIVE_value=""
    for const in PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
    do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#elif defined (HAVE_THREAD_H)
#include <thread.h>
#endif

int
main ()
{
int tmp = (int) $const;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	pike_cv_PIKE_MUTEX_RECURSIVE_value="$const"
	break

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    done

fi

  if test x"$pike_cv_PIKE_MUTEX_RECURSIVE_value" != x; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_PIKE_MUTEX_RECURSIVE_value" >&5
$as_echo "$pike_cv_PIKE_MUTEX_RECURSIVE_value" >&6; }
    cat >>confdefs.h <<_ACEOF
#define PIKE_MUTEX_RECURSIVE $pike_cv_PIKE_MUTEX_RECURSIVE_value
_ACEOF

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  fi


########################################################################





  if test "x$enable_binary" != "xno"; then
    for ac_header in stdlib.h unistd.h sys/param.h
do :


  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :

    if test x$pike_cv_funcs_need_decls = xyes; then
      def=HAVE_`echo "$ac_header" | tr '[a-z]' '[A-Z]' | sed -e 's,[-./],_,g'`
      cat >> hdrlist.h <<EOF
#ifdef $def
#include <$ac_header>
#endif
EOF
    fi
    cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF


fi


done

  else
    for ac_hdr in stdlib.h unistd.h sys/param.h
    do
      ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
      eval "ac_cv_header_$ac_safe=yes"
    done
  fi


for ac_func in getpagesize
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
$as_echo_n "checking for getpagesize... " >&6; }
if ${ac_cv_func_getpagesize+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef getpagesize
void *f = (void *) getpagesize;
#endif

int
main ()
{

#ifdef getpagesize
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != getpagesize;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_getpagesize=yes"
else
  eval "ac_cv_func_getpagesize=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define getpagesize innocuous_getpagesize

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpagesize (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef getpagesize
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpagesize ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
choke me
#else
char (*f) () = getpagesize;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != getpagesize;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_getpagesize=yes"
else
  eval "ac_cv_func_getpagesize=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETPAGESIZE 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
$as_echo_n "checking for working mmap... " >&6; }
if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_func_mmap_fixed_mapped=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  const char *cdata2;
  int i, pagesize;
  int fd, fd2;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    return 1;
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    return 2;
  if (write (fd, data, pagesize) != pagesize)
    return 3;
  close (fd);

  /* Next, check that the tail of a page is zero-filled.  File must have
     non-zero length, otherwise we risk SIGBUS for entire page.  */
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  if (fd2 < 0)
    return 4;
  cdata2 = "";
  if (write (fd2, cdata2, 1) != 1)
    return 5;
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  if (data2 == MAP_FAILED)
    return 6;
  for (i = 0; i < pagesize; ++i)
    if (*(data2 + i))
      return 7;
  close (fd2);
  if (munmap (data2, pagesize))
    return 8;

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    return 9;
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    return 10;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      return 11;

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    return 12;
  if (read (fd, data3, pagesize) != pagesize)
    return 13;
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      return 14;
  close (fd);
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_mmap_fixed_mapped=yes
else
  ac_cv_func_mmap_fixed_mapped=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_mmap_fixed_mapped = yes; then

$as_echo "#define HAVE_MMAP 1" >>confdefs.h

fi
rm -f conftest.mmap conftest.txt




if test "x$ac_cv_func_mmap_fixed_mapped" = "xyes"; then
  # Mac OS X has an mmap that fails with ENODEV if we try
  # to use it for mexec_alloc et al.
  #
  # NB: mmap with MAP_ANON does however work.
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mmap can be used to allocate PROT_EXEC" >&5
$as_echo_n "checking if mmap can be used to allocate PROT_EXEC... " >&6; }
  if ${pike_cv_mmap_PROT_EXEC+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif

#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif

#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

#include <errno.h>

#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS	MAP_ANON
#endif /* !MAP_ANONYMOUS && MAP_ANON */

#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS	MAP_ANON
#endif /* !MAP_ANONYMOUS && MAP_ANON */

int
main ()
{

        void *ptr;
	int dev_zero = -1;
#ifndef MAP_ANONYMOUS
        /* Neither MAP_ANONYMOUS nor MAP_ANON.
         * Map some /dev/zero.
         */
        dev_zero = open("/dev/zero", O_RDONLY);
	if (dev_zero < 0) return 1;
#define MAP_ANONYMOUS	0
#endif /* !MAP_ANONYMOUS */
	if ((ptr = mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,
		        MAP_PRIVATE|MAP_ANONYMOUS,
			dev_zero, 0)) == MAP_FAILED) {
	  return 2;
	}
	return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

        pike_cv_mmap_PROT_EXEC="yes"

else

        pike_cv_mmap_PROT_EXEC="no"

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif

#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif

#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

#include <errno.h>

#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS	MAP_ANON
#endif /* !MAP_ANONYMOUS && MAP_ANON */

      int main(int argc, char **argv)
      {
        void *ptr;
	int dev_zero = -1;
#ifndef MAP_ANONYMOUS
        /* Neither MAP_ANONYMOUS nor MAP_ANON.
         * Map some /dev/zero.
         */
        dev_zero = open("/dev/zero", O_RDONLY);
	if (dev_zero < 0) {
	  fprintf(stderr, "open(\"/dev/zero\", O_RDONLY) failed. errno: %d\n",
		  errno);
	  return 1;
	}
#define MAP_ANONYMOUS	0
#endif /* !MAP_ANONYMOUS */
	if ((ptr = mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,
		        MAP_PRIVATE|MAP_ANONYMOUS,
			dev_zero, 0)) == MAP_FAILED) {
	  fprintf(stderr, "mmap(NULL, 8192, PROT_EXEC|PROT_READ|PROT_WRITE,\n"
			  "MAP_PRIVATE|MAP_ANONYMOUS, %d, 0) failed. errno: %d\n",
		  dev_zero,
		  errno);
	  return 2;
	}
	return 0;
      }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

      pike_cv_mmap_PROT_EXEC="yes"

else

      pike_cv_mmap_PROT_EXEC="no"

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_mmap_PROT_EXEC" >&5
$as_echo "$pike_cv_mmap_PROT_EXEC" >&6; }
  if test "x$pike_cv_mmap_PROT_EXEC" = "xyes"; then
    $as_echo "#define MEXEC_USES_MMAP 1" >>confdefs.h

  fi
fi

for ac_func in \
 _crypt \
 poll \
 accept4 \
 closefrom \
 crypt \
 fdwalk \
 ftruncate64 \
 gethrtime \
 gethrvtime \
 getrlimit \
 getrusage \
 gettimeofday \
 getwd \
 get_current_dir_name \
 inet_ntop \
 gmtime_r \
 gmtime_s \
 strptime \
 mallinfo \
 mallopt \
 ptrace \
 setrlimit \
 setresuid \
 sigaction \
 sigvec \
 strcasecmp \
 times \
 truncate64 \
 tzset \
 _snprintf \
 snprintf \
 vsnprintf \
 wait3 \
 wait4 \
 waitpid \
 munmap \
 shl_load \
 dld_link \
 dld_get_func \
 pipe \
 strdup \
 kill \
 alarm \
 fork1 \
 flock \
 lockf \
 setuid getuid seteuid geteuid \
 setgid getgid getegid \
 getpwent getpwnam getpwuid \
 getgrent getgrnam \
 setsid \
 initgroups setgroups \
 socketpair \
 bswap16 \
 __bswap16 \
 bswap32 \
 __bswap32 \
 bswap64 \
 __bswap64 \
 fpclass \
 fp_class_d \
 isinf \
 isnan \
 iszero \
 finite \
 signbit \
 nan \
 nice \
 __priocntl \
 sched_setscheduler \
 setpriority \
 nanosleep \
 sched_yield \
 thr_yield \
 prctl \
 SetFilePointerEx \
 sync_instruction_memory \
 MakeDataExecutable \
 _get_timezone \
 _get_daylight \
 localtime_s \
 sysconf \
 getpagesize \
 GetSystemInfo \
 clock_getcpuclockid \
 backtrace \
 SetErrorMode \
 thread_info \
 host_get_clock_service \
 posix_memalign \

do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if eval \${ac_cv_func_$ac_func+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef $ac_func
void *f = (void *) $ac_func;
#endif

int
main ()
{

#ifdef $ac_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done


# SunOS 4 realloc() returns NULL when reallocing NULL.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc(NULL, SZ) works" >&5
$as_echo_n "checking if realloc(NULL, SZ) works... " >&6; }
if ${pike_cv_realloc_null_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
   pike_cv_realloc_null_works=no

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
  void *foo = realloc(NULL, 16);

  return !foo;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   pike_cv_realloc_null_works=yes

else
   pike_cv_realloc_null_works=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

if test "x$pike_cv_realloc_null_works" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define HAVE_WORKING_REALLOC_NULL 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the type of the last argument to accept" >&5
$as_echo_n "checking for the type of the last argument to accept... " >&6; }
if ${pike_cv_accept_size_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

  for t in socklen_t size_t int; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

/* NT */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
/* Needed for IPv6 support. */
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

/* Here is the actual test: */
int accept(int, struct sockaddr *, $t *);

int
main ()
{

      /* EMPTY */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_accept_size_t=$t
      break

else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

/* NT */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
/* Needed for IPv6 support. */
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

/* Here is the actual test: */
SOCKET accept(SOCKET, struct sockaddr *, $t *);

int
main ()
{

        /* EMPTY */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	pike_cv_accept_size_t=$t
	break

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
  if test "x$pike_cv_accept_size_t" = "x"; then
    # Check if it could be a Psocklen_t
    # Psocklen_t is a stupid typedef of socklen_t *.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

/* NT */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
/* Needed for IPv6 support. */
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

/* Here is the actual test: */
int accept(int, struct sockaddr *, Psocklen_t);

int
main ()
{

      /* EMPTY */

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_accept_size_t=socklen_t

else

      # FIXME: Should probably have a warning here.
      # FIXME: Should we check if socklen_t exists, and use that?
      pike_cv_accept_size_t=int

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  fi

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_accept_size_t *" >&5
$as_echo "$pike_cv_accept_size_t *" >&6; }
cat >>confdefs.h <<_ACEOF
#define ACCEPT_SIZE_T $pike_cv_accept_size_t
_ACEOF


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getcwd" >&5
$as_echo_n "checking for working getcwd... " >&6; }
if ${pike_cv_func_working_getcwd+:} false; then :
  $as_echo_n "(cached) " >&6
else

# First try getcwd(NULL, 0).
# This is the working == yes case, and is true on glibc and win32.
if test "$cross_compiling" = yes; then :
  # Assume that getcwd(NULL, val) works.
  pike_cv_func_working_getcwd=some
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif /* HAVE_DIRECT_H */
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#include <signal.h>

#include <stdlib.h>
#include <string.h>

#ifndef __NT__
int sig_child(int arg)
{
#ifdef HAVE_WAITPID
  waitpid(-1,0,WNOHANG);
#else
#ifdef HAVE_WAIT3
  wait3(0,WNOHANG,0);
#else
#ifdef HAVE_WAIT4
  wait3(-1,0,WNOHANG,0);
#else

  /* Leave them hanging */

#endif /* HAVE_WAIT4 */
#endif /* HAVE_WAIT3 */
#endif /* HAVE_WAITPID */

#ifdef SIGNAL_ONESHOT
  signal(SIGCHLD, sig_child);
#endif
}

int sig_alarm() { exit(1); }
#endif /* !__NT__ */

int main()
{
  char *tmp;
#ifndef __NT__
  signal(SIGCHLD,sig_child);
  signal(SIGALRM,sig_alarm);
  alarm(4);
#endif /* !__NT__ */
  tmp=getcwd(0,0);
  if(tmp && tmp[0] && (strlen(tmp) < 10000)) {
    free(tmp);
    exit(0);
  }
  exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_working_getcwd=yes
else

# The getcwd(NULL, 0) case failed.
# Retry with getcwd(NULL, 10000).
# This is the working == some case, and is true on Solaris.
if test "$cross_compiling" = yes; then :
  # NB: This should be unreachable.
  pike_cv_func_working_getcwd=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif /* HAVE_DIRECT_H */
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#include <signal.h>

#include <stdlib.h>
#include <string.h>

#ifndef __NT__
int sig_child(int arg)
{
#ifdef HAVE_WAITPID
  waitpid(-1,0,WNOHANG);
#else
#ifdef HAVE_WAIT3
  wait3(0,WNOHANG,0);
#else
#ifdef HAVE_WAIT4
  wait3(-1,0,WNOHANG,0);
#else

  /* Leave them hanging */

#endif /* HAVE_WAIT4 */
#endif /* HAVE_WAIT3 */
#endif /* HAVE_WAITPID */

#ifdef SIGNAL_ONESHOT
  signal(SIGCHLD, sig_child);
#endif
}

int sig_alarm() { exit(1); }
#endif /* !__NT__ */

int main()
{
  char *tmp;
#ifndef __NT__
  signal(SIGCHLD,sig_child);
  signal(SIGALRM,sig_alarm);
  alarm(4);
#endif /* !__NT__ */
  tmp=getcwd(0,10000);
  if(tmp && tmp[0] && (strlen(tmp) < 10000)) {
    free(tmp);
    exit(0);
  }
  exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_working_getcwd=some
else
  pike_cv_func_working_getcwd=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


if test "$pike_cv_func_working_getcwd" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define HAVE_WORKING_GETCWD 1" >>confdefs.h

elif test "$pike_cv_func_working_getcwd" = some; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: some" >&5
$as_echo "some" >&6; }
  $as_echo "#define HAVE_WORKING_GETCWD 0" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes 1 or 2 arguments" >&5
$as_echo_n "checking if mkdir takes 1 or 2 arguments... " >&6; }
if ${pike_cv_func_mkdir_args+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
#  define __STDC_EXT__
#endif /* !__STDC_EXT__ */

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif

int
main ()
{

  mkdir("conftestdir",0666);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_func_mkdir_args=2
else
  pike_cv_func_mkdir_args=1
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_mkdir_args" >&5
$as_echo "$pike_cv_func_mkdir_args" >&6; }
cat >>confdefs.h <<_ACEOF
#define MKDIR_ARGS $pike_cv_func_mkdir_args
_ACEOF


if test x"$pike_cv_sys_os" = xWindows_NT ; then
 $as_echo "#define HAVE_LOADLIBRARY 1" >>confdefs.h

 $as_echo "#define HAVE_FREELIBRARY 1" >>confdefs.h

 $as_echo "#define HAVE_GETPROCADDRESS 1" >>confdefs.h

 $as_echo "#define DL_EXPORT _dlspec(export)" >>confdefs.h

else
 $as_echo "#define DL_EXPORT /**/" >>confdefs.h

fi

if test $ac_cv_func_crypt$ac_cv_func__crypt = nono ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
if ${ac_cv_lib_crypt_crypt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypt  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char crypt ();
int
main ()
{
return crypt ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_crypt_crypt=yes
else
  ac_cv_lib_crypt_crypt=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
  LIBS="${LIBS} -lcrypt" ; $as_echo "#define HAVE_CRYPT 1" >>confdefs.h

else

  if test -f "$srcdir/crypt.c"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using crypt.c for BSD style crypt()" >&5
$as_echo "Using crypt.c for BSD style crypt()" >&6; }
    EXTRA_OBJS="${EXTRA_OBJS} crypt.o"
    $as_echo "#define HAVE_CRYPT 1" >>confdefs.h

    $as_echo "#define USE_CRYPT_C 1" >>confdefs.h

  else
    :
  fi

fi


fi


#############################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working infnan" >&5
$as_echo_n "checking for working infnan... " >&6; }
  if ${pike_cv_func_infnan+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <errno.h>
#include <math.h>

int
main ()
{

  double pinf = infnan(ERANGE);
  double ninf = infnan(-ERANGE);
  double nan = infnan(EDOM);
  exit(!(isinf(pinf)>0 && isinf(ninf)<0 && isnan(nan)));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_infnan=yes
else
  pike_cv_func_infnan=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <errno.h>
#include <math.h>

int main() {

  double pinf = infnan(ERANGE);
  double ninf = infnan(-ERANGE);
  double nan = infnan(EDOM);
  exit(!(isinf(pinf)>0 && isinf(ninf)<0 && isnan(nan)));
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_infnan=yes
else
  pike_cv_func_infnan=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_infnan" >&5
$as_echo "$pike_cv_func_infnan" >&6; }
  if test $pike_cv_func_infnan = yes; then
    $as_echo "#define HAVE_INFNAN 1" >>confdefs.h

  else :; fi

#############################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working _isnan" >&5
$as_echo_n "checking for working _isnan... " >&6; }
  if ${pike_cv_func__isnan+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <float.h>

int
main ()
{

  exit(_isnan(0.0));

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func__isnan=yes
else
  pike_cv_func__isnan=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <float.h>

int main() {

  exit(_isnan(0.0));
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func__isnan=yes
else
  pike_cv_func__isnan=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func__isnan" >&5
$as_echo "$pike_cv_func__isnan" >&6; }
  if test $pike_cv_func__isnan = yes; then
    $as_echo "#define HAVE__ISNAN 1" >>confdefs.h

  else :; fi

#############################################################################
# isfinite() is a macro on at least OS X and Linux which doesn't play well
# with AC_CHECK_FUNCS().

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working isfinite" >&5
$as_echo_n "checking for working isfinite... " >&6; }
  if ${pike_cv_func_isfinite+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>

int
main ()
{

  int t = isfinite(0.0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_isfinite=yes
else
  pike_cv_func_isfinite=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <math.h>

int main() {

  int t = isfinite(0.0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_isfinite=yes
else
  pike_cv_func_isfinite=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_isfinite" >&5
$as_echo "$pike_cv_func_isfinite" >&6; }
  if test $pike_cv_func_isfinite = yes; then
    $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h

  else :; fi

#############################################################################

# FreeBSD 3.0 has broken F_SETFD when running with threads.

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether F_SETFD exists and works" >&5
$as_echo_n "checking whether F_SETFD exists and works... " >&6; }

if ${pike_cv_broken_f_setfd+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_broken_f_setfd=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#include <sys/stat.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif /* HAVE_FCNTL_H */
#include <stdio.h>
#ifndef FD_CLOEXEC
#define FD_CLOEXEC 1
#endif /* FD_CLOEXEC */
int main(int argc, char **argv)
{
  int fd = 0;
  if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
    exit(1);
  }
  if (fcntl(fd, F_GETFD) != FD_CLOEXEC) {
    exit(1);
  }
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_broken_f_setfd=no
else
  pike_cv_broken_f_setfd=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


if test "x$pike_cv_broken_f_setfd" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  $as_echo "#define HAVE_BROKEN_F_SETFD 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>

int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_struct_tm=time.h
else
  ac_cv_struct_tm=sys/time.h
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then

$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h

fi


#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extern int timezone" >&5
$as_echo_n "checking extern int timezone... " >&6; }

if ${pike_cv_has_external_timezone+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <time.h>

int
main ()
{

  int _tz;
  _tz=timezone;
  timezone=_tz;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_has_external_timezone=yes
else
  pike_cv_has_external_timezone=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi


if test "$pike_cv_has_external_timezone" = "yes"; then
  $as_echo "#define HAVE_EXTERNAL_TIMEZONE 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_has_external_timezone" >&5
$as_echo "$pike_cv_has_external_timezone" >&6; }

#############################################################################

# No test for this yet...
$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h


#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_in6" >&5
$as_echo_n "checking struct sockaddr_in6... " >&6; }

if ${pike_cv_has_struct_sockaddr_in6+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif /* HAVE_SYS_SOCKET_H */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif /* HAVE_NETINET_IN_H */
#ifdef HAVE_WINSOCK2_H
#include <WinSock2.h>
#ifdef HAVE_WS2TCPIP_H
#include <WS2tcpip.h>
#endif
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

int
main ()
{

  struct sockaddr_in6 foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_has_struct_sockaddr_in6=yes
else
  pike_cv_has_struct_sockaddr_in6=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi


if test "$pike_cv_has_struct_sockaddr_in6" = "yes"; then
  $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_has_struct_sockaddr_in6" >&5
$as_echo "$pike_cv_has_struct_sockaddr_in6" >&6; }

#############################################################################

if test $ac_cv_header_malloc_h = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct mallinfo in malloc.h" >&5
$as_echo_n "checking struct mallinfo in malloc.h... " >&6; }
  if ${pike_cv_struct_mallinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif

int
main ()
{

      struct mallinfo foo;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_struct_mallinfo=yes
else
  pike_cv_struct_mallinfo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

  if test $pike_cv_struct_mallinfo = yes; then

$as_echo "#define HAVE_STRUCT_MALLINFO 1" >>confdefs.h

  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_mallinfo" >&5
$as_echo "$pike_cv_struct_mallinfo" >&6; }
fi

#############################################################################

#   if test "x$ac_cv_func_gethrtime" != "xyes"; then
#     AC_MSG_CHECKING(if we can make gethrtime by the RDTSC instruction)
#     AC_CACHE_VAL(pike_cv_own_gethrtime_rdtsc, [
#   	 AC_TRY_RUN([
#   #include <unistd.h>
#   #include <stdio.h>
#   #include <sys/time.h>
#
#   static long long hrtime_rtsc_zero;
#   static long long hrtime_rtsc_last;
#   static long long hrtime_max;
#   static struct timeval hrtime_timeval_zero;
#   static long double hrtime_conv=0.0;
#
#   #define GETTIMEOFDAY(PTR) gettimeofday(PTR,NULL)
#
#   #define RTSC(x)   							\
#      __asm__ __volatile__ (  "rdtsc"                			\
#   			       :"=a" (((unsigned long*)&x)[0]), 		\
#   			       "=d" (((unsigned long*)&x)[1]))
#
#   void own_gethrtime_init()
#   {
#      GETTIMEOFDAY(&hrtime_timeval_zero);
#      RTSC(hrtime_rtsc_zero);
#      hrtime_rtsc_last=hrtime_rtsc_zero;
#      hrtime_max=0;
#   }
#
#   int own_gethrtime_update(struct timeval *ptr)
#   {
#      long long td,t,now;
#      GETTIMEOFDAY(ptr);
#      RTSC(now);
#      td=((long long)ptr->tv_sec-hrtime_timeval_zero.tv_sec)*1000000000+
#   	  ((long long)ptr->tv_usec-hrtime_timeval_zero.tv_usec)*1000;
#
#      hrtime_rtsc_last=now;
#      t=now-hrtime_rtsc_zero;
#      if (t) hrtime_conv=((long double)td)/t;
#
#      return 1;
#   }
#
#   /* this is very sensitive to the compiler; keep all crap */
#
#   long long gethrtime()
#   {
#      long long now;
#      struct timeval tv;
#
#      if (hrtime_conv==0.0)
#      {
#   	  if (!own_gethrtime_update(&tv))  /* not calibrated yet */
#   	  {
#   	     return
#   		hrtime_max=
#   		((long long)tv.tv_sec-hrtime_timeval_zero.tv_sec)*1000000000+
#   		((long long)tv.tv_usec-hrtime_timeval_zero.tv_usec)*1000;
#   	  }
#      }
#
#      RTSC(now);
#
#      if (now-hrtime_rtsc_last > 2000000000)
#      {
#   	  own_gethrtime_update(&tv);
#   	  return gethrtime();
#      }
#
#      now = (long long) ( (long double)(now-hrtime_rtsc_zero) * hrtime_conv );
#
#      if (now<hrtime_max) now=hrtime_max;
#      return hrtime_max=now;
#   }
#
#   #include <stdio.h>
#
#   int main()
#   {
#      struct timeval tv1,tv2;
#      long long td,t1,t2;
#      own_gethrtime_init();
#
#      usleep(10);
#      own_gethrtime_update(&tv2);
#
#      t1=gethrtime();
#
#      gettimeofday(&tv1,NULL);
#      for (;;) /* busy loop */
#      {
#   	  GETTIMEOFDAY(&tv2);
#   	  td=((long long)tv2.tv_sec-tv1.tv_sec)*1000000000+
#   	     ((long long)tv2.tv_usec-tv1.tv_usec)*1000;
#   	  if (td>1000000) break;
#      }
#      t2=gethrtime();
#
#   /*   printf("t2-t1=%lld\n",t2-t1);  */
#
#      if (t2==hrtime_rtsc_zero ||
#   	   t2-t1>1100000 ||
#   	   t2-t1<900000) return 1;
#
#      return 0;
#   }], pike_cv_own_gethrtime_rdtsc=yes,
#   	    pike_cv_own_gethrtime_rdtsc=no, pike_cv_own_gethrtime_rdtsc=no)
#   	    ])
#     if test "x$pike_cv_own_gethrtime_rdtsc" = "xyes"; then
#   	AC_MSG_RESULT(yes)
#   	AC_DEFINE(OWN_GETHRTIME)
#   	AC_DEFINE(OWN_GETHRTIME_RDTSC)
#   	AC_DEFINE(HAVE_GETHRTIME)
#     else
#   	AC_MSG_RESULT([no])
#     fi
#   fi
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct tm has tm_gmtoff" >&5
$as_echo_n "checking if struct tm has tm_gmtoff... " >&6; }

if ${pike_cv_struct_tm_has_gmtoff+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
#else
#include <time.h>
#endif

int
main ()
{

  int _tz;
  struct tm foo;
  _tz=foo.tm_gmtoff;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_struct_tm_has_gmtoff=yes
else
  pike_cv_struct_tm_has_gmtoff=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test "$pike_cv_struct_tm_has_gmtoff" = "yes"; then
  $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_tm_has_gmtoff" >&5
$as_echo "$pike_cv_struct_tm_has_gmtoff" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct tm has __tm_gmtoff" >&5
$as_echo_n "checking if struct tm has __tm_gmtoff... " >&6; }

if ${pike_cv_struct_tm_has___tm_gmtoff+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
#else
#include <time.h>
#endif

int
main ()
{

  int _tz;
  struct tm foo;
  _tz=foo.__tm_gmtoff;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_struct_tm_has___tm_gmtoff=yes
else
  pike_cv_struct_tm_has___tm_gmtoff=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test "$pike_cv_struct_tm_has___tm_gmtoff" = "yes"; then
  $as_echo "#define STRUCT_TM_HAS___TM_GMTOFF 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_struct_tm_has___tm_gmtoff" >&5
$as_echo "$pike_cv_struct_tm_has___tm_gmtoff" >&6; }

#############################################################################
# iovec

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct iovec is defined" >&5
$as_echo_n "checking if struct iovec is defined... " >&6; }
if ${pike_cv_struct_iovec+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#include <unistd.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif /* HAVE_SYS_UIO_H */

int
main ()
{

    struct iovec iov;

    iov.iov_base = (void *)0;
    iov.iov_len = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_struct_iovec=yes
else
   pike_cv_struct_iovec=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

if test "$pike_cv_struct_iovec" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define HAVE_STRUCT_IOVEC 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

#############################################################################
# msghdr et al.

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr is defined" >&5
$as_echo_n "checking if struct msghdr is defined... " >&6; }
if ${pike_cv_struct_msghdr+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Needed for <sys/socket.h> on FreeBSD 4.9. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{

    struct msghdr msg;

    msg.msg_iov = (void *)0;
    msg.msg_iovlen = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_struct_msghdr=yes
else
   pike_cv_struct_msghdr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

if test "$pike_cv_struct_msghdr" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define HAVE_STRUCT_MSGHDR 1" >>confdefs.h


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has the member msg_control (XPG 4.2)" >&5
$as_echo_n "checking if struct msghdr has the member msg_control (XPG 4.2)... " >&6; }
  if ${pike_cv_struct_msghdr_msg_control+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Needed for <sys/socket.h> on FreeBSD 4.9. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{

      struct msghdr msg;

      msg.msg_control = (void *)0;
      msg.msg_controllen = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_struct_msghdr_msg_control=yes
else

      pike_cv_struct_msghdr_msg_control=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "$pike_cv_struct_msghdr_msg_control" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct msghdr has the member msg_accrights (old BSD)" >&5
$as_echo_n "checking if struct msghdr has the member msg_accrights (old BSD)... " >&6; }
  if ${pike_cv_struct_msghdr_msg_accrights+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Needed for <sys/socket.h> on FreeBSD 4.9. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{

      struct msghdr msg;

      msg.msg_accrights = (void *)0;
      msg.msg_accrightslen = 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_struct_msghdr_msg_accrights=yes
else

      pike_cv_struct_msghdr_msg_accrights=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "$pike_cv_struct_msghdr_msg_accrights" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USHRT_MAX definition" >&5
$as_echo_n "checking for USHRT_MAX definition... " >&6; }

if ${pike_cv_ushrt_max_is_defined+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <limits.h>
#ifdef USHRT_MAX
oui
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "oui" >/dev/null 2>&1; then :
  pike_cv_ushrt_max_is_defined=yes
else
  pike_cv_ushrt_max_is_defined=no
fi
rm -f conftest*


fi


if test "$pike_cv_ushrt_max_is_defined" = "no" ; then
  $as_echo "#define USHRT_MAX 65535" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_ushrt_max_is_defined" >&5
$as_echo "$pike_cv_ushrt_max_is_defined" >&6; }




 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr declaration" >&5
$as_echo_n "checking for strchr declaration... " >&6; }
 if ${pike_cv_decl_strchr+:} false; then :
  $as_echo_n "(cached) " >&6
else

   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_strchr=nonexistent
   for a in string.h unistd.h stdlib.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "strchr" >/dev/null 2>&1; then :
   pike_cv_decl_strchr=existent; break
fi
rm -f conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "strchr" >/dev/null 2>&1; then :
   pike_cv_decl_strchr=existent; break
fi
rm -f conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_strchr" >&5
$as_echo "$pike_cv_decl_strchr" >&6; }
 if test "$pike_cv_decl_strchr" = nonexistent -o "$pike_cv_decl_strchr" = nonexistant; then
   $as_echo "#define STRCHR_DECL_MISSING 1" >>confdefs.h

 fi


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration" >&5
$as_echo_n "checking for malloc declaration... " >&6; }
 if ${pike_cv_decl_malloc+:} false; then :
  $as_echo_n "(cached) " >&6
else

   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_malloc=nonexistent
   for a in memory.h unistd.h stdlib.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "malloc" >/dev/null 2>&1; then :
   pike_cv_decl_malloc=existent; break
fi
rm -f conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "malloc" >/dev/null 2>&1; then :
   pike_cv_decl_malloc=existent; break
fi
rm -f conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_malloc" >&5
$as_echo "$pike_cv_decl_malloc" >&6; }
 if test "$pike_cv_decl_malloc" = nonexistent -o "$pike_cv_decl_malloc" = nonexistant; then
   $as_echo "#define MALLOC_DECL_MISSING 1" >>confdefs.h

 fi


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration" >&5
$as_echo_n "checking for getpeername declaration... " >&6; }
 if ${pike_cv_decl_getpeername+:} false; then :
  $as_echo_n "(cached) " >&6
else

   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_getpeername=nonexistent
   for a in sys/socket.h sys/socketvar.h sys/socketio.h winsock.h winsock2.h ws2tcpip.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "getpeername" >/dev/null 2>&1; then :
   pike_cv_decl_getpeername=existent; break
fi
rm -f conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "getpeername" >/dev/null 2>&1; then :
   pike_cv_decl_getpeername=existent; break
fi
rm -f conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_getpeername" >&5
$as_echo "$pike_cv_decl_getpeername" >&6; }
 if test "$pike_cv_decl_getpeername" = nonexistent -o "$pike_cv_decl_getpeername" = nonexistant; then
   $as_echo "#define GETPEERNAME_DECL_MISSING 1" >>confdefs.h

 fi


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for popen declaration" >&5
$as_echo_n "checking for popen declaration... " >&6; }
 if ${pike_cv_decl_popen+:} false; then :
  $as_echo_n "(cached) " >&6
else

   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_popen=nonexistent
   for a in stdio.h unistd.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "popen" >/dev/null 2>&1; then :
   pike_cv_decl_popen=existent; break
fi
rm -f conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "popen" >/dev/null 2>&1; then :
   pike_cv_decl_popen=existent; break
fi
rm -f conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_popen" >&5
$as_echo "$pike_cv_decl_popen" >&6; }
 if test "$pike_cv_decl_popen" = nonexistent -o "$pike_cv_decl_popen" = nonexistant; then
   $as_echo "#define POPEN_DECL_MISSING 1" >>confdefs.h

 fi


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getenv declaration" >&5
$as_echo_n "checking for getenv declaration... " >&6; }
 if ${pike_cv_decl_getenv+:} false; then :
  $as_echo_n "(cached) " >&6
else

   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_getenv=nonexistent
   for a in unistd.h stdlib.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "getenv" >/dev/null 2>&1; then :
   pike_cv_decl_getenv=existent; break
fi
rm -f conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "getenv" >/dev/null 2>&1; then :
   pike_cv_decl_getenv=existent; break
fi
rm -f conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_getenv" >&5
$as_echo "$pike_cv_decl_getenv" >&6; }
 if test "$pike_cv_decl_getenv" = nonexistent -o "$pike_cv_decl_getenv" = nonexistant; then
   $as_echo "#define GETENV_DECL_MISSING 1" >>confdefs.h

 fi


 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration" >&5
$as_echo_n "checking for gethostname declaration... " >&6; }
 if ${pike_cv_decl_gethostname+:} false; then :
  $as_echo_n "(cached) " >&6
else

   OLD_CPPFLAGS="$CPPFLAGS"
   pike_cv_decl_gethostname=nonexistent
   for a in unistd.h netdb.h winsock.h winsock2.h ws2tcpip.h
   do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "gethostname" >/dev/null 2>&1; then :
   pike_cv_decl_gethostname=existent; break
fi
rm -f conftest*


     # Kludge for MacOS X. Retry with the traditional cpp...
     CPPFLAGS="$CPPFLAGS -traditional-cpp"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$a>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "gethostname" >/dev/null 2>&1; then :
   pike_cv_decl_gethostname=existent; break
fi
rm -f conftest*

     CPPFLAGS="$OLD_CPPFLAGS"
   done
   CPPFLAGS="$OLD_CPPFLAGS"

fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_decl_gethostname" >&5
$as_echo "$pike_cv_decl_gethostname" >&6; }
 if test "$pike_cv_decl_gethostname" = nonexistent -o "$pike_cv_decl_gethostname" = nonexistant; then
   $as_echo "#define GETHOSTNAME_DECL_MISSING 1" >>confdefs.h

 fi


ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
$as_echo_n "checking for working alloca.h... " >&6; }
if ${ac_cv_working_alloca_h+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
			  if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_working_alloca_h=yes
else
  ac_cv_working_alloca_h=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
$as_echo "$ac_cv_working_alloca_h" >&6; }
if test $ac_cv_working_alloca_h = yes; then

$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
$as_echo_n "checking for alloca... " >&6; }
if ${ac_cv_func_alloca_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  ifdef HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca (size_t);
#    endif
#   endif
#  endif
# endif
#endif

int
main ()
{
char *p = (char *) alloca (1);
				    if (p) return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_func_alloca_works=yes
else
  ac_cv_func_alloca_works=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
$as_echo "$ac_cv_func_alloca_works" >&6; }

if test $ac_cv_func_alloca_works = yes; then

$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

else
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble.  Some versions do not even contain alloca or
# contain a buggy version.  If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.

ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

$as_echo "#define C_ALLOCA 1" >>confdefs.h


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
if ${ac_cv_os_cray+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#if defined CRAY && ! defined CRAY2
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then :
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
$as_echo "$ac_cv_os_cray" >&6; }
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if eval \${ac_cv_func_$ac_func+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef $ac_func
void *f = (void *) $ac_func;
#endif

int
main ()
{

#ifdef $ac_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  done
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
$as_echo_n "checking stack direction for C alloca... " >&6; }
if ${ac_cv_c_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  ac_cv_c_stack_direction=0
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
find_stack_direction (int *addr, int depth)
{
  int dir, dummy = 0;
  if (! addr)
    addr = &dummy;
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  return dir + dummy;
}

int
main (int argc, char **argv)
{
  return find_stack_direction (0, argc + !argv + 20) < 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_stack_direction=1
else
  ac_cv_c_stack_direction=-1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
$as_echo "$ac_cv_c_stack_direction" >&6; }
cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

#ifndef __cplusplus
  /* Ultrix mips cc rejects this sort of thing.  */
  typedef int charset[2];
  const charset cs = { 0, 0 };
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char tx;
    char *t = &tx;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; } bx;
    struct s *b = &bx; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }

case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac


for ac_func in ualarm setitimer
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if eval \${ac_cv_func_$ac_func+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef $ac_func
void *f = (void *) $ac_func;
#endif

int
main ()
{

#ifdef $ac_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done


if test "x$ac_cv_func_ualarm" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking no of arguments to ualarm" >&5
$as_echo_n "checking no of arguments to ualarm... " >&6; }
  if ${pike_cv_ualarm_takes_two_args+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */

int
main ()
{

      ualarm(0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_ualarm_takes_two_args=yes
else
  pike_cv_ualarm_takes_two_args=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "$pike_cv_ualarm_takes_two_args" = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
$as_echo "2" >&6; }
    $as_echo "#define UALARM_TAKES_TWO_ARGS 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1" >&5
$as_echo "1" >&6; }
  fi
fi

if test "x$ac_cv_func_ptrace" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking no of arguments to ptrace" >&5
$as_echo_n "checking no of arguments to ptrace... " >&6; }
  if ${pike_cv_ptrace_takes_four_args+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#ifdef HAVE_SYS_PTRACE_H
#include <sys/ptrace.h>
#endif /* HAVE_SYS_PTRACE_H */

int
main ()
{

      ptrace(0,0,0,0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_ptrace_takes_four_args=yes
else
  pike_cv_ptrace_takes_four_args=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "$pike_cv_ptrace_takes_four_args" = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
$as_echo "4" >&6; }
    $as_echo "#define PTRACE_TAKES_FOUR_ARGS 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
$as_echo "5" >&6; }
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of argument 3 (addr) to ptrace" >&5
$as_echo_n "checking type of argument 3 (addr) to ptrace... " >&6; }
  if ${pike_cv_ptrace_addr_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#ifdef HAVE_SYS_PTRACE_H
#include <sys/ptrace.h>
#endif /* HAVE_SYS_PTRACE_H */

int
main ()
{

#ifdef PTRACE_TAKES_FOUR_ARGS
      ptrace(0,0,(void *)0,0);
#else
      ptrace(0,0,(void *)0,0,0);
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_ptrace_addr_type=pointer
else
  pike_cv_ptrace_addr_type=integer
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test "$pike_cv_ptrace_addr_type" = pointer; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pointer" >&5
$as_echo "pointer" >&6; }
    $as_echo "#define PTRACE_ADDR_TYPE_IS_POINTER 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: integer (SVID)" >&5
$as_echo "integer (SVID)" >&6; }
  fi
fi



########################################################################
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction" >&5
$as_echo_n "checking stack direction... " >&6; }
if ${pike_cv_hardware_stack_direction+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :

    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to down." >&5
$as_echo "$as_me: WARNING: Defaulting to down." >&2;}
    pike_cv_hardware_stack_direction=down

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
static int find_stack_direction(void *foo, int cnt)
{
  if (cnt) return 1*find_stack_direction(foo, cnt>>1);
  if (((void *)&foo) > foo) {
    return 1;
  } else {
    return -1;
  }
}

int main() { void *bar; exit( find_stack_direction(&bar, 0x10) > 0); }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   pike_cv_hardware_stack_direction=down

else
   pike_cv_hardware_stack_direction=up

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_hardware_stack_direction" >&5
$as_echo "$pike_cv_hardware_stack_direction" >&6; }

if grep STACK_DIRECTION confdefs.h >/dev/null 2>&1; then
  :
elif test "x$pike_cv_hardware_stack_direction" = "xup" ; then
  $as_echo "#define STACK_DIRECTION 1" >>confdefs.h

else
  $as_echo "#define STACK_DIRECTION -1" >>confdefs.h

fi

########################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking byteorder" >&5
$as_echo_n "checking byteorder... " >&6; }
if ${pike_cv_hardware_byteorder+:} false; then :
  $as_echo_n "(cached) " >&6
else

if test "x$enable_binary" = "xno"; then
  pike_cv_hardware_byteorder=0
else
if test "$cross_compiling" = yes; then :
  pike_cv_hardware_byteorder=0

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

int main()
{
#if SIZEOF_INT == 4
#define T int
#else
#define T long
#endif
  FILE *f;
  T a;
  int e;
  for(e=0;e<sizeof(T);e++)
    ((char *)&a)[e]=(e+1) % 10;

  f=fopen("conftest.out.2","w");
  for(e=0;e<sizeof(T);e++)
  {
    fprintf(f,"%d",(int)(a & 255));
    a>>=8;
  }
  fprintf(f,"\n");
  fclose(f);

  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_hardware_byteorder=`cat conftest.out.2`

else
  pike_cv_hardware_byteorder=0

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_hardware_byteorder" >&5
$as_echo "$pike_cv_hardware_byteorder" >&6; }
cat >>confdefs.h <<_ACEOF
#define PIKE_BYTEORDER $pike_cv_hardware_byteorder
_ACEOF


########################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pointer alignment" >&5
$as_echo_n "checking pointer alignment... " >&6; }
if ${pike_cv_hardware_alignment+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "x$enable_binary" = "xno"; then
    pike_cv_hardware_alignment=4
  else
    if test "$cross_compiling" = yes; then :
  pike_cv_hardware_alignment=4

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

struct x { char a; void *b; };

struct y { void *a; char b; };

int main(int argc, char *argv[])
{
  FILE *f;
  int align = (int)&(((struct x *)0)->b);
  if (align > sizeof(struct y)-sizeof(void *))
    align = sizeof(struct y) - sizeof(void *);

  if(!(f=fopen("conftest.out.2","w")))
    return 1;

  fprintf(f, "%d\n", align);
  fclose(f);
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_hardware_alignment=`cat conftest.out.2`
else
  pike_cv_hardware_alignment=4
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

  fi

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_hardware_alignment" >&5
$as_echo "$pike_cv_hardware_alignment" >&6; }
cat >>confdefs.h <<_ACEOF
#define PIKE_POINTER_ALIGNMENT $pike_cv_hardware_alignment
_ACEOF


#############################################################################

## Check if we should default to --with-machine-code

#############################################################################

if test "$with_machine_code" = "no"; then :; else

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine code architecture" >&5
$as_echo_n "checking machine code architecture... " >&6; }
  if ${pike_cv_machine_code_arch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    pike_cv_machine_code_arch=unknown
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__i386__) && !defined(__i386)
#error Not ia32 architecture
#endif
#elif defined(_MSC_VER)
#if !defined(_M_IX86)
#error Not ia32 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_machine_code_arch=ia32

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__x86_64__) && !defined(__x86_64) && !defined(__amd64) && !defined(__amd64__)
#error Not amd64 architecture
#endif
#elif defined(_MSC_VER)
#if !defined(_M_X64)
#error Not amd64 architecture
#endif
#error Unsupported ABI.
#else
#error Unsupported compiler
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_machine_code_arch=amd64

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(sparc) && !defined(__sparc__) && !defined(__sparc)
#error Not sparc architecture
#endif
#else
#error Unsupported compiler
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_machine_code_arch=sparc

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__ppc__) && !defined(__powerpc__) && !defined(_POWER)
#error Not ppc32 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_machine_code_arch=ppc32

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined(__GNUC__)
#if !defined(__PPC64__) && !defined(__powerpc64__)
#error Not ppc64 architecture
#endif
#else
#error Unsupported compiler
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      pike_cv_machine_code_arch=ppc64

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_machine_code_arch" >&5
$as_echo "$pike_cv_machine_code_arch" >&6; }
  if test "x$pike_cv_machine_code_arch" = xunknown ; then
    with_machine_code="no"
  else
    with_machine_code="yes"
    $as_echo "#define PIKE_USE_MACHINE_CODE 1" >>confdefs.h

  fi
fi

########################################################################

if test yes = "$with_machine_code"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking register name convention" >&5
$as_echo_n "checking register name convention... " >&6; }
  if ${pike_cv_cpu_reg_prefix+:} false; then :
  $as_echo_n "(cached) " >&6
else

    for pike_cv_cpu_reg_prefix in "default" "" "r" "%%" "%%r" "unknown"; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define REGPREFIX "$pike_cv_cpu_reg_prefix"

int
main ()
{

#if defined(__ppc__) || defined(__powerpc__) || defined(_POWER)
	__asm__ __volatile__(" li "REGPREFIX"11,1");
#else
	; /* Do not need to find out */
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    done

fi

  case "$pike_cv_cpu_reg_prefix" in
    default|unknown) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_cpu_reg_prefix" >&5
$as_echo "$pike_cv_cpu_reg_prefix" >&6; };;
    *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pike_cv_cpu_reg_prefix}0" >&5
$as_echo "${pike_cv_cpu_reg_prefix}0" >&6; }
       cat >>confdefs.h <<_ACEOF
#define PIKE_CPU_REG_PREFIX "$pike_cv_cpu_reg_prefix"
_ACEOF
;;
  esac
else :; fi

########################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the RDTSC instruction (x86)" >&5
$as_echo_n "checking for the RDTSC instruction (x86)... " >&6; }
if ${pike_cv_have_rdtsc+:} false; then :
  $as_echo_n "(cached) " >&6
else

if test "$cross_compiling" = yes; then :
  pike_cv_have_rdtsc="possibly not"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


static long long rdtsc()
{
   unsigned long l, h;
#if defined (_M_IX86) || defined (_M_X64)
   __asm {
     rdtsc
     mov l, eax
     mov h, edx
   }
#else
   __asm__ __volatile__ ("rdtsc" :"=a" (l), "=d" (h));
#endif
   return (((long long)h)<<32)|l;
}

int main()
{
   if (rdtsc()!=rdtsc())
      return 0;
   return 1;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_have_rdtsc=yes
else
  pike_cv_have_rdtsc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_rdtsc" >&5
$as_echo "$pike_cv_have_rdtsc" >&6; }
if test "$pike_cv_have_rdtsc" = yes; then
  $as_echo "#define HAVE_RDTSC 1" >>confdefs.h

fi

########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
$as_echo_n "checking for working fork... " >&6; }
  if ${pike_cv_func_fork+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int
main ()
{

  exit(fork()==-1);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_fork=yes
else
  pike_cv_func_fork=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int main() {

  exit(fork()==-1);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_fork=yes
else
  pike_cv_func_fork=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_fork" >&5
$as_echo "$pike_cv_func_fork" >&6; }
  if test $pike_cv_func_fork = yes; then
    $as_echo "#define HAVE_FORK 1" >>confdefs.h

  else :; fi


########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fpsetmask" >&5
$as_echo_n "checking for working fpsetmask... " >&6; }
  if ${pike_cv_func_fpsetmask+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

int
main ()
{

  fpsetmask(0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_fpsetmask=yes
else
  pike_cv_func_fpsetmask=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

int main() {

  fpsetmask(0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_fpsetmask=yes
else
  pike_cv_func_fpsetmask=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_fpsetmask" >&5
$as_echo "$pike_cv_func_fpsetmask" >&6; }
  if test $pike_cv_func_fpsetmask = yes; then
    $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h

  else :; fi

########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fpsetround" >&5
$as_echo_n "checking for working fpsetround... " >&6; }
  if ${pike_cv_func_fpsetround+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */

int
main ()
{

  fpsetround(FP_RN);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_fpsetround=yes
else
  pike_cv_func_fpsetround=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */

int main() {

  fpsetround(FP_RN);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_fpsetround=yes
else
  pike_cv_func_fpsetround=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_fpsetround" >&5
$as_echo "$pike_cv_func_fpsetround" >&6; }
  if test $pike_cv_func_fpsetround = yes; then
    $as_echo "#define HAVE_FPSETROUND 1" >>confdefs.h

  else :; fi

########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working isless" >&5
$as_echo_n "checking for working isless... " >&6; }
  if ${pike_cv_func_isless+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int
main ()
{

  int t = isless(0.0, 0.0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_isless=yes
else
  pike_cv_func_isless=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int main() {

  int t = isless(0.0, 0.0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_isless=yes
else
  pike_cv_func_isless=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_isless" >&5
$as_echo "$pike_cv_func_isless" >&6; }
  if test $pike_cv_func_isless = yes; then
    $as_echo "#define HAVE_ISLESS 1" >>confdefs.h

  else :; fi

########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working isunordered" >&5
$as_echo_n "checking for working isunordered... " >&6; }
  if ${pike_cv_func_isunordered+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int
main ()
{

  int t = isunordered(0.0, 0.0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_isunordered=yes
else
  pike_cv_func_isunordered=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif


int main() {

  int t = isunordered(0.0, 0.0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_isunordered=yes
else
  pike_cv_func_isunordered=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_isunordered" >&5
$as_echo "$pike_cv_func_isunordered" >&6; }
  if test $pike_cv_func_isunordered = yes; then
    $as_echo "#define HAVE_ISUNORDERED 1" >>confdefs.h

  else :; fi


########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working dlopen" >&5
$as_echo_n "checking for working dlopen... " >&6; }
  if ${pike_cv_func_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <dlfcn.h>

int
main ()
{

  dlopen(0, 0);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_dlopen=yes
else
  pike_cv_func_dlopen=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <dlfcn.h>

int main() {

  dlopen(0, 0);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_dlopen=yes
else
  pike_cv_func_dlopen=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_dlopen" >&5
$as_echo "$pike_cv_func_dlopen" >&6; }
  if test $pike_cv_func_dlopen = yes; then
    $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h

  else :; fi


########################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working rint" >&5
$as_echo_n "checking for working rint... " >&6; }
  if ${pike_cv_func_rint+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif /* HAVE_IEEEFP_H */

int
main ()
{

#ifdef HAVE_FPSETROUND
  /* Round to nearest */
#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */
  fpsetround(FP_RN);
#endif /* HAVE_FPSETROUND */
  if(rint(0.1) != 0.0 ||
     rint(0.6) != 1.0) exit(1);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_rint=yes
else
  pike_cv_func_rint=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#include <math.h>
#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif /* HAVE_IEEEFP_H */

int main() {

#ifdef HAVE_FPSETROUND
  /* Round to nearest */
#ifndef FP_RN
#define FP_RN 0
#endif /* FP_RN */
  fpsetround(FP_RN);
#endif /* HAVE_FPSETROUND */
  if(rint(0.1) != 0.0 ||
     rint(0.6) != 1.0) exit(1);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_rint=yes
else
  pike_cv_func_rint=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_rint" >&5
$as_echo "$pike_cv_func_rint" >&6; }
  if test $pike_cv_func_rint = yes; then
    $as_echo "#define HAVE_RINT 1" >>confdefs.h

  else :; fi


#############################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GetSystemTimeAsFileTime" >&5
$as_echo_n "checking for working GetSystemTimeAsFileTime... " >&6; }
  if ${pike_cv_func_GetSystemTimeAsFileTime+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#ifdef HAVE_WINBASE_H
#include <winbase.h>
#endif

int
main ()
{

  FILETIME f;
  GetSystemTimeAsFileTime(&f);
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_GetSystemTimeAsFileTime=yes
else
  pike_cv_func_GetSystemTimeAsFileTime=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#ifdef HAVE_WINBASE_H
#include <winbase.h>
#endif

int main() {

  FILETIME f;
  GetSystemTimeAsFileTime(&f);
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_GetSystemTimeAsFileTime=yes
else
  pike_cv_func_GetSystemTimeAsFileTime=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_GetSystemTimeAsFileTime" >&5
$as_echo "$pike_cv_func_GetSystemTimeAsFileTime" >&6; }
  if test $pike_cv_func_GetSystemTimeAsFileTime = yes; then
    $as_echo "#define HAVE_GETSYSTEMTIMEASFILETIME 1" >>confdefs.h

  else :; fi

#############################################################################

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gethostname" >&5
$as_echo_n "checking for working gethostname... " >&6; }
  if ${pike_cv_func_gethostname+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :

      echo $ac_n "crosscompiling... $ac_c" 1>&6
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

int
main ()
{

  char buffer[10000];
  char *x=gethostname(buffer,sizeof(buffer));
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_gethostname=yes
else
  pike_cv_func_gethostname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#elif defined(HAVE_WINSOCK_H)
#include <winsock.h>
#endif

int main() {

  char buffer[10000];
  char *x=gethostname(buffer,sizeof(buffer));
  exit(0);
;
return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_gethostname=yes
else
  pike_cv_func_gethostname=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_gethostname" >&5
$as_echo "$pike_cv_func_gethostname" >&6; }
  if test $pike_cv_func_gethostname = yes; then
    $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h

  else :; fi

########################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can declare environ" >&5
$as_echo_n "checking if we can declare environ... " >&6; }
if ${pike_cv_declare_environ+:} false; then :
  $as_echo_n "(cached) " >&6
else

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdlib.h>

int
main ()
{

  extern char **environ;
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_declare_environ=yes
else
  pike_cv_declare_environ=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_declare_environ" >&5
$as_echo "$pike_cv_declare_environ" >&6; }
if test "x$pike_cv_declare_environ" = xyes ; then
  $as_echo "#define DECLARE_ENVIRON 1" >>confdefs.h

fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait (old BSD convention)" >&5
$as_echo_n "checking for union wait (old BSD convention)... " >&6; }
if ${pike_cv_union_wait+:} false; then :
  $as_echo_n "(cached) " >&6
else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */

int
main ()
{

  union wait status;
  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_union_wait=yes
else
  pike_cv_union_wait=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_union_wait" >&5
$as_echo "$pike_cv_union_wait" >&6; }
if test "x$pike_cv_union_wait" = "xyes" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether union wait is really needed" >&5
$as_echo_n "checking whether union wait is really needed... " >&6; }
  if ${pike_cv_union_wait_needed+:} false; then :
  $as_echo_n "(cached) " >&6
else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */

int
main ()
{

  int status;
  return WIFEXITED(status) || 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_union_wait_needed=no
else
  pike_cv_union_wait_needed=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_union_wait_needed" >&5
$as_echo "$pike_cv_union_wait_needed" >&6; }
  if test "x$pike_cv_union_wait_needed" = "xyes" ; then
    $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h

  else :; fi
else :; fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to extract an unsigned char" >&5
$as_echo_n "checking how to extract an unsigned char... " >&6; }
if ${pike_cv_method_extract_uchar+:} false; then :
  $as_echo_n "(cached) " >&6
else

if test "$cross_compiling" = yes; then :
  pike_cv_method_extract_uchar=not_by_cast
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int main()
{
  char i,*p;
  i=-10;
  p=&i;
  if(*(unsigned char *)(p)!= 0x100 - 10) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_method_extract_uchar=by_cast
else
  pike_cv_method_extract_uchar=not_by_cast
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi


if test "$pike_cv_method_extract_uchar" = by_cast; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: by cast" >&5
$as_echo "by cast" >&6; }
  $as_echo "#define EXTRACT_UCHAR_BY_CAST 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not by cast" >&5
$as_echo "not by cast" >&6; }
fi

########################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to extract a signed char" >&5
$as_echo_n "checking how to extract a signed char... " >&6; }
if ${pike_cv_method_extract_char+:} false; then :
  $as_echo_n "(cached) " >&6
else

if test "$cross_compiling" = yes; then :
  pike_cv_method_extract_char=not_by_cast
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int main()
{
  char i,*p;
  i=-10;
  p=&i;
  if(*(signed char *)(p)!= -10) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_method_extract_char=by_cast
else
  pike_cv_method_extract_char=not_by_cast
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi


if test "$pike_cv_method_extract_char" = by_cast; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: by cast" >&5
$as_echo "by cast" >&6; }
  $as_echo "#define EXTRACT_CHAR_BY_CAST 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not by cast" >&5
$as_echo "not by cast" >&6; }
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if float conversion can cause SIGFPE" >&5
$as_echo_n "checking if float conversion can cause SIGFPE... " >&6; }
if ${pike_cv_sys_idiot_sigfpe+:} false; then :
  $as_echo_n "(cached) " >&6
else

 if test "$cross_compiling" = yes; then :
  pike_cv_sys_idiot_sigfpe=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>

#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

float foo_float = 0.0;

int main(int argc, char **argv)
{
  float x=2.0, y=-128.0;
#ifdef HAVE_FPSETMASK
  fpsetmask(0);
#endif
  x = pow(2.0, -128.0);
  foo_float = x;
  if (x == 2.0) exit(1);
  x = pow(2.0, 1024.0);
  foo_float = x;
  if(x == 2.0) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_sys_idiot_sigfpe=no
else
  pike_cv_sys_idiot_sigfpe=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


if test $pike_cv_sys_idiot_sigfpe = yes ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

  IEEE_FLAG=no
  if test "x${GCC-}" = xyes ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -mieee" >&5
$as_echo_n "checking -mieee... " >&6; }
  if test "x$pike_disabled_option_mieee" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_mieee+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -mieee"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_mieee=yes
else
  pike_cv_option_mieee=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_mieee=yes
else
  pike_cv_option_mieee=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_mieee=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_mieee=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_mieee=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_mieee=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_mieee=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_mieee=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_mieee=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_mieee=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_mieee=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_mieee=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_mieee" = "xyes" ; then
      CFLAGS="$CFLAGS -mieee"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      IEEE_FLAG=yes
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  else

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -ieee" >&5
$as_echo_n "checking -ieee... " >&6; }
  if test "x$pike_disabled_option_ieee" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_ieee+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -ieee"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_ieee=yes
else
  pike_cv_option_ieee=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_ieee=yes
else
  pike_cv_option_ieee=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_ieee=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_ieee=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_ieee=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_ieee=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_ieee=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_ieee=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_ieee=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_ieee=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_ieee=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_ieee=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_ieee" = "xyes" ; then
      CFLAGS="$CFLAGS -ieee"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
      IEEE_FLAG=yes
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

  fi
  TEST_IGNORE_SIGFPE=yes

  if test $IEEE_FLAG = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if float conversion is still broken" >&5
$as_echo_n "checking if float conversion is still broken... " >&6; }
    if ${pike_cv_sys_idiot_sigfpe_with_ieee+:} false; then :
  $as_echo_n "(cached) " >&6
else

 OLD_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS $OPTIMIZE"
 if test "$cross_compiling" = yes; then :
  pike_cv_sys_idiot_sigfpe_with_ieee=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>

#ifdef HAVE_FLOATINGPOINT_H
#include <floatingpoint.h>
#endif

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

float foo_float = 0.0;

int main(int argc, char **argv)
{
  float x=2.0, y=-128.0;
#ifdef HAVE_FPSETMASK
  fpsetmask(0);
#endif
  x = pow(2.0, -128.0);
  foo_float = x;
  if (x == 2.0) exit(1);
  x = pow(2.0, 1024.0);
  foo_float = x;
  if(x == 2.0) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_sys_idiot_sigfpe_with_ieee=no
else
  pike_cv_sys_idiot_sigfpe_with_ieee=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

  CFLAGS="$OLD_CFLAGS"

fi


  if test $pike_cv_sys_idiot_sigfpe_with_ieee = yes ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
    TEST_IGNORE_SIGFPE=no
  fi
fi # IEEE_FLAG

if test $TEST_IGNORE_SIGFPE = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ignoring SIGFPE helps" >&5
$as_echo_n "checking if ignoring SIGFPE helps... " >&6; }
  if ${pike_cv_sys_ignore_sigfpe+:} false; then :
  $as_echo_n "(cached) " >&6
else

 OLD_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS $OPTIMIZE"
if test "$cross_compiling" = yes; then :
  pike_cv_sys_ignore_sigfpe=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <signal.h>
#include <math.h>
int counter=0;
RETSIGTYPE func(void)
{
 if(counter++>10) exit(7);
 signal(SIGFPE,func);
}

float foo_float = 0.0;

int main(int argc, char **argv)
{
  float x=2.0, y=-128.0;
  signal(SIGFPE,func);
  x = pow(2.0, -128.0);
  foo_float = x;
  if (x == 2.0) exit(1);
  x = pow(2.0, 1024.0);
  foo_float = x;
  if(x == 2.0) exit(1);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_sys_ignore_sigfpe=yes
else
  pike_cv_sys_ignore_sigfpe=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

  CFLAGS="$OLD_CFLAGS"

fi


if test "$pike_cv_sys_ignore_sigfpe" = yes; then
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
 $as_echo "#define IGNORE_SIGFPE 1" >>confdefs.h

else
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
fi # TEST_IGNORE_SIGFPE

else
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi # pike_cv_sys_idiot_sigfpe

#############################################################################



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of float" >&5
$as_echo_n "checking for type of float... " >&6; }
if ${pike_cv_float_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    # Use some magical constants...
    cat > conftest.$ac_ext <<EOF
#line 75627 "configure"
#include "confdefs.h"
#include <stdio.h>
float float_info[] = {
  0.0,
  14914788644012054221422592.0, 16305677175569252352.0,
  0.0
};
EOF
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
      if test -f "conftest.$ac_objext"; then
        if strings "conftest.$ac_objext" | grep "iEeE_bIg" >/dev/null; then
	  pike_cv_float_type=ieee_big
        elif strings "conftest.$ac_objext" | grep "EeEigIb_" >/dev/null; then
	  pike_cv_float_type=ieee_little
	else
	  pike_cv_float_type=not_ieee
	fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found - using default." >&5
$as_echo "$as_me: WARNING: Object file not found - using default." >&2;}
	pike_cv_float_type=not_ieee
      fi
    else
      pike_cv_float_type=not_ieee
    fi
    rm -rf conftest*

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#define TY float
#define TEST_float
#define TEST_BIG
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main()
{
  if(sizeof(TY)!=EXPECTED_SIZE_float)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_float_type=ieee_big
else

    if test "$cross_compiling" = yes; then :
  pike_cv_float_type=not_ieee
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#define TY float
#define TEST_float
#define TEST_LITTLE
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main()
{
  if(sizeof(TY)!=EXPECTED_SIZE_float)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_float_type=ieee_little
else
  pike_cv_float_type=not_ieee
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

if test "$pike_cv_float_type" = ieee_big; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE big endian" >&5
$as_echo "IEEE big endian" >&6; }
  $as_echo "#define FLOAT_IS_IEEE_BIG 1" >>confdefs.h

elif test "$pike_cv_float_type" = ieee_little; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE little endian" >&5
$as_echo "IEEE little endian" >&6; }
  $as_echo "#define FLOAT_IS_IEEE_LITTLE 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not IEEE" >&5
$as_echo "not IEEE" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of double" >&5
$as_echo_n "checking for type of double... " >&6; }
if ${pike_cv_double_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    # Use some magical constants...
    cat > conftest.$ac_ext <<EOF
#line 75793 "configure"
#include "confdefs.h"
#include <stdio.h>
double double_info[] = {
  0.0,
  12794738495187527498222028847205909954314554441725728393516969126669975252147490126864122090122288822751876426313291683594796075946303753742007913302630260537160845833197547903208108732031187791380480.0,
  0.0
};
EOF
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
      if test -f "conftest.$ac_objext"; then
        if strings "conftest.$ac_objext" | grep "iEeE_bIg" >/dev/null; then
	  pike_cv_double_type=ieee_big
        elif strings "conftest.$ac_objext" | grep "gIb_EeEi" >/dev/null; then
	  pike_cv_double_type=ieee_little
	else
	  pike_cv_double_type=not_ieee
	fi
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Object file not found - using default." >&5
$as_echo "$as_me: WARNING: Object file not found - using default." >&2;}
	pike_cv_float_type=not_ieee
      fi
    else
      pike_cv_float_type=not_ieee
    fi
    rm -rf conftest*

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#define TY double
#define TEST_double
#define TEST_BIG
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main()
{
  if(sizeof(TY)!=EXPECTED_SIZE_double)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_double_type=ieee_big
else

    if test "$cross_compiling" = yes; then :
  pike_cv_double_type=not_ieee
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <math.h>
#define TY double
#define TEST_double
#define TEST_LITTLE
#define EXPECTED_SIZE_float 4
#define EXPECTED_SIZE_double 8
void check(TY n, char *pf, char *pd)
{
  int i;
  char *p, *p2 = (char*)&n;
#ifdef TEST_float
    p = pf;
#else
    p = pd;
#endif
  for(i=0; i<sizeof(TY); i++)
#ifdef TEST_BIG
    if(p[i] != p2[i])
      exit(1);
#else
    if(p[i] != p2[sizeof(TY)-i-1])
      exit(1);
#endif
}
int main()
{
  if(sizeof(TY)!=EXPECTED_SIZE_double)
    exit(1);
  check((TY)0.0, "\000\000\000\000", "\000\000\000\000\000\000\000\000");
  check((TY)1.0, "\077\200\000\000", "\077\360\000\000\000\000\000\000");
  check((TY)-1.0, "\277\200\000\000", "\277\360\000\000\000\000\000\000");
  check((TY)2.0, "\100\000\000\000", "\100\000\000\000\000\000\000\000");
  check((TY)1.5, "\077\300\000\000", "\077\370\000\000\000\000\000\000");
  check((TY)0.032999999821186065673828125, "\075\007\053\002", "\077\240\345\140\100\000\000\000");
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_double_type=ieee_little
else
  pike_cv_double_type=not_ieee
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

if test "$pike_cv_double_type" = ieee_big; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE big endian" >&5
$as_echo "IEEE big endian" >&6; }
  $as_echo "#define DOUBLE_IS_IEEE_BIG 1" >>confdefs.h

elif test "$pike_cv_double_type" = ieee_little; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE little endian" >&5
$as_echo "IEEE little endian" >&6; }
  $as_echo "#define DOUBLE_IS_IEEE_LITTLE 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not IEEE" >&5
$as_echo "not IEEE" >&6; }
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for volatile" >&5
$as_echo_n "checking for volatile... " >&6; }
if ${pike_cv_volatile+:} false; then :
  $as_echo_n "(cached) " >&6
else

 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
 volatile int foo=1;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_volatile=yes
else
  pike_cv_volatile=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


if test "$pike_cv_volatile" = yes; then
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
 $as_echo "#define VOLATILE volatile" >>confdefs.h

else
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
 $as_echo "#define VOLATILE /**/" >>confdefs.h

fi

########################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
$as_echo_n "checking for sig_atomic_t... " >&6; }
if ${ac_cv_type_sig_atomic_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#ifdef HAVE_CRT_SIGNAL_H
#include <crt/signal.h>
#endif
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "sig_atomic_t" >/dev/null 2>&1; then :
  ac_cv_type_sig_atomic_t=yes
else
  ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
if test x"$ac_cv_type_sig_atomic_t" = xno; then
  $as_echo "#define sig_atomic_t int" >>confdefs.h

else
  :
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers reset automatically" >&5
$as_echo_n "checking if signal handlers reset automatically... " >&6; }
if ${pike_cv_sys_signal_oneshot+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_sys_signal_oneshot=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
VOLATILE sig_atomic_t sigrun[2]= { 0, 0 };
RETSIGTYPE func(int sig)
{
  write(2, "func called\n", sizeof("func called\n") - sizeof(""));
  sigrun[0] = -1;
}

int main()
{
#define sig SIGSEGV

#ifdef HAVE_SIGACTION
  {
    static struct sigaction action;
    action.sa_handler= func;
    sigfillset(&action.sa_mask);
#ifdef SA_INTERRUPT
    action.sa_flags=SA_INTERRUPT;
#endif
    sigaction(sig,&action,0);
  }
#else
#ifdef HAVE_SIGVEC
  {
    static struct sigvec action;
    action.sv_handler= func;
    action.sv_mask=-1;
#ifdef SV_INTERRUPT
    action.sv_flags=SV_INTERRUPT;
#endif
    sigvec(sig,&action,0);
  }
#else
  signal(sig, func);
#endif
#endif

  kill(getpid(), sig);
#ifdef HAVE_POLL
  struct pollfd sentinel;
  while(!strlen((char *)sigrun)) poll(&sentinel,0,100);
#else
  while(!strlen((char *)sigrun)) sleep(1);
#endif
  sigrun[0]=0;
  kill(getpid(), sig);
#ifdef HAVE_POLL
  while(!strlen((char *)sigrun)) poll(&sentinel,0,100);
#else
  while(!strlen((char *)sigrun)) sleep(1);
#endif
  sigrun[0]=0;
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_sys_signal_oneshot=no
else
  pike_cv_sys_signal_oneshot=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


if test "$pike_cv_sys_signal_oneshot" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define SIGNAL_ONESHOT 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

########################################################################
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking full availability of struct rusage members" >&5
$as_echo_n "checking full availability of struct rusage members... " >&6; }
if ${pike_cv_func_getrusage_full+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <sys/time.h>
#ifdef HAVE_SYS_RUSAGE_H
#include <sys/rusage.h>
#endif
#include <sys/resource.h>
#ifndef RUSAGE_SELF
#define RUSAGE_SELF     0
#endif

int
main ()
{

    struct rusage rus;
    long *v = (long *)main;
    getrusage(RUSAGE_SELF, &rus);
    *v++ = rus.ru_maxrss;
    *v++ = rus.ru_ixrss;
    *v++ = rus.ru_idrss;
    *v++ = rus.ru_isrss;
    *v++ = rus.ru_minflt;
    *v++ = rus.ru_majflt;
    *v++ = rus.ru_nswap;
    *v++ = rus.ru_inblock;
    *v++ = rus.ru_oublock;
    *v++ = rus.ru_msgsnd;
    *v++ = rus.ru_msgrcv;
    *v++ = rus.ru_nsignals;
    *v++ = rus.ru_nvcsw;
    *v++ = rus.ru_nivcsw;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_func_getrusage_full=yes

else
  pike_cv_func_getrusage_full=no

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi


if test "$pike_cv_func_getrusage_full" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: all there" >&5
$as_echo "all there" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: getrusage is restricted" >&5
$as_echo "getrusage is restricted" >&6; }
  $as_echo "#define GETRUSAGE_RESTRICTED 1" >>confdefs.h

fi

########################################################################
#
# IRIX also has procfs support, but it it different, a separate test
# should be made. /Hubbe
#

if test "$ac_cv_header_sys_procfs_h" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking getrusage() through procfs" >&5
$as_echo_n "checking getrusage() through procfs... " >&6; }
  if ${pike_cv_getrusage_procfs+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
#include <sys/procfs.h>
#include <sys/fcntl.h>
int proc_fd;
long tmp;
char proc_name[20];
prusage_t  pru;

int
main ()
{

      sprintf(proc_name, "/proc/%05d", getpid());
      proc_fd = open(proc_name, O_RDONLY);
      ioctl(proc_fd, PIOCUSAGE, &pru);
      tmp=pru.pr_utime.tv_sec;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_getrusage_procfs=yes

else
  pike_cv_getrusage_procfs=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


  if test "$pike_cv_getrusage_procfs" = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define GETRUSAGE_THROUGH_PROCFS 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi
fi

#############################################################################

if test "$ac_cv_getrusage_procfs" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking prstatus_t contains pr_brksize and pr_stksize" >&5
$as_echo_n "checking prstatus_t contains pr_brksize and pr_stksize... " >&6; }
  if ${pike_cv_getrusage_procfs_prs+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifndef _LARGEFILE_SOURCE
#  define _FILE_OFFSET_BITS 64
#  define _LARGEFILE_SOURCE
#  define _LARGEFILE64_SOURCE 1
#endif
#include <sys/procfs.h>
#include <sys/fcntl.h>
int proc_fd;
long tmp;
char proc_name[20];
prstatus_t prs;

int
main ()
{

      sprintf(proc_name, "/proc/%05d", getpid());
      proc_fd = open(proc_name, O_RDONLY);
      ioctl(proc_fd, PIOCSTATUS, &prs);
      tmp=prs.pr_brksize + prs.pr_stksize;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_getrusage_procfs_prs=yes

else
  pike_cv_getrusage_procfs_prs=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi


  if test "$pike_cv_getrusage_procfs_prs" = yes; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    $as_echo "#define GETRUSAGE_THROUGH_PROCFS_PRS 1" >>confdefs.h

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  fi
fi

#############################################################################
#
# __func__ is new in ISO C 9x
#
# It should expand to the name of the current function, and is
# useful for debug.

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __func__ exists and works" >&5
$as_echo_n "checking if __func__ exists and works... " >&6; }
if ${pike_cv_have_working___func__+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_have_working___func__=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_STRING_H
#include <string.h>
#else /* !HAVE_STRING_H */
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif /* HAVE_STRIGNS_H */
#endif /* HAVE_STRING_H */
int main()
{
  exit(strcmp("main", __func__));
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_have_working___func__=yes
else
  pike_cv_have_working___func__=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_working___func__" >&5
$as_echo "$pike_cv_have_working___func__" >&6; }
if test "$pike_cv_have_working___func__" = yes; then
  $as_echo "#define HAVE_WORKING___FUNC__ 1" >>confdefs.h

else :; fi

# gcc has __FUNCTION__ instead.

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __FUNCTION__ exists and works" >&5
$as_echo_n "checking if __FUNCTION__ exists and works... " >&6; }
if ${pike_cv_have_working___FUNCTION__+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_have_working___FUNCTION__=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_STRING_H
#include <string.h>
#else /* !HAVE_STRING_H */
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif /* HAVE_STRIGNS_H */
#endif /* HAVE_STRING_H */
int main()
{
  exit(strcmp("main", __FUNCTION__));
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_have_working___FUNCTION__=yes
else
  pike_cv_have_working___FUNCTION__=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_working___FUNCTION__" >&5
$as_echo "$pike_cv_have_working___FUNCTION__" >&6; }
if test "$pike_cv_have_working___FUNCTION__" = yes; then
  $as_echo "#define HAVE_WORKING___FUNCTION__ 1" >>confdefs.h

else :; fi

#############################################################################

if test "x$with_computed_goto" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc-style computed goto" >&5
$as_echo_n "checking for gcc-style computed goto... " >&6; }
  if ${pike_cv_gcc_computed_goto+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

      void *skip = &&label;

      goto *skip;

      return 1;

    label:
      return 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   pike_cv_gcc_computed_goto=yes
else
   pike_cv_gcc_computed_goto=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_gcc_computed_goto" >&5
$as_echo "$pike_cv_gcc_computed_goto" >&6; }
  if test "x$pike_cv_gcc_computed_goto" = "xyes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

Enabling computed goto (EXPERIMENTAL).
" >&5
$as_echo "$as_me: WARNING:

Enabling computed goto (EXPERIMENTAL).
" >&2;}
  cat >>config.warnings <<EOF
WARNING: Enabling computed goto (EXPERIMENTAL).

EOF

    $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h

  else :; fi
else :; fi

#############################################################################

if test "$with_machine_code" = "yes" ; then
  cat >>confdefs.h <<_ACEOF
#define PIKE_BYTECODE_METHOD PIKE_BYTECODE_`echo $pike_cv_machine_code_arch | tr '[a-z]' '[A-Z]'`
_ACEOF

  byte_code_format=$pike_cv_machine_code_arch
elif test "x$with_computed_goto" = "xyes" -a "x$pike_cv_gcc_computed_goto" = "xyes"; then
  $as_echo "#define PIKE_BYTECODE_METHOD PIKE_BYTECODE_GOTO" >>confdefs.h

  byte_code_format="computed goto"
else
  $as_echo "#define PIKE_BYTECODE_METHOD PIKE_BYTECODE_DEFAULT" >>confdefs.h

  byte_code_format="virtual machine"
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lc __declspec" >&5
$as_echo_n "checking for lc __declspec... " >&6; }
if ${pike_cv_lc___declspec+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
__declspec(noreturn) void fatal(char *foo,...);

__declspec(noreturn) void fatal(char *foo,...)
{
  va_list args;
  va_start(foo,args);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int
main ()
{

  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_lc___declspec=yes
else
  pike_cv_lc___declspec=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
__declspec(noreturn) void fatal(char *foo,...);

__declspec(noreturn) void fatal(char *foo,...)
{
  va_list args;
  va_start(foo,args);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int main() {  exit(0); }


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_lc___declspec=yes
else
  pike_cv_lc___declspec=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_lc___declspec" >&5
$as_echo "$pike_cv_lc___declspec" >&6; }
if test "$pike_cv_lc___declspec" = yes; then
  $as_echo "#define HAVE_DECLSPEC 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc function attributes" >&5
$as_echo_n "checking for gcc function attributes... " >&6; }
if ${pike_cv_gcc_attributes+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :

    echo $ac_n "crosscompiling... $ac_c" 1>&6
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void fatal(char *foo,...) __attribute__ ((noreturn,format (printf,1,2)));
int sqr(int x) __attribute__ ((const));

int sqr(int x) { return x*x; }

void fatal(char *foo,...)
{
  va_list args;
  va_start(args, foo);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int
main ()
{

  exit(0);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_gcc_attributes=yes
else
  pike_cv_gcc_attributes=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void fatal(char *foo,...) __attribute__ ((noreturn,format (printf,1,2)));
int sqr(int x) __attribute__ ((const));

int sqr(int x) { return x*x; }

void fatal(char *foo,...)
{
  va_list args;
  va_start(args, foo);
  printf(foo,args);
  va_end(args);
  exit(2);
}

int main() {  exit(0); }


_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_gcc_attributes=yes
else
  pike_cv_gcc_attributes=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_gcc_attributes" >&5
$as_echo "$pike_cv_gcc_attributes" >&6; }
if test "$pike_cv_gcc_attributes" = yes; then
  $as_echo "#define HAVE_FUNCTION_ATTRIBUTES 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if va_list is a state pointer" >&5
$as_echo_n "checking if va_list is a state pointer... " >&6; }
if ${pike_cv_va_list_is_state_ptr+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  # FIXME:
    pike_cv_va_list_is_state_ptr=unknown

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>

void bar(va_list args)
{
  va_arg(args, int);
}

int foo(int a, ...)
{
  va_list args;

  va_start(args, a);

  bar(args);

  a = va_arg(args, int);

  va_end(args);

  return a;
}

int main()
{
  return foo(2, 1, 0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_va_list_is_state_ptr=yes
else
  pike_cv_va_list_is_state_ptr=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

if test "$pike_cv_va_list_is_state_ptr" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define VA_LIST_IS_STATE_PTR 1" >>confdefs.h

elif test "$pike_cv_va_list_is_state_ptr" = "unknown"; then
  # FIXME: "no" works on most stuff except gcc/x86_64.
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- assume no" >&5
$as_echo "unknown -- assume no" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

# Can't use AC_CHECK_FUNC for this since it usually is a macro.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
$as_echo_n "checking for va_copy... " >&6; }
if ${pike_cv_has_va_copy+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdarg.h>
#ifndef va_copy
    void *f = (void *) va_copy;
#endif

int
main ()
{

#ifdef va_copy
    /* If there is a macro with this name we assume it takes the place of the function. */
    return 0;
#else
    return f != va_copy;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_has_va_copy=yes
else
  pike_cv_has_va_copy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

fi

if test "$pike_cv_has_va_copy" = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set things nonblocking" >&5
$as_echo_n "checking how to set things nonblocking... " >&6; }
if ${pike_cv_sys_nonblock+:} false; then :
  $as_echo_n "(cached) " >&6
else

  # Kludge needed for AmigaOS
  if test "$pike_cv_sys_os" = "AmigaOS" ; then
    pike_cv_sys_nonblock=USE_FCNTL_O_NONBLOCK
  else
    OCPPFLAGS="$CPPFLAGS"
    pike_cv_sys_bad_signal_handling=""
    pike_cv_sys_nonblock=UNKNOWN
    # USE_FCNTL_O_NONBLOCK seems to be the most common, so let's start
    # with it.
    for method in USE_FCNTL_O_NONBLOCK USE_FCNTL_FNDELAY USE_FCNTL_O_NDELAY \
		  USE_IOCTL_FIONBIO USE_IOCTLSOCKET_FIONBIO; do
      # Make sure we can run configure in a separate directory,
      # and set the method to try.
      CPPFLAGS="$OCPPFLAGS -D$method"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "fd_control.c"
#define main dummy_main

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

	  pike_cv_sys_nonblock=$method
	  break;

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "fd_control.c"

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

        pike_cv_sys_nonblock=$method
	break;

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    done
    if test "$pike_cv_sys_nonblock" = "UNKNOWN"; then
      # Some OS's don't like signals in combination with threads.
      # Try compiling half the test...

      # USE_FCNTL_O_NONBLOCK seems to be the most common, so let's start
      # with it.
      for method in USE_FCNTL_O_NONBLOCK USE_FCNTL_FNDELAY USE_FCNTL_O_NDELAY \
		    USE_IOCTL_FIONBIO USE_IOCTLSOCKET_FIONBIO; do
	# Make sure we can run configure in a separate directory,
	# and set the method to try.
	CPPFLAGS="$OCPPFLAGS -D$method -DSHORT_TEST"
	if test "$cross_compiling" = yes; then :

	  :; # Not meaningful.

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "fd_control.c"

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

	  pike_cv_sys_bad_signal_handling=" (signal handling failed)"
          pike_cv_sys_nonblock=$method
          break;

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      done
    else :; fi
    # Restore CPPFLAGS
    CPPFLAGS="$OCPPFLAGS"
  fi

fi


if test "${pike_cv_sys_nonblock}" = "UNKNOWN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
  if test "${pike_cv_sys_os}" = "Windows_NT"; then :; else
    config_fail="No way to set nonblocking I/O"
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_nonblock$pike_cv_sys_bad_signal_handling" >&5
$as_echo "$pike_cv_sys_nonblock$pike_cv_sys_bad_signal_handling" >&6; }
  cat >>confdefs.h <<_ACEOF
#define $pike_cv_sys_nonblock 1
_ACEOF

fi

rm -f core

##########################################################################
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how well OOB handling works" >&5
$as_echo_n "checking how well OOB handling works... " >&6; }
if ${pike_cv_system_oob_working+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "x$enable_binary" = "xno"; then
    pike_cv_system_oob_working=WORKING
  else
    if test "$cross_compiling" = yes; then :
  pike_cv_system_oob_working=UNKNOWN
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#include <fcntl.h>
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif

#define SP_DEBUG(X)	fprintf X

#ifndef POLLRDNORM
#define POLLRDNORM      POLLIN
#endif

#ifndef POLLRDBAND
#define POLLRDBAND      POLLPRI
#endif

#ifndef POLLWRBAND
#define POLLWRBAND      POLLOUT
#endif

int set_nonblocking(int fd,int which)
{
  int ret;
  do
  {
#if defined(USE_IOCTL_FIONBIO) || defined(__NT__)
    ret=ioctl(fd, FIONBIO, &which);
#else

#ifdef USE_FCNTL_O_NDELAY
    ret=fcntl(fd, F_SETFL, which?O_NDELAY:0);
#else

#ifdef USE_FCNTL_O_NONBLOCK
    ret=fcntl(fd, F_SETFL, which?O_NONBLOCK:0);
#else

#ifdef USE_FCNTL_FNDELAY
    ret=fcntl(fd, F_SETFL, which?FNDELAY:0);
#else

#error Do not know how to set your filedescriptors nonblocking.

#endif
#endif
#endif
#endif
  } while(ret <0 && errno==EINTR);
  return ret;
}


FILE *output;
static int socketpair_fd = -1;
int my_socketpair(int family, int type, int protocol, int sv[2])
{
  static struct sockaddr_in my_addr;
  struct sockaddr_in addr,addr2;
  int retries=0;
  ACCEPT_SIZE_T len;

  memset(&addr,0,sizeof(struct sockaddr_in));

  if(socketpair_fd==-1)
  {
    if((socketpair_fd=socket(AF_INET, SOCK_STREAM, 0)) < 0) {
      SP_DEBUG((stderr, "my_socketpair:socket() failed, errno:%d\n",
		errno));
      return -1;
    }

    memset(&my_addr,0,sizeof(struct sockaddr_in));
    my_addr.sin_family=AF_INET;
    my_addr.sin_addr.s_addr=htonl(INADDR_ANY);
    my_addr.sin_port=htons(0);


    if(bind(socketpair_fd, (struct sockaddr *)&my_addr, sizeof(addr)) < 0)
    {
      SP_DEBUG((stderr, "my_socketpair:bind() failed, errno:%d\n",
		errno));
      close(socketpair_fd);
      socketpair_fd=-1;
      return -1;
    }

    len = sizeof(my_addr);
    if(getsockname(socketpair_fd,(struct sockaddr *)&my_addr,&len) < 0)
    {
      SP_DEBUG((stderr, "my_socketpair:getsockname() failed, errno:%d\n",
		errno));
      close(socketpair_fd);
      socketpair_fd=-1;
      return -1;
    }

    if(listen(socketpair_fd, 5) < 0)
    {
      SP_DEBUG((stderr, "my_socketpair:listen() failed, errno:%d\n",
		errno));
      close(socketpair_fd);
      socketpair_fd=-1;
      return -1;
    }

    set_nonblocking(socketpair_fd, 1);

    my_addr.sin_addr.s_addr=inet_addr("127.0.0.1");
  }


  if((sv[1]=socket(AF_INET, SOCK_STREAM, 0)) <0) {
    SP_DEBUG((stderr, "my_socketpair:socket() failed, errno:%d (2)\n",
	      errno));
    return -1;
  }


retry_connect:
  retries++;
  if(connect(sv[1], (struct sockaddr *)&my_addr, sizeof(addr)) < 0)
  {
    SP_DEBUG((stderr, "my_socketpair:connect() failed, errno:%d (%d)\n",
	      errno, EWOULDBLOCK));
    if(errno != EWOULDBLOCK)
    {
      int tmp2;
#ifdef ETIMEDOUT
      if (errno == ETIMEDOUT) {
        SP_DEBUG((stderr,
	          "my_socketpair: ETIMEDOUT!\n"
		  "Do you have a firewall in the way?\n"));
	/* ETIMEDOUT hints that quite a bit of time has passed,
	 * so no need for further retries. */
	fprintf(output, "TIMEOUT\n");
	exit(0);
      }
#endif
#ifdef ECONNREFUSED
      if (errno == ECONNREFUSED) {
        SP_DEBUG((stderr,
	          "my_socketpair: ECONNREFUSED!\n"
		  "Do you have a firewall in the way?\n"));
      }
#endif
      for(tmp2=0;tmp2<20;tmp2++)
      {
	int tmp;
	ACCEPT_SIZE_T len2;

	len2=sizeof(addr);
	tmp=accept(socketpair_fd,(struct sockaddr *)&addr,&len2);

	if(tmp!=-1) {
	  SP_DEBUG((stderr, "my_socketpair:accept() failed, errno:%d\n",
		    errno));
	  close(tmp);
	}
	else
	  break;
      }
      if(retries > 20) return -1;
      goto retry_connect;
    }
  }


  do
  {
    ACCEPT_SIZE_T len3;

    len3=sizeof(addr);
  retry_accept:
    sv[0]=accept(socketpair_fd,(struct sockaddr *)&addr,&len3);

    if(sv[0] < 0) {
      SP_DEBUG((stderr, "my_socketpair:accept() failed, errno:%d (2)\n",
		errno));
      if(errno==EINTR) goto retry_accept;
      close(sv[1]);
      return -1;
    }

    set_nonblocking(sv[0],0);

    len=sizeof(addr);
    if(getpeername(sv[0], (struct sockaddr *)&addr,&len)) {
      SP_DEBUG((stderr, "my_socketpair:getpeername() failed, errno:%d\n",
		errno));
      return -1;
    }
    len=sizeof(addr);
    if(getsockname(sv[1],(struct sockaddr *)&addr2,&len) < 0) {
      SP_DEBUG((stderr, "my_socketpair:getsockname() failed, errno:%d\n",
		errno));
      return -1;
    }
  }while(len < (int)sizeof(addr) ||
	 addr2.sin_addr.s_addr != addr.sin_addr.s_addr ||
	 addr2.sin_port != addr.sin_port);

  SP_DEBUG((stderr, "my_socketpair: succeeded\n",
	    errno));

  return 0;
}

int socketpair_ultra(int family, int type, int protocol, int sv[2])
{
  int retries=0;

  while(1)
  {
    int ret=my_socketpair(family, type, protocol, sv);
    if(ret>=0) return ret;

    switch(errno)
    {
      case EAGAIN: break;

      case EADDRINUSE:
	if(retries++ > 10) return ret;
	break;

      default:
	return ret;
    }
  }
}


struct pollfd pollset[2];
int fds[2];
static int sent=0;
int xcalls=0;

int ping(int fd)
{
  int r;
  sent++;
  if(sent > 10000)
  {
    fprintf(output,xcalls ? "SEMIWORKING" : "WORKING");
    exit(0);
  }
  do {
    r=send(fds[fd],"x",1,MSG_OOB);
  }while(r < 0 && errno==EINTR);
  if(r!=1)
  {
    SP_DEBUG((stderr,
	      "ping(%d): send(%d, \"x\", 1, MSG_OOB) failed with errno %d\n",
	      fd, fds[fd], errno));
    fprintf(output,"XBYTES\n");
    exit(0);
  }

  pollset[fd].events &=~ POLLWRBAND;
  pollset[!fd].events |= POLLRDBAND;
}

int pong(int fd)
{
  char foo[2];
  int r;
   do {
    r=recv(fds[fd], &foo, 2, MSG_OOB);
  }while(r < 0 && errno==EINTR);
  if(r!=1)
  {
    fprintf(output,"XBYTES\n");
    exit(0);
  }

  pollset[fd].events &=~ POLLRDBAND;
  pollset[fd].events |=  POLLWRBAND;
}

void pang(int fd)
{
  char foo[2];
  int r;
  xcalls++;
   do {
    r=recv(fds[fd], &foo, 2, 0);
  }while(r < 0 && errno==EINTR);
  if(r<0 && errno==EAGAIN) return;

  fprintf(output,"INLINED\n");
  exit(0);
}

int main(int argc, char **argv)
{
  int e;
  output=fopen("conftest.out.2","w");
  socketpair_ultra(AF_UNIX, SOCK_STREAM, 0, fds);

#define INIT(X) do {\
  set_nonblocking(fds[X],1); \
  pollset[X].fd=fds[X]; \
  pollset[X].events=POLLIN; \
}while(0);

  INIT(0);
  INIT(1);

  ping(0);

  while(1)
  {
    if(!poll(pollset, 2, 500))
    {
      fprintf(output,sent>1 ? "WORKS_A_LITTLE\n" : "TIMEOUT\n");
      exit(0);
    }

    for(e=0;e<2;e++)
    {
      if(pollset[e].revents & POLLERR) exit(1);
      if(pollset[e].revents & POLLRDBAND) pong(e);
      if(pollset[e].revents & POLLWRBAND) ping(e);
      if(pollset[e].revents & POLLIN) pang(e);
    }
  }
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_system_oob_working="`cat conftest.out.2`"
else
  pike_cv_system_oob_working=UNKNOWN
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


    rm -f conftest.out.2 >/dev/null 2>/dev/null || :
  fi

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_system_oob_working" >&5
$as_echo "$pike_cv_system_oob_working" >&6; }

case "x$pike_cv_system_oob_working" in
  xWORKING)        cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS 3
_ACEOF
  ;;
  xSEMIWORKING)    cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS 2
_ACEOF
  ;;
  xINLINED)        cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS 1
_ACEOF
  ;;
  xWORKS_A_LITTLE) cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS 1
_ACEOF
  ;;
  xXBYTES)         cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS 0
_ACEOF
  ;;
  xTIMEOUT)        cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS 0
_ACEOF
  ;;
  *)               cat >>confdefs.h <<_ACEOF
#define PIKE_OOB_WORKS -1
_ACEOF
 ;; #unknown
esac

#######################################################################


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to printf size_t" >&5
$as_echo_n "checking how to printf size_t... " >&6; }
  if ${pike_cv_printf_size_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main ()
{

size_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      found=no
      for mod in "z" "" "l" "ll" "L" ; do
	if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stddef.h>
#include <stdio.h>

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int main() {
  char buf[50];
  if (((size_t)4711) > ((size_t)-4711)) {
    /* Signed type. */
    if (sizeof(size_t)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((size_t) 4711) << 32, -((size_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (size_t) 4711, (size_t)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(size_t)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((size_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (size_t) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_printf_size_t="${mod}"; found=yes
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_size_t=unknown

else

      pike_cv_printf_size_t=nonexistent

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test x"${pike_cv_printf_size_t}" = xnonexistent; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
$as_echo "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_size_t}" = xunknown ; then
      res=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}u, %${res}x" >&5
$as_echo "none found, defaulting to %${res}u, %${res}x" >&6; }
    else
      res="${pike_cv_printf_size_t}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${res}u, %${res}x" >&5
$as_echo "%${res}u, %${res}x" >&6; }
    fi
    cat >>confdefs.h <<_ACEOF
#define PRINTSIZET "${res}"
_ACEOF

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to printf ptrdiff_t" >&5
$as_echo_n "checking how to printf ptrdiff_t... " >&6; }
  if ${pike_cv_printf_ptrdiff_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main ()
{

ptrdiff_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      found=no
      for mod in "t" "" "l" "ll" "L" ; do
	if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stddef.h>
#include <stdio.h>

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int main() {
  char buf[50];
  if (((ptrdiff_t)4711) > ((ptrdiff_t)-4711)) {
    /* Signed type. */
    if (sizeof(ptrdiff_t)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((ptrdiff_t) 4711) << 32, -((ptrdiff_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (ptrdiff_t) 4711, (ptrdiff_t)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(ptrdiff_t)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((ptrdiff_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (ptrdiff_t) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_printf_ptrdiff_t="${mod}"; found=yes
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_ptrdiff_t=unknown

else

      pike_cv_printf_ptrdiff_t=nonexistent

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test x"${pike_cv_printf_ptrdiff_t}" = xnonexistent; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
$as_echo "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_ptrdiff_t}" = xunknown ; then
      res=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}d, %${res}x" >&5
$as_echo "none found, defaulting to %${res}d, %${res}x" >&6; }
    else
      res="${pike_cv_printf_ptrdiff_t}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${res}d, %${res}x" >&5
$as_echo "%${res}d, %${res}x" >&6; }
    fi
    cat >>confdefs.h <<_ACEOF
#define PRINTPTRDIFFT "${res}"
_ACEOF

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to printf off_t" >&5
$as_echo_n "checking how to printf off_t... " >&6; }
  if ${pike_cv_printf_off_t+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main ()
{

off_t tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      found=no
      for mod in "" "t" "j" "l" "ll" "L" ; do
	if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stddef.h>
#include <stdio.h>

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int main() {
  char buf[50];
  if (((off_t)4711) > ((off_t)-4711)) {
    /* Signed type. */
    if (sizeof(off_t)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((off_t) 4711) << 32, -((off_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (off_t) 4711, (off_t)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(off_t)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((off_t) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (off_t) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_printf_off_t="${mod}"; found=yes
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_off_t=unknown

else

      pike_cv_printf_off_t=nonexistent

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test x"${pike_cv_printf_off_t}" = xnonexistent; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
$as_echo "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_off_t}" = xunknown ; then
      res=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}d, %${res}x" >&5
$as_echo "none found, defaulting to %${res}d, %${res}x" >&6; }
    else
      res="${pike_cv_printf_off_t}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${res}d, %${res}x" >&5
$as_echo "%${res}d, %${res}x" >&6; }
    fi
    cat >>confdefs.h <<_ACEOF
#define PRINTOFFT "${res}"
_ACEOF

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to printf INT64" >&5
$as_echo_n "checking how to printf INT64... " >&6; }
  if ${pike_cv_printf_INT64+:} false; then :
  $as_echo_n "(cached) " >&6
else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int
main ()
{

INT64 tmp;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      found=no
      for mod in "" "l" "ll" "I64" "L" ; do
	if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stddef.h>
#include <stdio.h>

#define CONFIGURE_TEST
#include "global.h"
#include "pike_int_types.h"

int main() {
  char buf[50];
  if (((INT64)4711) > ((INT64)-4711)) {
    /* Signed type. */
    if (sizeof(INT64)>4)
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d",
	      ((INT64) 4711) << 32, -((INT64) 4711) << 32, 17);
      return !!strcmp("20233590931456,-20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%${mod}d,%d", (INT64) 4711, (INT64)-4711, 17);
      return !!strcmp("4711,-4711,17", buf);
    }
  } else {
    /* Unsigned type. */
    if (sizeof(INT64)>4)
    {
      sprintf(buf, "%${mod}d,%d",
	      ((INT64) 4711) << 32, 17);
      return !!strcmp("20233590931456,17", buf);
    }
    else
    {
      sprintf(buf, "%${mod}d,%d", (INT64) 4711, 17);
      return !!strcmp("4711,17", buf);
    }
  }
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_printf_INT64="${mod}"; found=yes
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

	test ${found} = yes && break
      done
      test ${found} = no && pike_cv_printf_INT64=unknown

else

      pike_cv_printf_INT64=nonexistent

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

  if test x"${pike_cv_printf_INT64}" = xnonexistent; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: type does not exist" >&5
$as_echo "type does not exist" >&6; }
  else
    if test x"${pike_cv_printf_INT64}" = xunknown ; then
      res="l"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found, defaulting to %${res}d, %${res}x" >&5
$as_echo "none found, defaulting to %${res}d, %${res}x" >&6; }
    else
      res="${pike_cv_printf_INT64}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${res}d, %${res}x" >&5
$as_echo "%${res}d, %${res}x" >&6; }
    fi
    cat >>confdefs.h <<_ACEOF
#define PRINTINT64 "${res}"
_ACEOF

  fi


#######################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union initialization works" >&5
$as_echo_n "checking if union initialization works... " >&6; }
if ${pike_cv_have_union_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_have_union_init=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    struct foo {int a;};
    struct bar {char b[2];};
    union anything
    {
      struct foo foo;
      struct bar bar;
    };
    struct svalue
    {
      unsigned type;
      unsigned subtype;
      union anything u;
    };
    struct svalue my_svalue = {0, 0, {{4711}}};
    int main() {
      return !(my_svalue.u.foo.a == 4711);
    }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_have_union_init=yes
else
  pike_cv_have_union_init=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_union_init" >&5
$as_echo "$pike_cv_have_union_init" >&6; }
if test "$pike_cv_have_union_init" = yes; then
  $as_echo "#define HAVE_UNION_INIT 1" >>confdefs.h

fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union aliasing works" >&5
$as_echo_n "checking if union aliasing works... " >&6; }
if ${pike_cv_have_working_union_aliasing+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_have_working_union_aliasing=yes
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    struct foo {int a;};
    struct bar {char b[2];};
    union anything
    {
      struct foo foo;
      struct bar bar;
    };
    int main() {
      union anything u;
      u.bar.b[0] = u.bar.b[1] = ~0;
      u.foo.a = 0;
      return u.bar.b[0];
    }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_have_working_union_aliasing=yes
else
  pike_cv_have_working_union_aliasing=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_have_working_union_aliasing" >&5
$as_echo "$pike_cv_have_working_union_aliasing" >&6; }
if test "$pike_cv_have_union_init" = no; then
  $as_echo "#define NO_COMBINED_TYPE_SUBTYPE 1" >>confdefs.h

fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if port.c works in CONFIGURE_TEST mode" >&5
$as_echo_n "checking if port.c works in CONFIGURE_TEST mode... " >&6; }
if ${pike_cv_configure_test_port_c+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_configure_test_port_c=unknown
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "port.c"

int main()
{
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_configure_test_port_c=yes
else
  pike_cv_configure_test_port_c=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_configure_test_port_c" >&5
$as_echo "$pike_cv_configure_test_port_c" >&6; }
if test "x$pike_cv_configure_test_port_c" = xno; then
  as_fn_error $? "

port.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
" "$LINENO" 5
  exit 1
fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes two arguments" >&5
$as_echo_n "checking if gettimeofday takes two arguments... " >&6; }
if ${pike_cv_func_gettimeofday_has_two_args+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#  if HAVE_TIME_H
#   include <time.h>
#  endif
# endif
#endif

#ifndef HAVE_STRUCT_TIMEVAL
struct timeval
{
  long tv_sec;
  long tv_usec;
};
#endif

int
main ()
{

{
  struct timeval tv;
  gettimeofday(&tv,(void *)0);
  exit(0);
}

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
   pike_cv_func_gettimeofday_has_two_args=yes
else
  pike_cv_func_gettimeofday_has_two_args=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#  if HAVE_TIME_H
#   include <time.h>
#  endif
# endif
#endif

#ifndef HAVE_STRUCT_TIMEVAL
struct timeval
{
  long tv_sec;
  long tv_usec;
};
#endif

int main() {
  struct timeval tv;
  gettimeofday(&tv,(void *)0);
  exit(0);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
   pike_cv_func_gettimeofday_has_two_args=yes

else
   pike_cv_func_gettimeofday_has_two_args=no

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi


if test $pike_cv_func_gettimeofday_has_two_args = yes; then
  $as_echo "#define GETTIMEOFDAY_TAKES_TWO_ARGS 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_gettimeofday_has_two_args" >&5
$as_echo "$pike_cv_func_gettimeofday_has_two_args" >&6; }

if test "x$ac_cv_func_gethrvtime" = xyes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethrvtime really works" >&5
$as_echo_n "checking if gethrvtime really works... " >&6; }
  if ${pike_cv_func_gethrvtime_works+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :
  pike_cv_func_gethrvtime_works=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "port.c"

int main()
{
  time_t start = TIME (0), now;
  hrtime_t vt = gethrvtime(), next_vt;
  if (start == (time_t) -1) return 1; /* Normal time doesn't work. */
  do { /* Take some cpu time. */
    now = TIME (0);
    next_vt = gethrvtime();
    if (next_vt < vt) return 2; /* Shouldn't go backward. */
    vt = next_vt;
  } while (now != (time_t) -1 && now <= start + 1);
  if (now == (time_t) -1) return 3; /* Normal time does not work. */
  if (vt <= 0) return 4; /* Should have accounted for some cpu time. */
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_func_gethrvtime_works=yes
else
  pike_cv_func_gethrvtime_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_func_gethrvtime_works" >&5
$as_echo "$pike_cv_func_gethrvtime_works" >&6; }
  if test "x$pike_cv_func_gethrvtime_works" = xyes; then
    $as_echo "#define HAVE_WORKING_GETHRVTIME 1" >>confdefs.h

  fi
fi

#######################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if rusage.c works in CONFIGURE_TEST mode" >&5
$as_echo_n "checking if rusage.c works in CONFIGURE_TEST mode... " >&6; }
if ${pike_cv_configure_test_rusage_c+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_configure_test_rusage_c=unknown
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "port.c"		/* Tested earlier, but might be required. */
#include "rusage.c"

int main()
{
  init_rusage();
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_configure_test_rusage_c=yes
else
  pike_cv_configure_test_rusage_c=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_configure_test_rusage_c" >&5
$as_echo "$pike_cv_configure_test_rusage_c" >&6; }
if test "x$pike_cv_configure_test_rusage_c" = xno; then
  as_fn_error $? "

rusage.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
" "$LINENO" 5
  exit 1
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads.c works in CONFIGURE_TEST mode" >&5
$as_echo_n "checking if threads.c works in CONFIGURE_TEST mode... " >&6; }
if ${pike_cv_configure_test_threads_c+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test "$cross_compiling" = yes; then :
  pike_cv_configure_test_threads_c=unknown
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

#define CONFIGURE_TEST
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "port.c"		/* Tested earlier, but might be required. */
#include "threads.c"

int main()
{
  return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_configure_test_threads_c=yes
else
  pike_cv_configure_test_threads_c=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_configure_test_threads_c" >&5
$as_echo "$pike_cv_configure_test_threads_c" >&6; }
if test "x$pike_cv_configure_test_threads_c" = xno; then
  as_fn_error $? "

threads.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
" "$LINENO" 5
  exit 1
fi

#######################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fallback cpu time is thread local" >&5
$as_echo_n "checking if fallback cpu time is thread local... " >&6; }
if ${pike_cv_thread_local_cpu_time+:} false; then :
  $as_echo_n "(cached) " >&6
else

  rm -f confdefs.out.2 2>/dev/null
  if test "$cross_compiling" = yes; then :

      pike_cv_thread_local_cpu_time="unknown (cross compilation)"

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>

/* libc_r:fputs on AIX 4.2 is broken. */
#define FPUTS(S, F)	fwrite(S, sizeof(S)-sizeof(""), 1, F)

#ifdef PIKE_THREADS

#define CONFIGURE_TEST
#define CONFIGURE_TEST_FALLBACK_GCT
/* The following headers can cause problems in this mode, and they easily
   get indirectly included unless we do this. */
#define STRALLOC_H
#define SVALUE_H
#define ARRAY_H

#include "port.c"
#include "rusage.c"
#include "threads.c"

PIKE_MUTEX_T m;
COND_T c;

cpu_time_t work_time, wait_time;

TH_RETURN_TYPE work_thread (void *dummy)
{
  struct timeval rt_start, rt;
  cpu_time_t start;
  FPUTS("work_thread waiting.\n", stderr);
  mt_lock (&m);
  FPUTS("work_thread start.\n", stderr);
  GETTIMEOFDAY (&rt_start);
  start = get_cpu_time();
  do {
    cpu_time_t t = get_cpu_time();
    GETTIMEOFDAY (&rt);
    if (t == (cpu_time_t) -1) {
      work_time = t;
      break;
    }
    work_time = t - start;
  } while (work_time < (CPU_TIME_TICKS / 10) && rt.tv_sec <= rt_start.tv_sec + 1);
  FPUTS("work_thread releasing main.\n", stderr);
  co_signal (&c);
  mt_unlock (&m);
  FPUTS("work_thread done.\n", stderr);
  return 0;
}

int main()
{
  cpu_time_t start;
  THREAD_T worker;
  FILE *res = fopen ("confdefs.out.2", "w"); /* weird name to circumvent configure cleanups */
  if (!res) return 2;

  init_rusage();
  really_low_th_init();

  mt_init (&m);
  co_init (&c);

  mt_lock (&m);
  FPUTS("Creating work_thread.\n", stderr);
  if (th_create (&worker, work_thread, NULL)) {
    FPUTS("unknown (failed to create thread)", res);
    fclose (res);
    return 3;
  }

  start = get_cpu_time();
  co_wait (&c, &m);
  wait_time = get_cpu_time() - start;
  if (start == (cpu_time_t) -1 || work_time == (cpu_time_t) -1) {
    FPUTS("unknown (get_cpu_time does not work)", res);
    fclose (res);
    return 4;
  }
  if (work_time < (CPU_TIME_TICKS / 10)) {
    fprintf (res, "unknown (get_cpu_time does not work - loop took only %ld ms)",
	     (long) (work_time / (CPU_TIME_TICKS / 1000)));
    fclose (res);
    return 5;
  }

  if (work_time > wait_time)
    return 0; /* It is thread local. */
  else {
    FPUTS("no", res);
    fclose (res);
    return 1; /* It is not thread local. */
  }
}

#else
int main()
{
  FILE *res = fopen ("confdefs.out.2", "w"); /* weird name to circumvent configure cleanups */
  if (!res) return 6;
  FPUTS("no", res);
  fclose (res);
  return 1;
}
#endif

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

      pike_cv_thread_local_cpu_time=yes

else

      if test -f confdefs.out.2 && test "x`cat confdefs.out.2`" != x; then
        pike_cv_thread_local_cpu_time=`cat confdefs.out.2`
      else
	as_fn_error $? "

Test failed to compile or execute.
Problems in port.c, rusage.c or threads.c with CONFIGURE_TEST is defined?
" "$LINENO" 5
        # Don't set pike_cv_thread_local_cpu_time here so that the
        # failure doesn't get cached.
	result="unknown (compilation or execution failed)"
	exit 1
      fi

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

  rm -f confdefs.out.2 2>/dev/null

fi

test x"$pike_cv_thread_local_cpu_time" != x && result="$pike_cv_thread_local_cpu_time"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
$as_echo "$result" >&6; }
if test "$pike_cv_thread_local_cpu_time" = yes; then
  $as_echo "#define FB_CPU_TIME_IS_THREAD_LOCAL PIKE_YES" >>confdefs.h

elif test "$pike_cv_thread_local_cpu_time" = no; then
  $as_echo "#define FB_CPU_TIME_IS_THREAD_LOCAL PIKE_NO" >>confdefs.h

else
  $as_echo "#define FB_CPU_TIME_IS_THREAD_LOCAL PIKE_UNKNOWN" >>confdefs.h

fi

#######################################################################

for ac_func in setenv unsetenv
do :

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if eval \${ac_cv_func_$ac_func+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test x$pike_cv_funcs_need_decls = xyes; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "hdrlist.h"
#ifndef $ac_func
void *f = (void *) $ac_func;
#endif

int
main ()
{

#ifdef $ac_func
/* If there's a macro with this name we assume it takes the place of the function. */
return 0;
#else
return f != $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_GNU_STUBS_H
/* This file contains __stub_ defines for broken functions. */
#include <gnu/stubs.h>
#else
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func
#endif

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "ac_cv_func_$ac_func=yes"
else
  eval "ac_cv_func_$ac_func=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi

fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
done


if test "$ac_cv_func_setenv:$ac_cv_func_unsetenv" = "yes:yes"; then
  :
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if putenv() always requires a '='" >&5
$as_echo_n "checking if putenv() always requires a '='... " >&6; }
  if ${pike_cv_putenv_always_requires_equal+:} false; then :
  $as_echo_n "(cached) " >&6
else

    if test "$cross_compiling" = yes; then :
  pike_cv_putenv_always_requires_equal=cross-compiling

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <stdlib.h>

      int main()
      {
        putenv ("foo=bar");
        if (putenv ("foo") && !putenv ("foo=") && !getenv ("foo")) return 1;
        return 0;
      }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_putenv_always_requires_equal=no
else
  pike_cv_putenv_always_requires_equal=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_putenv_always_requires_equal" >&5
$as_echo "$pike_cv_putenv_always_requires_equal" >&6; }
  if test "x$pike_cv_putenv_always_requires_equal" != "xno"; then

$as_echo "#define PUTENV_ALWAYS_REQUIRES_EQUAL /**/" >>confdefs.h

  fi
fi

#######################################################################

# Set info about shared libraries.







# SO is the extension of shared libraries
# -- usually so, sl on HP-UX
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
$as_echo_n "checking SO... " >&6; }
if test -z "$SO"
then
	case "$pike_cv_sys_os" in
	hp*|HP*)   SO=sl;;
	*)	   SO=so;;
	esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
$as_echo "$SO" >&6; }
# LDSHARED is the ld *command* used to create shared library
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
$as_echo_n "checking LDSHARED... " >&6; }
if test -z "$LDSHARED" ; then
  ldshared_is_cc=yes
  case "$pike_cv_sys_os" in
    AIX*)
      if test "$GCC" = yes ; then
        if test "`uname -r`" -ge 2 -a "`uname -v`" -eq 4 ; then
          LDSHARED="ld -G -bexpall"
	elif test "`uname -v`" -gt 4 ; then
	  # AIX 5L+
	  LDSHARED="ld -G"
	else
	  # AIX 4.1 and earlier don't have/have unreliable
	  # handling of dlopen et al.
	  #
	  # Even AIX 4.2.1 has buggy dlopen -- NEVER attempt
	  # to dlopen a file that hasn't been linked with -G.
	  pike_cv_sys_dynamic_loading=no
	  LDSHARED="ld"
        fi
      elif test "`uname -r`" -ge 3 -a "`uname -v`" -eq 4 ; then
        LDSHARED="ld -G -bexpall"
      elif test "`uname -v`" -gt 4 ; then
	# AIX 5L+
	LDSHARED="ld -G"
      else
	# AIX 4.1 and earlier don't have/have unreliable
	# handling of dlopen et al.
	#
	# Even AIX 4.2.1 has buggy dlopen -- NEVER attempt
	# to dlopen a file that hasn't been linked with -G.
	pike_cv_sys_dynamic_loading=no
	LDSHARED="ld"
      fi
      ldshared_is_cc=no
    ;;
    Darwin*)
      if test "$pike_cv_osx_twolevel_namespace" = yes ; then
        # 10.3 or newer take advantage of two-level namespaces to avoid
        # symbol collisions for e.g. libjpeg which is referenced from both
        # _Image_JPEG and _Image_TIFF. It requires MACOSX_DEPLOYMENT_TARGET
        # which is initialized in smartlink to 10.3.
        LDSHARED="$REALCC $CFLAGS -bundle -bind_at_load -undefined dynamic_lookup"
      else
        # Mac OS X prior to 10.3 need -flat_namespace to support dynamic modules
        LDSHARED="$REALCC $CFLAGS -bundle -bind_at_load -flat_namespace -undefined suppress"
      fi
    ;;
    IRIX*)
      if test "$GCC" = yes ; then
        # egcs defaults to building -n32 objects
        LDSHARED="ld -shared -n32"
      else
        LDSHARED="ld -shared"
      fi
      # -woff isn't understood by ld on Irix 5.
      if test "`uname -r`" -ge 6 ; then
        LDSHARED="$LDSHARED -woff 84,85,134"
      else :; fi
      ldshared_is_cc=no
    ;;
    SunOS*)
      LDSHARED="ld"
      ldshared_is_cc=no
      ;;
    Solaris)
      LDSHARED="/usr/ccs/bin/ld -G"
      ldshared_is_cc=no
      ;;
    hp*|HP*)
      LDSHARED="ld -b"
      ldshared_is_cc=no
      ;;
    OSF*)
      LDSHARED="ld -expect_unresolved '*' -shared -msym -O3"
      ldshared_is_cc=no
      ;;
    DYNIX/ptx*)
      LDSHARED="ld -G"
      ldshared_is_cc=no
      ;;
    next*) LDSHARED="$REALCC $CFLAGS -nostdlib -r";;
    Linux*) LDSHARED="$REALCC -shared";;
    GNU/kFreeBSD*) LDSHARED="$REALCC -shared";;
    GNU*) LDSHARED="$REALCC -Wl,-Bshareable";;
    FreeBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;
    NetBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;
    OpenBSD*) LDSHARED="$REALCC -Wl,-Bshareable";;
    BSD/OS*)
      case "`uname -r`" in
       4-9.*) LDSHARED="$REALCC -shared";;
        *) LDSHARED="shlicc -r"
	   ldshared_is_cc=no
	   ;;
      esac
    ;;
    SCO_SV*) LDSHARED="$REALCC -G -KPIC -Wl,-Bexport";;
    UNIX_SV*)
      LDSHARED="ld -G"
      ldshared_is_cc=no
      ;;
    UnixWare*|OpenUNIX*)
      if test "$GCC" = yes ; then
        LDSHARED="$REALCC -G -fPIC"
      else
        LDSHARED="$REALCC -G -KPIC -Wl,-Bexport"
      fi
    ;;
    Windows_NT*|NT*)
      if test x$with_dynamic_modules != xno; then
	  # It's important that we use $(CC) unexpanded here so that any
	  # -MD/-MDd flags also gets passed to the linker.
	  LDSHARED='$(CC) -shared'
	  LDSHARED_BASE_REQS=pike.lib
	  LDSHARED_MODULE_ARGS="-l`pwd`/pike"
	  LDSHARED_MODULE_REQS="`pwd`/pike.lib"
	LDSHARED_MODULE_ARGS="$LDSHARED_MODULE_ARGS -pdb:\$\$modname.pdb"
      fi
    ;;
    *)
      LDSHARED="ld"
      ldshared_is_cc=no
      ;;
  esac
  if test "$GCC:$ldshared_is_cc" = "yes:yes" ; then
    # On some architectures gcc attempts to link the shared object with
    # the standard startup files (crt0.o et al), which may fail due to
    # relocation errors. The flag -nostartfiles exists in gcc since at
    # least version 3.3.2 from 2003, so this should be safe.
    LDSHARED="$LDSHARED -nostartfiles"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
$as_echo "$LDSHARED" >&6; }

# CCSHARED are the C *flags* used to create objects to go into a shared
# library -- this is only needed for a few systems
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
$as_echo_n "checking CCSHARED... " >&6; }
if ${pike_cv_sys_ccshared+:} false; then :
  $as_echo_n "(cached) " >&6
else

  if test -z "$CCSHARED" ; then
    if test "$GCC" = yes ; then
      case "$pike_cv_sys_os" in
	BSD/OS*)
         case "`uname -r`" in
           4.*) CCSHARED="-fPIC";;
           *) CCSHARED="";;
         esac
	;;
	Darwin*)
	  CCSHARED="-fPIC"
	;;
	Solaris*)
	  # The Image module runs out of symbol reference space unless we
	  # use the large PIC model:
	  # ld: fatal: too many symbols require `small' PIC references:
	  # 	have 2205, maximum 2048 -- recompile some modules -K PIC.
	  CCSHARED="-fPIC"
	;;
	*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fPIC" >&5
$as_echo_n "checking -fPIC... " >&6; }
  if test "x$pike_disabled_option_fPIC" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fpic" >&5
$as_echo_n "checking -fpic... " >&6; }
  if test "x$pike_disabled_option_fpic" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fpic+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fpic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fpic=yes
else
  pike_cv_option_fpic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fpic=yes
else
  pike_cv_option_fpic=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fpic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fpic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fpic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fpic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fpic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fpic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fpic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fpic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fpic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fpic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fpic" = "xyes" ; then
      CCSHARED="$CCSHARED -fpic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


  else
    if ${pike_cv_option_fPIC+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fPIC"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fPIC=yes
else
  pike_cv_option_fPIC=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fPIC=yes
else
  pike_cv_option_fPIC=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fPIC=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fPIC=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fPIC=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fPIC=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fPIC=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fPIC=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fPIC=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fPIC=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fPIC=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fPIC=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fPIC" = "xyes" ; then
      CCSHARED="$CCSHARED -fPIC"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -fpic" >&5
$as_echo_n "checking -fpic... " >&6; }
  if test "x$pike_disabled_option_fpic" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_fpic+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -fpic"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_fpic=yes
else
  pike_cv_option_fpic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_fpic=yes
else
  pike_cv_option_fpic=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_fpic=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_fpic=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_fpic=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_fpic=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_fpic=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_fpic=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_fpic=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_fpic=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_fpic=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_fpic=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_fpic" = "xyes" ; then
      CCSHARED="$CCSHARED -fpic"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi


    fi
  fi

	;;
      esac
    else
      case "$pike_cv_sys_os" in
	Darwin*)
	  CCSHARED="-fPIC"
	;;
        IRIX*)

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -share" >&5
$as_echo_n "checking -share... " >&6; }
  if test "x$pike_disabled_option_cc_shared" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_cc_shared+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -share"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_cc_shared=yes
else
  pike_cv_option_cc_shared=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_cc_shared=yes
else
  pike_cv_option_cc_shared=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_cc_shared=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_cc_shared=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_cc_shared=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_cc_shared=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_cc_shared=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_cc_shared=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_cc_shared=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_cc_shared=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_cc_shared=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_cc_shared=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_cc_shared" = "xyes" ; then
      CCSHARED="$CCSHARED -share"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

        ;;
	hp*|HP*) CCSHARED="+z"; ;;
	FreeBSD*) CCSHARED="-fpic";;
	SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
        UnixWare*|OpenUNIX*) CCSHARED="-KPIC -dy -Bdynamic";;
	Solaris*)
	  CCSHARED="-KPIC -Bdynamic"
	  # Note: The Image module fails with
	  #   Failed to load library: ld.so.1: pike: fatal:
	  #   relocation error: R_AMD64_PC32: file Image.so:
	  #   symbol really_free_svalue: value 0x28001ca5b2d does not fit
	  # if the module is compiled with the default model.

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -xmodel=medium" >&5
$as_echo_n "checking -xmodel=medium... " >&6; }
  if test "x$pike_disabled_option_xmodel_medium" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_xmodel_medium+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -xmodel=medium"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_xmodel_medium=yes
else
  pike_cv_option_xmodel_medium=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_xmodel_medium=yes
else
  pike_cv_option_xmodel_medium=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_xmodel_medium=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_xmodel_medium=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_xmodel_medium=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_xmodel_medium=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_xmodel_medium=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_xmodel_medium=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_xmodel_medium=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_xmodel_medium=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_xmodel_medium=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_xmodel_medium=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_xmodel_medium" = "xyes" ; then
      CCSHARED="$CCSHARED -xmodel=medium"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

	;;
	Windows_NT*) CCSHARED="-shared" ;;
      esac
    fi
  fi
  OLD_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS $CCSHARED"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
exit(0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  pike_cv_sys_ccshared="$CCSHARED"
else
  pike_cv_sys_ccshared=''
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  CFLAGS="$OLD_CFLAGS"

fi

CCSHARED="$pike_cv_sys_ccshared"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
$as_echo "$CCSHARED" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
$as_echo_n "checking LINKFORSHARED... " >&6; }

if ${pike_cv_sys_linkforshared+:} false; then :
  $as_echo_n "(cached) " >&6
else

# LINKFORSHARED are the flags passed to the $(CC) command that links
# the pike executable -- this is only needed for a few systems
if test -z "$LINKFORSHARED"
then
  LINKFORSHARED=""
  if test "$GCC" = yes ; then
    case "$pike_cv_sys_os" in
      AIX*)
        if test "`uname -v`" -gt 4 ; then
	  # This is probably wrong, but I don't have a man page for ld yet.
	  LINKFORSHARED=""
	else
	  LINKFORSHARED="-Wl,-bexpall -Wl,-brtl"
	fi
      ;;
      Darwin*) LINKFORSHARED="-dynamic";;
      hp*|HP*) LINKFORSHARED="-Wl,-E";;
      Linux*) LINKFORSHARED="-rdynamic";;
      BSD/OS*)
        case "`uname -r`" in
         4.*) LINKFORSHARED="-rdynamic";;
       esac
      ;;
      BSD/OS*)
        case "`uname -r`" in
         4.*) LINKFORSHARED="-rdynamic";;
       esac
      ;;
      GNU*) LINKFORSHARED="-rdynamic";;
      NetBSD*) LINKFORSHARED="-Wl,-E";;
      OpenBSD*) LINKFORSHARED="-Wl,-E";;
      next*) LINKFORSHARED="-u libsys_s";;
      SCO_SV*) LINKFORSHARED="-fpic -Wl,-Bexport";;
      # What about UNIX_SV?
      UnixWare*|OpenUNIX*) LINKFORSHARED="-fpic -Wl,-Bexport";;

      FreeBSD*)
        if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main(){exit(
#ifdef __ELF__
    0
#else
    1
#endif
);}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  LINKFORSHARED=-rdynamic
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      ;;
    esac
  else
    case "$pike_cv_sys_os" in
      AIX*)
        if test "`uname -v`" -gt 4 ; then
	  LINKFORSHARED="-Bexport"
	else
	  LINKFORSHARED="-Wl,-bexpall -Wl,-brtl"
	fi
      ;;
      Darwin*) LINKFORSHARED="-dynamic";;
      hp*|HP*) LINKFORSHARED="-Wl,-E";;
      Linux*) LINKFORSHARED="-rdynamic";;
      GNU*) LINKFORSHARED="-rdynamic";;
      next*) LINKFORSHARED="-u libsys_s";;
      SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
      # What about UNIX_SV?
      UnixWare*|OpenUNIX*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;

      FreeBSD*)
        if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main(){exit(
#ifdef __ELF__
    0
#else
    1
#endif
);}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  LINKFORSHARED=-rdynamic
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      ;;
    esac
  fi
fi


   OLD_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS $LINKFORSHARED"
   if test "$cross_compiling" = yes; then :
  pike_cv_sys_linkforshared=''
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main() { exit(0); }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_sys_linkforshared="$LINKFORSHARED"
else
  pike_cv_sys_linkforshared=''
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

   CFLAGS="$OLD_CFLAGS"

fi


LINKFORSHARED="$pike_cv_sys_linkforshared"

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
$as_echo "$LINKFORSHARED" >&6; }

#############################################################################

# In case we're going to use gcc for linking shared objects,
# we should use the -static-libgcc flag if it exists.
# Shared libgcc is nothing but trouble.
STATIC_LIBGCC=""
if test yes = "$GCC" ; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking -static-libgcc" >&5
$as_echo_n "checking -static-libgcc... " >&6; }
  if test "x$pike_disabled_option_static_libgcc" = "xyes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }

  else
    if ${pike_cv_option_static_libgcc+:} false; then :
  $as_echo_n "(cached) " >&6
else

      OLD_CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$OLD_CPPFLAGS -static-libgcc"
      old_ac_link="$ac_link"
      ac_link="$old_ac_link 2>conftezt.out.2"
      if test "$cross_compiling" = yes; then :

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  pike_cv_option_static_libgcc=yes
else
  pike_cv_option_static_libgcc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

        int foo;
        int main(int argc, char **argv)
        {
	  /* The following code triggs gcc:s generation of aline opcodes,
	   * which some versions of as does not support.
	   */
	  if (argc > 0) argc = 0;
	  return argc;
        }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_option_static_libgcc=yes
else
  pike_cv_option_static_libgcc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

      if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
        pike_cv_option_static_libgcc=no
      elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
        # cc/HPUX says the following regarding -q64:
        #
        # cc: warning 422: Unknown option "6" ignored.
        # cc: warning 422: Unknown option "4" ignored.
        pike_cv_option_static_libgcc=no
      elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
        # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
        #
        # cc1: warning:
        # ***
        # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
        # ***
        pike_cv_option_static_libgcc=no
      elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
        # cc/AIX says the following regarding +O3:
        #
        # cc: 1501-228 input file +O3 not found
        pike_cv_option_static_libgcc=no
      elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
        # gcc/AIX says the following regarding -fpic:
        #
        # cc1: warning: -fpic ignored (all code is position independent)
        pike_cv_option_static_libgcc=no
      elif grep -i 'ignoring option'  <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -Wcomment:
        #
        # icc: Command line warning: ignoring option '-W'; no argument required
        pike_cv_option_static_libgcc=no
      elif grep -i 'not supported' <conftezt.out.2 >/dev/null; then
        # icc/Linux says the following regarding -W:
        #
        # icc: Command line remark: option '-W' not supported
        pike_cv_option_static_libgcc=no
      elif grep -i 'illegal option' <conftezt.out.2 >/dev/null; then
        # cc/Solaris says the following regarding -xdepend:
        #
        # cc: Warning: illegal option -xdepend
        pike_cv_option_static_libgcc=no
      elif grep -i 'is deprecated' <conftezt.out.2 >/dev/null; then
        # cc/Solaris (SunStudio 12) says the following regarding
	# -xarch=generic64:
        #
        # cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
        pike_cv_option_static_libgcc=no
      elif grep -i 'argument unused' <conftezt.out.2 >/dev/null; then
        # clang says the following for -ggdb3:
        #
	# clang: warning: argument unused during compilation: '-ggdb3'
        pike_cv_option_static_libgcc=no
      else :; fi
      if test -f conftezt.out.2; then
        cat conftezt.out.2 >&5
      fi
            CPPFLAGS="$OLD_CPPFLAGS"
      ac_link="$old_ac_link"
      rm conftezt.out.2

fi


    if test x"$pike_cv_option_static_libgcc" = "xyes" ; then
      STATIC_LIBGCC="$STATIC_LIBGCC -static-libgcc"
      # FIXME: We assume that the C++ compiler takes the same options
      #        as the C compiler.



      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

    fi
  fi

else :; fi

#############################################################################

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic loading works" >&5
$as_echo_n "checking if dynamic loading works... " >&6; }
if ${pike_cv_sys_dynamic_loading+:} false; then :
  $as_echo_n "(cached) " >&6
else

  cat >conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#if __GNUC__ >= 4
__attribute__ ((visibility("default")))
# endif
void testfunc(void) {
  fprintf(stderr,"Calling testfunc2\n");
  testfunc2();
  fprintf(stderr,"testfunc2 returned!\n");
  exit(1);
}
EOF

  echo $CC -c $CFLAGS $CCSHARED conftest.c -o conftest.o 1>&5
  $CC -c $CFLAGS $CCSHARED conftest.c -o conftest.o 1>&5 2>&5

  echo $BINDIR/smartlink $LDSHARED $LDFLAGS conftest.o -o conftest.$SO 1>&5
  $BINDIR/smartlink $LDSHARED $LDFLAGS conftest.o -o conftest.$SO 1>&5 2>&5

  if test -f conftest.$SO ; then
    mv conftest.$SO myconftest.so

    OLD_CFLAGS="$CFLAGS"

    CFLAGS="$CFLAGS $LINKFORSHARED"
    OLD_CC="$CC"
    case "$LD" in
      *shlicc)
        CC="$BINDIR/smartlink shlicc"
      ;;
    esac
    if test "$cross_compiling" = yes; then :
  pike_cv_sys_dynamic_loading=no
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#define TESTING
#include "dynamic_load.c"
#if __GNUC__ >= 4
__attribute__ ((visibility("default")))
# endif
void testfunc2(void) { exit(0); }

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  pike_cv_sys_dynamic_loading=yes
else
  pike_cv_sys_dynamic_loading=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    CFLAGS="$OLD_CFLAGS"
    CC="$OLD_CC"
  else
    pike_cv_sys_dynamic_loading=no
  fi
  rm -f myconftest.so >/dev/null 2>/dev/null

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pike_cv_sys_dynamic_loading" >&5
$as_echo "$pike_cv_sys_dynamic_loading" >&6; }


if test "x$with_dynamic_modules" != "xno" ; then
  if test x$pike_cv_sys_dynamic_loading = xno ; then
    with_dynamic_modules=no
  else
    with_dynamic_modules=yes
  fi
fi

crt_type=static

if test x$with_dynamic_modules = xyes \
     -a "x$pike_cv_sys_os" = xWindows_NT ; then
  # If dlls are enabled then compile for and link with the dynamic crt
  # to make all modules share the same crt instance.
  crt_type=dynamic
  $as_echo "#define USE_DLL 1" >>confdefs.h

fi

# Let the --with-crt argument override the chosen crt linkage.
test x"$with_crt" != x && crt_type="$with_crt"

INSTALL_EXPORT_ARGS=

if test x"$crt_type" = xdynamic; then
  CFLAGS="$CFLAGS $dynamic_crt_flag"
  if test x$with_debug_crt = xyes; then
    INSTALL_EXPORT_ARGS="${INSTALL_EXPORT_ARGS} --debug-crt"
  else
    INSTALL_EXPORT_ARGS="${INSTALL_EXPORT_ARGS} --release-crt"
  fi
elif test x"$crt_type" = xstatic; then
  CFLAGS="$CFLAGS $static_crt_flag"
else
  as_fn_error $? "Pass either \"static\" or \"dynamic\" to --with-crt" "$LINENO" 5
fi



# In case the normal libz is linked to the dynamic crt we need to use
# a different one linked with the static crt for the exe installer. We
# check if there is such a thing in the build environment with the
# nonstandard name "z_static".
UNCOMPRESS_LIBZ=-lz
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz_static" >&5
$as_echo_n "checking for inflate in -lz_static... " >&6; }
if ${ac_cv_lib_z_static_inflate+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz_static  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inflate ();
int
main ()
{
return inflate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_z_static_inflate=yes
else
  ac_cv_lib_z_static_inflate=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_static_inflate" >&5
$as_echo "$ac_cv_lib_z_static_inflate" >&6; }
if test "x$ac_cv_lib_z_static_inflate" = xyes; then :
  UNCOMPRESS_LIBZ=-lz_static
fi



#######################################################################
# Since configure doesn't always know if we will be linking with ld or cc,
# We use this little code snippet to add flags to ld that would otherwise
# be given automatically by $(CC) $(CFLAGS)
# /Hubbe
#
if test "$ldflags_is_set" = no ; then
case "x$LD $LDFLAGS" in
  *\$\(CFLAGS\)*)
    # Options in CFLAGS, no stuff needs to be added
  ;;
  x$CC*|x\$\(CC\)*)
    LD="$LD \$(CFLAGS)"
  ;;
  *)
    LD="$LD ${LD_FALLBACK_FLAGS-}"
  ;;
esac

case "x$LDSHARED $LDFLAGS" in
  *\$\(CFLAGS\)*)
    # Options in CFLAGS, no stuff needs to be added
  ;;
  x$CC*|x\$\(CC\)*)
    LDSHARED="$LDSHARED $STATIC_LIBGCC \$(CFLAGS)"
  ;;
  *)
    LDSHARED="$LDSHARED ${LD_FALLBACK_FLAGS-}"
  ;;
esac
fi

##########################################################################

case "x$pike_cv_sys_os" in
  xWindows_NT)
    signal_handler="custom NT"
  ;;

  xAmigaOS)
    signal_handler="custom AmigaOS"
  ;;

  xLinux | *kFreeBSD*)
    # Linux's stupid thread implementation doesn't survive USE_WAIT_THREAD.
    signal_handler="SIGCHILD"
    $as_echo "#define USE_SIGCHILD 1" >>confdefs.h

  ;;

  *)
    # This is valid for at least Solaris, AIX and Darwin.
    if grep _REENTRANT confdefs.h >/dev/null 2>&1; then
      signal_handler="wait thread"
      $as_echo "#define USE_WAIT_THREAD 1" >>confdefs.h

    else
      signal_handler="SIGCHILD"
      $as_echo "#define USE_SIGCHILD 1" >>confdefs.h

    fi
  ;;
esac

#######################################################################
# Since all $OPTIMIZE flags have to be automatically included in $CFLAGS
# (because otherwise the tests will not be accurate) we have to remove all
# OPTIMIZE flags from the regular CFLAGS...
# (also some other misc work on the flags)

INTERPRET_DEOPTIMIZE=

OPT_GOT_OFLAG=no
OPT_GOT_MCPU=no
OPT_GOT_MTUNE=no
OPT_GOT_MARCH=no
NEW_CFLAGS=
NEW_OPTIMIZE=
OPT_NOT_USED=
for opt in ${CFLAGS-}
do
   case " $OPTIMIZE " in
     *\ $opt\ *) ;;
     *)
       case "$opt" in
	  +O*|-O*)
	    if test "x$OPT_GOT_OFLAG" = "xno"; then
              # only use the first -O flag (from make.conf etc)
	      OPT_GOT_OFLAG=yes
	      if test "x$with_copt" != xno; then
		OPTIMIZE="${OPTIMIZE-} $opt"
	      else
	        OPT_NOT_USED="${OPT_NOT_USED-} $opt"
              fi
	    fi
	    ;;
	  -f*)
	    if test "x$opt" = "x-fomit-frame-pointer" -a \
	            "x$with_machine_code" = xyes; then
	       INTERPRET_DEOPTIMIZE=-fno-omit-frame-pointer

  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

-fno-omit-frame-pointer used for interpret.c,
since the use of machine code is broken by -fomit-frame-pointer.
" >&5
$as_echo "$as_me: WARNING:

-fno-omit-frame-pointer used for interpret.c,
since the use of machine code is broken by -fomit-frame-pointer.
" >&2;}
  cat >>config.warnings <<EOF
WARNING: -fno-omit-frame-pointer used for interpret.c,
since the use of machine code is broken by -fomit-frame-pointer.

EOF

	    fi

	    if test "x$with_copt" != xno; then
	      OPTIMIZE="${OPTIMIZE-} $opt"
	    else
	      OPT_NOT_USED="${OPT_NOT_USED-} $opt"
	    fi
	    ;;
	  -parallel|-ip*)
	    # Flags used by icc and ecc.
	    # They need to be propagated to the linker.
	    OPTIMIZE="${OPTIMIZE-} $opt"
	    EXTRALDFLAGS="${EXTRALDFLAGS} $opt"
	    ;;
          -pipe)
	    OPTIMIZE="${OPTIMIZE-} $opt"
	    ;;
	  -mcpu*)
            if test "x$OPT_GOT_MCPU" = xno; then
 	      NEW_CFLAGS="$NEW_CFLAGS $opt"
	      OPT_GOT_MCPU=yes
	    fi
            ;;
	  -mtune*)
	    if test "x$OPT_GOT_MTUNE" = xno; then
 	      NEW_CFLAGS="$NEW_CFLAGS $opt"
	      OPT_GOT_MTUNE=yes
	    fi
            ;;
	  -march*)
            if test "x$OPT_GOT_MARCH" = xno; then
 	      NEW_CFLAGS="$NEW_CFLAGS $opt"
	      OPT_GOT_MARCH=yes
	    fi
            ;;
          *)
	    NEW_CFLAGS="$NEW_CFLAGS $opt"
	    ;;
       esac
     ;;
   esac
done
CFLAGS="$NEW_CFLAGS"

unset NEW_CFLAGS
unset OPT_GOT_OFLAG
unset OPT_GOT_MCPU
unset OPT_GOT_MTUNE
unset OPT_GOT_ARCH



#############################################################################



#############################################################################
# Remove the extra args temporarily added to CPPFLAGS.

for extra_arg in $CONF_CPPFLAGS_EXTRA; do
  NEW_CPPFLAGS=""
  for arg in $CPPFLAGS; do
    test "$arg" = "$extra_arg" || NEW_CPPFLAGS="$NEW_CPPFLAGS $arg"
  done
  CPPFLAGS="$NEW_CPPFLAGS"
done

#############################################################################

# The following set of substitution variables are used to implement
# two quite different building orders in the makefile. See the comment
# above the "pike" target in Makefile.in.

if test x$with_dynamic_modules = xyes ; then
  dmmsrc="modules/dynamic_module_makefile.in"
  DYNAMIC_MODULE_FLAGS="-DDYNAMIC_MODULE"
  CCSHARED="${CCSHARED} ${DYNAMIC_MODULE_FLAGS}"
  PIKE_LIB="libpike.so"
  MODULE_O=tmodule.o
  BUILD_PIKE=pike$EXEEXT
  POST_MODULE_BUILD_TYPE=dynamic
  STATIC_POST_MODULES_LINKOPTS=
else
  $as_echo "#define USE_SEMIDYNAMIC_MODULES 1" >>confdefs.h

  dmmsrc="modules/semidynamic_module_makefile.in"
  PIKE_LIB="libpike.a"
  MODULE_O=module.o
  BUILD_PIKE=tpike$EXEEXT
  POST_MODULE_BUILD_TYPE=static
  STATIC_POST_MODULES_LINKOPTS=post_modules/linker_options
  DYNAMIC_MODULE_FLAGS=""
fi








#############################################################################

PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/\.cmod/\.c/g" | sed -e "s|$srcdir/|\\$(SRCDIR)/|g"`
test "$PMOD_TARGETS" = '$(SRCDIR)/*.c' && PMOD_TARGETS=


#############################################################################

# Microsoft has decided to make our lives yet more complicated by
# introducing a fancy dependency tracking system in VC8. It got
# manifest files (oooh!) written in xml (aahh!). It got a linker that
# can't make binaries with the dependency info built in from the
# beginning. It got an amazing array of special cases and quirky rules
# on how crt dlls may be loaded and not that's almost certain to nail
# you sooner or later. All in all, it's the most insanely overcomplex
# system to keep your exe and dlls from loading that stinkin' little
# crt dll you can ever imagine. For the full story, see
# http://www.codeproject.com/cpp/vcredists_x86.asp.

if test "x$MTEXE" != x; then
  # Embed the manifests. C.f. http://msdn2.microsoft.com/en-us/library/ms235591.aspx
  # You might want to disable this if you want to try private crts.
  # See also the PRIVATE_CRT parts of install.pike.
  MT_FIX_PIKE_EXE="\
    @if test -f pike.exe.manifest; then \
      echo \"$MTEXE -nologo -manifest pike.exe.manifest '-outputresource:pike.exe;1'\"; \
      $MTEXE -nologo -manifest pike.exe.manifest '-outputresource:pike.exe;1'; \
    else :; fi"
  MT_FIX_MODULE_SO="\
    @if test -f module.so.manifest; then \
      echo \"$MTEXE -nologo -manifest module.so.manifest '-outputresource:module.so;2'\"; \
      $MTEXE -nologo -manifest module.so.manifest '-outputresource:module.so;2'; \
    else :; fi"
else
  MT_FIX_PIKE_EXE=@:
  MT_FIX_MODULE_SO=@:
fi



if test "x$RCEXE" != x; then
  # Windows icon
  PIKE_ICON_RES=pike_icon.res
fi


if test "x$enable_pikelib" != "xno"; then
  # Everything needs to be compiled for library use.
  CFLAGS="$CFLAGS $CCSHARED"
  CCSHARED=""
fi

#############################################################################

echo
echo "Compiler summary:"
echo
echo "C Compiler:    $CC"
echo "Preprocessor:  $CPP"
echo "Linker:        $LD"
echo "Shared linker: $LDSHARED"
echo
echo "Shared object extension: $SO"
echo "Dynamic modules: $with_dynamic_modules"
echo
echo "PIKE_LIB:      $PIKE_LIB"
echo
echo "CPPFLAGS:      $CPPFLAGS"
echo "CFLAGS:        $CFLAGS"
echo "CCSHARED:      $CCSHARED"
echo "LINKFORSHARED: $LINKFORSHARED"
echo "LIBGCC:        $LIBGCC"
echo "WARN:          $WARN"
echo "PROFIL:        $PROFIL"
echo "OPTIMIZE:      $OPTIMIZE"
echo "LDFLAGS:       $LDFLAGS"
echo "LIBS:          $LIBS"
echo "prefix:        $prefix"
echo

#############################################################################

export CC CPP LDFLAGS CFLAGS CPPFLAGS LIBS
export prefix exec_prefix OTHERFLAGS
export DEFINES INSTALL

PIKE_SRC_DIR=$srcdir
export PIKE_SRC_DIR
BUILD_BASE=`pwd`
export BUILD_BASE

if test "$pike_cv_sys_os" = "Windows_NT"; then
  # If this doesn't begin with '/', it's relative to pike.exe.
  default_master=../lib/master.pike
else
  default_master=$prefix/pike/%d.%d.%d/lib/master.pike
fi
cat >>confdefs.h <<_ACEOF
#define DEFAULT_MASTER "$default_master"
_ACEOF












pike_cv_prog_CC="${CC}"

#############################################################################

# Autoconf 2.50 and later stupidity...
# Ensure that the propagated CC (if any) is up to date.
  # Otherwise the sub-configures will attempt to use eg
  # -R with the raw compiler, which only works on Solaris.
  ac_configure_args=`echo " $ac_configure_args " | sed -e "s% 'CC=$REALCC' % 'CC=$CC' %g" -e "s% 'CC=$RAWCC' % 'CC=$CC' %g"`




subdirs="$subdirs modules post_modules"



dependencies=$srcdir/dependencies







common_module_makefile=modules/common_module_makefile


# Assignments for make_variables.in.

# Afaik BUILDDIR/TMP_BUILDDIR and BINDIR/TMP_BINDIR are always the
# same thing. Can it be cleaned up? /mast
TMP_BUILDDIR=$BUILDDIR
TMP_BINDIR=$BINDIR

BASE_CFLAGS=$CFLAGS
BASE_CPPFLAGS=$CPPFLAGS
MOD_LDSHARED="$LDSHARED $LDSHARED_MODULE_ARGS"

# Put LIBS into the LDFLAGS that the modules will use. This is
# necessary to keep compatibility with module configure scripts. Some
# modules don't expand @LIBS@ at all, so we can't use a BASE_LIBS to
# init the module LIBS.
BASE_LDFLAGS="$LDFLAGS $LIBS"

#
# Note: We must output before visiting the subdirs,
#       since we need *_module_makefile to exist.
#


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


  PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/\.cmod/\.c/g" | sed -e "s|$srcdir/|\\$(SRCDIR)/|g"`
  test "$PMOD_TARGETS" = '$(SRCDIR)/*.c' && PMOD_TARGETS=


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Pike base directory" >&5
$as_echo_n "checking for the Pike base directory... " >&6; }
  if test "x$PIKE_SRC_DIR" != "x" -a -f "${PIKE_SRC_DIR}/make_variables.in"; then
    make_variables_in="${PIKE_SRC_DIR}/make_variables.in"
    make_variables_in_file=$make_variables_in
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PIKE_SRC_DIR}" >&5
$as_echo "${PIKE_SRC_DIR}" >&6; }


  else

    counter=.

    uplevels=
    while test ! -f "$srcdir/${uplevels}make_variables.in"
    do
      counter=.$counter
      if test $counter = .......... ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
        exit 1
      else
        :
      fi
      uplevels=../$uplevels
    done

    make_variables_in=${uplevels}make_variables.in
    make_variables_in_file=$make_variables_in
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${uplevels}." >&5
$as_echo "${uplevels}." >&6; }
    PIKE_SRC_DIR="`cd $srcdir/${uplevels} && pwd`"
  fi



  rm propagated_variables.new 2>/dev/null
  prop_var_changes=""
  for var in `sed -n -e 's/^#propagated_variables:\(.*\)$/\1/p' < $make_variables_in_file`; do
    # NB: If you get a strange error here you probably got a bogus
    # value in IFS.
    eval export $var
    eval echo \"${var}=\$$var\" >> propagated_variables.new
  done

  propvar_diff=yes
  if test -f propagated_variables.old; then
                    cmp -s propagated_variables.new propagated_variables.old && propvar_diff=no
    rm propagated_variables.old
  elif test -f propagated_variables; then
    cmp -s propagated_variables propagated_variables.new && propvar_diff=no
  fi

  if test $propvar_diff = no; then
    rm propagated_variables.new
  else
    mv propagated_variables.new propagated_variables
                    if test "x$subdirs" != x; then
      for subdir in $subdirs; do
	if test -f "$subdir/config.status"; then
	  echo "$as_me: creating $subdir/propagated_variables (propagated variables have changed)" >&6
	  test -f "$subdir/propagated_variables" && mv "$subdir/propagated_variables" "$subdir/propagated_variables.old"
	  cp propagated_variables "$subdir"
	fi
      done
    fi
  fi


  propagated_variables=propagated_variables


  make_variables=make_variables

    if test "x$subdirs" != x; then
    for subdir in $subdirs; do
      if test -f "$srcdir/$subdir/configure"; then :; else
	echo "$as_me: no configurescript in $srcdir/$subdir/" >&6
	echo "$as_me: running ${PIKE_SRC_DIR}/run_autoconfig $srcdir/$subdir" >&6
	"${PIKE_SRC_DIR}/run_autoconfig" "$srcdir/${subdir}" >&6 2>&6
      fi
    done
  fi

  # Autoconf 2.50 and later stupidity...

    unset ac_cv_env_build_alias_set
    unset ac_cv_env_build_alias_value
    unset ac_cv_env_host_alias_set
    unset ac_cv_env_host_alias_value
    unset ac_cv_env_target_alias_set
    unset ac_cv_env_target_alias_value
    unset ac_cv_env_CC_set
    unset ac_cv_env_CC_value
    unset ac_cv_env_CFLAGS_set
    unset ac_cv_env_CFLAGS_value
    unset ac_cv_env_CXX_set
    unset ac_cv_env_CXX_value
    unset ac_cv_env_CXXCPP_set
    unset ac_cv_env_CXXCPP_value
    unset ac_cv_env_CXXFLAGS_set
    unset ac_cv_env_CXXFLAGS_value
    unset ac_cv_env_LDFLAGS_set
    unset ac_cv_env_LDFLAGS_value
    unset ac_cv_env_LIBS_set
    unset ac_cv_env_LIBS_value
    unset ac_cv_env_CPPFLAGS_set
    unset ac_cv_env_CPPFLAGS_value
    unset ac_cv_env_CPP_set
    unset ac_cv_env_CPP_value


  if test x"$MODULE_OK:$REQUIRE_MODULE_OK" = "xno:yes"; then
    as_fn_error $? "Required module failed to configure." "$LINENO" 5
  fi


  ac_config_files="$ac_config_files make_variables:$make_variables_in Makefile modules/common_module_makefile modules/static_module_makefile post_modules/static_module_makefile:modules/static_module_makefile.in modules/dynamic_module_makefile:$dmmsrc post_modules/dynamic_module_makefile:$dmmsrc precompile.sh specs"

ac_config_commands="$ac_config_commands default"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs



: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by $as_me, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "machine.h") CONFIG_HEADERS="$CONFIG_HEADERS machine.h" ;;
    "make_variables") CONFIG_FILES="$CONFIG_FILES make_variables:$make_variables_in" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "modules/common_module_makefile") CONFIG_FILES="$CONFIG_FILES modules/common_module_makefile" ;;
    "modules/static_module_makefile") CONFIG_FILES="$CONFIG_FILES modules/static_module_makefile" ;;
    "post_modules/static_module_makefile") CONFIG_FILES="$CONFIG_FILES post_modules/static_module_makefile:modules/static_module_makefile.in" ;;
    "modules/dynamic_module_makefile") CONFIG_FILES="$CONFIG_FILES modules/dynamic_module_makefile:$dmmsrc" ;;
    "post_modules/dynamic_module_makefile") CONFIG_FILES="$CONFIG_FILES post_modules/dynamic_module_makefile:$dmmsrc" ;;
    "precompile.sh") CONFIG_FILES="$CONFIG_FILES precompile.sh" ;;
    "specs") CONFIG_FILES="$CONFIG_FILES specs" ;;
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then

if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  ac_cs_awk_getline=:
  ac_cs_awk_pipe_init=
  ac_cs_awk_read_file='
      while ((getline aline < (F[key])) > 0)
	print(aline)
      close(F[key])'
  ac_cs_awk_pipe_fini=
else
  ac_cs_awk_getline=false
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  ac_cs_awk_read_file='
      print "|#_!!_#|"
      print "cat " F[key] " &&"
      '$ac_cs_awk_pipe_init
  # The final `:' finishes the AND list.
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF

# Create commands to substitute file output variables.
{
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  echo "_ACAWK" &&
  echo "_ACEOF"
} >conf$$files.sh &&
. ./conf$$files.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
rm -f conf$$files.sh

{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
  \$ac_cs_awk_pipe_init
}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }
  if (nfields == 3 && !substed) {
    key = field[2]
    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
      \$ac_cs_awk_read_file
      next
    }
  }
  print line
}
\$ac_cs_awk_pipe_fini
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
if $ac_cs_awk_getline; then
  $AWK -f "$ac_tmp/subs.awk"
else
  $AWK -f "$ac_tmp/subs.awk" | $SHELL
fi \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "default":C)
	    case "x$CONFIG_HEADERS" in
	      *machine.h*) echo foo >stamp-h ;;
	    esac
	    chmod +x precompile.sh
           ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  # so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  eval "set x $ac_configure_args"
  shift
  for ac_arg
  do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    --disable-option-checking)
      ;;
    *)
      case $ac_arg in
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_arg="--prefix=$prefix"
  case $ac_arg in
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  # Pass --silent
  if test "$silent" = yes; then
    ac_sub_configure_args="--silent $ac_sub_configure_args"
  fi

  # Always prepend --disable-option-checking to silence warnings, since
  # different subdirs can have different --enable and --with options.
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d "$srcdir/$ac_dir" || continue

    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    $as_echo "$ac_msg" >&6
    as_dir="$ac_dir"; as_fn_mkdir_p
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


    cd "$ac_dir"

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      ac_sub_configure=$ac_srcdir/configure.gnu
    elif test -f "$ac_srcdir/configure"; then
      ac_sub_configure=$ac_srcdir/configure
    elif test -f "$ac_srcdir/configure.in"; then
      # This should be Cygnus configure.
      ac_sub_configure=$ac_aux_dir/configure
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative name.
	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
      esac

      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    fi

    cd "$ac_popdir"
  done
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi



# NOTE: M4 uses [] as quotes.

PIKE_VERSION="`sed -n -e 's/^.*PIKE_MAJOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_MINOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_BUILD_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`"
PIKE_VERSION_LONG="Pike v`sed -n -e 's/^.*PIKE_MAJOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`.`sed -n -e 's/^.*PIKE_MINOR_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h` release `sed -n -e 's/^.*PIKE_BUILD_VERSION[ \t]*\([^ \t]*\)/\1/p' <$srcdir/version.h`"


if test "x$with_cdebug" = x; then
  with_cdebug=no
fi
if test "x$with_rtldebug" = x; then
  with_rtldebug=no
fi
if test "x$with_dmalloc" = x; then
  with_dmalloc=no
fi
if test "x$with_copt" = xno ; then
  opt_reasons="  ($OPT_NOT_USED turned off with --without-copt)"
else
  opt_reasons=
fi

rm -f config.info 2>/dev/null

float_is_ieee=""
if test "x$float_type" = "xfloat" -a "x$pike_cv_float_type" = "xieee_big"; then
  float_is_ieee=" (ieee big endian)"
elif test "x$float_type" = "xfloat" -a "x$pike_cv_float_type" = "xieee_little"; then
  float_is_ieee=" (ieee little endian)"
elif test "x$float_type" = "xdouble" -a "x$pike_cv_double_type" = "xieee_big"; then
  float_is_ieee=" (ieee big endian)"
elif test "x$float_type" = "xdouble" -a "x$pike_cv_double_type" = "xieee_little"; then
  float_is_ieee=" (ieee little endian)"
fi

cat >>config.info <<EOF
=========================================================
$PIKE_VERSION_LONG configuration summary

install information:
prefix........ $prefix
pike binary... $prefix/bin/pike
pike library.. $prefix/pike/${PIKE_VERSION}/lib

system information:
system.... $UNAME`echo $pike_cv_libgcc_filename | sed -n -e 's+^.*gcc-lib/\([^/]*\)/.*$+ (\1)+p'`
EOF

uname -a >/dev/null 2>/dev/null && echo "uname..... `uname -a`" >>config.info
hostname >/dev/null 2>/dev/null && echo "hostname.. `hostname`" >>config.info
whoami >/dev/null 2>/dev/null   && echo "user...... `whoami`" >>config.info

# too many dots makes too long lines, keep them as short as possible
# inside each section

cat >>config.info <<EOF

build information:
source path..... $srcdir
build path...... $BUILDDIR
ABI............. $with_abi
cpp............. $CPP
cc.............. $CC
ld.............. $LD
cc shared....... $CCSHARED
ld shared....... $LINKFORSHARED
pike............ $PIKE
install......... $INSTALL
shared object... .$SO
libs............ $LIBS
cross-compiled.. $cross_compiling
building lib.... $enable_pikelib
CPPFLAGS........$CPPFLAGS
CFLAGS (opt)....$OPTIMIZE$opt_reasons
CFLAGS (warn)...$WARN
CFLAGS (misc)...$CFLAGS $OSFLAGS $PROFIL
LDFLAGS.........$LDFLAGS $LINKFORSHARED $EXTRALDFLAGS
EOF

# insert information about debugging tools here, if they are turned on
if test "x$with_valgrind" != xno ; then
  cat >>config.info <<EOF
valgrind........ yes, using $VALGRIND $VALGRINDARGS
EOF
fi
if test "x$with_dtrace" != xno ; then
  cat >>config.info <<EOF
dtrace.......... yes
EOF
fi

cat >>config.info <<EOF

features:
dynamic loading..... $pike_cv_sys_dynamic_loading
threads............. $using_threads
signal handler...... $signal_handler
cdebug.............. $with_cdebug
rtldebug............ $with_rtldebug
dmalloc............. $with_dmalloc
dlmalloc............ $enable_dlmalloc
byte code format.... $byte_code_format
module reloc........ ${with_relocatable_dumped_modules:-no}
use machine code.... $with_machine_code
int type............ $int_type ($sizeof_int_type bytes)
float type.......... $float_type ($sizeof_float_type bytes)$float_is_ieee
pointer size........ $ac_cv_sizeof_char_p bytes
EOF

touch confdefs.h 2>/dev/null

OLD_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-I. -I$srcdir $CPPFLAGS"
if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
#include "svalue.h"

int main()
{
   FILE *fp, *out;
   char float_type[80] = "?";
   char int_type[80] = "?";
   char *s;
   struct svalue sval;

   out=fopen("config.info", "a");
   if (!out) return 1;

   fprintf(out,"svalue size......... %d bytes (%d+%d+%d)\n",
           sizeof(sval),
           sizeof(TYPEOF(sval)),
           sizeof(SUBTYPEOF(sval)),
           sizeof(sval.u));

   fclose(out);

   return 0;
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

rm -f conftypes.txt 2>/dev/null
CPPFLAGS="$OLD_CPPFLAGS"

echo >>config.info

ls -1 pike_*.feature 2>/dev/null | xargs cat | sort >>config.info
ls -1 post_modules/*/pike_*.feature modules/*/pike_*.feature 2>/dev/null |  xargs cat | sort >>config.info

if test -f config.warnings; then
  echo >>config.info
  echo 'Warnings and notes summary:' >>config.info
  echo >>config.info
  cat config.warnings >>config.info
fi

echo

echo "=========================================================" >>config.info

cat config.info

if test "x$config_fail" = "x"; then :; else
  echo 1>&2
  echo 1>&2
  echo "Configuration error: $config_fail" 1>&2
  echo 1>&2
  exit 1
fi
