Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1944 in orxonox.OLD for orxonox/branches/automake/configure


Ignore:
Timestamp:
Jun 14, 2004, 11:52:33 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/autoconf: changed core to src

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/automake/configure

    r1943 r1944  
    1 ## Conact Address
    2 ###############################
    3 SUPPORT_ADDRESS="orxonox-dev@mail.datacore.ch"
    4 
    5 ## Configure Version
    6 ###############################
    7 CONFIG_VERS="0.1alpha - orxonox is still in development - please send bug-reports, requests, ideas to $SUPPORT_ADDRESS"
    8 
    9 ## Defaults
    10 ################################
    11 ENABLE_GLUT="yes"
    12 ENABLE_GTK="yes"
    13 VERBOSE="no"
    14 
    15 
    16 ## Where to look for stuff
    17 ################################
    18 std_bin_dirs="/usr/bin /usr/X11R6/bin /usr/local/bin $HOME/bin"
    19 std_include_dirs="/usr/include/GL"
    20 std_lib_dirs="/usr/lib /usr/X11R6/lib /usr/local/lib $HOME/lib"
    21 
    22 ## The functions enter the room.
    23 ## In order to understand this
    24 ## file you have to understand
    25 ## scripts/configure_functions
    26 ################################
    27 source ./scripts/configure_functions
    28 
    29 ## print instruction
    30 ################################
    31 print_newline
    32 print_separator
    33 print_message "This scripts determines all options"
    34 print_message "needed to build Orxonox."
    35 print_message "This is no autoconf configure script"
    36 print_separator
    37 
    38 ## Check command line for options
    39 #################################
    40 check_command_line_options $@
    41 
    42 ## Check linux distribution
    43 #############################################################
    44 print_topic "Checking OS"
    45 OS=`uname -a | awk '{print $1}'`
    46 if [ $OS == "Linux" ]; then
    47         print_ack
    48         print_info "Running on a $OS system"
    49 else
    50         print_nack
    51         print_error "Running on a $OS system - probably not supported"
    52         print_error "Orxonox is designed to run on Linux systems"
    53         print_error "please do not stop here an try to port the game to"
    54         print_error "your system. Send your patch to $SUPPORT_ADDRESS"
    55         print_exit
    56         exit 1
    57 fi
    58 
    59 ## Check GLUT installation
    60 ##############################################################
    61 if [ $ENABLE_GLUT = "yes" ]; then
    62         print_topic "Verifing GLUT install"
    63         if check_for_GLUT; then
    64                 print_ack
    65                 print_info "GLUT found at: $GLUT_DIR"
    66         else
    67                 print_nack
    68                 print_error "GLUT not found!"
    69                 print_exit
    70                 exit 1
    71         fi     
    72 fi
    73 
    74 
    75 ## Check Direct Rendering Support
    76 ##############################################################
    77 if [ $ENABLE_GLUT = "yes" ]; then
    78         print_topic "Checking Direct Rendering Support (dri)"
    79         if check_for_glxinfo; then
    80                 if check_for_dri; then
    81                         print_ack
    82                         print_info "DRI is working on your system"
    83                 else
    84                         print_nack
    85                         print_warning "DRI not supported, you probably want to configure it"
    86                         print_warning "or you try OpenGL emulation with Mesa"
    87                 fi
    88         else
    89                 print_nack
    90                 print_error "no glxinfo detected - check your xfree install"
    91         fi
    92 fi
    93 
    94 
    95 ## Check GtK Installation
    96 ##############################################################
    97 if [ $ENABLE_GTK == "yes" ]; then
    98         print_topic "Checking for GtK Support"
    99         if check_for_gtk_config; then
    100                 print_ack
    101                 print_info "gtk-config found: $GTK_CONFIG"
    102         else
    103                 print_nack
    104                 print_warning "You won't be able to use our gtk config"
    105                 print_warning "menu. This ain't gonna hurt..."
    106         fi
    107 fi
    108 
    109 ## Write Makefile
    110 ###############################################################
    111 print_topic "Writing out Makefile"
    112 if [ $ENABLE_GLUT == "yes" ]; then
    113         if [ $ENABLE_GLUT == "yes" ]; then
    114                 cp scripts/Makefile.all Makefile > /dev/null
    115         else
    116                 cp scripts/Makefile.GLUT Makefile > /dev/null
    117         fi
    118 fi
    119 if [ -f Makefile ]; then
    120         print_ack
    121 else
    122         print_nack
    123         print_error "This error should not occure, please send"
    124         print_error "a full bug-report to $SUPPORT_ADDRESS"
    125         exit 1
    126 fi
    127 print_separator
    128 print_message "Configure finished"
    129 print_newline
    130 print_message "Now, type 'make' to build Orxonox"
    131 print_newline
    132 
    133 ### EOF
     1#! /bin/sh
     2# Guess values for system-dependent variables and create Makefiles.
     3# Generated by GNU Autoconf 2.59 for FULL-PACKAGE-NAME VERSION.
     4#
     5# Report bugs to <BUG-REPORT-ADDRESS>.
     6#
     7# Copyright (C) 2003 Free Software Foundation, Inc.
     8# This configure script is free software; the Free Software Foundation
     9# gives unlimited permission to copy, distribute and modify it.
     10## --------------------- ##
     11## M4sh Initialization.  ##
     12## --------------------- ##
     13
     14# Be Bourne compatible
     15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     16  emulate sh
     17  NULLCMD=:
     18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     19  # is contrary to our usage.  Disable this feature.
     20  alias -g '${1+"$@"}'='"$@"'
     21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     22  set -o posix
     23fi
     24DUALCASE=1; export DUALCASE # for MKS sh
     25
     26# Support unset when possible.
     27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     28  as_unset=unset
     29else
     30  as_unset=false
     31fi
     32
     33
     34# Work around bugs in pre-3.0 UWIN ksh.
     35$as_unset ENV MAIL MAILPATH
     36PS1='$ '
     37PS2='> '
     38PS4='+ '
     39
     40# NLS nuisances.
     41for as_var in \
     42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     44  LC_TELEPHONE LC_TIME
     45do
     46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     47    eval $as_var=C; export $as_var
     48  else
     49    $as_unset $as_var
     50  fi
     51done
     52
     53# Required to use basename.
     54if expr a : '\(a\)' >/dev/null 2>&1; then
     55  as_expr=expr
     56else
     57  as_expr=false
     58fi
     59
     60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     61  as_basename=basename
     62else
     63  as_basename=false
     64fi
     65
     66
     67# Name of the executable.
     68as_me=`$as_basename "$0" ||
     69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     70         X"$0" : 'X\(//\)$' \| \
     71         X"$0" : 'X\(/\)$' \| \
     72         .     : '\(.\)' 2>/dev/null ||
     73echo X/"$0" |
     74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     75          /^X\/\(\/\/\)$/{ s//\1/; q; }
     76          /^X\/\(\/\).*/{ s//\1/; q; }
     77          s/.*/./; q'`
     78
     79
     80# PATH needs CR, and LINENO needs CR and PATH.
     81# Avoid depending upon Character Ranges.
     82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     85as_cr_digits='0123456789'
     86as_cr_alnum=$as_cr_Letters$as_cr_digits
     87
     88# The user is always right.
     89if test "${PATH_SEPARATOR+set}" != set; then
     90  echo "#! /bin/sh" >conf$$.sh
     91  echo  "exit 0"   >>conf$$.sh
     92  chmod +x conf$$.sh
     93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     94    PATH_SEPARATOR=';'
     95  else
     96    PATH_SEPARATOR=:
     97  fi
     98  rm -f conf$$.sh
     99fi
     100
     101
     102  as_lineno_1=$LINENO
     103  as_lineno_2=$LINENO
     104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     105  test "x$as_lineno_1" != "x$as_lineno_2" &&
     106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     107  # Find who we are.  Look in the path if we contain no path at all
     108  # relative or not.
     109  case $0 in
     110    *[\\/]* ) as_myself=$0 ;;
     111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     112for as_dir in $PATH
     113do
     114  IFS=$as_save_IFS
     115  test -z "$as_dir" && as_dir=.
     116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     117done
     118
     119       ;;
     120  esac
     121  # We did not find ourselves, most probably we were run as `sh COMMAND'
     122  # in which case we are not to be found in the path.
     123  if test "x$as_myself" = x; then
     124    as_myself=$0
     125  fi
     126  if test ! -f "$as_myself"; then
     127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     128   { (exit 1); exit 1; }; }
     129  fi
     130  case $CONFIG_SHELL in
     131  '')
     132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     134do
     135  IFS=$as_save_IFS
     136  test -z "$as_dir" && as_dir=.
     137  for as_base in sh bash ksh sh5; do
     138         case $as_dir in
     139         /*)
     140           if ("$as_dir/$as_base" -c '
     141  as_lineno_1=$LINENO
     142  as_lineno_2=$LINENO
     143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     144  test "x$as_lineno_1" != "x$as_lineno_2" &&
     145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     148             CONFIG_SHELL=$as_dir/$as_base
     149             export CONFIG_SHELL
     150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     151           fi;;
     152         esac
     153       done
     154done
     155;;
     156  esac
     157
     158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     159  # uniformly replaced by the line number.  The first 'sed' inserts a
     160  # line-number line before each line; the second 'sed' does the real
     161  # work.  The second script uses 'N' to pair each line-number line
     162  # with the numbered line, and appends trailing '-' during
     163  # substitution so that $LINENO is not a special case at line end.
     164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     166  sed '=' <$as_myself |
     167    sed '
     168      N
     169      s,$,-,
     170      : loop
     171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     172      t loop
     173      s,-$,,
     174      s,^['$as_cr_digits']*\n,,
     175    ' >$as_me.lineno &&
     176  chmod +x $as_me.lineno ||
     177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     178   { (exit 1); exit 1; }; }
     179
     180  # Don't try to exec as it changes $[0], causing all sort of problems
     181  # (the dirname of $[0] is not the place where we might find the
     182  # original and so on.  Autoconf is especially sensible to this).
     183  . ./$as_me.lineno
     184  # Exit status is that of the last command.
     185  exit
     186}
     187
     188
     189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     190  *c*,-n*) ECHO_N= ECHO_C='
     191' ECHO_T='      ' ;;
     192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     194esac
     195
     196if expr a : '\(a\)' >/dev/null 2>&1; then
     197  as_expr=expr
     198else
     199  as_expr=false
     200fi
     201
     202rm -f conf$$ conf$$.exe conf$$.file
     203echo >conf$$.file
     204if ln -s conf$$.file conf$$ 2>/dev/null; then
     205  # We could just check for DJGPP; but this test a) works b) is more generic
     206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     207  if test -f conf$$.exe; then
     208    # Don't use ln at all; we don't have any links
     209    as_ln_s='cp -p'
     210  else
     211    as_ln_s='ln -s'
     212  fi
     213elif ln conf$$.file conf$$ 2>/dev/null; then
     214  as_ln_s=ln
     215else
     216  as_ln_s='cp -p'
     217fi
     218rm -f conf$$ conf$$.exe conf$$.file
     219
     220if mkdir -p . 2>/dev/null; then
     221  as_mkdir_p=:
     222else
     223  test -d ./-p && rmdir ./-p
     224  as_mkdir_p=false
     225fi
     226
     227as_executable_p="test -f"
     228
     229# Sed expression to map a string onto a valid CPP name.
     230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     231
     232# Sed expression to map a string onto a valid variable name.
     233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     234
     235
     236# IFS
     237# We need space, tab and new line, in precisely that order.
     238as_nl='
     239'
     240IFS="   $as_nl"
     241
     242# CDPATH.
     243$as_unset CDPATH
     244
     245
     246# Name of the host.
     247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     248# so uname gets run too.
     249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     250
     251exec 6>&1
     252
     253#
     254# Initializations.
     255#
     256ac_default_prefix=/usr/local
     257ac_config_libobj_dir=.
     258cross_compiling=no
     259subdirs=
     260MFLAGS=
     261MAKEFLAGS=
     262SHELL=${CONFIG_SHELL-/bin/sh}
     263
     264# Maximum number of lines to put in a shell here document.
     265# This variable seems obsolete.  It should probably be removed, and
     266# only ac_max_sed_lines should be used.
     267: ${ac_max_here_lines=38}
     268
     269# Identity of this package.
     270PACKAGE_NAME='FULL-PACKAGE-NAME'
     271PACKAGE_TARNAME='full-package-name'
     272PACKAGE_VERSION='VERSION'
     273PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
     274PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
     275
     276ac_unique_file="console/orxonox_console_entry.cc"
     277# Factoring default headers for most tests.
     278ac_includes_default="\
     279#include <stdio.h>
     280#if HAVE_SYS_TYPES_H
     281# include <sys/types.h>
     282#endif
     283#if HAVE_SYS_STAT_H
     284# include <sys/stat.h>
     285#endif
     286#if STDC_HEADERS
     287# include <stdlib.h>
     288# include <stddef.h>
     289#else
     290# if HAVE_STDLIB_H
     291#  include <stdlib.h>
     292# endif
     293#endif
     294#if HAVE_STRING_H
     295# if !STDC_HEADERS && HAVE_MEMORY_H
     296#  include <memory.h>
     297# endif
     298# include <string.h>
     299#endif
     300#if HAVE_STRINGS_H
     301# include <strings.h>
     302#endif
     303#if HAVE_INTTYPES_H
     304# include <inttypes.h>
     305#else
     306# if HAVE_STDINT_H
     307#  include <stdint.h>
     308# endif
     309#endif
     310#if HAVE_UNISTD_H
     311# include <unistd.h>
     312#endif"
     313
     314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
     315ac_subst_files=''
     316
     317# Initialize some variables set by options.
     318ac_init_help=
     319ac_init_version=false
     320# The variables have the same names as the options, with
     321# dashes changed to underlines.
     322cache_file=/dev/null
     323exec_prefix=NONE
     324no_create=
     325no_recursion=
     326prefix=NONE
     327program_prefix=NONE
     328program_suffix=NONE
     329program_transform_name=s,x,x,
     330silent=
     331site=
     332srcdir=
     333verbose=
     334x_includes=NONE
     335x_libraries=NONE
     336
     337# Installation directory options.
     338# These are left unexpanded so users can "make install exec_prefix=/foo"
     339# and all the variables that are supposed to be based on exec_prefix
     340# by default will actually change.
     341# Use braces instead of parens because sh, perl, etc. also accept them.
     342bindir='${exec_prefix}/bin'
     343sbindir='${exec_prefix}/sbin'
     344libexecdir='${exec_prefix}/libexec'
     345datadir='${prefix}/share'
     346sysconfdir='${prefix}/etc'
     347sharedstatedir='${prefix}/com'
     348localstatedir='${prefix}/var'
     349libdir='${exec_prefix}/lib'
     350includedir='${prefix}/include'
     351oldincludedir='/usr/include'
     352infodir='${prefix}/info'
     353mandir='${prefix}/man'
     354
     355ac_prev=
     356for ac_option
     357do
     358  # If the previous option needs an argument, assign it.
     359  if test -n "$ac_prev"; then
     360    eval "$ac_prev=\$ac_option"
     361    ac_prev=
     362    continue
     363  fi
     364
     365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     366
     367  # Accept the important Cygnus configure options, so we can diagnose typos.
     368
     369  case $ac_option in
     370
     371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     372    ac_prev=bindir ;;
     373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
     374    bindir=$ac_optarg ;;
     375
     376  -build | --build | --buil | --bui | --bu)
     377    ac_prev=build_alias ;;
     378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
     379    build_alias=$ac_optarg ;;
     380
     381  -cache-file | --cache-file | --cache-fil | --cache-fi \
     382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     383    ac_prev=cache_file ;;
     384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     386    cache_file=$ac_optarg ;;
     387
     388  --config-cache | -C)
     389    cache_file=config.cache ;;
     390
     391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     392    ac_prev=datadir ;;
     393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
     394  | --da=*)
     395    datadir=$ac_optarg ;;
     396
     397  -disable-* | --disable-*)
     398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     399    # Reject names that are not valid shell variable names.
     400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     402   { (exit 1); exit 1; }; }
     403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     404    eval "enable_$ac_feature=no" ;;
     405
     406  -enable-* | --enable-*)
     407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     408    # Reject names that are not valid shell variable names.
     409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     411   { (exit 1); exit 1; }; }
     412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     413    case $ac_option in
     414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     415      *) ac_optarg=yes ;;
     416    esac
     417    eval "enable_$ac_feature='$ac_optarg'" ;;
     418
     419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
     421  | --exec | --exe | --ex)
     422    ac_prev=exec_prefix ;;
     423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
     424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
     425  | --exec=* | --exe=* | --ex=*)
     426    exec_prefix=$ac_optarg ;;
     427
     428  -gas | --gas | --ga | --g)
     429    # Obsolete; use --with-gas.
     430    with_gas=yes ;;
     431
     432  -help | --help | --hel | --he | -h)
     433    ac_init_help=long ;;
     434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     435    ac_init_help=recursive ;;
     436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     437    ac_init_help=short ;;
     438
     439  -host | --host | --hos | --ho)
     440    ac_prev=host_alias ;;
     441  -host=* | --host=* | --hos=* | --ho=*)
     442    host_alias=$ac_optarg ;;
     443
     444  -includedir | --includedir | --includedi | --included | --include \
     445  | --includ | --inclu | --incl | --inc)
     446    ac_prev=includedir ;;
     447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
     448  | --includ=* | --inclu=* | --incl=* | --inc=*)
     449    includedir=$ac_optarg ;;
     450
     451  -infodir | --infodir | --infodi | --infod | --info | --inf)
     452    ac_prev=infodir ;;
     453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
     454    infodir=$ac_optarg ;;
     455
     456  -libdir | --libdir | --libdi | --libd)
     457    ac_prev=libdir ;;
     458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
     459    libdir=$ac_optarg ;;
     460
     461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     462  | --libexe | --libex | --libe)
     463    ac_prev=libexecdir ;;
     464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
     465  | --libexe=* | --libex=* | --libe=*)
     466    libexecdir=$ac_optarg ;;
     467
     468  -localstatedir | --localstatedir | --localstatedi | --localstated \
     469  | --localstate | --localstat | --localsta | --localst \
     470  | --locals | --local | --loca | --loc | --lo)
     471    ac_prev=localstatedir ;;
     472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
     473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
     474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     475    localstatedir=$ac_optarg ;;
     476
     477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
     478    ac_prev=mandir ;;
     479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
     480    mandir=$ac_optarg ;;
     481
     482  -nfp | --nfp | --nf)
     483    # Obsolete; use --without-fp.
     484    with_fp=no ;;
     485
     486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     487  | --no-cr | --no-c | -n)
     488    no_create=yes ;;
     489
     490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
     492    no_recursion=yes ;;
     493
     494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
     495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
     496  | --oldin | --oldi | --old | --ol | --o)
     497    ac_prev=oldincludedir ;;
     498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
     499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
     500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
     501    oldincludedir=$ac_optarg ;;
     502
     503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     504    ac_prev=prefix ;;
     505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
     506    prefix=$ac_optarg ;;
     507
     508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     509  | --program-pre | --program-pr | --program-p)
     510    ac_prev=program_prefix ;;
     511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
     512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
     513    program_prefix=$ac_optarg ;;
     514
     515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     516  | --program-suf | --program-su | --program-s)
     517    ac_prev=program_suffix ;;
     518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
     519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
     520    program_suffix=$ac_optarg ;;
     521
     522  -program-transform-name | --program-transform-name \
     523  | --program-transform-nam | --program-transform-na \
     524  | --program-transform-n | --program-transform- \
     525  | --program-transform | --program-transfor \
     526  | --program-transfo | --program-transf \
     527  | --program-trans | --program-tran \
     528  | --progr-tra | --program-tr | --program-t)
     529    ac_prev=program_transform_name ;;
     530  -program-transform-name=* | --program-transform-name=* \
     531  | --program-transform-nam=* | --program-transform-na=* \
     532  | --program-transform-n=* | --program-transform-=* \
     533  | --program-transform=* | --program-transfor=* \
     534  | --program-transfo=* | --program-transf=* \
     535  | --program-trans=* | --program-tran=* \
     536  | --progr-tra=* | --program-tr=* | --program-t=*)
     537    program_transform_name=$ac_optarg ;;
     538
     539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     540  | -silent | --silent | --silen | --sile | --sil)
     541    silent=yes ;;
     542
     543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     544    ac_prev=sbindir ;;
     545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
     546  | --sbi=* | --sb=*)
     547    sbindir=$ac_optarg ;;
     548
     549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
     551  | --sharedst | --shareds | --shared | --share | --shar \
     552  | --sha | --sh)
     553    ac_prev=sharedstatedir ;;
     554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
     555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
     556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
     557  | --sha=* | --sh=*)
     558    sharedstatedir=$ac_optarg ;;
     559
     560  -site | --site | --sit)
     561    ac_prev=site ;;
     562  -site=* | --site=* | --sit=*)
     563    site=$ac_optarg ;;
     564
     565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     566    ac_prev=srcdir ;;
     567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
     568    srcdir=$ac_optarg ;;
     569
     570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     571  | --syscon | --sysco | --sysc | --sys | --sy)
     572    ac_prev=sysconfdir ;;
     573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
     574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
     575    sysconfdir=$ac_optarg ;;
     576
     577  -target | --target | --targe | --targ | --tar | --ta | --t)
     578    ac_prev=target_alias ;;
     579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
     580    target_alias=$ac_optarg ;;
     581
     582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
     583    verbose=yes ;;
     584
     585  -version | --version | --versio | --versi | --vers | -V)
     586    ac_init_version=: ;;
     587
     588  -with-* | --with-*)
     589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     590    # Reject names that are not valid shell variable names.
     591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     592      { echo "$as_me: error: invalid package name: $ac_package" >&2
     593   { (exit 1); exit 1; }; }
     594    ac_package=`echo $ac_package| sed 's/-/_/g'`
     595    case $ac_option in
     596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     597      *) ac_optarg=yes ;;
     598    esac
     599    eval "with_$ac_package='$ac_optarg'" ;;
     600
     601  -without-* | --without-*)
     602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     603    # Reject names that are not valid shell variable names.
     604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     605      { echo "$as_me: error: invalid package name: $ac_package" >&2
     606   { (exit 1); exit 1; }; }
     607    ac_package=`echo $ac_package | sed 's/-/_/g'`
     608    eval "with_$ac_package=no" ;;
     609
     610  --x)
     611    # Obsolete; use --with-x.
     612    with_x=yes ;;
     613
     614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
     615  | --x-incl | --x-inc | --x-in | --x-i)
     616    ac_prev=x_includes ;;
     617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
     618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
     619    x_includes=$ac_optarg ;;
     620
     621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
     623    ac_prev=x_libraries ;;
     624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
     625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
     626    x_libraries=$ac_optarg ;;
     627
     628  -*) { echo "$as_me: error: unrecognized option: $ac_option
     629Try \`$0 --help' for more information." >&2
     630   { (exit 1); exit 1; }; }
     631    ;;
     632
     633  *=*)
     634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     635    # Reject names that are not valid shell variable names.
     636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     638   { (exit 1); exit 1; }; }
     639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     640    eval "$ac_envvar='$ac_optarg'"
     641    export $ac_envvar ;;
     642
     643  *)
     644    # FIXME: should be removed in autoconf 3.0.
     645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     649    ;;
     650
     651  esac
     652done
     653
     654if test -n "$ac_prev"; then
     655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     656  { echo "$as_me: error: missing argument to $ac_option" >&2
     657   { (exit 1); exit 1; }; }
     658fi
     659
     660# Be sure to have absolute paths.
     661for ac_var in exec_prefix prefix
     662do
     663  eval ac_val=$`echo $ac_var`
     664  case $ac_val in
     665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     667   { (exit 1); exit 1; }; };;
     668  esac
     669done
     670
     671# Be sure to have absolute paths.
     672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     673              localstatedir libdir includedir oldincludedir infodir mandir
     674do
     675  eval ac_val=$`echo $ac_var`
     676  case $ac_val in
     677    [\\/$]* | ?:[\\/]* ) ;;
     678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     679   { (exit 1); exit 1; }; };;
     680  esac
     681done
     682
     683# There might be people who depend on the old broken behavior: `$host'
     684# used to hold the argument of --host etc.
     685# FIXME: To remove some day.
     686build=$build_alias
     687host=$host_alias
     688target=$target_alias
     689
     690# FIXME: To remove some day.
     691if test "x$host_alias" != x; then
     692  if test "x$build_alias" = x; then
     693    cross_compiling=maybe
     694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     695    If a cross compiler is detected then cross compile mode will be used." >&2
     696  elif test "x$build_alias" != "x$host_alias"; then
     697    cross_compiling=yes
     698  fi
     699fi
     700
     701ac_tool_prefix=
     702test -n "$host_alias" && ac_tool_prefix=$host_alias-
     703
     704test "$silent" = yes && exec 6>/dev/null
     705
     706
     707# Find the source files, if location was not specified.
     708if test -z "$srcdir"; then
     709  ac_srcdir_defaulted=yes
     710  # Try the directory containing this script, then its parent.
     711  ac_confdir=`(dirname "$0") 2>/dev/null ||
     712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     713         X"$0" : 'X\(//\)[^/]' \| \
     714         X"$0" : 'X\(//\)$' \| \
     715         X"$0" : 'X\(/\)' \| \
     716         .     : '\(.\)' 2>/dev/null ||
     717echo X"$0" |
     718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     720          /^X\(\/\/\)$/{ s//\1/; q; }
     721          /^X\(\/\).*/{ s//\1/; q; }
     722          s/.*/./; q'`
     723  srcdir=$ac_confdir
     724  if test ! -r $srcdir/$ac_unique_file; then
     725    srcdir=..
     726  fi
     727else
     728  ac_srcdir_defaulted=no
     729fi
     730if test ! -r $srcdir/$ac_unique_file; then
     731  if test "$ac_srcdir_defaulted" = yes; then
     732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     733   { (exit 1); exit 1; }; }
     734  else
     735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     736   { (exit 1); exit 1; }; }
     737  fi
     738fi
     739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     741   { (exit 1); exit 1; }; }
     742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     743ac_env_build_alias_set=${build_alias+set}
     744ac_env_build_alias_value=$build_alias
     745ac_cv_env_build_alias_set=${build_alias+set}
     746ac_cv_env_build_alias_value=$build_alias
     747ac_env_host_alias_set=${host_alias+set}
     748ac_env_host_alias_value=$host_alias
     749ac_cv_env_host_alias_set=${host_alias+set}
     750ac_cv_env_host_alias_value=$host_alias
     751ac_env_target_alias_set=${target_alias+set}
     752ac_env_target_alias_value=$target_alias
     753ac_cv_env_target_alias_set=${target_alias+set}
     754ac_cv_env_target_alias_value=$target_alias
     755ac_env_CXX_set=${CXX+set}
     756ac_env_CXX_value=$CXX
     757ac_cv_env_CXX_set=${CXX+set}
     758ac_cv_env_CXX_value=$CXX
     759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     760ac_env_CXXFLAGS_value=$CXXFLAGS
     761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     763ac_env_LDFLAGS_set=${LDFLAGS+set}
     764ac_env_LDFLAGS_value=$LDFLAGS
     765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     766ac_cv_env_LDFLAGS_value=$LDFLAGS
     767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     768ac_env_CPPFLAGS_value=$CPPFLAGS
     769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     771ac_env_CC_set=${CC+set}
     772ac_env_CC_value=$CC
     773ac_cv_env_CC_set=${CC+set}
     774ac_cv_env_CC_value=$CC
     775ac_env_CFLAGS_set=${CFLAGS+set}
     776ac_env_CFLAGS_value=$CFLAGS
     777ac_cv_env_CFLAGS_set=${CFLAGS+set}
     778ac_cv_env_CFLAGS_value=$CFLAGS
     779ac_env_CPP_set=${CPP+set}
     780ac_env_CPP_value=$CPP
     781ac_cv_env_CPP_set=${CPP+set}
     782ac_cv_env_CPP_value=$CPP
     783
     784#
     785# Report the --help message.
     786#
     787if test "$ac_init_help" = "long"; then
     788  # Omit some internal or obsolete options to make the list less imposing.
     789  # This message is too long to be a string in the A/UX 3.1 sh.
     790  cat <<_ACEOF
     791\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
     792
     793Usage: $0 [OPTION]... [VAR=VALUE]...
     794
     795To assign environment variables (e.g., CC, CFLAGS...), specify them as
     796VAR=VALUE.  See below for descriptions of some of the useful variables.
     797
     798Defaults for the options are specified in brackets.
     799
     800Configuration:
     801  -h, --help              display this help and exit
     802      --help=short        display options specific to this package
     803      --help=recursive    display the short help of all the included packages
     804  -V, --version           display version information and exit
     805  -q, --quiet, --silent   do not print \`checking...' messages
     806      --cache-file=FILE   cache test results in FILE [disabled]
     807  -C, --config-cache      alias for \`--cache-file=config.cache'
     808  -n, --no-create         do not create output files
     809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     810
     811_ACEOF
     812
     813  cat <<_ACEOF
     814Installation directories:
     815  --prefix=PREFIX         install architecture-independent files in PREFIX
     816                          [$ac_default_prefix]
     817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     818                          [PREFIX]
     819
     820By default, \`make install' will install all the files in
     821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     823for instance \`--prefix=\$HOME'.
     824
     825For better control, use the options below.
     826
     827Fine tuning of the installation directories:
     828  --bindir=DIR           user executables [EPREFIX/bin]
     829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     830  --libexecdir=DIR       program executables [EPREFIX/libexec]
     831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     835  --libdir=DIR           object code libraries [EPREFIX/lib]
     836  --includedir=DIR       C header files [PREFIX/include]
     837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     838  --infodir=DIR          info documentation [PREFIX/info]
     839  --mandir=DIR           man documentation [PREFIX/man]
     840_ACEOF
     841
     842  cat <<\_ACEOF
     843_ACEOF
     844fi
     845
     846if test -n "$ac_init_help"; then
     847  case $ac_init_help in
     848     short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
     849   esac
     850  cat <<\_ACEOF
     851
     852Some influential environment variables:
     853  CXX         C++ compiler command
     854  CXXFLAGS    C++ compiler flags
     855  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     856              nonstandard directory <lib dir>
     857  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     858              headers in a nonstandard directory <include dir>
     859  CC          C compiler command
     860  CFLAGS      C compiler flags
     861  CPP         C preprocessor
     862
     863Use these variables to override the choices made by `configure' or to help
     864it to find libraries and programs with nonstandard names/locations.
     865
     866Report bugs to <BUG-REPORT-ADDRESS>.
     867_ACEOF
     868fi
     869
     870if test "$ac_init_help" = "recursive"; then
     871  # If there are subdirs, report their specific --help.
     872  ac_popdir=`pwd`
     873  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     874    test -d $ac_dir || continue
     875    ac_builddir=.
     876
     877if test "$ac_dir" != .; then
     878  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     879  # A "../" for each directory in $ac_dir_suffix.
     880  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     881else
     882  ac_dir_suffix= ac_top_builddir=
     883fi
     884
     885case $srcdir in
     886  .)  # No --srcdir option.  We are building in place.
     887    ac_srcdir=.
     888    if test -z "$ac_top_builddir"; then
     889       ac_top_srcdir=.
     890    else
     891       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     892    fi ;;
     893  [\\/]* | ?:[\\/]* )  # Absolute path.
     894    ac_srcdir=$srcdir$ac_dir_suffix;
     895    ac_top_srcdir=$srcdir ;;
     896  *) # Relative path.
     897    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     898    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     899esac
     900
     901# Do not use `cd foo && pwd` to compute absolute paths, because
     902# the directories may not exist.
     903case `pwd` in
     904.) ac_abs_builddir="$ac_dir";;
     905*)
     906  case "$ac_dir" in
     907  .) ac_abs_builddir=`pwd`;;
     908  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     909  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     910  esac;;
     911esac
     912case $ac_abs_builddir in
     913.) ac_abs_top_builddir=${ac_top_builddir}.;;
     914*)
     915  case ${ac_top_builddir}. in
     916  .) ac_abs_top_builddir=$ac_abs_builddir;;
     917  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     918  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     919  esac;;
     920esac
     921case $ac_abs_builddir in
     922.) ac_abs_srcdir=$ac_srcdir;;
     923*)
     924  case $ac_srcdir in
     925  .) ac_abs_srcdir=$ac_abs_builddir;;
     926  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     927  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     928  esac;;
     929esac
     930case $ac_abs_builddir in
     931.) ac_abs_top_srcdir=$ac_top_srcdir;;
     932*)
     933  case $ac_top_srcdir in
     934  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     935  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     936  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     937  esac;;
     938esac
     939
     940    cd $ac_dir
     941    # Check for guested configure; otherwise get Cygnus style configure.
     942    if test -f $ac_srcdir/configure.gnu; then
     943      echo
     944      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     945    elif test -f $ac_srcdir/configure; then
     946      echo
     947      $SHELL $ac_srcdir/configure  --help=recursive
     948    elif test -f $ac_srcdir/configure.ac ||
     949           test -f $ac_srcdir/configure.in; then
     950      echo
     951      $ac_configure --help
     952    else
     953      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     954    fi
     955    cd $ac_popdir
     956  done
     957fi
     958
     959test -n "$ac_init_help" && exit 0
     960if $ac_init_version; then
     961  cat <<\_ACEOF
     962FULL-PACKAGE-NAME configure VERSION
     963generated by GNU Autoconf 2.59
     964
     965Copyright (C) 2003 Free Software Foundation, Inc.
     966This configure script is free software; the Free Software Foundation
     967gives unlimited permission to copy, distribute and modify it.
     968_ACEOF
     969  exit 0
     970fi
     971exec 5>config.log
     972cat >&5 <<_ACEOF
     973This file contains any messages produced by compilers while
     974running configure, to aid debugging if configure makes a mistake.
     975
     976It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
     977generated by GNU Autoconf 2.59.  Invocation command line was
     978
     979  $ $0 $@
     980
     981_ACEOF
     982{
     983cat <<_ASUNAME
     984## --------- ##
     985## Platform. ##
     986## --------- ##
     987
     988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     989uname -m = `(uname -m) 2>/dev/null || echo unknown`
     990uname -r = `(uname -r) 2>/dev/null || echo unknown`
     991uname -s = `(uname -s) 2>/dev/null || echo unknown`
     992uname -v = `(uname -v) 2>/dev/null || echo unknown`
     993
     994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     995/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     996
     997/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     998/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1000hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1001/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1002/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1003/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1004
     1005_ASUNAME
     1006
     1007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1008for as_dir in $PATH
     1009do
     1010  IFS=$as_save_IFS
     1011  test -z "$as_dir" && as_dir=.
     1012  echo "PATH: $as_dir"
     1013done
     1014
     1015} >&5
     1016
     1017cat >&5 <<_ACEOF
     1018
     1019
     1020## ----------- ##
     1021## Core tests. ##
     1022## ----------- ##
     1023
     1024_ACEOF
     1025
     1026
     1027# Keep a trace of the command line.
     1028# Strip out --no-create and --no-recursion so they do not pile up.
     1029# Strip out --silent because we don't want to record it for future runs.
     1030# Also quote any args containing shell meta-characters.
     1031# Make two passes to allow for proper duplicate-argument suppression.
     1032ac_configure_args=
     1033ac_configure_args0=
     1034ac_configure_args1=
     1035ac_sep=
     1036ac_must_keep_next=false
     1037for ac_pass in 1 2
     1038do
     1039  for ac_arg
     1040  do
     1041    case $ac_arg in
     1042    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1043    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1044    | -silent | --silent | --silen | --sile | --sil)
     1045      continue ;;
     1046    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1047      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1048    esac
     1049    case $ac_pass in
     1050    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1051    2)
     1052      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1053      if test $ac_must_keep_next = true; then
     1054        ac_must_keep_next=false # Got value, back to normal.
     1055      else
     1056        case $ac_arg in
     1057          *=* | --config-cache | -C | -disable-* | --disable-* \
     1058          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1059          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1060          | -with-* | --with-* | -without-* | --without-* | --x)
     1061            case "$ac_configure_args0 " in
     1062              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1063            esac
     1064            ;;
     1065          -* ) ac_must_keep_next=true ;;
     1066        esac
     1067      fi
     1068      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1069      # Get rid of the leading space.
     1070      ac_sep=" "
     1071      ;;
     1072    esac
     1073  done
     1074done
     1075$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1076$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1077
     1078# When interrupted or exit'd, cleanup temporary files, and complete
     1079# config.log.  We remove comments because anyway the quotes in there
     1080# would cause problems or look ugly.
     1081# WARNING: Be sure not to use single quotes in there, as some shells,
     1082# such as our DU 5.0 friend, will then `close' the trap.
     1083trap 'exit_status=$?
     1084  # Save into config.log some information that might help in debugging.
     1085  {
     1086    echo
     1087
     1088    cat <<\_ASBOX
     1089## ---------------- ##
     1090## Cache variables. ##
     1091## ---------------- ##
     1092_ASBOX
     1093    echo
     1094    # The following way of writing the cache mishandles newlines in values,
     1095{
     1096  (set) 2>&1 |
     1097    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1098    *ac_space=\ *)
     1099      sed -n \
     1100        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1101          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1102      ;;
     1103    *)
     1104      sed -n \
     1105        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1106      ;;
     1107    esac;
     1108}
     1109    echo
     1110
     1111    cat <<\_ASBOX
     1112## ----------------- ##
     1113## Output variables. ##
     1114## ----------------- ##
     1115_ASBOX
     1116    echo
     1117    for ac_var in $ac_subst_vars
     1118    do
     1119      eval ac_val=$`echo $ac_var`
     1120      echo "$ac_var='"'"'$ac_val'"'"'"
     1121    done | sort
     1122    echo
     1123
     1124    if test -n "$ac_subst_files"; then
     1125      cat <<\_ASBOX
     1126## ------------- ##
     1127## Output files. ##
     1128## ------------- ##
     1129_ASBOX
     1130      echo
     1131      for ac_var in $ac_subst_files
     1132      do
     1133        eval ac_val=$`echo $ac_var`
     1134        echo "$ac_var='"'"'$ac_val'"'"'"
     1135      done | sort
     1136      echo
     1137    fi
     1138
     1139    if test -s confdefs.h; then
     1140      cat <<\_ASBOX
     1141## ----------- ##
     1142## confdefs.h. ##
     1143## ----------- ##
     1144_ASBOX
     1145      echo
     1146      sed "/^$/d" confdefs.h | sort
     1147      echo
     1148    fi
     1149    test "$ac_signal" != 0 &&
     1150      echo "$as_me: caught signal $ac_signal"
     1151    echo "$as_me: exit $exit_status"
     1152  } >&5
     1153  rm -f core *.core &&
     1154  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1155    exit $exit_status
     1156     ' 0
     1157for ac_signal in 1 2 13 15; do
     1158  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1159done
     1160ac_signal=0
     1161
     1162# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1163rm -rf conftest* confdefs.h
     1164# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1165echo >confdefs.h
     1166
     1167# Predefined preprocessor variables.
     1168
     1169cat >>confdefs.h <<_ACEOF
     1170#define PACKAGE_NAME "$PACKAGE_NAME"
     1171_ACEOF
     1172
     1173
     1174cat >>confdefs.h <<_ACEOF
     1175#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1176_ACEOF
     1177
     1178
     1179cat >>confdefs.h <<_ACEOF
     1180#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1181_ACEOF
     1182
     1183
     1184cat >>confdefs.h <<_ACEOF
     1185#define PACKAGE_STRING "$PACKAGE_STRING"
     1186_ACEOF
     1187
     1188
     1189cat >>confdefs.h <<_ACEOF
     1190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1191_ACEOF
     1192
     1193
     1194# Let the site file select an alternate cache file if it wants to.
     1195# Prefer explicitly selected file to automatically selected ones.
     1196if test -z "$CONFIG_SITE"; then
     1197  if test "x$prefix" != xNONE; then
     1198    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
     1199  else
     1200    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
     1201  fi
     1202fi
     1203for ac_site_file in $CONFIG_SITE; do
     1204  if test -r "$ac_site_file"; then
     1205    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1206echo "$as_me: loading site script $ac_site_file" >&6;}
     1207    sed 's/^/| /' "$ac_site_file" >&5
     1208    . "$ac_site_file"
     1209  fi
     1210done
     1211
     1212if test -r "$cache_file"; then
     1213  # Some versions of bash will fail to source /dev/null (special
     1214  # files actually), so we avoid doing that.
     1215  if test -f "$cache_file"; then
     1216    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1217echo "$as_me: loading cache $cache_file" >&6;}
     1218    case $cache_file in
     1219      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1220      *)                      . ./$cache_file;;
     1221    esac
     1222  fi
     1223else
     1224  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1225echo "$as_me: creating cache $cache_file" >&6;}
     1226  >$cache_file
     1227fi
     1228
     1229# Check that the precious variables saved in the cache have kept the same
     1230# value.
     1231ac_cache_corrupted=false
     1232for ac_var in `(set) 2>&1 |
     1233               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1235  eval ac_new_set=\$ac_env_${ac_var}_set
     1236  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1237  eval ac_new_val="\$ac_env_${ac_var}_value"
     1238  case $ac_old_set,$ac_new_set in
     1239    set,)
     1240      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1241echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1242      ac_cache_corrupted=: ;;
     1243    ,set)
     1244      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1245echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1246      ac_cache_corrupted=: ;;
     1247    ,);;
     1248    *)
     1249      if test "x$ac_old_val" != "x$ac_new_val"; then
     1250        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1251echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1252        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1253echo "$as_me:   former value:  $ac_old_val" >&2;}
     1254        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1255echo "$as_me:   current value: $ac_new_val" >&2;}
     1256        ac_cache_corrupted=:
     1257      fi;;
     1258  esac
     1259  # Pass precious variables to config.status.
     1260  if test "$ac_new_set" = set; then
     1261    case $ac_new_val in
     1262    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1263      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1264    *) ac_arg=$ac_var=$ac_new_val ;;
     1265    esac
     1266    case " $ac_configure_args " in
     1267      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1268      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1269    esac
     1270  fi
     1271done
     1272if $ac_cache_corrupted; then
     1273  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1274echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1275  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1276echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1277   { (exit 1); exit 1; }; }
     1278fi
     1279
     1280ac_ext=c
     1281ac_cpp='$CPP $CPPFLAGS'
     1282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1284ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1285
     1286
     1287
     1288
     1289
     1290
     1291
     1292
     1293
     1294
     1295
     1296
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304
     1305
     1306
     1307
     1308
     1309
     1310
     1311
     1312
     1313          ac_config_headers="$ac_config_headers config.h"
     1314
     1315
     1316# Checks for programs.
     1317ac_ext=cc
     1318ac_cpp='$CXXCPP $CPPFLAGS'
     1319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1322if test -n "$ac_tool_prefix"; then
     1323  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1324  do
     1325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1327echo "$as_me:$LINENO: checking for $ac_word" >&5
     1328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1329if test "${ac_cv_prog_CXX+set}" = set; then
     1330  echo $ECHO_N "(cached) $ECHO_C" >&6
     1331else
     1332  if test -n "$CXX"; then
     1333  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     1334else
     1335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1336for as_dir in $PATH
     1337do
     1338  IFS=$as_save_IFS
     1339  test -z "$as_dir" && as_dir=.
     1340  for ac_exec_ext in '' $ac_executable_extensions; do
     1341  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1342    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1344    break 2
     1345  fi
     1346done
     1347done
     1348
     1349fi
     1350fi
     1351CXX=$ac_cv_prog_CXX
     1352if test -n "$CXX"; then
     1353  echo "$as_me:$LINENO: result: $CXX" >&5
     1354echo "${ECHO_T}$CXX" >&6
     1355else
     1356  echo "$as_me:$LINENO: result: no" >&5
     1357echo "${ECHO_T}no" >&6
     1358fi
     1359
     1360    test -n "$CXX" && break
     1361  done
     1362fi
     1363if test -z "$CXX"; then
     1364  ac_ct_CXX=$CXX
     1365  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1366do
     1367  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1368set dummy $ac_prog; ac_word=$2
     1369echo "$as_me:$LINENO: checking for $ac_word" >&5
     1370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1371if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1372  echo $ECHO_N "(cached) $ECHO_C" >&6
     1373else
     1374  if test -n "$ac_ct_CXX"; then
     1375  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1376else
     1377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1378for as_dir in $PATH
     1379do
     1380  IFS=$as_save_IFS
     1381  test -z "$as_dir" && as_dir=.
     1382  for ac_exec_ext in '' $ac_executable_extensions; do
     1383  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1384    ac_cv_prog_ac_ct_CXX="$ac_prog"
     1385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1386    break 2
     1387  fi
     1388done
     1389done
     1390
     1391fi
     1392fi
     1393ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1394if test -n "$ac_ct_CXX"; then
     1395  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     1396echo "${ECHO_T}$ac_ct_CXX" >&6
     1397else
     1398  echo "$as_me:$LINENO: result: no" >&5
     1399echo "${ECHO_T}no" >&6
     1400fi
     1401
     1402  test -n "$ac_ct_CXX" && break
     1403done
     1404test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1405
     1406  CXX=$ac_ct_CXX
     1407fi
     1408
     1409
     1410# Provide some information about the compiler.
     1411echo "$as_me:$LINENO:" \
     1412     "checking for C++ compiler version" >&5
     1413ac_compiler=`set X $ac_compile; echo $2`
     1414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1415  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1416  ac_status=$?
     1417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1418  (exit $ac_status); }
     1419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1420  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1421  ac_status=$?
     1422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1423  (exit $ac_status); }
     1424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1425  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1426  ac_status=$?
     1427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1428  (exit $ac_status); }
     1429
     1430cat >conftest.$ac_ext <<_ACEOF
     1431/* confdefs.h.  */
     1432_ACEOF
     1433cat confdefs.h >>conftest.$ac_ext
     1434cat >>conftest.$ac_ext <<_ACEOF
     1435/* end confdefs.h.  */
     1436
     1437int
     1438main ()
     1439{
     1440
     1441  ;
     1442  return 0;
     1443}
     1444_ACEOF
     1445ac_clean_files_save=$ac_clean_files
     1446ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1447# Try to create an executable without -o first, disregard a.out.
     1448# It will help us diagnose broken compilers, and finding out an intuition
     1449# of exeext.
     1450echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1451echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
     1452ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1453if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1454  (eval $ac_link_default) 2>&5
     1455  ac_status=$?
     1456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1457  (exit $ac_status); }; then
     1458  # Find the output, starting from the most likely.  This scheme is
     1459# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1460# resort.
     1461
     1462# Be careful to initialize this variable, since it used to be cached.
     1463# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1464ac_cv_exeext=
     1465# b.out is created by i960 compilers.
     1466for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1467do
     1468  test -f "$ac_file" || continue
     1469  case $ac_file in
     1470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1471        ;;
     1472    conftest.$ac_ext )
     1473        # This is the source file.
     1474        ;;
     1475    [ab].out )
     1476        # We found the default executable, but exeext='' is most
     1477        # certainly right.
     1478        break;;
     1479    *.* )
     1480        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1481        # FIXME: I believe we export ac_cv_exeext for Libtool,
     1482        # but it would be cool to find out if it's true.  Does anybody
     1483        # maintain Libtool? --akim.
     1484        export ac_cv_exeext
     1485        break;;
     1486    * )
     1487        break;;
     1488  esac
     1489done
     1490else
     1491  echo "$as_me: failed program was:" >&5
     1492sed 's/^/| /' conftest.$ac_ext >&5
     1493
     1494{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     1495See \`config.log' for more details." >&5
     1496echo "$as_me: error: C++ compiler cannot create executables
     1497See \`config.log' for more details." >&2;}
     1498   { (exit 77); exit 77; }; }
     1499fi
     1500
     1501ac_exeext=$ac_cv_exeext
     1502echo "$as_me:$LINENO: result: $ac_file" >&5
     1503echo "${ECHO_T}$ac_file" >&6
     1504
     1505# Check the compiler produces executables we can run.  If not, either
     1506# the compiler is broken, or we cross compile.
     1507echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
     1508echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     1509# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1510# If not cross compiling, check that we can run a simple program.
     1511if test "$cross_compiling" != yes; then
     1512  if { ac_try='./$ac_file'
     1513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1514  (eval $ac_try) 2>&5
     1515  ac_status=$?
     1516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1517  (exit $ac_status); }; }; then
     1518    cross_compiling=no
     1519  else
     1520    if test "$cross_compiling" = maybe; then
     1521        cross_compiling=yes
     1522    else
     1523        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     1524If you meant to cross compile, use \`--host'.
     1525See \`config.log' for more details." >&5
     1526echo "$as_me: error: cannot run C++ compiled programs.
     1527If you meant to cross compile, use \`--host'.
     1528See \`config.log' for more details." >&2;}
     1529   { (exit 1); exit 1; }; }
     1530    fi
     1531  fi
     1532fi
     1533echo "$as_me:$LINENO: result: yes" >&5
     1534echo "${ECHO_T}yes" >&6
     1535
     1536rm -f a.out a.exe conftest$ac_cv_exeext b.out
     1537ac_clean_files=$ac_clean_files_save
     1538# Check the compiler produces executables we can run.  If not, either
     1539# the compiler is broken, or we cross compile.
     1540echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1541echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1542echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1543echo "${ECHO_T}$cross_compiling" >&6
     1544
     1545echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1546echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1548  (eval $ac_link) 2>&5
     1549  ac_status=$?
     1550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1551  (exit $ac_status); }; then
     1552  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1553# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1554# work properly (i.e., refer to `conftest.exe'), while it won't with
     1555# `rm'.
     1556for ac_file in conftest.exe conftest conftest.*; do
     1557  test -f "$ac_file" || continue
     1558  case $ac_file in
     1559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     1560    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1561          export ac_cv_exeext
     1562          break;;
     1563    * ) break;;
     1564  esac
     1565done
     1566else
     1567  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     1568See \`config.log' for more details." >&5
     1569echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     1570See \`config.log' for more details." >&2;}
     1571   { (exit 1); exit 1; }; }
     1572fi
     1573
     1574rm -f conftest$ac_cv_exeext
     1575echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     1576echo "${ECHO_T}$ac_cv_exeext" >&6
     1577
     1578rm -f conftest.$ac_ext
     1579EXEEXT=$ac_cv_exeext
     1580ac_exeext=$EXEEXT
     1581echo "$as_me:$LINENO: checking for suffix of object files" >&5
     1582echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     1583if test "${ac_cv_objext+set}" = set; then
     1584  echo $ECHO_N "(cached) $ECHO_C" >&6
     1585else
     1586  cat >conftest.$ac_ext <<_ACEOF
     1587/* confdefs.h.  */
     1588_ACEOF
     1589cat confdefs.h >>conftest.$ac_ext
     1590cat >>conftest.$ac_ext <<_ACEOF
     1591/* end confdefs.h.  */
     1592
     1593int
     1594main ()
     1595{
     1596
     1597  ;
     1598  return 0;
     1599}
     1600_ACEOF
     1601rm -f conftest.o conftest.obj
     1602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1603  (eval $ac_compile) 2>&5
     1604  ac_status=$?
     1605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1606  (exit $ac_status); }; then
     1607  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1608  case $ac_file in
     1609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     1610    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1611       break;;
     1612  esac
     1613done
     1614else
     1615  echo "$as_me: failed program was:" >&5
     1616sed 's/^/| /' conftest.$ac_ext >&5
     1617
     1618{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     1619See \`config.log' for more details." >&5
     1620echo "$as_me: error: cannot compute suffix of object files: cannot compile
     1621See \`config.log' for more details." >&2;}
     1622   { (exit 1); exit 1; }; }
     1623fi
     1624
     1625rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1626fi
     1627echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     1628echo "${ECHO_T}$ac_cv_objext" >&6
     1629OBJEXT=$ac_cv_objext
     1630ac_objext=$OBJEXT
     1631echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     1632echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1633if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1634  echo $ECHO_N "(cached) $ECHO_C" >&6
     1635else
     1636  cat >conftest.$ac_ext <<_ACEOF
     1637/* confdefs.h.  */
     1638_ACEOF
     1639cat confdefs.h >>conftest.$ac_ext
     1640cat >>conftest.$ac_ext <<_ACEOF
     1641/* end confdefs.h.  */
     1642
     1643int
     1644main ()
     1645{
     1646#ifndef __GNUC__
     1647       choke me
     1648#endif
     1649
     1650  ;
     1651  return 0;
     1652}
     1653_ACEOF
     1654rm -f conftest.$ac_objext
     1655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1656  (eval $ac_compile) 2>conftest.er1
     1657  ac_status=$?
     1658  grep -v '^ *+' conftest.er1 >conftest.err
     1659  rm -f conftest.er1
     1660  cat conftest.err >&5
     1661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1662  (exit $ac_status); } &&
     1663         { ac_try='test -z "$ac_cxx_werror_flag"
     1664                         || test ! -s conftest.err'
     1665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1666  (eval $ac_try) 2>&5
     1667  ac_status=$?
     1668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1669  (exit $ac_status); }; } &&
     1670         { ac_try='test -s conftest.$ac_objext'
     1671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1672  (eval $ac_try) 2>&5
     1673  ac_status=$?
     1674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1675  (exit $ac_status); }; }; then
     1676  ac_compiler_gnu=yes
     1677else
     1678  echo "$as_me: failed program was:" >&5
     1679sed 's/^/| /' conftest.$ac_ext >&5
     1680
     1681ac_compiler_gnu=no
     1682fi
     1683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1684ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1685
     1686fi
     1687echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     1688echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1689GXX=`test $ac_compiler_gnu = yes && echo yes`
     1690ac_test_CXXFLAGS=${CXXFLAGS+set}
     1691ac_save_CXXFLAGS=$CXXFLAGS
     1692CXXFLAGS="-g"
     1693echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     1694echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1695if test "${ac_cv_prog_cxx_g+set}" = set; then
     1696  echo $ECHO_N "(cached) $ECHO_C" >&6
     1697else
     1698  cat >conftest.$ac_ext <<_ACEOF
     1699/* confdefs.h.  */
     1700_ACEOF
     1701cat confdefs.h >>conftest.$ac_ext
     1702cat >>conftest.$ac_ext <<_ACEOF
     1703/* end confdefs.h.  */
     1704
     1705int
     1706main ()
     1707{
     1708
     1709  ;
     1710  return 0;
     1711}
     1712_ACEOF
     1713rm -f conftest.$ac_objext
     1714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1715  (eval $ac_compile) 2>conftest.er1
     1716  ac_status=$?
     1717  grep -v '^ *+' conftest.er1 >conftest.err
     1718  rm -f conftest.er1
     1719  cat conftest.err >&5
     1720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1721  (exit $ac_status); } &&
     1722         { ac_try='test -z "$ac_cxx_werror_flag"
     1723                         || test ! -s conftest.err'
     1724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1725  (eval $ac_try) 2>&5
     1726  ac_status=$?
     1727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1728  (exit $ac_status); }; } &&
     1729         { ac_try='test -s conftest.$ac_objext'
     1730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1731  (eval $ac_try) 2>&5
     1732  ac_status=$?
     1733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1734  (exit $ac_status); }; }; then
     1735  ac_cv_prog_cxx_g=yes
     1736else
     1737  echo "$as_me: failed program was:" >&5
     1738sed 's/^/| /' conftest.$ac_ext >&5
     1739
     1740ac_cv_prog_cxx_g=no
     1741fi
     1742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1743fi
     1744echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     1745echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     1746if test "$ac_test_CXXFLAGS" = set; then
     1747  CXXFLAGS=$ac_save_CXXFLAGS
     1748elif test $ac_cv_prog_cxx_g = yes; then
     1749  if test "$GXX" = yes; then
     1750    CXXFLAGS="-g -O2"
     1751  else
     1752    CXXFLAGS="-g"
     1753  fi
     1754else
     1755  if test "$GXX" = yes; then
     1756    CXXFLAGS="-O2"
     1757  else
     1758    CXXFLAGS=
     1759  fi
     1760fi
     1761for ac_declaration in \
     1762   '' \
     1763   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1764   'extern "C" void std::exit (int); using std::exit;' \
     1765   'extern "C" void exit (int) throw ();' \
     1766   'extern "C" void exit (int);' \
     1767   'void exit (int);'
     1768do
     1769  cat >conftest.$ac_ext <<_ACEOF
     1770/* confdefs.h.  */
     1771_ACEOF
     1772cat confdefs.h >>conftest.$ac_ext
     1773cat >>conftest.$ac_ext <<_ACEOF
     1774/* end confdefs.h.  */
     1775$ac_declaration
     1776#include <stdlib.h>
     1777int
     1778main ()
     1779{
     1780exit (42);
     1781  ;
     1782  return 0;
     1783}
     1784_ACEOF
     1785rm -f conftest.$ac_objext
     1786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1787  (eval $ac_compile) 2>conftest.er1
     1788  ac_status=$?
     1789  grep -v '^ *+' conftest.er1 >conftest.err
     1790  rm -f conftest.er1
     1791  cat conftest.err >&5
     1792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1793  (exit $ac_status); } &&
     1794         { ac_try='test -z "$ac_cxx_werror_flag"
     1795                         || test ! -s conftest.err'
     1796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1797  (eval $ac_try) 2>&5
     1798  ac_status=$?
     1799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1800  (exit $ac_status); }; } &&
     1801         { ac_try='test -s conftest.$ac_objext'
     1802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1803  (eval $ac_try) 2>&5
     1804  ac_status=$?
     1805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1806  (exit $ac_status); }; }; then
     1807  :
     1808else
     1809  echo "$as_me: failed program was:" >&5
     1810sed 's/^/| /' conftest.$ac_ext >&5
     1811
     1812continue
     1813fi
     1814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1815  cat >conftest.$ac_ext <<_ACEOF
     1816/* confdefs.h.  */
     1817_ACEOF
     1818cat confdefs.h >>conftest.$ac_ext
     1819cat >>conftest.$ac_ext <<_ACEOF
     1820/* end confdefs.h.  */
     1821$ac_declaration
     1822int
     1823main ()
     1824{
     1825exit (42);
     1826  ;
     1827  return 0;
     1828}
     1829_ACEOF
     1830rm -f conftest.$ac_objext
     1831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1832  (eval $ac_compile) 2>conftest.er1
     1833  ac_status=$?
     1834  grep -v '^ *+' conftest.er1 >conftest.err
     1835  rm -f conftest.er1
     1836  cat conftest.err >&5
     1837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1838  (exit $ac_status); } &&
     1839         { ac_try='test -z "$ac_cxx_werror_flag"
     1840                         || test ! -s conftest.err'
     1841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1842  (eval $ac_try) 2>&5
     1843  ac_status=$?
     1844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1845  (exit $ac_status); }; } &&
     1846         { ac_try='test -s conftest.$ac_objext'
     1847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1848  (eval $ac_try) 2>&5
     1849  ac_status=$?
     1850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1851  (exit $ac_status); }; }; then
     1852  break
     1853else
     1854  echo "$as_me: failed program was:" >&5
     1855sed 's/^/| /' conftest.$ac_ext >&5
     1856
     1857fi
     1858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1859done
     1860rm -f conftest*
     1861if test -n "$ac_declaration"; then
     1862  echo '#ifdef __cplusplus' >>confdefs.h
     1863  echo $ac_declaration      >>confdefs.h
     1864  echo '#endif'             >>confdefs.h
     1865fi
     1866
     1867ac_ext=c
     1868ac_cpp='$CPP $CPPFLAGS'
     1869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1871ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1872
     1873ac_ext=c
     1874ac_cpp='$CPP $CPPFLAGS'
     1875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1877ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1878if test -n "$ac_tool_prefix"; then
     1879  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1880set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1881echo "$as_me:$LINENO: checking for $ac_word" >&5
     1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1883if test "${ac_cv_prog_CC+set}" = set; then
     1884  echo $ECHO_N "(cached) $ECHO_C" >&6
     1885else
     1886  if test -n "$CC"; then
     1887  ac_cv_prog_CC="$CC" # Let the user override the test.
     1888else
     1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1890for as_dir in $PATH
     1891do
     1892  IFS=$as_save_IFS
     1893  test -z "$as_dir" && as_dir=.
     1894  for ac_exec_ext in '' $ac_executable_extensions; do
     1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1896    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1898    break 2
     1899  fi
     1900done
     1901done
     1902
     1903fi
     1904fi
     1905CC=$ac_cv_prog_CC
     1906if test -n "$CC"; then
     1907  echo "$as_me:$LINENO: result: $CC" >&5
     1908echo "${ECHO_T}$CC" >&6
     1909else
     1910  echo "$as_me:$LINENO: result: no" >&5
     1911echo "${ECHO_T}no" >&6
     1912fi
     1913
     1914fi
     1915if test -z "$ac_cv_prog_CC"; then
     1916  ac_ct_CC=$CC
     1917  # Extract the first word of "gcc", so it can be a program name with args.
     1918set dummy gcc; ac_word=$2
     1919echo "$as_me:$LINENO: checking for $ac_word" >&5
     1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1922  echo $ECHO_N "(cached) $ECHO_C" >&6
     1923else
     1924  if test -n "$ac_ct_CC"; then
     1925  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1926else
     1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1928for as_dir in $PATH
     1929do
     1930  IFS=$as_save_IFS
     1931  test -z "$as_dir" && as_dir=.
     1932  for ac_exec_ext in '' $ac_executable_extensions; do
     1933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1934    ac_cv_prog_ac_ct_CC="gcc"
     1935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1936    break 2
     1937  fi
     1938done
     1939done
     1940
     1941fi
     1942fi
     1943ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1944if test -n "$ac_ct_CC"; then
     1945  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1946echo "${ECHO_T}$ac_ct_CC" >&6
     1947else
     1948  echo "$as_me:$LINENO: result: no" >&5
     1949echo "${ECHO_T}no" >&6
     1950fi
     1951
     1952  CC=$ac_ct_CC
     1953else
     1954  CC="$ac_cv_prog_CC"
     1955fi
     1956
     1957if test -z "$CC"; then
     1958  if test -n "$ac_tool_prefix"; then
     1959  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1960set dummy ${ac_tool_prefix}cc; ac_word=$2
     1961echo "$as_me:$LINENO: checking for $ac_word" >&5
     1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1963if test "${ac_cv_prog_CC+set}" = set; then
     1964  echo $ECHO_N "(cached) $ECHO_C" >&6
     1965else
     1966  if test -n "$CC"; then
     1967  ac_cv_prog_CC="$CC" # Let the user override the test.
     1968else
     1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1970for as_dir in $PATH
     1971do
     1972  IFS=$as_save_IFS
     1973  test -z "$as_dir" && as_dir=.
     1974  for ac_exec_ext in '' $ac_executable_extensions; do
     1975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1976    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1978    break 2
     1979  fi
     1980done
     1981done
     1982
     1983fi
     1984fi
     1985CC=$ac_cv_prog_CC
     1986if test -n "$CC"; then
     1987  echo "$as_me:$LINENO: result: $CC" >&5
     1988echo "${ECHO_T}$CC" >&6
     1989else
     1990  echo "$as_me:$LINENO: result: no" >&5
     1991echo "${ECHO_T}no" >&6
     1992fi
     1993
     1994fi
     1995if test -z "$ac_cv_prog_CC"; then
     1996  ac_ct_CC=$CC
     1997  # Extract the first word of "cc", so it can be a program name with args.
     1998set dummy cc; ac_word=$2
     1999echo "$as_me:$LINENO: checking for $ac_word" >&5
     2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2002  echo $ECHO_N "(cached) $ECHO_C" >&6
     2003else
     2004  if test -n "$ac_ct_CC"; then
     2005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2006else
     2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2008for as_dir in $PATH
     2009do
     2010  IFS=$as_save_IFS
     2011  test -z "$as_dir" && as_dir=.
     2012  for ac_exec_ext in '' $ac_executable_extensions; do
     2013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2014    ac_cv_prog_ac_ct_CC="cc"
     2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2016    break 2
     2017  fi
     2018done
     2019done
     2020
     2021fi
     2022fi
     2023ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2024if test -n "$ac_ct_CC"; then
     2025  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2026echo "${ECHO_T}$ac_ct_CC" >&6
     2027else
     2028  echo "$as_me:$LINENO: result: no" >&5
     2029echo "${ECHO_T}no" >&6
     2030fi
     2031
     2032  CC=$ac_ct_CC
     2033else
     2034  CC="$ac_cv_prog_CC"
     2035fi
     2036
     2037fi
     2038if test -z "$CC"; then
     2039  # Extract the first word of "cc", so it can be a program name with args.
     2040set dummy cc; ac_word=$2
     2041echo "$as_me:$LINENO: checking for $ac_word" >&5
     2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2043if test "${ac_cv_prog_CC+set}" = set; then
     2044  echo $ECHO_N "(cached) $ECHO_C" >&6
     2045else
     2046  if test -n "$CC"; then
     2047  ac_cv_prog_CC="$CC" # Let the user override the test.
     2048else
     2049  ac_prog_rejected=no
     2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2051for as_dir in $PATH
     2052do
     2053  IFS=$as_save_IFS
     2054  test -z "$as_dir" && as_dir=.
     2055  for ac_exec_ext in '' $ac_executable_extensions; do
     2056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2057    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2058       ac_prog_rejected=yes
     2059       continue
     2060     fi
     2061    ac_cv_prog_CC="cc"
     2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2063    break 2
     2064  fi
     2065done
     2066done
     2067
     2068if test $ac_prog_rejected = yes; then
     2069  # We found a bogon in the path, so make sure we never use it.
     2070  set dummy $ac_cv_prog_CC
     2071  shift
     2072  if test $# != 0; then
     2073    # We chose a different compiler from the bogus one.
     2074    # However, it has the same basename, so the bogon will be chosen
     2075    # first if we set CC to just the basename; use the full file name.
     2076    shift
     2077    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     2078  fi
     2079fi
     2080fi
     2081fi
     2082CC=$ac_cv_prog_CC
     2083if test -n "$CC"; then
     2084  echo "$as_me:$LINENO: result: $CC" >&5
     2085echo "${ECHO_T}$CC" >&6
     2086else
     2087  echo "$as_me:$LINENO: result: no" >&5
     2088echo "${ECHO_T}no" >&6
     2089fi
     2090
     2091fi
     2092if test -z "$CC"; then
     2093  if test -n "$ac_tool_prefix"; then
     2094  for ac_prog in cl
     2095  do
     2096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2098echo "$as_me:$LINENO: checking for $ac_word" >&5
     2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2100if test "${ac_cv_prog_CC+set}" = set; then
     2101  echo $ECHO_N "(cached) $ECHO_C" >&6
     2102else
     2103  if test -n "$CC"; then
     2104  ac_cv_prog_CC="$CC" # Let the user override the test.
     2105else
     2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2107for as_dir in $PATH
     2108do
     2109  IFS=$as_save_IFS
     2110  test -z "$as_dir" && as_dir=.
     2111  for ac_exec_ext in '' $ac_executable_extensions; do
     2112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2113    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2115    break 2
     2116  fi
     2117done
     2118done
     2119
     2120fi
     2121fi
     2122CC=$ac_cv_prog_CC
     2123if test -n "$CC"; then
     2124  echo "$as_me:$LINENO: result: $CC" >&5
     2125echo "${ECHO_T}$CC" >&6
     2126else
     2127  echo "$as_me:$LINENO: result: no" >&5
     2128echo "${ECHO_T}no" >&6
     2129fi
     2130
     2131    test -n "$CC" && break
     2132  done
     2133fi
     2134if test -z "$CC"; then
     2135  ac_ct_CC=$CC
     2136  for ac_prog in cl
     2137do
     2138  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2139set dummy $ac_prog; ac_word=$2
     2140echo "$as_me:$LINENO: checking for $ac_word" >&5
     2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2142if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2143  echo $ECHO_N "(cached) $ECHO_C" >&6
     2144else
     2145  if test -n "$ac_ct_CC"; then
     2146  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2147else
     2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2149for as_dir in $PATH
     2150do
     2151  IFS=$as_save_IFS
     2152  test -z "$as_dir" && as_dir=.
     2153  for ac_exec_ext in '' $ac_executable_extensions; do
     2154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2155    ac_cv_prog_ac_ct_CC="$ac_prog"
     2156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2157    break 2
     2158  fi
     2159done
     2160done
     2161
     2162fi
     2163fi
     2164ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2165if test -n "$ac_ct_CC"; then
     2166  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2167echo "${ECHO_T}$ac_ct_CC" >&6
     2168else
     2169  echo "$as_me:$LINENO: result: no" >&5
     2170echo "${ECHO_T}no" >&6
     2171fi
     2172
     2173  test -n "$ac_ct_CC" && break
     2174done
     2175
     2176  CC=$ac_ct_CC
     2177fi
     2178
     2179fi
     2180
     2181
     2182test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2183See \`config.log' for more details." >&5
     2184echo "$as_me: error: no acceptable C compiler found in \$PATH
     2185See \`config.log' for more details." >&2;}
     2186   { (exit 1); exit 1; }; }
     2187
     2188# Provide some information about the compiler.
     2189echo "$as_me:$LINENO:" \
     2190     "checking for C compiler version" >&5
     2191ac_compiler=`set X $ac_compile; echo $2`
     2192{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2193  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2194  ac_status=$?
     2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2196  (exit $ac_status); }
     2197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2198  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2199  ac_status=$?
     2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2201  (exit $ac_status); }
     2202{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2203  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2204  ac_status=$?
     2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2206  (exit $ac_status); }
     2207
     2208echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2209echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2210if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2211  echo $ECHO_N "(cached) $ECHO_C" >&6
     2212else
     2213  cat >conftest.$ac_ext <<_ACEOF
     2214/* confdefs.h.  */
     2215_ACEOF
     2216cat confdefs.h >>conftest.$ac_ext
     2217cat >>conftest.$ac_ext <<_ACEOF
     2218/* end confdefs.h.  */
     2219
     2220int
     2221main ()
     2222{
     2223#ifndef __GNUC__
     2224       choke me
     2225#endif
     2226
     2227  ;
     2228  return 0;
     2229}
     2230_ACEOF
     2231rm -f conftest.$ac_objext
     2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2233  (eval $ac_compile) 2>conftest.er1
     2234  ac_status=$?
     2235  grep -v '^ *+' conftest.er1 >conftest.err
     2236  rm -f conftest.er1
     2237  cat conftest.err >&5
     2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2239  (exit $ac_status); } &&
     2240         { ac_try='test -z "$ac_c_werror_flag"
     2241                         || test ! -s conftest.err'
     2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2243  (eval $ac_try) 2>&5
     2244  ac_status=$?
     2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2246  (exit $ac_status); }; } &&
     2247         { ac_try='test -s conftest.$ac_objext'
     2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2249  (eval $ac_try) 2>&5
     2250  ac_status=$?
     2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2252  (exit $ac_status); }; }; then
     2253  ac_compiler_gnu=yes
     2254else
     2255  echo "$as_me: failed program was:" >&5
     2256sed 's/^/| /' conftest.$ac_ext >&5
     2257
     2258ac_compiler_gnu=no
     2259fi
     2260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2261ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2262
     2263fi
     2264echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2265echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2266GCC=`test $ac_compiler_gnu = yes && echo yes`
     2267ac_test_CFLAGS=${CFLAGS+set}
     2268ac_save_CFLAGS=$CFLAGS
     2269CFLAGS="-g"
     2270echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2271echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2272if test "${ac_cv_prog_cc_g+set}" = set; then
     2273  echo $ECHO_N "(cached) $ECHO_C" >&6
     2274else
     2275  cat >conftest.$ac_ext <<_ACEOF
     2276/* confdefs.h.  */
     2277_ACEOF
     2278cat confdefs.h >>conftest.$ac_ext
     2279cat >>conftest.$ac_ext <<_ACEOF
     2280/* end confdefs.h.  */
     2281
     2282int
     2283main ()
     2284{
     2285
     2286  ;
     2287  return 0;
     2288}
     2289_ACEOF
     2290rm -f conftest.$ac_objext
     2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2292  (eval $ac_compile) 2>conftest.er1
     2293  ac_status=$?
     2294  grep -v '^ *+' conftest.er1 >conftest.err
     2295  rm -f conftest.er1
     2296  cat conftest.err >&5
     2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2298  (exit $ac_status); } &&
     2299         { ac_try='test -z "$ac_c_werror_flag"
     2300                         || test ! -s conftest.err'
     2301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2302  (eval $ac_try) 2>&5
     2303  ac_status=$?
     2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2305  (exit $ac_status); }; } &&
     2306         { ac_try='test -s conftest.$ac_objext'
     2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2308  (eval $ac_try) 2>&5
     2309  ac_status=$?
     2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2311  (exit $ac_status); }; }; then
     2312  ac_cv_prog_cc_g=yes
     2313else
     2314  echo "$as_me: failed program was:" >&5
     2315sed 's/^/| /' conftest.$ac_ext >&5
     2316
     2317ac_cv_prog_cc_g=no
     2318fi
     2319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2320fi
     2321echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2322echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2323if test "$ac_test_CFLAGS" = set; then
     2324  CFLAGS=$ac_save_CFLAGS
     2325elif test $ac_cv_prog_cc_g = yes; then
     2326  if test "$GCC" = yes; then
     2327    CFLAGS="-g -O2"
     2328  else
     2329    CFLAGS="-g"
     2330  fi
     2331else
     2332  if test "$GCC" = yes; then
     2333    CFLAGS="-O2"
     2334  else
     2335    CFLAGS=
     2336  fi
     2337fi
     2338echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2339echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2340if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2341  echo $ECHO_N "(cached) $ECHO_C" >&6
     2342else
     2343  ac_cv_prog_cc_stdc=no
     2344ac_save_CC=$CC
     2345cat >conftest.$ac_ext <<_ACEOF
     2346/* confdefs.h.  */
     2347_ACEOF
     2348cat confdefs.h >>conftest.$ac_ext
     2349cat >>conftest.$ac_ext <<_ACEOF
     2350/* end confdefs.h.  */
     2351#include <stdarg.h>
     2352#include <stdio.h>
     2353#include <sys/types.h>
     2354#include <sys/stat.h>
     2355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2356struct buf { int x; };
     2357FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2358static char *e (p, i)
     2359     char **p;
     2360     int i;
     2361{
     2362  return p[i];
     2363}
     2364static char *f (char * (*g) (char **, int), char **p, ...)
     2365{
     2366  char *s;
     2367  va_list v;
     2368  va_start (v,p);
     2369  s = g (p, va_arg (v,int));
     2370  va_end (v);
     2371  return s;
     2372}
     2373
     2374/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2375   function prototypes and stuff, but not '\xHH' hex character constants.
     2376   These don't provoke an error unfortunately, instead are silently treated
     2377   as 'x'.  The following induces an error, until -std1 is added to get
     2378   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2379   array size at least.  It's necessary to write '\x00'==0 to get something
     2380   that's true only with -std1.  */
     2381int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2382
     2383int test (int i, double x);
     2384struct s1 {int (*f) (int a);};
     2385struct s2 {int (*f) (double a);};
     2386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2387int argc;
     2388char **argv;
     2389int
     2390main ()
     2391{
     2392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2393  ;
     2394  return 0;
     2395}
     2396_ACEOF
     2397# Don't try gcc -ansi; that turns off useful extensions and
     2398# breaks some systems' header files.
     2399# AIX                   -qlanglvl=ansi
     2400# Ultrix and OSF/1      -std1
     2401# HP-UX 10.20 and later -Ae
     2402# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2403# SVR4                  -Xc -D__EXTENSIONS__
     2404for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2405do
     2406  CC="$ac_save_CC $ac_arg"
     2407  rm -f conftest.$ac_objext
     2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2409  (eval $ac_compile) 2>conftest.er1
     2410  ac_status=$?
     2411  grep -v '^ *+' conftest.er1 >conftest.err
     2412  rm -f conftest.er1
     2413  cat conftest.err >&5
     2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2415  (exit $ac_status); } &&
     2416         { ac_try='test -z "$ac_c_werror_flag"
     2417                         || test ! -s conftest.err'
     2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2419  (eval $ac_try) 2>&5
     2420  ac_status=$?
     2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2422  (exit $ac_status); }; } &&
     2423         { ac_try='test -s conftest.$ac_objext'
     2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2425  (eval $ac_try) 2>&5
     2426  ac_status=$?
     2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2428  (exit $ac_status); }; }; then
     2429  ac_cv_prog_cc_stdc=$ac_arg
     2430break
     2431else
     2432  echo "$as_me: failed program was:" >&5
     2433sed 's/^/| /' conftest.$ac_ext >&5
     2434
     2435fi
     2436rm -f conftest.err conftest.$ac_objext
     2437done
     2438rm -f conftest.$ac_ext conftest.$ac_objext
     2439CC=$ac_save_CC
     2440
     2441fi
     2442
     2443case "x$ac_cv_prog_cc_stdc" in
     2444  x|xno)
     2445    echo "$as_me:$LINENO: result: none needed" >&5
     2446echo "${ECHO_T}none needed" >&6 ;;
     2447  *)
     2448    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2449echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2450    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2451esac
     2452
     2453# Some people use a C++ compiler to compile C.  Since we use `exit',
     2454# in C++ we need to declare it.  In case someone uses the same compiler
     2455# for both compiling C and C++ we need to have the C++ compiler decide
     2456# the declaration of exit, since it's the most demanding environment.
     2457cat >conftest.$ac_ext <<_ACEOF
     2458#ifndef __cplusplus
     2459  choke me
     2460#endif
     2461_ACEOF
     2462rm -f conftest.$ac_objext
     2463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2464  (eval $ac_compile) 2>conftest.er1
     2465  ac_status=$?
     2466  grep -v '^ *+' conftest.er1 >conftest.err
     2467  rm -f conftest.er1
     2468  cat conftest.err >&5
     2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2470  (exit $ac_status); } &&
     2471         { ac_try='test -z "$ac_c_werror_flag"
     2472                         || test ! -s conftest.err'
     2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2474  (eval $ac_try) 2>&5
     2475  ac_status=$?
     2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2477  (exit $ac_status); }; } &&
     2478         { ac_try='test -s conftest.$ac_objext'
     2479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2480  (eval $ac_try) 2>&5
     2481  ac_status=$?
     2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2483  (exit $ac_status); }; }; then
     2484  for ac_declaration in \
     2485   '' \
     2486   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2487   'extern "C" void std::exit (int); using std::exit;' \
     2488   'extern "C" void exit (int) throw ();' \
     2489   'extern "C" void exit (int);' \
     2490   'void exit (int);'
     2491do
     2492  cat >conftest.$ac_ext <<_ACEOF
     2493/* confdefs.h.  */
     2494_ACEOF
     2495cat confdefs.h >>conftest.$ac_ext
     2496cat >>conftest.$ac_ext <<_ACEOF
     2497/* end confdefs.h.  */
     2498$ac_declaration
     2499#include <stdlib.h>
     2500int
     2501main ()
     2502{
     2503exit (42);
     2504  ;
     2505  return 0;
     2506}
     2507_ACEOF
     2508rm -f conftest.$ac_objext
     2509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2510  (eval $ac_compile) 2>conftest.er1
     2511  ac_status=$?
     2512  grep -v '^ *+' conftest.er1 >conftest.err
     2513  rm -f conftest.er1
     2514  cat conftest.err >&5
     2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2516  (exit $ac_status); } &&
     2517         { ac_try='test -z "$ac_c_werror_flag"
     2518                         || test ! -s conftest.err'
     2519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2520  (eval $ac_try) 2>&5
     2521  ac_status=$?
     2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2523  (exit $ac_status); }; } &&
     2524         { ac_try='test -s conftest.$ac_objext'
     2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2526  (eval $ac_try) 2>&5
     2527  ac_status=$?
     2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2529  (exit $ac_status); }; }; then
     2530  :
     2531else
     2532  echo "$as_me: failed program was:" >&5
     2533sed 's/^/| /' conftest.$ac_ext >&5
     2534
     2535continue
     2536fi
     2537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2538  cat >conftest.$ac_ext <<_ACEOF
     2539/* confdefs.h.  */
     2540_ACEOF
     2541cat confdefs.h >>conftest.$ac_ext
     2542cat >>conftest.$ac_ext <<_ACEOF
     2543/* end confdefs.h.  */
     2544$ac_declaration
     2545int
     2546main ()
     2547{
     2548exit (42);
     2549  ;
     2550  return 0;
     2551}
     2552_ACEOF
     2553rm -f conftest.$ac_objext
     2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2555  (eval $ac_compile) 2>conftest.er1
     2556  ac_status=$?
     2557  grep -v '^ *+' conftest.er1 >conftest.err
     2558  rm -f conftest.er1
     2559  cat conftest.err >&5
     2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2561  (exit $ac_status); } &&
     2562         { ac_try='test -z "$ac_c_werror_flag"
     2563                         || test ! -s conftest.err'
     2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2565  (eval $ac_try) 2>&5
     2566  ac_status=$?
     2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2568  (exit $ac_status); }; } &&
     2569         { ac_try='test -s conftest.$ac_objext'
     2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2571  (eval $ac_try) 2>&5
     2572  ac_status=$?
     2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2574  (exit $ac_status); }; }; then
     2575  break
     2576else
     2577  echo "$as_me: failed program was:" >&5
     2578sed 's/^/| /' conftest.$ac_ext >&5
     2579
     2580fi
     2581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2582done
     2583rm -f conftest*
     2584if test -n "$ac_declaration"; then
     2585  echo '#ifdef __cplusplus' >>confdefs.h
     2586  echo $ac_declaration      >>confdefs.h
     2587  echo '#endif'             >>confdefs.h
     2588fi
     2589
     2590else
     2591  echo "$as_me: failed program was:" >&5
     2592sed 's/^/| /' conftest.$ac_ext >&5
     2593
     2594fi
     2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2596ac_ext=c
     2597ac_cpp='$CPP $CPPFLAGS'
     2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2601
     2602
     2603# Checks for libraries.
     2604# FIXME: Replace `main' with a function in `-lGL':
     2605
     2606
     2607echo "$as_me:$LINENO: checking for main in -lGL" >&5
     2608echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
     2609if test "${ac_cv_lib_GL_main+set}" = set; then
     2610  echo $ECHO_N "(cached) $ECHO_C" >&6
     2611else
     2612  ac_check_lib_save_LIBS=$LIBS
     2613LIBS="-lGL  $LIBS"
     2614cat >conftest.$ac_ext <<_ACEOF
     2615/* confdefs.h.  */
     2616_ACEOF
     2617cat confdefs.h >>conftest.$ac_ext
     2618cat >>conftest.$ac_ext <<_ACEOF
     2619/* end confdefs.h.  */
     2620
     2621
     2622int
     2623main ()
     2624{
     2625main ();
     2626  ;
     2627  return 0;
     2628}
     2629_ACEOF
     2630rm -f conftest.$ac_objext conftest$ac_exeext
     2631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2632  (eval $ac_link) 2>conftest.er1
     2633  ac_status=$?
     2634  grep -v '^ *+' conftest.er1 >conftest.err
     2635  rm -f conftest.er1
     2636  cat conftest.err >&5
     2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2638  (exit $ac_status); } &&
     2639         { ac_try='test -z "$ac_c_werror_flag"
     2640                         || test ! -s conftest.err'
     2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2642  (eval $ac_try) 2>&5
     2643  ac_status=$?
     2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2645  (exit $ac_status); }; } &&
     2646         { ac_try='test -s conftest$ac_exeext'
     2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2648  (eval $ac_try) 2>&5
     2649  ac_status=$?
     2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2651  (exit $ac_status); }; }; then
     2652  ac_cv_lib_GL_main=yes
     2653else
     2654  echo "$as_me: failed program was:" >&5
     2655sed 's/^/| /' conftest.$ac_ext >&5
     2656
     2657ac_cv_lib_GL_main=no
     2658fi
     2659rm -f conftest.err conftest.$ac_objext \
     2660      conftest$ac_exeext conftest.$ac_ext
     2661LIBS=$ac_check_lib_save_LIBS
     2662fi
     2663echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
     2664echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
     2665if test $ac_cv_lib_GL_main = yes; then
     2666  cat >>confdefs.h <<_ACEOF
     2667#define HAVE_LIBGL 1
     2668_ACEOF
     2669
     2670  LIBS="-lGL $LIBS"
     2671
     2672fi
     2673
     2674# FIXME: Replace `main' with a function in `-lGLU':
     2675
     2676echo "$as_me:$LINENO: checking for main in -lGLU" >&5
     2677echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
     2678if test "${ac_cv_lib_GLU_main+set}" = set; then
     2679  echo $ECHO_N "(cached) $ECHO_C" >&6
     2680else
     2681  ac_check_lib_save_LIBS=$LIBS
     2682LIBS="-lGLU  $LIBS"
     2683cat >conftest.$ac_ext <<_ACEOF
     2684/* confdefs.h.  */
     2685_ACEOF
     2686cat confdefs.h >>conftest.$ac_ext
     2687cat >>conftest.$ac_ext <<_ACEOF
     2688/* end confdefs.h.  */
     2689
     2690
     2691int
     2692main ()
     2693{
     2694main ();
     2695  ;
     2696  return 0;
     2697}
     2698_ACEOF
     2699rm -f conftest.$ac_objext conftest$ac_exeext
     2700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2701  (eval $ac_link) 2>conftest.er1
     2702  ac_status=$?
     2703  grep -v '^ *+' conftest.er1 >conftest.err
     2704  rm -f conftest.er1
     2705  cat conftest.err >&5
     2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2707  (exit $ac_status); } &&
     2708         { ac_try='test -z "$ac_c_werror_flag"
     2709                         || test ! -s conftest.err'
     2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2711  (eval $ac_try) 2>&5
     2712  ac_status=$?
     2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2714  (exit $ac_status); }; } &&
     2715         { ac_try='test -s conftest$ac_exeext'
     2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2717  (eval $ac_try) 2>&5
     2718  ac_status=$?
     2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2720  (exit $ac_status); }; }; then
     2721  ac_cv_lib_GLU_main=yes
     2722else
     2723  echo "$as_me: failed program was:" >&5
     2724sed 's/^/| /' conftest.$ac_ext >&5
     2725
     2726ac_cv_lib_GLU_main=no
     2727fi
     2728rm -f conftest.err conftest.$ac_objext \
     2729      conftest$ac_exeext conftest.$ac_ext
     2730LIBS=$ac_check_lib_save_LIBS
     2731fi
     2732echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
     2733echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
     2734if test $ac_cv_lib_GLU_main = yes; then
     2735  cat >>confdefs.h <<_ACEOF
     2736#define HAVE_LIBGLU 1
     2737_ACEOF
     2738
     2739  LIBS="-lGLU $LIBS"
     2740
     2741fi
     2742
     2743# FIXME: Replace `main' with a function in `-lOSMesa':
     2744
     2745echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
     2746echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
     2747if test "${ac_cv_lib_OSMesa_main+set}" = set; then
     2748  echo $ECHO_N "(cached) $ECHO_C" >&6
     2749else
     2750  ac_check_lib_save_LIBS=$LIBS
     2751LIBS="-lOSMesa  $LIBS"
     2752cat >conftest.$ac_ext <<_ACEOF
     2753/* confdefs.h.  */
     2754_ACEOF
     2755cat confdefs.h >>conftest.$ac_ext
     2756cat >>conftest.$ac_ext <<_ACEOF
     2757/* end confdefs.h.  */
     2758
     2759
     2760int
     2761main ()
     2762{
     2763main ();
     2764  ;
     2765  return 0;
     2766}
     2767_ACEOF
     2768rm -f conftest.$ac_objext conftest$ac_exeext
     2769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2770  (eval $ac_link) 2>conftest.er1
     2771  ac_status=$?
     2772  grep -v '^ *+' conftest.er1 >conftest.err
     2773  rm -f conftest.er1
     2774  cat conftest.err >&5
     2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2776  (exit $ac_status); } &&
     2777         { ac_try='test -z "$ac_c_werror_flag"
     2778                         || test ! -s conftest.err'
     2779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2780  (eval $ac_try) 2>&5
     2781  ac_status=$?
     2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2783  (exit $ac_status); }; } &&
     2784         { ac_try='test -s conftest$ac_exeext'
     2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2786  (eval $ac_try) 2>&5
     2787  ac_status=$?
     2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2789  (exit $ac_status); }; }; then
     2790  ac_cv_lib_OSMesa_main=yes
     2791else
     2792  echo "$as_me: failed program was:" >&5
     2793sed 's/^/| /' conftest.$ac_ext >&5
     2794
     2795ac_cv_lib_OSMesa_main=no
     2796fi
     2797rm -f conftest.err conftest.$ac_objext \
     2798      conftest$ac_exeext conftest.$ac_ext
     2799LIBS=$ac_check_lib_save_LIBS
     2800fi
     2801echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
     2802echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
     2803if test $ac_cv_lib_OSMesa_main = yes; then
     2804  cat >>confdefs.h <<_ACEOF
     2805#define HAVE_LIBOSMESA 1
     2806_ACEOF
     2807
     2808  LIBS="-lOSMesa $LIBS"
     2809
     2810fi
     2811
     2812# FIXME: Replace `main' with a function in `-lX11':
     2813
     2814echo "$as_me:$LINENO: checking for main in -lX11" >&5
     2815echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
     2816if test "${ac_cv_lib_X11_main+set}" = set; then
     2817  echo $ECHO_N "(cached) $ECHO_C" >&6
     2818else
     2819  ac_check_lib_save_LIBS=$LIBS
     2820LIBS="-lX11  $LIBS"
     2821cat >conftest.$ac_ext <<_ACEOF
     2822/* confdefs.h.  */
     2823_ACEOF
     2824cat confdefs.h >>conftest.$ac_ext
     2825cat >>conftest.$ac_ext <<_ACEOF
     2826/* end confdefs.h.  */
     2827
     2828
     2829int
     2830main ()
     2831{
     2832main ();
     2833  ;
     2834  return 0;
     2835}
     2836_ACEOF
     2837rm -f conftest.$ac_objext conftest$ac_exeext
     2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2839  (eval $ac_link) 2>conftest.er1
     2840  ac_status=$?
     2841  grep -v '^ *+' conftest.er1 >conftest.err
     2842  rm -f conftest.er1
     2843  cat conftest.err >&5
     2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2845  (exit $ac_status); } &&
     2846         { ac_try='test -z "$ac_c_werror_flag"
     2847                         || test ! -s conftest.err'
     2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2849  (eval $ac_try) 2>&5
     2850  ac_status=$?
     2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2852  (exit $ac_status); }; } &&
     2853         { ac_try='test -s conftest$ac_exeext'
     2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2855  (eval $ac_try) 2>&5
     2856  ac_status=$?
     2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2858  (exit $ac_status); }; }; then
     2859  ac_cv_lib_X11_main=yes
     2860else
     2861  echo "$as_me: failed program was:" >&5
     2862sed 's/^/| /' conftest.$ac_ext >&5
     2863
     2864ac_cv_lib_X11_main=no
     2865fi
     2866rm -f conftest.err conftest.$ac_objext \
     2867      conftest$ac_exeext conftest.$ac_ext
     2868LIBS=$ac_check_lib_save_LIBS
     2869fi
     2870echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
     2871echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
     2872if test $ac_cv_lib_X11_main = yes; then
     2873  cat >>confdefs.h <<_ACEOF
     2874#define HAVE_LIBX11 1
     2875_ACEOF
     2876
     2877  LIBS="-lX11 $LIBS"
     2878
     2879fi
     2880
     2881# FIXME: Replace `main' with a function in `-lXt':
     2882
     2883echo "$as_me:$LINENO: checking for main in -lXt" >&5
     2884echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
     2885if test "${ac_cv_lib_Xt_main+set}" = set; then
     2886  echo $ECHO_N "(cached) $ECHO_C" >&6
     2887else
     2888  ac_check_lib_save_LIBS=$LIBS
     2889LIBS="-lXt  $LIBS"
     2890cat >conftest.$ac_ext <<_ACEOF
     2891/* confdefs.h.  */
     2892_ACEOF
     2893cat confdefs.h >>conftest.$ac_ext
     2894cat >>conftest.$ac_ext <<_ACEOF
     2895/* end confdefs.h.  */
     2896
     2897
     2898int
     2899main ()
     2900{
     2901main ();
     2902  ;
     2903  return 0;
     2904}
     2905_ACEOF
     2906rm -f conftest.$ac_objext conftest$ac_exeext
     2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2908  (eval $ac_link) 2>conftest.er1
     2909  ac_status=$?
     2910  grep -v '^ *+' conftest.er1 >conftest.err
     2911  rm -f conftest.er1
     2912  cat conftest.err >&5
     2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2914  (exit $ac_status); } &&
     2915         { ac_try='test -z "$ac_c_werror_flag"
     2916                         || test ! -s conftest.err'
     2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2918  (eval $ac_try) 2>&5
     2919  ac_status=$?
     2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2921  (exit $ac_status); }; } &&
     2922         { ac_try='test -s conftest$ac_exeext'
     2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2924  (eval $ac_try) 2>&5
     2925  ac_status=$?
     2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2927  (exit $ac_status); }; }; then
     2928  ac_cv_lib_Xt_main=yes
     2929else
     2930  echo "$as_me: failed program was:" >&5
     2931sed 's/^/| /' conftest.$ac_ext >&5
     2932
     2933ac_cv_lib_Xt_main=no
     2934fi
     2935rm -f conftest.err conftest.$ac_objext \
     2936      conftest$ac_exeext conftest.$ac_ext
     2937LIBS=$ac_check_lib_save_LIBS
     2938fi
     2939echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
     2940echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
     2941if test $ac_cv_lib_Xt_main = yes; then
     2942  cat >>confdefs.h <<_ACEOF
     2943#define HAVE_LIBXT 1
     2944_ACEOF
     2945
     2946  LIBS="-lXt $LIBS"
     2947
     2948fi
     2949
     2950# FIXME: Replace `main' with a function in `-lglut':
     2951
     2952echo "$as_me:$LINENO: checking for main in -lglut" >&5
     2953echo $ECHO_N "checking for main in -lglut... $ECHO_C" >&6
     2954if test "${ac_cv_lib_glut_main+set}" = set; then
     2955  echo $ECHO_N "(cached) $ECHO_C" >&6
     2956else
     2957  ac_check_lib_save_LIBS=$LIBS
     2958LIBS="-lglut  $LIBS"
     2959cat >conftest.$ac_ext <<_ACEOF
     2960/* confdefs.h.  */
     2961_ACEOF
     2962cat confdefs.h >>conftest.$ac_ext
     2963cat >>conftest.$ac_ext <<_ACEOF
     2964/* end confdefs.h.  */
     2965
     2966
     2967int
     2968main ()
     2969{
     2970main ();
     2971  ;
     2972  return 0;
     2973}
     2974_ACEOF
     2975rm -f conftest.$ac_objext conftest$ac_exeext
     2976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2977  (eval $ac_link) 2>conftest.er1
     2978  ac_status=$?
     2979  grep -v '^ *+' conftest.er1 >conftest.err
     2980  rm -f conftest.er1
     2981  cat conftest.err >&5
     2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2983  (exit $ac_status); } &&
     2984         { ac_try='test -z "$ac_c_werror_flag"
     2985                         || test ! -s conftest.err'
     2986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2987  (eval $ac_try) 2>&5
     2988  ac_status=$?
     2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2990  (exit $ac_status); }; } &&
     2991         { ac_try='test -s conftest$ac_exeext'
     2992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2993  (eval $ac_try) 2>&5
     2994  ac_status=$?
     2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2996  (exit $ac_status); }; }; then
     2997  ac_cv_lib_glut_main=yes
     2998else
     2999  echo "$as_me: failed program was:" >&5
     3000sed 's/^/| /' conftest.$ac_ext >&5
     3001
     3002ac_cv_lib_glut_main=no
     3003fi
     3004rm -f conftest.err conftest.$ac_objext \
     3005      conftest$ac_exeext conftest.$ac_ext
     3006LIBS=$ac_check_lib_save_LIBS
     3007fi
     3008echo "$as_me:$LINENO: result: $ac_cv_lib_glut_main" >&5
     3009echo "${ECHO_T}$ac_cv_lib_glut_main" >&6
     3010if test $ac_cv_lib_glut_main = yes; then
     3011  cat >>confdefs.h <<_ACEOF
     3012#define HAVE_LIBGLUT 1
     3013_ACEOF
     3014
     3015  LIBS="-lglut $LIBS"
     3016
     3017fi
     3018
     3019# FIXME: Replace `main' with a function in `-lm':
     3020
     3021echo "$as_me:$LINENO: checking for main in -lm" >&5
     3022echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     3023if test "${ac_cv_lib_m_main+set}" = set; then
     3024  echo $ECHO_N "(cached) $ECHO_C" >&6
     3025else
     3026  ac_check_lib_save_LIBS=$LIBS
     3027LIBS="-lm  $LIBS"
     3028cat >conftest.$ac_ext <<_ACEOF
     3029/* confdefs.h.  */
     3030_ACEOF
     3031cat confdefs.h >>conftest.$ac_ext
     3032cat >>conftest.$ac_ext <<_ACEOF
     3033/* end confdefs.h.  */
     3034
     3035
     3036int
     3037main ()
     3038{
     3039main ();
     3040  ;
     3041  return 0;
     3042}
     3043_ACEOF
     3044rm -f conftest.$ac_objext conftest$ac_exeext
     3045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3046  (eval $ac_link) 2>conftest.er1
     3047  ac_status=$?
     3048  grep -v '^ *+' conftest.er1 >conftest.err
     3049  rm -f conftest.er1
     3050  cat conftest.err >&5
     3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3052  (exit $ac_status); } &&
     3053         { ac_try='test -z "$ac_c_werror_flag"
     3054                         || test ! -s conftest.err'
     3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3056  (eval $ac_try) 2>&5
     3057  ac_status=$?
     3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3059  (exit $ac_status); }; } &&
     3060         { ac_try='test -s conftest$ac_exeext'
     3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3062  (eval $ac_try) 2>&5
     3063  ac_status=$?
     3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3065  (exit $ac_status); }; }; then
     3066  ac_cv_lib_m_main=yes
     3067else
     3068  echo "$as_me: failed program was:" >&5
     3069sed 's/^/| /' conftest.$ac_ext >&5
     3070
     3071ac_cv_lib_m_main=no
     3072fi
     3073rm -f conftest.err conftest.$ac_objext \
     3074      conftest$ac_exeext conftest.$ac_ext
     3075LIBS=$ac_check_lib_save_LIBS
     3076fi
     3077echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     3078echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     3079if test $ac_cv_lib_m_main = yes; then
     3080  cat >>confdefs.h <<_ACEOF
     3081#define HAVE_LIBM 1
     3082_ACEOF
     3083
     3084  LIBS="-lm $LIBS"
     3085
     3086fi
     3087
     3088
     3089# Checks for header files.
     3090ac_ext=c
     3091ac_cpp='$CPP $CPPFLAGS'
     3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3094ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3095echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3096echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     3097# On Suns, sometimes $CPP names a directory.
     3098if test -n "$CPP" && test -d "$CPP"; then
     3099  CPP=
     3100fi
     3101if test -z "$CPP"; then
     3102  if test "${ac_cv_prog_CPP+set}" = set; then
     3103  echo $ECHO_N "(cached) $ECHO_C" >&6
     3104else
     3105      # Double quotes because CPP needs to be expanded
     3106    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3107    do
     3108      ac_preproc_ok=false
     3109for ac_c_preproc_warn_flag in '' yes
     3110do
     3111  # Use a header file that comes with gcc, so configuring glibc
     3112  # with a fresh cross-compiler works.
     3113  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3114  # <limits.h> exists even on freestanding compilers.
     3115  # On the NeXT, cc -E runs the code through the compiler's parser,
     3116  # not just through cpp. "Syntax error" is here to catch this case.
     3117  cat >conftest.$ac_ext <<_ACEOF
     3118/* confdefs.h.  */
     3119_ACEOF
     3120cat confdefs.h >>conftest.$ac_ext
     3121cat >>conftest.$ac_ext <<_ACEOF
     3122/* end confdefs.h.  */
     3123#ifdef __STDC__
     3124# include <limits.h>
     3125#else
     3126# include <assert.h>
     3127#endif
     3128                     Syntax error
     3129_ACEOF
     3130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3132  ac_status=$?
     3133  grep -v '^ *+' conftest.er1 >conftest.err
     3134  rm -f conftest.er1
     3135  cat conftest.err >&5
     3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3137  (exit $ac_status); } >/dev/null; then
     3138  if test -s conftest.err; then
     3139    ac_cpp_err=$ac_c_preproc_warn_flag
     3140    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3141  else
     3142    ac_cpp_err=
     3143  fi
     3144else
     3145  ac_cpp_err=yes
     3146fi
     3147if test -z "$ac_cpp_err"; then
     3148  :
     3149else
     3150  echo "$as_me: failed program was:" >&5
     3151sed 's/^/| /' conftest.$ac_ext >&5
     3152
     3153  # Broken: fails on valid input.
     3154continue
     3155fi
     3156rm -f conftest.err conftest.$ac_ext
     3157
     3158  # OK, works on sane cases.  Now check whether non-existent headers
     3159  # can be detected and how.
     3160  cat >conftest.$ac_ext <<_ACEOF
     3161/* confdefs.h.  */
     3162_ACEOF
     3163cat confdefs.h >>conftest.$ac_ext
     3164cat >>conftest.$ac_ext <<_ACEOF
     3165/* end confdefs.h.  */
     3166#include <ac_nonexistent.h>
     3167_ACEOF
     3168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3169  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3170  ac_status=$?
     3171  grep -v '^ *+' conftest.er1 >conftest.err
     3172  rm -f conftest.er1
     3173  cat conftest.err >&5
     3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3175  (exit $ac_status); } >/dev/null; then
     3176  if test -s conftest.err; then
     3177    ac_cpp_err=$ac_c_preproc_warn_flag
     3178    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3179  else
     3180    ac_cpp_err=
     3181  fi
     3182else
     3183  ac_cpp_err=yes
     3184fi
     3185if test -z "$ac_cpp_err"; then
     3186  # Broken: success on invalid input.
     3187continue
     3188else
     3189  echo "$as_me: failed program was:" >&5
     3190sed 's/^/| /' conftest.$ac_ext >&5
     3191
     3192  # Passes both tests.
     3193ac_preproc_ok=:
     3194break
     3195fi
     3196rm -f conftest.err conftest.$ac_ext
     3197
     3198done
     3199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3200rm -f conftest.err conftest.$ac_ext
     3201if $ac_preproc_ok; then
     3202  break
     3203fi
     3204
     3205    done
     3206    ac_cv_prog_CPP=$CPP
     3207
     3208fi
     3209  CPP=$ac_cv_prog_CPP
     3210else
     3211  ac_cv_prog_CPP=$CPP
     3212fi
     3213echo "$as_me:$LINENO: result: $CPP" >&5
     3214echo "${ECHO_T}$CPP" >&6
     3215ac_preproc_ok=false
     3216for ac_c_preproc_warn_flag in '' yes
     3217do
     3218  # Use a header file that comes with gcc, so configuring glibc
     3219  # with a fresh cross-compiler works.
     3220  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3221  # <limits.h> exists even on freestanding compilers.
     3222  # On the NeXT, cc -E runs the code through the compiler's parser,
     3223  # not just through cpp. "Syntax error" is here to catch this case.
     3224  cat >conftest.$ac_ext <<_ACEOF
     3225/* confdefs.h.  */
     3226_ACEOF
     3227cat confdefs.h >>conftest.$ac_ext
     3228cat >>conftest.$ac_ext <<_ACEOF
     3229/* end confdefs.h.  */
     3230#ifdef __STDC__
     3231# include <limits.h>
     3232#else
     3233# include <assert.h>
     3234#endif
     3235                     Syntax error
     3236_ACEOF
     3237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3238  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3239  ac_status=$?
     3240  grep -v '^ *+' conftest.er1 >conftest.err
     3241  rm -f conftest.er1
     3242  cat conftest.err >&5
     3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3244  (exit $ac_status); } >/dev/null; then
     3245  if test -s conftest.err; then
     3246    ac_cpp_err=$ac_c_preproc_warn_flag
     3247    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3248  else
     3249    ac_cpp_err=
     3250  fi
     3251else
     3252  ac_cpp_err=yes
     3253fi
     3254if test -z "$ac_cpp_err"; then
     3255  :
     3256else
     3257  echo "$as_me: failed program was:" >&5
     3258sed 's/^/| /' conftest.$ac_ext >&5
     3259
     3260  # Broken: fails on valid input.
     3261continue
     3262fi
     3263rm -f conftest.err conftest.$ac_ext
     3264
     3265  # OK, works on sane cases.  Now check whether non-existent headers
     3266  # can be detected and how.
     3267  cat >conftest.$ac_ext <<_ACEOF
     3268/* confdefs.h.  */
     3269_ACEOF
     3270cat confdefs.h >>conftest.$ac_ext
     3271cat >>conftest.$ac_ext <<_ACEOF
     3272/* end confdefs.h.  */
     3273#include <ac_nonexistent.h>
     3274_ACEOF
     3275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3276  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3277  ac_status=$?
     3278  grep -v '^ *+' conftest.er1 >conftest.err
     3279  rm -f conftest.er1
     3280  cat conftest.err >&5
     3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3282  (exit $ac_status); } >/dev/null; then
     3283  if test -s conftest.err; then
     3284    ac_cpp_err=$ac_c_preproc_warn_flag
     3285    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3286  else
     3287    ac_cpp_err=
     3288  fi
     3289else
     3290  ac_cpp_err=yes
     3291fi
     3292if test -z "$ac_cpp_err"; then
     3293  # Broken: success on invalid input.
     3294continue
     3295else
     3296  echo "$as_me: failed program was:" >&5
     3297sed 's/^/| /' conftest.$ac_ext >&5
     3298
     3299  # Passes both tests.
     3300ac_preproc_ok=:
     3301break
     3302fi
     3303rm -f conftest.err conftest.$ac_ext
     3304
     3305done
     3306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3307rm -f conftest.err conftest.$ac_ext
     3308if $ac_preproc_ok; then
     3309  :
     3310else
     3311  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3312See \`config.log' for more details." >&5
     3313echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3314See \`config.log' for more details." >&2;}
     3315   { (exit 1); exit 1; }; }
     3316fi
     3317
     3318ac_ext=c
     3319ac_cpp='$CPP $CPPFLAGS'
     3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3322ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3323
     3324
     3325echo "$as_me:$LINENO: checking for egrep" >&5
     3326echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3327if test "${ac_cv_prog_egrep+set}" = set; then
     3328  echo $ECHO_N "(cached) $ECHO_C" >&6
     3329else
     3330  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3331    then ac_cv_prog_egrep='grep -E'
     3332    else ac_cv_prog_egrep='egrep'
     3333    fi
     3334fi
     3335echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3336echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3337 EGREP=$ac_cv_prog_egrep
     3338
     3339
     3340# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
     3341# for constant arguments.  Useless!
     3342echo "$as_me:$LINENO: checking for working alloca.h" >&5
     3343echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
     3344if test "${ac_cv_working_alloca_h+set}" = set; then
     3345  echo $ECHO_N "(cached) $ECHO_C" >&6
     3346else
     3347  cat >conftest.$ac_ext <<_ACEOF
     3348/* confdefs.h.  */
     3349_ACEOF
     3350cat confdefs.h >>conftest.$ac_ext
     3351cat >>conftest.$ac_ext <<_ACEOF
     3352/* end confdefs.h.  */
     3353#include <alloca.h>
     3354int
     3355main ()
     3356{
     3357char *p = (char *) alloca (2 * sizeof (int));
     3358  ;
     3359  return 0;
     3360}
     3361_ACEOF
     3362rm -f conftest.$ac_objext conftest$ac_exeext
     3363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3364  (eval $ac_link) 2>conftest.er1
     3365  ac_status=$?
     3366  grep -v '^ *+' conftest.er1 >conftest.err
     3367  rm -f conftest.er1
     3368  cat conftest.err >&5
     3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3370  (exit $ac_status); } &&
     3371         { ac_try='test -z "$ac_c_werror_flag"
     3372                         || test ! -s conftest.err'
     3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3374  (eval $ac_try) 2>&5
     3375  ac_status=$?
     3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3377  (exit $ac_status); }; } &&
     3378         { ac_try='test -s conftest$ac_exeext'
     3379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3380  (eval $ac_try) 2>&5
     3381  ac_status=$?
     3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3383  (exit $ac_status); }; }; then
     3384  ac_cv_working_alloca_h=yes
     3385else
     3386  echo "$as_me: failed program was:" >&5
     3387sed 's/^/| /' conftest.$ac_ext >&5
     3388
     3389ac_cv_working_alloca_h=no
     3390fi
     3391rm -f conftest.err conftest.$ac_objext \
     3392      conftest$ac_exeext conftest.$ac_ext
     3393fi
     3394echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
     3395echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
     3396if test $ac_cv_working_alloca_h = yes; then
     3397
     3398cat >>confdefs.h <<\_ACEOF
     3399#define HAVE_ALLOCA_H 1
     3400_ACEOF
     3401
     3402fi
     3403
     3404echo "$as_me:$LINENO: checking for alloca" >&5
     3405echo $ECHO_N "checking for alloca... $ECHO_C" >&6
     3406if test "${ac_cv_func_alloca_works+set}" = set; then
     3407  echo $ECHO_N "(cached) $ECHO_C" >&6
     3408else
     3409  cat >conftest.$ac_ext <<_ACEOF
     3410/* confdefs.h.  */
     3411_ACEOF
     3412cat confdefs.h >>conftest.$ac_ext
     3413cat >>conftest.$ac_ext <<_ACEOF
     3414/* end confdefs.h.  */
     3415#ifdef __GNUC__
     3416# define alloca __builtin_alloca
     3417#else
     3418# ifdef _MSC_VER
     3419#  include <malloc.h>
     3420#  define alloca _alloca
     3421# else
     3422#  if HAVE_ALLOCA_H
     3423#   include <alloca.h>
     3424#  else
     3425#   ifdef _AIX
     3426 #pragma alloca
     3427#   else
     3428#    ifndef alloca /* predefined by HP cc +Olibcalls */
     3429char *alloca ();
     3430#    endif
     3431#   endif
     3432#  endif
     3433# endif
     3434#endif
     3435
     3436int
     3437main ()
     3438{
     3439char *p = (char *) alloca (1);
     3440  ;
     3441  return 0;
     3442}
     3443_ACEOF
     3444rm -f conftest.$ac_objext conftest$ac_exeext
     3445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3446  (eval $ac_link) 2>conftest.er1
     3447  ac_status=$?
     3448  grep -v '^ *+' conftest.er1 >conftest.err
     3449  rm -f conftest.er1
     3450  cat conftest.err >&5
     3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3452  (exit $ac_status); } &&
     3453         { ac_try='test -z "$ac_c_werror_flag"
     3454                         || test ! -s conftest.err'
     3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3456  (eval $ac_try) 2>&5
     3457  ac_status=$?
     3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3459  (exit $ac_status); }; } &&
     3460         { ac_try='test -s conftest$ac_exeext'
     3461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3462  (eval $ac_try) 2>&5
     3463  ac_status=$?
     3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3465  (exit $ac_status); }; }; then
     3466  ac_cv_func_alloca_works=yes
     3467else
     3468  echo "$as_me: failed program was:" >&5
     3469sed 's/^/| /' conftest.$ac_ext >&5
     3470
     3471ac_cv_func_alloca_works=no
     3472fi
     3473rm -f conftest.err conftest.$ac_objext \
     3474      conftest$ac_exeext conftest.$ac_ext
     3475fi
     3476echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
     3477echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
     3478
     3479if test $ac_cv_func_alloca_works = yes; then
     3480
     3481cat >>confdefs.h <<\_ACEOF
     3482#define HAVE_ALLOCA 1
     3483_ACEOF
     3484
     3485else
     3486  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
     3487# that cause trouble.  Some versions do not even contain alloca or
     3488# contain a buggy version.  If you still want to use their alloca,
     3489# use ar to extract alloca.o from them instead of compiling alloca.c.
     3490
     3491ALLOCA=alloca.$ac_objext
     3492
     3493cat >>confdefs.h <<\_ACEOF
     3494#define C_ALLOCA 1
     3495_ACEOF
     3496
     3497
     3498echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
     3499echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
     3500if test "${ac_cv_os_cray+set}" = set; then
     3501  echo $ECHO_N "(cached) $ECHO_C" >&6
     3502else
     3503  cat >conftest.$ac_ext <<_ACEOF
     3504/* confdefs.h.  */
     3505_ACEOF
     3506cat confdefs.h >>conftest.$ac_ext
     3507cat >>conftest.$ac_ext <<_ACEOF
     3508/* end confdefs.h.  */
     3509#if defined(CRAY) && ! defined(CRAY2)
     3510webecray
     3511#else
     3512wenotbecray
     3513#endif
     3514
     3515_ACEOF
     3516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3517  $EGREP "webecray" >/dev/null 2>&1; then
     3518  ac_cv_os_cray=yes
     3519else
     3520  ac_cv_os_cray=no
     3521fi
     3522rm -f conftest*
     3523
     3524fi
     3525echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
     3526echo "${ECHO_T}$ac_cv_os_cray" >&6
     3527if test $ac_cv_os_cray = yes; then
     3528  for ac_func in _getb67 GETB67 getb67; do
     3529    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     3530echo "$as_me:$LINENO: checking for $ac_func" >&5
     3531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     3532if eval "test \"\${$as_ac_var+set}\" = set"; then
     3533  echo $ECHO_N "(cached) $ECHO_C" >&6
     3534else
     3535  cat >conftest.$ac_ext <<_ACEOF
     3536/* confdefs.h.  */
     3537_ACEOF
     3538cat confdefs.h >>conftest.$ac_ext
     3539cat >>conftest.$ac_ext <<_ACEOF
     3540/* end confdefs.h.  */
     3541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     3542   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     3543#define $ac_func innocuous_$ac_func
     3544
     3545/* System header to define __stub macros and hopefully few prototypes,
     3546    which can conflict with char $ac_func (); below.
     3547    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3548    <limits.h> exists even on freestanding compilers.  */
     3549
     3550#ifdef __STDC__
     3551# include <limits.h>
     3552#else
     3553# include <assert.h>
     3554#endif
     3555
     3556#undef $ac_func
     3557
     3558/* Override any gcc2 internal prototype to avoid an error.  */
     3559#ifdef __cplusplus
     3560extern "C"
     3561{
     3562#endif
     3563/* We use char because int might match the return type of a gcc2
     3564   builtin and then its argument prototype would still apply.  */
     3565char $ac_func ();
     3566/* The GNU C library defines this for functions which it implements
     3567    to always fail with ENOSYS.  Some functions are actually named
     3568    something starting with __ and the normal name is an alias.  */
     3569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     3570choke me
     3571#else
     3572char (*f) () = $ac_func;
     3573#endif
     3574#ifdef __cplusplus
     3575}
     3576#endif
     3577
     3578int
     3579main ()
     3580{
     3581return f != $ac_func;
     3582  ;
     3583  return 0;
     3584}
     3585_ACEOF
     3586rm -f conftest.$ac_objext conftest$ac_exeext
     3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3588  (eval $ac_link) 2>conftest.er1
     3589  ac_status=$?
     3590  grep -v '^ *+' conftest.er1 >conftest.err
     3591  rm -f conftest.er1
     3592  cat conftest.err >&5
     3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3594  (exit $ac_status); } &&
     3595         { ac_try='test -z "$ac_c_werror_flag"
     3596                         || test ! -s conftest.err'
     3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3598  (eval $ac_try) 2>&5
     3599  ac_status=$?
     3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3601  (exit $ac_status); }; } &&
     3602         { ac_try='test -s conftest$ac_exeext'
     3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3604  (eval $ac_try) 2>&5
     3605  ac_status=$?
     3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3607  (exit $ac_status); }; }; then
     3608  eval "$as_ac_var=yes"
     3609else
     3610  echo "$as_me: failed program was:" >&5
     3611sed 's/^/| /' conftest.$ac_ext >&5
     3612
     3613eval "$as_ac_var=no"
     3614fi
     3615rm -f conftest.err conftest.$ac_objext \
     3616      conftest$ac_exeext conftest.$ac_ext
     3617fi
     3618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     3619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     3620if test `eval echo '${'$as_ac_var'}'` = yes; then
     3621
     3622cat >>confdefs.h <<_ACEOF
     3623#define CRAY_STACKSEG_END $ac_func
     3624_ACEOF
     3625
     3626    break
     3627fi
     3628
     3629  done
     3630fi
     3631
     3632echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
     3633echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
     3634if test "${ac_cv_c_stack_direction+set}" = set; then
     3635  echo $ECHO_N "(cached) $ECHO_C" >&6
     3636else
     3637  if test "$cross_compiling" = yes; then
     3638  ac_cv_c_stack_direction=0
     3639else
     3640  cat >conftest.$ac_ext <<_ACEOF
     3641/* confdefs.h.  */
     3642_ACEOF
     3643cat confdefs.h >>conftest.$ac_ext
     3644cat >>conftest.$ac_ext <<_ACEOF
     3645/* end confdefs.h.  */
     3646int
     3647find_stack_direction ()
     3648{
     3649  static char *addr = 0;
     3650  auto char dummy;
     3651  if (addr == 0)
     3652    {
     3653      addr = &dummy;
     3654      return find_stack_direction ();
     3655    }
     3656  else
     3657    return (&dummy > addr) ? 1 : -1;
     3658}
     3659
     3660int
     3661main ()
     3662{
     3663  exit (find_stack_direction () < 0);
     3664}
     3665_ACEOF
     3666rm -f conftest$ac_exeext
     3667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3668  (eval $ac_link) 2>&5
     3669  ac_status=$?
     3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3671  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3673  (eval $ac_try) 2>&5
     3674  ac_status=$?
     3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3676  (exit $ac_status); }; }; then
     3677  ac_cv_c_stack_direction=1
     3678else
     3679  echo "$as_me: program exited with status $ac_status" >&5
     3680echo "$as_me: failed program was:" >&5
     3681sed 's/^/| /' conftest.$ac_ext >&5
     3682
     3683( exit $ac_status )
     3684ac_cv_c_stack_direction=-1
     3685fi
     3686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3687fi
     3688fi
     3689echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
     3690echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
     3691
     3692cat >>confdefs.h <<_ACEOF
     3693#define STACK_DIRECTION $ac_cv_c_stack_direction
     3694_ACEOF
     3695
     3696
     3697fi
     3698
     3699
     3700
     3701
     3702
     3703
     3704ac_header_dirent=no
     3705for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
     3706  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
     3707echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
     3708echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
     3709if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3710  echo $ECHO_N "(cached) $ECHO_C" >&6
     3711else
     3712  cat >conftest.$ac_ext <<_ACEOF
     3713/* confdefs.h.  */
     3714_ACEOF
     3715cat confdefs.h >>conftest.$ac_ext
     3716cat >>conftest.$ac_ext <<_ACEOF
     3717/* end confdefs.h.  */
     3718#include <sys/types.h>
     3719#include <$ac_hdr>
     3720
     3721int
     3722main ()
     3723{
     3724if ((DIR *) 0)
     3725return 0;
     3726  ;
     3727  return 0;
     3728}
     3729_ACEOF
     3730rm -f conftest.$ac_objext
     3731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3732  (eval $ac_compile) 2>conftest.er1
     3733  ac_status=$?
     3734  grep -v '^ *+' conftest.er1 >conftest.err
     3735  rm -f conftest.er1
     3736  cat conftest.err >&5
     3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3738  (exit $ac_status); } &&
     3739         { ac_try='test -z "$ac_c_werror_flag"
     3740                         || test ! -s conftest.err'
     3741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3742  (eval $ac_try) 2>&5
     3743  ac_status=$?
     3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3745  (exit $ac_status); }; } &&
     3746         { ac_try='test -s conftest.$ac_objext'
     3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3748  (eval $ac_try) 2>&5
     3749  ac_status=$?
     3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3751  (exit $ac_status); }; }; then
     3752  eval "$as_ac_Header=yes"
     3753else
     3754  echo "$as_me: failed program was:" >&5
     3755sed 's/^/| /' conftest.$ac_ext >&5
     3756
     3757eval "$as_ac_Header=no"
     3758fi
     3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3760fi
     3761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3763if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3764  cat >>confdefs.h <<_ACEOF
     3765#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     3766_ACEOF
     3767
     3768ac_header_dirent=$ac_hdr; break
     3769fi
     3770
     3771done
     3772# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
     3773if test $ac_header_dirent = dirent.h; then
     3774  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     3775echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     3776if test "${ac_cv_search_opendir+set}" = set; then
     3777  echo $ECHO_N "(cached) $ECHO_C" >&6
     3778else
     3779  ac_func_search_save_LIBS=$LIBS
     3780ac_cv_search_opendir=no
     3781cat >conftest.$ac_ext <<_ACEOF
     3782/* confdefs.h.  */
     3783_ACEOF
     3784cat confdefs.h >>conftest.$ac_ext
     3785cat >>conftest.$ac_ext <<_ACEOF
     3786/* end confdefs.h.  */
     3787
     3788/* Override any gcc2 internal prototype to avoid an error.  */
     3789#ifdef __cplusplus
     3790extern "C"
     3791#endif
     3792/* We use char because int might match the return type of a gcc2
     3793   builtin and then its argument prototype would still apply.  */
     3794char opendir ();
     3795int
     3796main ()
     3797{
     3798opendir ();
     3799  ;
     3800  return 0;
     3801}
     3802_ACEOF
     3803rm -f conftest.$ac_objext conftest$ac_exeext
     3804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3805  (eval $ac_link) 2>conftest.er1
     3806  ac_status=$?
     3807  grep -v '^ *+' conftest.er1 >conftest.err
     3808  rm -f conftest.er1
     3809  cat conftest.err >&5
     3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3811  (exit $ac_status); } &&
     3812         { ac_try='test -z "$ac_c_werror_flag"
     3813                         || test ! -s conftest.err'
     3814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3815  (eval $ac_try) 2>&5
     3816  ac_status=$?
     3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3818  (exit $ac_status); }; } &&
     3819         { ac_try='test -s conftest$ac_exeext'
     3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3821  (eval $ac_try) 2>&5
     3822  ac_status=$?
     3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3824  (exit $ac_status); }; }; then
     3825  ac_cv_search_opendir="none required"
     3826else
     3827  echo "$as_me: failed program was:" >&5
     3828sed 's/^/| /' conftest.$ac_ext >&5
     3829
     3830fi
     3831rm -f conftest.err conftest.$ac_objext \
     3832      conftest$ac_exeext conftest.$ac_ext
     3833if test "$ac_cv_search_opendir" = no; then
     3834  for ac_lib in dir; do
     3835    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3836    cat >conftest.$ac_ext <<_ACEOF
     3837/* confdefs.h.  */
     3838_ACEOF
     3839cat confdefs.h >>conftest.$ac_ext
     3840cat >>conftest.$ac_ext <<_ACEOF
     3841/* end confdefs.h.  */
     3842
     3843/* Override any gcc2 internal prototype to avoid an error.  */
     3844#ifdef __cplusplus
     3845extern "C"
     3846#endif
     3847/* We use char because int might match the return type of a gcc2
     3848   builtin and then its argument prototype would still apply.  */
     3849char opendir ();
     3850int
     3851main ()
     3852{
     3853opendir ();
     3854  ;
     3855  return 0;
     3856}
     3857_ACEOF
     3858rm -f conftest.$ac_objext conftest$ac_exeext
     3859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3860  (eval $ac_link) 2>conftest.er1
     3861  ac_status=$?
     3862  grep -v '^ *+' conftest.er1 >conftest.err
     3863  rm -f conftest.er1
     3864  cat conftest.err >&5
     3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3866  (exit $ac_status); } &&
     3867         { ac_try='test -z "$ac_c_werror_flag"
     3868                         || test ! -s conftest.err'
     3869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3870  (eval $ac_try) 2>&5
     3871  ac_status=$?
     3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3873  (exit $ac_status); }; } &&
     3874         { ac_try='test -s conftest$ac_exeext'
     3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3876  (eval $ac_try) 2>&5
     3877  ac_status=$?
     3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3879  (exit $ac_status); }; }; then
     3880  ac_cv_search_opendir="-l$ac_lib"
     3881break
     3882else
     3883  echo "$as_me: failed program was:" >&5
     3884sed 's/^/| /' conftest.$ac_ext >&5
     3885
     3886fi
     3887rm -f conftest.err conftest.$ac_objext \
     3888      conftest$ac_exeext conftest.$ac_ext
     3889  done
     3890fi
     3891LIBS=$ac_func_search_save_LIBS
     3892fi
     3893echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     3894echo "${ECHO_T}$ac_cv_search_opendir" >&6
     3895if test "$ac_cv_search_opendir" != no; then
     3896  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     3897
     3898fi
     3899
     3900else
     3901  echo "$as_me:$LINENO: checking for library containing opendir" >&5
     3902echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
     3903if test "${ac_cv_search_opendir+set}" = set; then
     3904  echo $ECHO_N "(cached) $ECHO_C" >&6
     3905else
     3906  ac_func_search_save_LIBS=$LIBS
     3907ac_cv_search_opendir=no
     3908cat >conftest.$ac_ext <<_ACEOF
     3909/* confdefs.h.  */
     3910_ACEOF
     3911cat confdefs.h >>conftest.$ac_ext
     3912cat >>conftest.$ac_ext <<_ACEOF
     3913/* end confdefs.h.  */
     3914
     3915/* Override any gcc2 internal prototype to avoid an error.  */
     3916#ifdef __cplusplus
     3917extern "C"
     3918#endif
     3919/* We use char because int might match the return type of a gcc2
     3920   builtin and then its argument prototype would still apply.  */
     3921char opendir ();
     3922int
     3923main ()
     3924{
     3925opendir ();
     3926  ;
     3927  return 0;
     3928}
     3929_ACEOF
     3930rm -f conftest.$ac_objext conftest$ac_exeext
     3931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3932  (eval $ac_link) 2>conftest.er1
     3933  ac_status=$?
     3934  grep -v '^ *+' conftest.er1 >conftest.err
     3935  rm -f conftest.er1
     3936  cat conftest.err >&5
     3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3938  (exit $ac_status); } &&
     3939         { ac_try='test -z "$ac_c_werror_flag"
     3940                         || test ! -s conftest.err'
     3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3942  (eval $ac_try) 2>&5
     3943  ac_status=$?
     3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3945  (exit $ac_status); }; } &&
     3946         { ac_try='test -s conftest$ac_exeext'
     3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3948  (eval $ac_try) 2>&5
     3949  ac_status=$?
     3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3951  (exit $ac_status); }; }; then
     3952  ac_cv_search_opendir="none required"
     3953else
     3954  echo "$as_me: failed program was:" >&5
     3955sed 's/^/| /' conftest.$ac_ext >&5
     3956
     3957fi
     3958rm -f conftest.err conftest.$ac_objext \
     3959      conftest$ac_exeext conftest.$ac_ext
     3960if test "$ac_cv_search_opendir" = no; then
     3961  for ac_lib in x; do
     3962    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     3963    cat >conftest.$ac_ext <<_ACEOF
     3964/* confdefs.h.  */
     3965_ACEOF
     3966cat confdefs.h >>conftest.$ac_ext
     3967cat >>conftest.$ac_ext <<_ACEOF
     3968/* end confdefs.h.  */
     3969
     3970/* Override any gcc2 internal prototype to avoid an error.  */
     3971#ifdef __cplusplus
     3972extern "C"
     3973#endif
     3974/* We use char because int might match the return type of a gcc2
     3975   builtin and then its argument prototype would still apply.  */
     3976char opendir ();
     3977int
     3978main ()
     3979{
     3980opendir ();
     3981  ;
     3982  return 0;
     3983}
     3984_ACEOF
     3985rm -f conftest.$ac_objext conftest$ac_exeext
     3986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3987  (eval $ac_link) 2>conftest.er1
     3988  ac_status=$?
     3989  grep -v '^ *+' conftest.er1 >conftest.err
     3990  rm -f conftest.er1
     3991  cat conftest.err >&5
     3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3993  (exit $ac_status); } &&
     3994         { ac_try='test -z "$ac_c_werror_flag"
     3995                         || test ! -s conftest.err'
     3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3997  (eval $ac_try) 2>&5
     3998  ac_status=$?
     3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4000  (exit $ac_status); }; } &&
     4001         { ac_try='test -s conftest$ac_exeext'
     4002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4003  (eval $ac_try) 2>&5
     4004  ac_status=$?
     4005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4006  (exit $ac_status); }; }; then
     4007  ac_cv_search_opendir="-l$ac_lib"
     4008break
     4009else
     4010  echo "$as_me: failed program was:" >&5
     4011sed 's/^/| /' conftest.$ac_ext >&5
     4012
     4013fi
     4014rm -f conftest.err conftest.$ac_objext \
     4015      conftest$ac_exeext conftest.$ac_ext
     4016  done
     4017fi
     4018LIBS=$ac_func_search_save_LIBS
     4019fi
     4020echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
     4021echo "${ECHO_T}$ac_cv_search_opendir" >&6
     4022if test "$ac_cv_search_opendir" != no; then
     4023  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
     4024
     4025fi
     4026
     4027fi
     4028
     4029echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4030echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4031if test "${ac_cv_header_stdc+set}" = set; then
     4032  echo $ECHO_N "(cached) $ECHO_C" >&6
     4033else
     4034  cat >conftest.$ac_ext <<_ACEOF
     4035/* confdefs.h.  */
     4036_ACEOF
     4037cat confdefs.h >>conftest.$ac_ext
     4038cat >>conftest.$ac_ext <<_ACEOF
     4039/* end confdefs.h.  */
     4040#include <stdlib.h>
     4041#include <stdarg.h>
     4042#include <string.h>
     4043#include <float.h>
     4044
     4045int
     4046main ()
     4047{
     4048
     4049  ;
     4050  return 0;
     4051}
     4052_ACEOF
     4053rm -f conftest.$ac_objext
     4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4055  (eval $ac_compile) 2>conftest.er1
     4056  ac_status=$?
     4057  grep -v '^ *+' conftest.er1 >conftest.err
     4058  rm -f conftest.er1
     4059  cat conftest.err >&5
     4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4061  (exit $ac_status); } &&
     4062         { ac_try='test -z "$ac_c_werror_flag"
     4063                         || test ! -s conftest.err'
     4064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4065  (eval $ac_try) 2>&5
     4066  ac_status=$?
     4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4068  (exit $ac_status); }; } &&
     4069         { ac_try='test -s conftest.$ac_objext'
     4070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4071  (eval $ac_try) 2>&5
     4072  ac_status=$?
     4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4074  (exit $ac_status); }; }; then
     4075  ac_cv_header_stdc=yes
     4076else
     4077  echo "$as_me: failed program was:" >&5
     4078sed 's/^/| /' conftest.$ac_ext >&5
     4079
     4080ac_cv_header_stdc=no
     4081fi
     4082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4083
     4084if test $ac_cv_header_stdc = yes; then
     4085  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     4086  cat >conftest.$ac_ext <<_ACEOF
     4087/* confdefs.h.  */
     4088_ACEOF
     4089cat confdefs.h >>conftest.$ac_ext
     4090cat >>conftest.$ac_ext <<_ACEOF
     4091/* end confdefs.h.  */
     4092#include <string.h>
     4093
     4094_ACEOF
     4095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4096  $EGREP "memchr" >/dev/null 2>&1; then
     4097  :
     4098else
     4099  ac_cv_header_stdc=no
     4100fi
     4101rm -f conftest*
     4102
     4103fi
     4104
     4105if test $ac_cv_header_stdc = yes; then
     4106  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     4107  cat >conftest.$ac_ext <<_ACEOF
     4108/* confdefs.h.  */
     4109_ACEOF
     4110cat confdefs.h >>conftest.$ac_ext
     4111cat >>conftest.$ac_ext <<_ACEOF
     4112/* end confdefs.h.  */
     4113#include <stdlib.h>
     4114
     4115_ACEOF
     4116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4117  $EGREP "free" >/dev/null 2>&1; then
     4118  :
     4119else
     4120  ac_cv_header_stdc=no
     4121fi
     4122rm -f conftest*
     4123
     4124fi
     4125
     4126if test $ac_cv_header_stdc = yes; then
     4127  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     4128  if test "$cross_compiling" = yes; then
     4129  :
     4130else
     4131  cat >conftest.$ac_ext <<_ACEOF
     4132/* confdefs.h.  */
     4133_ACEOF
     4134cat confdefs.h >>conftest.$ac_ext
     4135cat >>conftest.$ac_ext <<_ACEOF
     4136/* end confdefs.h.  */
     4137#include <ctype.h>
     4138#if ((' ' & 0x0FF) == 0x020)
     4139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4141#else
     4142# define ISLOWER(c) \
     4143                   (('a' <= (c) && (c) <= 'i') \
     4144                     || ('j' <= (c) && (c) <= 'r') \
     4145                     || ('s' <= (c) && (c) <= 'z'))
     4146# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4147#endif
     4148
     4149#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     4150int
     4151main ()
     4152{
     4153  int i;
     4154  for (i = 0; i < 256; i++)
     4155    if (XOR (islower (i), ISLOWER (i))
     4156        || toupper (i) != TOUPPER (i))
     4157      exit(2);
     4158  exit (0);
     4159}
     4160_ACEOF
     4161rm -f conftest$ac_exeext
     4162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4163  (eval $ac_link) 2>&5
     4164  ac_status=$?
     4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4166  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4168  (eval $ac_try) 2>&5
     4169  ac_status=$?
     4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4171  (exit $ac_status); }; }; then
     4172  :
     4173else
     4174  echo "$as_me: program exited with status $ac_status" >&5
     4175echo "$as_me: failed program was:" >&5
     4176sed 's/^/| /' conftest.$ac_ext >&5
     4177
     4178( exit $ac_status )
     4179ac_cv_header_stdc=no
     4180fi
     4181rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4182fi
     4183fi
     4184fi
     4185echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4186echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4187if test $ac_cv_header_stdc = yes; then
     4188
     4189cat >>confdefs.h <<\_ACEOF
     4190#define STDC_HEADERS 1
     4191_ACEOF
     4192
     4193fi
     4194
     4195# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4196
     4197
     4198
     4199
     4200
     4201
     4202
     4203
     4204
     4205for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4206                  inttypes.h stdint.h unistd.h
     4207do
     4208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4209echo "$as_me:$LINENO: checking for $ac_header" >&5
     4210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4211if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4212  echo $ECHO_N "(cached) $ECHO_C" >&6
     4213else
     4214  cat >conftest.$ac_ext <<_ACEOF
     4215/* confdefs.h.  */
     4216_ACEOF
     4217cat confdefs.h >>conftest.$ac_ext
     4218cat >>conftest.$ac_ext <<_ACEOF
     4219/* end confdefs.h.  */
     4220$ac_includes_default
     4221
     4222#include <$ac_header>
     4223_ACEOF
     4224rm -f conftest.$ac_objext
     4225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4226  (eval $ac_compile) 2>conftest.er1
     4227  ac_status=$?
     4228  grep -v '^ *+' conftest.er1 >conftest.err
     4229  rm -f conftest.er1
     4230  cat conftest.err >&5
     4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4232  (exit $ac_status); } &&
     4233         { ac_try='test -z "$ac_c_werror_flag"
     4234                         || test ! -s conftest.err'
     4235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4236  (eval $ac_try) 2>&5
     4237  ac_status=$?
     4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4239  (exit $ac_status); }; } &&
     4240         { ac_try='test -s conftest.$ac_objext'
     4241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4242  (eval $ac_try) 2>&5
     4243  ac_status=$?
     4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4245  (exit $ac_status); }; }; then
     4246  eval "$as_ac_Header=yes"
     4247else
     4248  echo "$as_me: failed program was:" >&5
     4249sed 's/^/| /' conftest.$ac_ext >&5
     4250
     4251eval "$as_ac_Header=no"
     4252fi
     4253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4254fi
     4255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4257if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4258  cat >>confdefs.h <<_ACEOF
     4259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4260_ACEOF
     4261
     4262fi
     4263
     4264done
     4265
     4266
     4267echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
     4268echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
     4269if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
     4270  echo $ECHO_N "(cached) $ECHO_C" >&6
     4271else
     4272  cat >conftest.$ac_ext <<_ACEOF
     4273/* confdefs.h.  */
     4274_ACEOF
     4275cat confdefs.h >>conftest.$ac_ext
     4276cat >>conftest.$ac_ext <<_ACEOF
     4277/* end confdefs.h.  */
     4278#include <sys/types.h>
     4279int
     4280main ()
     4281{
     4282return makedev(0, 0);
     4283  ;
     4284  return 0;
     4285}
     4286_ACEOF
     4287rm -f conftest.$ac_objext conftest$ac_exeext
     4288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4289  (eval $ac_link) 2>conftest.er1
     4290  ac_status=$?
     4291  grep -v '^ *+' conftest.er1 >conftest.err
     4292  rm -f conftest.er1
     4293  cat conftest.err >&5
     4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4295  (exit $ac_status); } &&
     4296         { ac_try='test -z "$ac_c_werror_flag"
     4297                         || test ! -s conftest.err'
     4298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4299  (eval $ac_try) 2>&5
     4300  ac_status=$?
     4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4302  (exit $ac_status); }; } &&
     4303         { ac_try='test -s conftest$ac_exeext'
     4304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4305  (eval $ac_try) 2>&5
     4306  ac_status=$?
     4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4308  (exit $ac_status); }; }; then
     4309  ac_cv_header_sys_types_h_makedev=yes
     4310else
     4311  echo "$as_me: failed program was:" >&5
     4312sed 's/^/| /' conftest.$ac_ext >&5
     4313
     4314ac_cv_header_sys_types_h_makedev=no
     4315fi
     4316rm -f conftest.err conftest.$ac_objext \
     4317      conftest$ac_exeext conftest.$ac_ext
     4318
     4319fi
     4320echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
     4321echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
     4322
     4323if test $ac_cv_header_sys_types_h_makedev = no; then
     4324if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
     4325  echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
     4326echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
     4327if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
     4328  echo $ECHO_N "(cached) $ECHO_C" >&6
     4329fi
     4330echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
     4331echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
     4332else
     4333  # Is the header compilable?
     4334echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
     4335echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
     4336cat >conftest.$ac_ext <<_ACEOF
     4337/* confdefs.h.  */
     4338_ACEOF
     4339cat confdefs.h >>conftest.$ac_ext
     4340cat >>conftest.$ac_ext <<_ACEOF
     4341/* end confdefs.h.  */
     4342$ac_includes_default
     4343#include <sys/mkdev.h>
     4344_ACEOF
     4345rm -f conftest.$ac_objext
     4346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4347  (eval $ac_compile) 2>conftest.er1
     4348  ac_status=$?
     4349  grep -v '^ *+' conftest.er1 >conftest.err
     4350  rm -f conftest.er1
     4351  cat conftest.err >&5
     4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4353  (exit $ac_status); } &&
     4354         { ac_try='test -z "$ac_c_werror_flag"
     4355                         || test ! -s conftest.err'
     4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4357  (eval $ac_try) 2>&5
     4358  ac_status=$?
     4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4360  (exit $ac_status); }; } &&
     4361         { ac_try='test -s conftest.$ac_objext'
     4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4363  (eval $ac_try) 2>&5
     4364  ac_status=$?
     4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4366  (exit $ac_status); }; }; then
     4367  ac_header_compiler=yes
     4368else
     4369  echo "$as_me: failed program was:" >&5
     4370sed 's/^/| /' conftest.$ac_ext >&5
     4371
     4372ac_header_compiler=no
     4373fi
     4374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4376echo "${ECHO_T}$ac_header_compiler" >&6
     4377
     4378# Is the header present?
     4379echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
     4380echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
     4381cat >conftest.$ac_ext <<_ACEOF
     4382/* confdefs.h.  */
     4383_ACEOF
     4384cat confdefs.h >>conftest.$ac_ext
     4385cat >>conftest.$ac_ext <<_ACEOF
     4386/* end confdefs.h.  */
     4387#include <sys/mkdev.h>
     4388_ACEOF
     4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4390  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4391  ac_status=$?
     4392  grep -v '^ *+' conftest.er1 >conftest.err
     4393  rm -f conftest.er1
     4394  cat conftest.err >&5
     4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4396  (exit $ac_status); } >/dev/null; then
     4397  if test -s conftest.err; then
     4398    ac_cpp_err=$ac_c_preproc_warn_flag
     4399    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4400  else
     4401    ac_cpp_err=
     4402  fi
     4403else
     4404  ac_cpp_err=yes
     4405fi
     4406if test -z "$ac_cpp_err"; then
     4407  ac_header_preproc=yes
     4408else
     4409  echo "$as_me: failed program was:" >&5
     4410sed 's/^/| /' conftest.$ac_ext >&5
     4411
     4412  ac_header_preproc=no
     4413fi
     4414rm -f conftest.err conftest.$ac_ext
     4415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4416echo "${ECHO_T}$ac_header_preproc" >&6
     4417
     4418# So?  What about this header?
     4419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4420  yes:no: )
     4421    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4422echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4423    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
     4424echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
     4425    ac_header_preproc=yes
     4426    ;;
     4427  no:yes:* )
     4428    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
     4429echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
     4430    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
     4431echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
     4432    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
     4433echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
     4434    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
     4435echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4436    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
     4437echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
     4438    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
     4439echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
     4440    (
     4441      cat <<\_ASBOX
     4442## --------------------------------- ##
     4443## Report this to BUG-REPORT-ADDRESS ##
     4444## --------------------------------- ##
     4445_ASBOX
     4446    ) |
     4447      sed "s/^/$as_me: WARNING:     /" >&2
     4448    ;;
     4449esac
     4450echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
     4451echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
     4452if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
     4453  echo $ECHO_N "(cached) $ECHO_C" >&6
     4454else
     4455  ac_cv_header_sys_mkdev_h=$ac_header_preproc
     4456fi
     4457echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
     4458echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
     4459
     4460fi
     4461if test $ac_cv_header_sys_mkdev_h = yes; then
     4462
     4463cat >>confdefs.h <<\_ACEOF
     4464#define MAJOR_IN_MKDEV 1
     4465_ACEOF
     4466
     4467fi
     4468
     4469
     4470
     4471  if test $ac_cv_header_sys_mkdev_h = no; then
     4472    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
     4473  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
     4474echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
     4475if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
     4476  echo $ECHO_N "(cached) $ECHO_C" >&6
     4477fi
     4478echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
     4479echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
     4480else
     4481  # Is the header compilable?
     4482echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
     4483echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
     4484cat >conftest.$ac_ext <<_ACEOF
     4485/* confdefs.h.  */
     4486_ACEOF
     4487cat confdefs.h >>conftest.$ac_ext
     4488cat >>conftest.$ac_ext <<_ACEOF
     4489/* end confdefs.h.  */
     4490$ac_includes_default
     4491#include <sys/sysmacros.h>
     4492_ACEOF
     4493rm -f conftest.$ac_objext
     4494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4495  (eval $ac_compile) 2>conftest.er1
     4496  ac_status=$?
     4497  grep -v '^ *+' conftest.er1 >conftest.err
     4498  rm -f conftest.er1
     4499  cat conftest.err >&5
     4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4501  (exit $ac_status); } &&
     4502         { ac_try='test -z "$ac_c_werror_flag"
     4503                         || test ! -s conftest.err'
     4504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4505  (eval $ac_try) 2>&5
     4506  ac_status=$?
     4507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4508  (exit $ac_status); }; } &&
     4509         { ac_try='test -s conftest.$ac_objext'
     4510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4511  (eval $ac_try) 2>&5
     4512  ac_status=$?
     4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4514  (exit $ac_status); }; }; then
     4515  ac_header_compiler=yes
     4516else
     4517  echo "$as_me: failed program was:" >&5
     4518sed 's/^/| /' conftest.$ac_ext >&5
     4519
     4520ac_header_compiler=no
     4521fi
     4522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4524echo "${ECHO_T}$ac_header_compiler" >&6
     4525
     4526# Is the header present?
     4527echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
     4528echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
     4529cat >conftest.$ac_ext <<_ACEOF
     4530/* confdefs.h.  */
     4531_ACEOF
     4532cat confdefs.h >>conftest.$ac_ext
     4533cat >>conftest.$ac_ext <<_ACEOF
     4534/* end confdefs.h.  */
     4535#include <sys/sysmacros.h>
     4536_ACEOF
     4537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4539  ac_status=$?
     4540  grep -v '^ *+' conftest.er1 >conftest.err
     4541  rm -f conftest.er1
     4542  cat conftest.err >&5
     4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4544  (exit $ac_status); } >/dev/null; then
     4545  if test -s conftest.err; then
     4546    ac_cpp_err=$ac_c_preproc_warn_flag
     4547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4548  else
     4549    ac_cpp_err=
     4550  fi
     4551else
     4552  ac_cpp_err=yes
     4553fi
     4554if test -z "$ac_cpp_err"; then
     4555  ac_header_preproc=yes
     4556else
     4557  echo "$as_me: failed program was:" >&5
     4558sed 's/^/| /' conftest.$ac_ext >&5
     4559
     4560  ac_header_preproc=no
     4561fi
     4562rm -f conftest.err conftest.$ac_ext
     4563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4564echo "${ECHO_T}$ac_header_preproc" >&6
     4565
     4566# So?  What about this header?
     4567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4568  yes:no: )
     4569    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4570echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4571    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
     4572echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
     4573    ac_header_preproc=yes
     4574    ;;
     4575  no:yes:* )
     4576    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
     4577echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
     4578    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
     4579echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
     4580    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
     4581echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
     4582    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
     4583echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4584    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
     4585echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
     4586    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
     4587echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
     4588    (
     4589      cat <<\_ASBOX
     4590## --------------------------------- ##
     4591## Report this to BUG-REPORT-ADDRESS ##
     4592## --------------------------------- ##
     4593_ASBOX
     4594    ) |
     4595      sed "s/^/$as_me: WARNING:     /" >&2
     4596    ;;
     4597esac
     4598echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
     4599echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
     4600if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
     4601  echo $ECHO_N "(cached) $ECHO_C" >&6
     4602else
     4603  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
     4604fi
     4605echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
     4606echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
     4607
     4608fi
     4609if test $ac_cv_header_sys_sysmacros_h = yes; then
     4610
     4611cat >>confdefs.h <<\_ACEOF
     4612#define MAJOR_IN_SYSMACROS 1
     4613_ACEOF
     4614
     4615fi
     4616
     4617
     4618  fi
     4619fi
     4620
     4621
     4622
     4623
     4624
     4625
     4626
     4627
     4628
     4629
     4630
     4631
     4632
     4633for ac_header in fcntl.h libintl.h locale.h memory.h stdlib.h string.h strings.h sys/file.h sys/param.h sys/time.h unistd.h utime.h
     4634do
     4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4636if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4637  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4640  echo $ECHO_N "(cached) $ECHO_C" >&6
     4641fi
     4642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4644else
     4645  # Is the header compilable?
     4646echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4648cat >conftest.$ac_ext <<_ACEOF
     4649/* confdefs.h.  */
     4650_ACEOF
     4651cat confdefs.h >>conftest.$ac_ext
     4652cat >>conftest.$ac_ext <<_ACEOF
     4653/* end confdefs.h.  */
     4654$ac_includes_default
     4655#include <$ac_header>
     4656_ACEOF
     4657rm -f conftest.$ac_objext
     4658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4659  (eval $ac_compile) 2>conftest.er1
     4660  ac_status=$?
     4661  grep -v '^ *+' conftest.er1 >conftest.err
     4662  rm -f conftest.er1
     4663  cat conftest.err >&5
     4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4665  (exit $ac_status); } &&
     4666         { ac_try='test -z "$ac_c_werror_flag"
     4667                         || test ! -s conftest.err'
     4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4669  (eval $ac_try) 2>&5
     4670  ac_status=$?
     4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4672  (exit $ac_status); }; } &&
     4673         { ac_try='test -s conftest.$ac_objext'
     4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4675  (eval $ac_try) 2>&5
     4676  ac_status=$?
     4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4678  (exit $ac_status); }; }; then
     4679  ac_header_compiler=yes
     4680else
     4681  echo "$as_me: failed program was:" >&5
     4682sed 's/^/| /' conftest.$ac_ext >&5
     4683
     4684ac_header_compiler=no
     4685fi
     4686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4688echo "${ECHO_T}$ac_header_compiler" >&6
     4689
     4690# Is the header present?
     4691echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4693cat >conftest.$ac_ext <<_ACEOF
     4694/* confdefs.h.  */
     4695_ACEOF
     4696cat confdefs.h >>conftest.$ac_ext
     4697cat >>conftest.$ac_ext <<_ACEOF
     4698/* end confdefs.h.  */
     4699#include <$ac_header>
     4700_ACEOF
     4701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4703  ac_status=$?
     4704  grep -v '^ *+' conftest.er1 >conftest.err
     4705  rm -f conftest.er1
     4706  cat conftest.err >&5
     4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4708  (exit $ac_status); } >/dev/null; then
     4709  if test -s conftest.err; then
     4710    ac_cpp_err=$ac_c_preproc_warn_flag
     4711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4712  else
     4713    ac_cpp_err=
     4714  fi
     4715else
     4716  ac_cpp_err=yes
     4717fi
     4718if test -z "$ac_cpp_err"; then
     4719  ac_header_preproc=yes
     4720else
     4721  echo "$as_me: failed program was:" >&5
     4722sed 's/^/| /' conftest.$ac_ext >&5
     4723
     4724  ac_header_preproc=no
     4725fi
     4726rm -f conftest.err conftest.$ac_ext
     4727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4728echo "${ECHO_T}$ac_header_preproc" >&6
     4729
     4730# So?  What about this header?
     4731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4732  yes:no: )
     4733    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4735    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4737    ac_header_preproc=yes
     4738    ;;
     4739  no:yes:* )
     4740    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4742    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4743echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4744    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4746    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4747echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4748    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4750    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4752    (
     4753      cat <<\_ASBOX
     4754## --------------------------------- ##
     4755## Report this to BUG-REPORT-ADDRESS ##
     4756## --------------------------------- ##
     4757_ASBOX
     4758    ) |
     4759      sed "s/^/$as_me: WARNING:     /" >&2
     4760    ;;
     4761esac
     4762echo "$as_me:$LINENO: checking for $ac_header" >&5
     4763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4764if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4765  echo $ECHO_N "(cached) $ECHO_C" >&6
     4766else
     4767  eval "$as_ac_Header=\$ac_header_preproc"
     4768fi
     4769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4771
     4772fi
     4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4774  cat >>confdefs.h <<_ACEOF
     4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4776_ACEOF
     4777
     4778fi
     4779
     4780done
     4781
     4782
     4783# Checks for typedefs, structures, and compiler characteristics.
     4784echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
     4785echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
     4786if test "${ac_cv_header_stat_broken+set}" = set; then
     4787  echo $ECHO_N "(cached) $ECHO_C" >&6
     4788else
     4789  cat >conftest.$ac_ext <<_ACEOF
     4790/* confdefs.h.  */
     4791_ACEOF
     4792cat confdefs.h >>conftest.$ac_ext
     4793cat >>conftest.$ac_ext <<_ACEOF
     4794/* end confdefs.h.  */
     4795#include <sys/types.h>
     4796#include <sys/stat.h>
     4797
     4798#if defined(S_ISBLK) && defined(S_IFDIR)
     4799# if S_ISBLK (S_IFDIR)
     4800You lose.
     4801# endif
     4802#endif
     4803
     4804#if defined(S_ISBLK) && defined(S_IFCHR)
     4805# if S_ISBLK (S_IFCHR)
     4806You lose.
     4807# endif
     4808#endif
     4809
     4810#if defined(S_ISLNK) && defined(S_IFREG)
     4811# if S_ISLNK (S_IFREG)
     4812You lose.
     4813# endif
     4814#endif
     4815
     4816#if defined(S_ISSOCK) && defined(S_IFREG)
     4817# if S_ISSOCK (S_IFREG)
     4818You lose.
     4819# endif
     4820#endif
     4821
     4822_ACEOF
     4823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4824  $EGREP "You lose" >/dev/null 2>&1; then
     4825  ac_cv_header_stat_broken=yes
     4826else
     4827  ac_cv_header_stat_broken=no
     4828fi
     4829rm -f conftest*
     4830
     4831fi
     4832echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
     4833echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
     4834if test $ac_cv_header_stat_broken = yes; then
     4835
     4836cat >>confdefs.h <<\_ACEOF
     4837#define STAT_MACROS_BROKEN 1
     4838_ACEOF
     4839
     4840fi
     4841
     4842echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     4843echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     4844if test "${ac_cv_header_stdbool_h+set}" = set; then
     4845  echo $ECHO_N "(cached) $ECHO_C" >&6
     4846else
     4847  cat >conftest.$ac_ext <<_ACEOF
     4848/* confdefs.h.  */
     4849_ACEOF
     4850cat confdefs.h >>conftest.$ac_ext
     4851cat >>conftest.$ac_ext <<_ACEOF
     4852/* end confdefs.h.  */
     4853
     4854#include <stdbool.h>
     4855#ifndef bool
     4856# error bool is not defined
     4857#endif
     4858#ifndef false
     4859# error false is not defined
     4860#endif
     4861#if false
     4862# error false is not 0
     4863#endif
     4864#ifndef true
     4865# error true is not defined
     4866#endif
     4867#if true != 1
     4868# error true is not 1
     4869#endif
     4870#ifndef __bool_true_false_are_defined
     4871# error __bool_true_false_are_defined is not defined
     4872#endif
     4873
     4874        struct s { _Bool s: 1; _Bool t; } s;
     4875
     4876        char a[true == 1 ? 1 : -1];
     4877        char b[false == 0 ? 1 : -1];
     4878        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
     4879        char d[(bool) -0.5 == true ? 1 : -1];
     4880        bool e = &s;
     4881        char f[(_Bool) -0.0 == false ? 1 : -1];
     4882        char g[true];
     4883        char h[sizeof (_Bool)];
     4884        char i[sizeof s.t];
     4885
     4886int
     4887main ()
     4888{
     4889 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     4890  ;
     4891  return 0;
     4892}
     4893_ACEOF
     4894rm -f conftest.$ac_objext
     4895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4896  (eval $ac_compile) 2>conftest.er1
     4897  ac_status=$?
     4898  grep -v '^ *+' conftest.er1 >conftest.err
     4899  rm -f conftest.er1
     4900  cat conftest.err >&5
     4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4902  (exit $ac_status); } &&
     4903         { ac_try='test -z "$ac_c_werror_flag"
     4904                         || test ! -s conftest.err'
     4905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4906  (eval $ac_try) 2>&5
     4907  ac_status=$?
     4908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4909  (exit $ac_status); }; } &&
     4910         { ac_try='test -s conftest.$ac_objext'
     4911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4912  (eval $ac_try) 2>&5
     4913  ac_status=$?
     4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4915  (exit $ac_status); }; }; then
     4916  ac_cv_header_stdbool_h=yes
     4917else
     4918  echo "$as_me: failed program was:" >&5
     4919sed 's/^/| /' conftest.$ac_ext >&5
     4920
     4921ac_cv_header_stdbool_h=no
     4922fi
     4923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4924fi
     4925echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     4926echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     4927echo "$as_me:$LINENO: checking for _Bool" >&5
     4928echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     4929if test "${ac_cv_type__Bool+set}" = set; then
     4930  echo $ECHO_N "(cached) $ECHO_C" >&6
     4931else
     4932  cat >conftest.$ac_ext <<_ACEOF
     4933/* confdefs.h.  */
     4934_ACEOF
     4935cat confdefs.h >>conftest.$ac_ext
     4936cat >>conftest.$ac_ext <<_ACEOF
     4937/* end confdefs.h.  */
     4938$ac_includes_default
     4939int
     4940main ()
     4941{
     4942if ((_Bool *) 0)
     4943  return 0;
     4944if (sizeof (_Bool))
     4945  return 0;
     4946  ;
     4947  return 0;
     4948}
     4949_ACEOF
     4950rm -f conftest.$ac_objext
     4951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4952  (eval $ac_compile) 2>conftest.er1
     4953  ac_status=$?
     4954  grep -v '^ *+' conftest.er1 >conftest.err
     4955  rm -f conftest.er1
     4956  cat conftest.err >&5
     4957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4958  (exit $ac_status); } &&
     4959         { ac_try='test -z "$ac_c_werror_flag"
     4960                         || test ! -s conftest.err'
     4961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4962  (eval $ac_try) 2>&5
     4963  ac_status=$?
     4964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4965  (exit $ac_status); }; } &&
     4966         { ac_try='test -s conftest.$ac_objext'
     4967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4968  (eval $ac_try) 2>&5
     4969  ac_status=$?
     4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4971  (exit $ac_status); }; }; then
     4972  ac_cv_type__Bool=yes
     4973else
     4974  echo "$as_me: failed program was:" >&5
     4975sed 's/^/| /' conftest.$ac_ext >&5
     4976
     4977ac_cv_type__Bool=no
     4978fi
     4979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4980fi
     4981echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     4982echo "${ECHO_T}$ac_cv_type__Bool" >&6
     4983if test $ac_cv_type__Bool = yes; then
     4984
     4985cat >>confdefs.h <<_ACEOF
     4986#define HAVE__BOOL 1
     4987_ACEOF
     4988
     4989
     4990fi
     4991
     4992if test $ac_cv_header_stdbool_h = yes; then
     4993
     4994cat >>confdefs.h <<\_ACEOF
     4995#define HAVE_STDBOOL_H 1
     4996_ACEOF
     4997
     4998fi
     4999
     5000echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
     5001echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
     5002if test "${ac_cv_c_const+set}" = set; then
     5003  echo $ECHO_N "(cached) $ECHO_C" >&6
     5004else
     5005  cat >conftest.$ac_ext <<_ACEOF
     5006/* confdefs.h.  */
     5007_ACEOF
     5008cat confdefs.h >>conftest.$ac_ext
     5009cat >>conftest.$ac_ext <<_ACEOF
     5010/* end confdefs.h.  */
     5011
     5012int
     5013main ()
     5014{
     5015/* FIXME: Include the comments suggested by Paul. */
     5016#ifndef __cplusplus
     5017  /* Ultrix mips cc rejects this.  */
     5018  typedef int charset[2];
     5019  const charset x;
     5020  /* SunOS 4.1.1 cc rejects this.  */
     5021  char const *const *ccp;
     5022  char **p;
     5023  /* NEC SVR4.0.2 mips cc rejects this.  */
     5024  struct point {int x, y;};
     5025  static struct point const zero = {0,0};
     5026  /* AIX XL C 1.02.0.0 rejects this.
     5027     It does not let you subtract one const X* pointer from another in
     5028     an arm of an if-expression whose if-part is not a constant
     5029     expression */
     5030  const char *g = "string";
     5031  ccp = &g + (g ? g-g : 0);
     5032  /* HPUX 7.0 cc rejects these. */
     5033  ++ccp;
     5034  p = (char**) ccp;
     5035  ccp = (char const *const *) p;
     5036  { /* SCO 3.2v4 cc rejects this.  */
     5037    char *t;
     5038    char const *s = 0 ? (char *) 0 : (char const *) 0;
     5039
     5040    *t++ = 0;
     5041  }
     5042  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     5043    int x[] = {25, 17};
     5044    const int *foo = &x[0];
     5045    ++foo;
     5046  }
     5047  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     5048    typedef const int *iptr;
     5049    iptr p = 0;
     5050    ++p;
     5051  }
     5052  { /* AIX XL C 1.02.0.0 rejects this saying
     5053       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     5054    struct s { int j; const int *ap[3]; };
     5055    struct s *b; b->j = 5;
     5056  }
     5057  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     5058    const int foo = 10;
     5059  }
     5060#endif
     5061
     5062  ;
     5063  return 0;
     5064}
     5065_ACEOF
     5066rm -f conftest.$ac_objext
     5067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5068  (eval $ac_compile) 2>conftest.er1
     5069  ac_status=$?
     5070  grep -v '^ *+' conftest.er1 >conftest.err
     5071  rm -f conftest.er1
     5072  cat conftest.err >&5
     5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5074  (exit $ac_status); } &&
     5075         { ac_try='test -z "$ac_c_werror_flag"
     5076                         || test ! -s conftest.err'
     5077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5078  (eval $ac_try) 2>&5
     5079  ac_status=$?
     5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5081  (exit $ac_status); }; } &&
     5082         { ac_try='test -s conftest.$ac_objext'
     5083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5084  (eval $ac_try) 2>&5
     5085  ac_status=$?
     5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5087  (exit $ac_status); }; }; then
     5088  ac_cv_c_const=yes
     5089else
     5090  echo "$as_me: failed program was:" >&5
     5091sed 's/^/| /' conftest.$ac_ext >&5
     5092
     5093ac_cv_c_const=no
     5094fi
     5095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5096fi
     5097echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
     5098echo "${ECHO_T}$ac_cv_c_const" >&6
     5099if test $ac_cv_c_const = no; then
     5100
     5101cat >>confdefs.h <<\_ACEOF
     5102#define const
     5103_ACEOF
     5104
     5105fi
     5106
     5107echo "$as_me:$LINENO: checking for off_t" >&5
     5108echo $ECHO_N "checking for off_t... $ECHO_C" >&6
     5109if test "${ac_cv_type_off_t+set}" = set; then
     5110  echo $ECHO_N "(cached) $ECHO_C" >&6
     5111else
     5112  cat >conftest.$ac_ext <<_ACEOF
     5113/* confdefs.h.  */
     5114_ACEOF
     5115cat confdefs.h >>conftest.$ac_ext
     5116cat >>conftest.$ac_ext <<_ACEOF
     5117/* end confdefs.h.  */
     5118$ac_includes_default
     5119int
     5120main ()
     5121{
     5122if ((off_t *) 0)
     5123  return 0;
     5124if (sizeof (off_t))
     5125  return 0;
     5126  ;
     5127  return 0;
     5128}
     5129_ACEOF
     5130rm -f conftest.$ac_objext
     5131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5132  (eval $ac_compile) 2>conftest.er1
     5133  ac_status=$?
     5134  grep -v '^ *+' conftest.er1 >conftest.err
     5135  rm -f conftest.er1
     5136  cat conftest.err >&5
     5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5138  (exit $ac_status); } &&
     5139         { ac_try='test -z "$ac_c_werror_flag"
     5140                         || test ! -s conftest.err'
     5141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5142  (eval $ac_try) 2>&5
     5143  ac_status=$?
     5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5145  (exit $ac_status); }; } &&
     5146         { ac_try='test -s conftest.$ac_objext'
     5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5148  (eval $ac_try) 2>&5
     5149  ac_status=$?
     5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5151  (exit $ac_status); }; }; then
     5152  ac_cv_type_off_t=yes
     5153else
     5154  echo "$as_me: failed program was:" >&5
     5155sed 's/^/| /' conftest.$ac_ext >&5
     5156
     5157ac_cv_type_off_t=no
     5158fi
     5159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5160fi
     5161echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
     5162echo "${ECHO_T}$ac_cv_type_off_t" >&6
     5163if test $ac_cv_type_off_t = yes; then
     5164  :
     5165else
     5166
     5167cat >>confdefs.h <<_ACEOF
     5168#define off_t long
     5169_ACEOF
     5170
     5171fi
     5172
     5173echo "$as_me:$LINENO: checking for size_t" >&5
     5174echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     5175if test "${ac_cv_type_size_t+set}" = set; then
     5176  echo $ECHO_N "(cached) $ECHO_C" >&6
     5177else
     5178  cat >conftest.$ac_ext <<_ACEOF
     5179/* confdefs.h.  */
     5180_ACEOF
     5181cat confdefs.h >>conftest.$ac_ext
     5182cat >>conftest.$ac_ext <<_ACEOF
     5183/* end confdefs.h.  */
     5184$ac_includes_default
     5185int
     5186main ()
     5187{
     5188if ((size_t *) 0)
     5189  return 0;
     5190if (sizeof (size_t))
     5191  return 0;
     5192  ;
     5193  return 0;
     5194}
     5195_ACEOF
     5196rm -f conftest.$ac_objext
     5197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5198  (eval $ac_compile) 2>conftest.er1
     5199  ac_status=$?
     5200  grep -v '^ *+' conftest.er1 >conftest.err
     5201  rm -f conftest.er1
     5202  cat conftest.err >&5
     5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5204  (exit $ac_status); } &&
     5205         { ac_try='test -z "$ac_c_werror_flag"
     5206                         || test ! -s conftest.err'
     5207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5208  (eval $ac_try) 2>&5
     5209  ac_status=$?
     5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5211  (exit $ac_status); }; } &&
     5212         { ac_try='test -s conftest.$ac_objext'
     5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5214  (eval $ac_try) 2>&5
     5215  ac_status=$?
     5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5217  (exit $ac_status); }; }; then
     5218  ac_cv_type_size_t=yes
     5219else
     5220  echo "$as_me: failed program was:" >&5
     5221sed 's/^/| /' conftest.$ac_ext >&5
     5222
     5223ac_cv_type_size_t=no
     5224fi
     5225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5226fi
     5227echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
     5228echo "${ECHO_T}$ac_cv_type_size_t" >&6
     5229if test $ac_cv_type_size_t = yes; then
     5230  :
     5231else
     5232
     5233cat >>confdefs.h <<_ACEOF
     5234#define size_t unsigned
     5235_ACEOF
     5236
     5237fi
     5238
     5239echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
     5240echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
     5241if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
     5242  echo $ECHO_N "(cached) $ECHO_C" >&6
     5243else
     5244  cat >conftest.$ac_ext <<_ACEOF
     5245/* confdefs.h.  */
     5246_ACEOF
     5247cat confdefs.h >>conftest.$ac_ext
     5248cat >>conftest.$ac_ext <<_ACEOF
     5249/* end confdefs.h.  */
     5250$ac_includes_default
     5251int
     5252main ()
     5253{
     5254static struct stat ac_aggr;
     5255if (ac_aggr.st_blksize)
     5256return 0;
     5257  ;
     5258  return 0;
     5259}
     5260_ACEOF
     5261rm -f conftest.$ac_objext
     5262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5263  (eval $ac_compile) 2>conftest.er1
     5264  ac_status=$?
     5265  grep -v '^ *+' conftest.er1 >conftest.err
     5266  rm -f conftest.er1
     5267  cat conftest.err >&5
     5268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5269  (exit $ac_status); } &&
     5270         { ac_try='test -z "$ac_c_werror_flag"
     5271                         || test ! -s conftest.err'
     5272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5273  (eval $ac_try) 2>&5
     5274  ac_status=$?
     5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5276  (exit $ac_status); }; } &&
     5277         { ac_try='test -s conftest.$ac_objext'
     5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5279  (eval $ac_try) 2>&5
     5280  ac_status=$?
     5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5282  (exit $ac_status); }; }; then
     5283  ac_cv_member_struct_stat_st_blksize=yes
     5284else
     5285  echo "$as_me: failed program was:" >&5
     5286sed 's/^/| /' conftest.$ac_ext >&5
     5287
     5288cat >conftest.$ac_ext <<_ACEOF
     5289/* confdefs.h.  */
     5290_ACEOF
     5291cat confdefs.h >>conftest.$ac_ext
     5292cat >>conftest.$ac_ext <<_ACEOF
     5293/* end confdefs.h.  */
     5294$ac_includes_default
     5295int
     5296main ()
     5297{
     5298static struct stat ac_aggr;
     5299if (sizeof ac_aggr.st_blksize)
     5300return 0;
     5301  ;
     5302  return 0;
     5303}
     5304_ACEOF
     5305rm -f conftest.$ac_objext
     5306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5307  (eval $ac_compile) 2>conftest.er1
     5308  ac_status=$?
     5309  grep -v '^ *+' conftest.er1 >conftest.err
     5310  rm -f conftest.er1
     5311  cat conftest.err >&5
     5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5313  (exit $ac_status); } &&
     5314         { ac_try='test -z "$ac_c_werror_flag"
     5315                         || test ! -s conftest.err'
     5316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5317  (eval $ac_try) 2>&5
     5318  ac_status=$?
     5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5320  (exit $ac_status); }; } &&
     5321         { ac_try='test -s conftest.$ac_objext'
     5322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5323  (eval $ac_try) 2>&5
     5324  ac_status=$?
     5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5326  (exit $ac_status); }; }; then
     5327  ac_cv_member_struct_stat_st_blksize=yes
     5328else
     5329  echo "$as_me: failed program was:" >&5
     5330sed 's/^/| /' conftest.$ac_ext >&5
     5331
     5332ac_cv_member_struct_stat_st_blksize=no
     5333fi
     5334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5335fi
     5336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5337fi
     5338echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
     5339echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
     5340if test $ac_cv_member_struct_stat_st_blksize = yes; then
     5341
     5342cat >>confdefs.h <<_ACEOF
     5343#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
     5344_ACEOF
     5345
     5346
     5347fi
     5348
     5349
     5350# Checks for library functions.
     5351echo "$as_me:$LINENO: checking for error_at_line" >&5
     5352echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
     5353if test "${ac_cv_lib_error_at_line+set}" = set; then
     5354  echo $ECHO_N "(cached) $ECHO_C" >&6
     5355else
     5356  cat >conftest.$ac_ext <<_ACEOF
     5357/* confdefs.h.  */
     5358_ACEOF
     5359cat confdefs.h >>conftest.$ac_ext
     5360cat >>conftest.$ac_ext <<_ACEOF
     5361/* end confdefs.h.  */
     5362$ac_includes_default
     5363int
     5364main ()
     5365{
     5366error_at_line (0, 0, "", 0, "");
     5367  ;
     5368  return 0;
     5369}
     5370_ACEOF
     5371rm -f conftest.$ac_objext conftest$ac_exeext
     5372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5373  (eval $ac_link) 2>conftest.er1
     5374  ac_status=$?
     5375  grep -v '^ *+' conftest.er1 >conftest.err
     5376  rm -f conftest.er1
     5377  cat conftest.err >&5
     5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5379  (exit $ac_status); } &&
     5380         { ac_try='test -z "$ac_c_werror_flag"
     5381                         || test ! -s conftest.err'
     5382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5383  (eval $ac_try) 2>&5
     5384  ac_status=$?
     5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5386  (exit $ac_status); }; } &&
     5387         { ac_try='test -s conftest$ac_exeext'
     5388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5389  (eval $ac_try) 2>&5
     5390  ac_status=$?
     5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5392  (exit $ac_status); }; }; then
     5393  ac_cv_lib_error_at_line=yes
     5394else
     5395  echo "$as_me: failed program was:" >&5
     5396sed 's/^/| /' conftest.$ac_ext >&5
     5397
     5398ac_cv_lib_error_at_line=no
     5399fi
     5400rm -f conftest.err conftest.$ac_objext \
     5401      conftest$ac_exeext conftest.$ac_ext
     5402fi
     5403echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
     5404echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
     5405if test $ac_cv_lib_error_at_line = no; then
     5406  case $LIBOBJS in
     5407    "error.$ac_objext"   | \
     5408  *" error.$ac_objext"   | \
     5409    "error.$ac_objext "* | \
     5410  *" error.$ac_objext "* ) ;;
     5411  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
     5412esac
     5413
     5414fi
     5415
     5416
     5417for ac_header in stdlib.h
     5418do
     5419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5420if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5421  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5423if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5424  echo $ECHO_N "(cached) $ECHO_C" >&6
     5425fi
     5426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5428else
     5429  # Is the header compilable?
     5430echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5432cat >conftest.$ac_ext <<_ACEOF
     5433/* confdefs.h.  */
     5434_ACEOF
     5435cat confdefs.h >>conftest.$ac_ext
     5436cat >>conftest.$ac_ext <<_ACEOF
     5437/* end confdefs.h.  */
     5438$ac_includes_default
     5439#include <$ac_header>
     5440_ACEOF
     5441rm -f conftest.$ac_objext
     5442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5443  (eval $ac_compile) 2>conftest.er1
     5444  ac_status=$?
     5445  grep -v '^ *+' conftest.er1 >conftest.err
     5446  rm -f conftest.er1
     5447  cat conftest.err >&5
     5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5449  (exit $ac_status); } &&
     5450         { ac_try='test -z "$ac_c_werror_flag"
     5451                         || test ! -s conftest.err'
     5452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5453  (eval $ac_try) 2>&5
     5454  ac_status=$?
     5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5456  (exit $ac_status); }; } &&
     5457         { ac_try='test -s conftest.$ac_objext'
     5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5459  (eval $ac_try) 2>&5
     5460  ac_status=$?
     5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5462  (exit $ac_status); }; }; then
     5463  ac_header_compiler=yes
     5464else
     5465  echo "$as_me: failed program was:" >&5
     5466sed 's/^/| /' conftest.$ac_ext >&5
     5467
     5468ac_header_compiler=no
     5469fi
     5470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5472echo "${ECHO_T}$ac_header_compiler" >&6
     5473
     5474# Is the header present?
     5475echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5477cat >conftest.$ac_ext <<_ACEOF
     5478/* confdefs.h.  */
     5479_ACEOF
     5480cat confdefs.h >>conftest.$ac_ext
     5481cat >>conftest.$ac_ext <<_ACEOF
     5482/* end confdefs.h.  */
     5483#include <$ac_header>
     5484_ACEOF
     5485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5486  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5487  ac_status=$?
     5488  grep -v '^ *+' conftest.er1 >conftest.err
     5489  rm -f conftest.er1
     5490  cat conftest.err >&5
     5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5492  (exit $ac_status); } >/dev/null; then
     5493  if test -s conftest.err; then
     5494    ac_cpp_err=$ac_c_preproc_warn_flag
     5495    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5496  else
     5497    ac_cpp_err=
     5498  fi
     5499else
     5500  ac_cpp_err=yes
     5501fi
     5502if test -z "$ac_cpp_err"; then
     5503  ac_header_preproc=yes
     5504else
     5505  echo "$as_me: failed program was:" >&5
     5506sed 's/^/| /' conftest.$ac_ext >&5
     5507
     5508  ac_header_preproc=no
     5509fi
     5510rm -f conftest.err conftest.$ac_ext
     5511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5512echo "${ECHO_T}$ac_header_preproc" >&6
     5513
     5514# So?  What about this header?
     5515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5516  yes:no: )
     5517    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5521    ac_header_preproc=yes
     5522    ;;
     5523  no:yes:* )
     5524    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5526    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5527echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5528    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5530    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5531echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5534    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5536    (
     5537      cat <<\_ASBOX
     5538## --------------------------------- ##
     5539## Report this to BUG-REPORT-ADDRESS ##
     5540## --------------------------------- ##
     5541_ASBOX
     5542    ) |
     5543      sed "s/^/$as_me: WARNING:     /" >&2
     5544    ;;
     5545esac
     5546echo "$as_me:$LINENO: checking for $ac_header" >&5
     5547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5548if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5549  echo $ECHO_N "(cached) $ECHO_C" >&6
     5550else
     5551  eval "$as_ac_Header=\$ac_header_preproc"
     5552fi
     5553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5555
     5556fi
     5557if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5558  cat >>confdefs.h <<_ACEOF
     5559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5560_ACEOF
     5561
     5562fi
     5563
     5564done
     5565
     5566echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
     5567echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
     5568if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
     5569  echo $ECHO_N "(cached) $ECHO_C" >&6
     5570else
     5571  if test "$cross_compiling" = yes; then
     5572  ac_cv_func_malloc_0_nonnull=no
     5573else
     5574  cat >conftest.$ac_ext <<_ACEOF
     5575/* confdefs.h.  */
     5576_ACEOF
     5577cat confdefs.h >>conftest.$ac_ext
     5578cat >>conftest.$ac_ext <<_ACEOF
     5579/* end confdefs.h.  */
     5580#if STDC_HEADERS || HAVE_STDLIB_H
     5581# include <stdlib.h>
     5582#else
     5583char *malloc ();
     5584#endif
     5585
     5586int
     5587main ()
     5588{
     5589exit (malloc (0) ? 0 : 1);
     5590  ;
     5591  return 0;
     5592}
     5593_ACEOF
     5594rm -f conftest$ac_exeext
     5595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5596  (eval $ac_link) 2>&5
     5597  ac_status=$?
     5598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5599  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5601  (eval $ac_try) 2>&5
     5602  ac_status=$?
     5603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5604  (exit $ac_status); }; }; then
     5605  ac_cv_func_malloc_0_nonnull=yes
     5606else
     5607  echo "$as_me: program exited with status $ac_status" >&5
     5608echo "$as_me: failed program was:" >&5
     5609sed 's/^/| /' conftest.$ac_ext >&5
     5610
     5611( exit $ac_status )
     5612ac_cv_func_malloc_0_nonnull=no
     5613fi
     5614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5615fi
     5616fi
     5617echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
     5618echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
     5619if test $ac_cv_func_malloc_0_nonnull = yes; then
     5620
     5621cat >>confdefs.h <<\_ACEOF
     5622#define HAVE_MALLOC 1
     5623_ACEOF
     5624
     5625else
     5626  cat >>confdefs.h <<\_ACEOF
     5627#define HAVE_MALLOC 0
     5628_ACEOF
     5629
     5630   case $LIBOBJS in
     5631    "malloc.$ac_objext"   | \
     5632  *" malloc.$ac_objext"   | \
     5633    "malloc.$ac_objext "* | \
     5634  *" malloc.$ac_objext "* ) ;;
     5635  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
     5636esac
     5637
     5638
     5639cat >>confdefs.h <<\_ACEOF
     5640#define malloc rpl_malloc
     5641_ACEOF
     5642
     5643fi
     5644
     5645
     5646
     5647
     5648for ac_header in stdlib.h
     5649do
     5650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5651if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5652  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5654if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5655  echo $ECHO_N "(cached) $ECHO_C" >&6
     5656fi
     5657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5659else
     5660  # Is the header compilable?
     5661echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5663cat >conftest.$ac_ext <<_ACEOF
     5664/* confdefs.h.  */
     5665_ACEOF
     5666cat confdefs.h >>conftest.$ac_ext
     5667cat >>conftest.$ac_ext <<_ACEOF
     5668/* end confdefs.h.  */
     5669$ac_includes_default
     5670#include <$ac_header>
     5671_ACEOF
     5672rm -f conftest.$ac_objext
     5673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5674  (eval $ac_compile) 2>conftest.er1
     5675  ac_status=$?
     5676  grep -v '^ *+' conftest.er1 >conftest.err
     5677  rm -f conftest.er1
     5678  cat conftest.err >&5
     5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5680  (exit $ac_status); } &&
     5681         { ac_try='test -z "$ac_c_werror_flag"
     5682                         || test ! -s conftest.err'
     5683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5684  (eval $ac_try) 2>&5
     5685  ac_status=$?
     5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5687  (exit $ac_status); }; } &&
     5688         { ac_try='test -s conftest.$ac_objext'
     5689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5690  (eval $ac_try) 2>&5
     5691  ac_status=$?
     5692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5693  (exit $ac_status); }; }; then
     5694  ac_header_compiler=yes
     5695else
     5696  echo "$as_me: failed program was:" >&5
     5697sed 's/^/| /' conftest.$ac_ext >&5
     5698
     5699ac_header_compiler=no
     5700fi
     5701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5703echo "${ECHO_T}$ac_header_compiler" >&6
     5704
     5705# Is the header present?
     5706echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5708cat >conftest.$ac_ext <<_ACEOF
     5709/* confdefs.h.  */
     5710_ACEOF
     5711cat confdefs.h >>conftest.$ac_ext
     5712cat >>conftest.$ac_ext <<_ACEOF
     5713/* end confdefs.h.  */
     5714#include <$ac_header>
     5715_ACEOF
     5716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5717  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5718  ac_status=$?
     5719  grep -v '^ *+' conftest.er1 >conftest.err
     5720  rm -f conftest.er1
     5721  cat conftest.err >&5
     5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5723  (exit $ac_status); } >/dev/null; then
     5724  if test -s conftest.err; then
     5725    ac_cpp_err=$ac_c_preproc_warn_flag
     5726    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5727  else
     5728    ac_cpp_err=
     5729  fi
     5730else
     5731  ac_cpp_err=yes
     5732fi
     5733if test -z "$ac_cpp_err"; then
     5734  ac_header_preproc=yes
     5735else
     5736  echo "$as_me: failed program was:" >&5
     5737sed 's/^/| /' conftest.$ac_ext >&5
     5738
     5739  ac_header_preproc=no
     5740fi
     5741rm -f conftest.err conftest.$ac_ext
     5742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5743echo "${ECHO_T}$ac_header_preproc" >&6
     5744
     5745# So?  What about this header?
     5746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5747  yes:no: )
     5748    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5752    ac_header_preproc=yes
     5753    ;;
     5754  no:yes:* )
     5755    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5757    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5758echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5759    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5761    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5762echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5765    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5767    (
     5768      cat <<\_ASBOX
     5769## --------------------------------- ##
     5770## Report this to BUG-REPORT-ADDRESS ##
     5771## --------------------------------- ##
     5772_ASBOX
     5773    ) |
     5774      sed "s/^/$as_me: WARNING:     /" >&2
     5775    ;;
     5776esac
     5777echo "$as_me:$LINENO: checking for $ac_header" >&5
     5778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5779if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5780  echo $ECHO_N "(cached) $ECHO_C" >&6
     5781else
     5782  eval "$as_ac_Header=\$ac_header_preproc"
     5783fi
     5784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5786
     5787fi
     5788if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5789  cat >>confdefs.h <<_ACEOF
     5790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5791_ACEOF
     5792
     5793fi
     5794
     5795done
     5796
     5797echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
     5798echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
     5799if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
     5800  echo $ECHO_N "(cached) $ECHO_C" >&6
     5801else
     5802  if test "$cross_compiling" = yes; then
     5803  ac_cv_func_realloc_0_nonnull=no
     5804else
     5805  cat >conftest.$ac_ext <<_ACEOF
     5806/* confdefs.h.  */
     5807_ACEOF
     5808cat confdefs.h >>conftest.$ac_ext
     5809cat >>conftest.$ac_ext <<_ACEOF
     5810/* end confdefs.h.  */
     5811#if STDC_HEADERS || HAVE_STDLIB_H
     5812# include <stdlib.h>
     5813#else
     5814char *realloc ();
     5815#endif
     5816
     5817int
     5818main ()
     5819{
     5820exit (realloc (0, 0) ? 0 : 1);
     5821  ;
     5822  return 0;
     5823}
     5824_ACEOF
     5825rm -f conftest$ac_exeext
     5826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5827  (eval $ac_link) 2>&5
     5828  ac_status=$?
     5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5830  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5832  (eval $ac_try) 2>&5
     5833  ac_status=$?
     5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5835  (exit $ac_status); }; }; then
     5836  ac_cv_func_realloc_0_nonnull=yes
     5837else
     5838  echo "$as_me: program exited with status $ac_status" >&5
     5839echo "$as_me: failed program was:" >&5
     5840sed 's/^/| /' conftest.$ac_ext >&5
     5841
     5842( exit $ac_status )
     5843ac_cv_func_realloc_0_nonnull=no
     5844fi
     5845rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5846fi
     5847fi
     5848echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
     5849echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
     5850if test $ac_cv_func_realloc_0_nonnull = yes; then
     5851
     5852cat >>confdefs.h <<\_ACEOF
     5853#define HAVE_REALLOC 1
     5854_ACEOF
     5855
     5856else
     5857  cat >>confdefs.h <<\_ACEOF
     5858#define HAVE_REALLOC 0
     5859_ACEOF
     5860
     5861   case $LIBOBJS in
     5862    "realloc.$ac_objext"   | \
     5863  *" realloc.$ac_objext"   | \
     5864    "realloc.$ac_objext "* | \
     5865  *" realloc.$ac_objext "* ) ;;
     5866  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
     5867esac
     5868
     5869
     5870cat >>confdefs.h <<\_ACEOF
     5871#define realloc rpl_realloc
     5872_ACEOF
     5873
     5874fi
     5875
     5876
     5877
     5878
     5879
     5880
     5881
     5882for ac_func in bzero memchr memset sqrt
     5883do
     5884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5885echo "$as_me:$LINENO: checking for $ac_func" >&5
     5886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5887if eval "test \"\${$as_ac_var+set}\" = set"; then
     5888  echo $ECHO_N "(cached) $ECHO_C" >&6
     5889else
     5890  cat >conftest.$ac_ext <<_ACEOF
     5891/* confdefs.h.  */
     5892_ACEOF
     5893cat confdefs.h >>conftest.$ac_ext
     5894cat >>conftest.$ac_ext <<_ACEOF
     5895/* end confdefs.h.  */
     5896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5897   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5898#define $ac_func innocuous_$ac_func
     5899
     5900/* System header to define __stub macros and hopefully few prototypes,
     5901    which can conflict with char $ac_func (); below.
     5902    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5903    <limits.h> exists even on freestanding compilers.  */
     5904
     5905#ifdef __STDC__
     5906# include <limits.h>
     5907#else
     5908# include <assert.h>
     5909#endif
     5910
     5911#undef $ac_func
     5912
     5913/* Override any gcc2 internal prototype to avoid an error.  */
     5914#ifdef __cplusplus
     5915extern "C"
     5916{
     5917#endif
     5918/* We use char because int might match the return type of a gcc2
     5919   builtin and then its argument prototype would still apply.  */
     5920char $ac_func ();
     5921/* The GNU C library defines this for functions which it implements
     5922    to always fail with ENOSYS.  Some functions are actually named
     5923    something starting with __ and the normal name is an alias.  */
     5924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     5925choke me
     5926#else
     5927char (*f) () = $ac_func;
     5928#endif
     5929#ifdef __cplusplus
     5930}
     5931#endif
     5932
     5933int
     5934main ()
     5935{
     5936return f != $ac_func;
     5937  ;
     5938  return 0;
     5939}
     5940_ACEOF
     5941rm -f conftest.$ac_objext conftest$ac_exeext
     5942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5943  (eval $ac_link) 2>conftest.er1
     5944  ac_status=$?
     5945  grep -v '^ *+' conftest.er1 >conftest.err
     5946  rm -f conftest.er1
     5947  cat conftest.err >&5
     5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5949  (exit $ac_status); } &&
     5950         { ac_try='test -z "$ac_c_werror_flag"
     5951                         || test ! -s conftest.err'
     5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5953  (eval $ac_try) 2>&5
     5954  ac_status=$?
     5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5956  (exit $ac_status); }; } &&
     5957         { ac_try='test -s conftest$ac_exeext'
     5958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5959  (eval $ac_try) 2>&5
     5960  ac_status=$?
     5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5962  (exit $ac_status); }; }; then
     5963  eval "$as_ac_var=yes"
     5964else
     5965  echo "$as_me: failed program was:" >&5
     5966sed 's/^/| /' conftest.$ac_ext >&5
     5967
     5968eval "$as_ac_var=no"
     5969fi
     5970rm -f conftest.err conftest.$ac_objext \
     5971      conftest$ac_exeext conftest.$ac_ext
     5972fi
     5973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5975if test `eval echo '${'$as_ac_var'}'` = yes; then
     5976  cat >>confdefs.h <<_ACEOF
     5977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5978_ACEOF
     5979
     5980fi
     5981done
     5982
     5983
     5984                                                  ac_config_files="$ac_config_files console/Makefile core/Makefile doc/program_examples/openGL/Makefile gui/Makefile orxonox/Makefile"
     5985
     5986cat >confcache <<\_ACEOF
     5987# This file is a shell script that caches the results of configure
     5988# tests run on this system so they can be shared between configure
     5989# scripts and configure runs, see configure's option --config-cache.
     5990# It is not useful on other systems.  If it contains results you don't
     5991# want to keep, you may remove or edit it.
     5992#
     5993# config.status only pays attention to the cache file if you give it
     5994# the --recheck option to rerun configure.
     5995#
     5996# `ac_cv_env_foo' variables (set or unset) will be overridden when
     5997# loading this file, other *unset* `ac_cv_foo' will be assigned the
     5998# following values.
     5999
     6000_ACEOF
     6001
     6002# The following way of writing the cache mishandles newlines in values,
     6003# but we know of no workaround that is simple, portable, and efficient.
     6004# So, don't put newlines in cache variables' values.
     6005# Ultrix sh set writes to stderr and can't be redirected directly,
     6006# and sets the high bit in the cache file unless we assign to the vars.
     6007{
     6008  (set) 2>&1 |
     6009    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     6010    *ac_space=\ *)
     6011      # `set' does not quote correctly, so add quotes (double-quote
     6012      # substitution turns \\\\ into \\, and sed turns \\ into \).
     6013      sed -n \
     6014        "s/'/'\\\\''/g;
     6015          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     6016      ;;
     6017    *)
     6018      # `set' quotes correctly as required by POSIX, so do not add quotes.
     6019      sed -n \
     6020        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     6021      ;;
     6022    esac;
     6023} |
     6024  sed '
     6025     t clear
     6026     : clear
     6027     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     6028     t end
     6029     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     6030     : end' >>confcache
     6031if diff $cache_file confcache >/dev/null 2>&1; then :; else
     6032  if test -w $cache_file; then
     6033    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     6034    cat confcache >$cache_file
     6035  else
     6036    echo "not updating unwritable cache $cache_file"
     6037  fi
     6038fi
     6039rm -f confcache
     6040
     6041test "x$prefix" = xNONE && prefix=$ac_default_prefix
     6042# Let make expand exec_prefix.
     6043test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
     6044
     6045# VPATH may cause trouble with some makes, so we remove $(srcdir),
     6046# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     6047# trailing colons and then remove the whole line if VPATH becomes empty
     6048# (actually we leave an empty line to preserve line numbers).
     6049if test "x$srcdir" = x.; then
     6050  ac_vpsub='/^[  ]*VPATH[        ]*=/{
     6051s/:*\$(srcdir):*/:/;
     6052s/:*\${srcdir}:*/:/;
     6053s/:*@srcdir@:*/:/;
     6054s/^\([^=]*=[     ]*\):*/\1/;
     6055s/:*$//;
     6056s/^[^=]*=[       ]*$//;
     6057}'
     6058fi
     6059
     6060DEFS=-DHAVE_CONFIG_H
     6061
     6062ac_libobjs=
     6063ac_ltlibobjs=
     6064for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
     6065  # 1. Remove the extension, and $U if already installed.
     6066  ac_i=`echo "$ac_i" |
     6067         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     6068  # 2. Add them.
     6069  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     6070  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     6071done
     6072LIBOBJS=$ac_libobjs
     6073
     6074LTLIBOBJS=$ac_ltlibobjs
     6075
     6076
     6077
     6078: ${CONFIG_STATUS=./config.status}
     6079ac_clean_files_save=$ac_clean_files
     6080ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     6081{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     6082echo "$as_me: creating $CONFIG_STATUS" >&6;}
     6083cat >$CONFIG_STATUS <<_ACEOF
     6084#! $SHELL
     6085# Generated by $as_me.
     6086# Run this file to recreate the current configuration.
     6087# Compiler output produced by configure, useful for debugging
     6088# configure, is in config.log if it exists.
     6089
     6090debug=false
     6091ac_cs_recheck=false
     6092ac_cs_silent=false
     6093SHELL=\${CONFIG_SHELL-$SHELL}
     6094_ACEOF
     6095
     6096cat >>$CONFIG_STATUS <<\_ACEOF
     6097## --------------------- ##
     6098## M4sh Initialization.  ##
     6099## --------------------- ##
     6100
     6101# Be Bourne compatible
     6102if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     6103  emulate sh
     6104  NULLCMD=:
     6105  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     6106  # is contrary to our usage.  Disable this feature.
     6107  alias -g '${1+"$@"}'='"$@"'
     6108elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     6109  set -o posix
     6110fi
     6111DUALCASE=1; export DUALCASE # for MKS sh
     6112
     6113# Support unset when possible.
     6114if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     6115  as_unset=unset
     6116else
     6117  as_unset=false
     6118fi
     6119
     6120
     6121# Work around bugs in pre-3.0 UWIN ksh.
     6122$as_unset ENV MAIL MAILPATH
     6123PS1='$ '
     6124PS2='> '
     6125PS4='+ '
     6126
     6127# NLS nuisances.
     6128for as_var in \
     6129  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     6130  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     6131  LC_TELEPHONE LC_TIME
     6132do
     6133  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     6134    eval $as_var=C; export $as_var
     6135  else
     6136    $as_unset $as_var
     6137  fi
     6138done
     6139
     6140# Required to use basename.
     6141if expr a : '\(a\)' >/dev/null 2>&1; then
     6142  as_expr=expr
     6143else
     6144  as_expr=false
     6145fi
     6146
     6147if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     6148  as_basename=basename
     6149else
     6150  as_basename=false
     6151fi
     6152
     6153
     6154# Name of the executable.
     6155as_me=`$as_basename "$0" ||
     6156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     6157         X"$0" : 'X\(//\)$' \| \
     6158         X"$0" : 'X\(/\)$' \| \
     6159         .     : '\(.\)' 2>/dev/null ||
     6160echo X/"$0" |
     6161    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     6162          /^X\/\(\/\/\)$/{ s//\1/; q; }
     6163          /^X\/\(\/\).*/{ s//\1/; q; }
     6164          s/.*/./; q'`
     6165
     6166
     6167# PATH needs CR, and LINENO needs CR and PATH.
     6168# Avoid depending upon Character Ranges.
     6169as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     6170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     6171as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     6172as_cr_digits='0123456789'
     6173as_cr_alnum=$as_cr_Letters$as_cr_digits
     6174
     6175# The user is always right.
     6176if test "${PATH_SEPARATOR+set}" != set; then
     6177  echo "#! /bin/sh" >conf$$.sh
     6178  echo  "exit 0"   >>conf$$.sh
     6179  chmod +x conf$$.sh
     6180  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     6181    PATH_SEPARATOR=';'
     6182  else
     6183    PATH_SEPARATOR=:
     6184  fi
     6185  rm -f conf$$.sh
     6186fi
     6187
     6188
     6189  as_lineno_1=$LINENO
     6190  as_lineno_2=$LINENO
     6191  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6192  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6193  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     6194  # Find who we are.  Look in the path if we contain no path at all
     6195  # relative or not.
     6196  case $0 in
     6197    *[\\/]* ) as_myself=$0 ;;
     6198    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6199for as_dir in $PATH
     6200do
     6201  IFS=$as_save_IFS
     6202  test -z "$as_dir" && as_dir=.
     6203  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     6204done
     6205
     6206       ;;
     6207  esac
     6208  # We did not find ourselves, most probably we were run as `sh COMMAND'
     6209  # in which case we are not to be found in the path.
     6210  if test "x$as_myself" = x; then
     6211    as_myself=$0
     6212  fi
     6213  if test ! -f "$as_myself"; then
     6214    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
     6215echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
     6216   { (exit 1); exit 1; }; }
     6217  fi
     6218  case $CONFIG_SHELL in
     6219  '')
     6220    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     6222do
     6223  IFS=$as_save_IFS
     6224  test -z "$as_dir" && as_dir=.
     6225  for as_base in sh bash ksh sh5; do
     6226         case $as_dir in
     6227         /*)
     6228           if ("$as_dir/$as_base" -c '
     6229  as_lineno_1=$LINENO
     6230  as_lineno_2=$LINENO
     6231  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     6232  test "x$as_lineno_1" != "x$as_lineno_2" &&
     6233  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     6234             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     6235             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     6236             CONFIG_SHELL=$as_dir/$as_base
     6237             export CONFIG_SHELL
     6238             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     6239           fi;;
     6240         esac
     6241       done
     6242done
     6243;;
     6244  esac
     6245
     6246  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     6247  # uniformly replaced by the line number.  The first 'sed' inserts a
     6248  # line-number line before each line; the second 'sed' does the real
     6249  # work.  The second script uses 'N' to pair each line-number line
     6250  # with the numbered line, and appends trailing '-' during
     6251  # substitution so that $LINENO is not a special case at line end.
     6252  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     6253  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     6254  sed '=' <$as_myself |
     6255    sed '
     6256      N
     6257      s,$,-,
     6258      : loop
     6259      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     6260      t loop
     6261      s,-$,,
     6262      s,^['$as_cr_digits']*\n,,
     6263    ' >$as_me.lineno &&
     6264  chmod +x $as_me.lineno ||
     6265    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
     6266echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     6267   { (exit 1); exit 1; }; }
     6268
     6269  # Don't try to exec as it changes $[0], causing all sort of problems
     6270  # (the dirname of $[0] is not the place where we might find the
     6271  # original and so on.  Autoconf is especially sensible to this).
     6272  . ./$as_me.lineno
     6273  # Exit status is that of the last command.
     6274  exit
     6275}
     6276
     6277
     6278case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     6279  *c*,-n*) ECHO_N= ECHO_C='
     6280' ECHO_T='      ' ;;
     6281  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     6282  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     6283esac
     6284
     6285if expr a : '\(a\)' >/dev/null 2>&1; then
     6286  as_expr=expr
     6287else
     6288  as_expr=false
     6289fi
     6290
     6291rm -f conf$$ conf$$.exe conf$$.file
     6292echo >conf$$.file
     6293if ln -s conf$$.file conf$$ 2>/dev/null; then
     6294  # We could just check for DJGPP; but this test a) works b) is more generic
     6295  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     6296  if test -f conf$$.exe; then
     6297    # Don't use ln at all; we don't have any links
     6298    as_ln_s='cp -p'
     6299  else
     6300    as_ln_s='ln -s'
     6301  fi
     6302elif ln conf$$.file conf$$ 2>/dev/null; then
     6303  as_ln_s=ln
     6304else
     6305  as_ln_s='cp -p'
     6306fi
     6307rm -f conf$$ conf$$.exe conf$$.file
     6308
     6309if mkdir -p . 2>/dev/null; then
     6310  as_mkdir_p=:
     6311else
     6312  test -d ./-p && rmdir ./-p
     6313  as_mkdir_p=false
     6314fi
     6315
     6316as_executable_p="test -f"
     6317
     6318# Sed expression to map a string onto a valid CPP name.
     6319as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     6320
     6321# Sed expression to map a string onto a valid variable name.
     6322as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     6323
     6324
     6325# IFS
     6326# We need space, tab and new line, in precisely that order.
     6327as_nl='
     6328'
     6329IFS="   $as_nl"
     6330
     6331# CDPATH.
     6332$as_unset CDPATH
     6333
     6334exec 6>&1
     6335
     6336# Open the log real soon, to keep \$[0] and so on meaningful, and to
     6337# report actual input values of CONFIG_FILES etc. instead of their
     6338# values after options handling.  Logging --version etc. is OK.
     6339exec 5>>config.log
     6340{
     6341  echo
     6342  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     6343## Running $as_me. ##
     6344_ASBOX
     6345} >&5
     6346cat >&5 <<_CSEOF
     6347
     6348This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
     6349generated by GNU Autoconf 2.59.  Invocation command line was
     6350
     6351  CONFIG_FILES    = $CONFIG_FILES
     6352  CONFIG_HEADERS  = $CONFIG_HEADERS
     6353  CONFIG_LINKS    = $CONFIG_LINKS
     6354  CONFIG_COMMANDS = $CONFIG_COMMANDS
     6355  $ $0 $@
     6356
     6357_CSEOF
     6358echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
     6359echo >&5
     6360_ACEOF
     6361
     6362# Files that config.status was made for.
     6363if test -n "$ac_config_files"; then
     6364  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     6365fi
     6366
     6367if test -n "$ac_config_headers"; then
     6368  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     6369fi
     6370
     6371if test -n "$ac_config_links"; then
     6372  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     6373fi
     6374
     6375if test -n "$ac_config_commands"; then
     6376  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     6377fi
     6378
     6379cat >>$CONFIG_STATUS <<\_ACEOF
     6380
     6381ac_cs_usage="\
     6382\`$as_me' instantiates files from templates according to the
     6383current configuration.
     6384
     6385Usage: $0 [OPTIONS] [FILE]...
     6386
     6387  -h, --help       print this help, then exit
     6388  -V, --version    print version number, then exit
     6389  -q, --quiet      do not print progress messages
     6390  -d, --debug      don't remove temporary files
     6391      --recheck    update $as_me by reconfiguring in the same conditions
     6392  --file=FILE[:TEMPLATE]
     6393                   instantiate the configuration file FILE
     6394  --header=FILE[:TEMPLATE]
     6395                   instantiate the configuration header FILE
     6396
     6397Configuration files:
     6398$config_files
     6399
     6400Configuration headers:
     6401$config_headers
     6402
     6403Report bugs to <bug-autoconf@gnu.org>."
     6404_ACEOF
     6405
     6406cat >>$CONFIG_STATUS <<_ACEOF
     6407ac_cs_version="\\
     6408FULL-PACKAGE-NAME config.status VERSION
     6409configured by $0, generated by GNU Autoconf 2.59,
     6410  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     6411
     6412Copyright (C) 2003 Free Software Foundation, Inc.
     6413This config.status script is free software; the Free Software Foundation
     6414gives unlimited permission to copy, distribute and modify it."
     6415srcdir=$srcdir
     6416_ACEOF
     6417
     6418cat >>$CONFIG_STATUS <<\_ACEOF
     6419# If no file are specified by the user, then we need to provide default
     6420# value.  By we need to know if files were specified by the user.
     6421ac_need_defaults=:
     6422while test $# != 0
     6423do
     6424  case $1 in
     6425  --*=*)
     6426    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     6427    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     6428    ac_shift=:
     6429    ;;
     6430  -*)
     6431    ac_option=$1
     6432    ac_optarg=$2
     6433    ac_shift=shift
     6434    ;;
     6435  *) # This is not an option, so the user has probably given explicit
     6436     # arguments.
     6437     ac_option=$1
     6438     ac_need_defaults=false;;
     6439  esac
     6440
     6441  case $ac_option in
     6442  # Handling of the options.
     6443_ACEOF
     6444cat >>$CONFIG_STATUS <<\_ACEOF
     6445  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     6446    ac_cs_recheck=: ;;
     6447  --version | --vers* | -V )
     6448    echo "$ac_cs_version"; exit 0 ;;
     6449  --he | --h)
     6450    # Conflict between --help and --header
     6451    { { echo "$as_me:$LINENO: error: ambiguous option: $1
     6452Try \`$0 --help' for more information." >&5
     6453echo "$as_me: error: ambiguous option: $1
     6454Try \`$0 --help' for more information." >&2;}
     6455   { (exit 1); exit 1; }; };;
     6456  --help | --hel | -h )
     6457    echo "$ac_cs_usage"; exit 0 ;;
     6458  --debug | --d* | -d )
     6459    debug=: ;;
     6460  --file | --fil | --fi | --f )
     6461    $ac_shift
     6462    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
     6463    ac_need_defaults=false;;
     6464  --header | --heade | --head | --hea )
     6465    $ac_shift
     6466    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
     6467    ac_need_defaults=false;;
     6468  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     6469  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     6470    ac_cs_silent=: ;;
     6471
     6472  # This is an error.
     6473  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
     6474Try \`$0 --help' for more information." >&5
     6475echo "$as_me: error: unrecognized option: $1
     6476Try \`$0 --help' for more information." >&2;}
     6477   { (exit 1); exit 1; }; } ;;
     6478
     6479  *) ac_config_targets="$ac_config_targets $1" ;;
     6480
     6481  esac
     6482  shift
     6483done
     6484
     6485ac_configure_extra_args=
     6486
     6487if $ac_cs_silent; then
     6488  exec 6>/dev/null
     6489  ac_configure_extra_args="$ac_configure_extra_args --silent"
     6490fi
     6491
     6492_ACEOF
     6493cat >>$CONFIG_STATUS <<_ACEOF
     6494if \$ac_cs_recheck; then
     6495  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     6496  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     6497fi
     6498
     6499_ACEOF
     6500
     6501
     6502
     6503
     6504
     6505cat >>$CONFIG_STATUS <<\_ACEOF
     6506for ac_config_target in $ac_config_targets
     6507do
     6508  case "$ac_config_target" in
     6509  # Handling of arguments.
     6510  "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
     6511  "core/Makefile" ) CONFIG_FILES="$CONFIG_FILES core/Makefile" ;;
     6512  "doc/program_examples/openGL/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/program_examples/openGL/Makefile" ;;
     6513  "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
     6514  "orxonox/Makefile" ) CONFIG_FILES="$CONFIG_FILES orxonox/Makefile" ;;
     6515  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     6516  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     6517echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     6518   { (exit 1); exit 1; }; };;
     6519  esac
     6520done
     6521
     6522# If the user did not use the arguments to specify the items to instantiate,
     6523# then the envvar interface is used.  Set only those that are not.
     6524# We use the long form for the default assignment because of an extremely
     6525# bizarre bug on SunOS 4.1.3.
     6526if $ac_need_defaults; then
     6527  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     6528  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     6529fi
     6530
     6531# Have a temporary directory for convenience.  Make it in the build tree
     6532# simply because there is no reason to put it here, and in addition,
     6533# creating and moving files from /tmp can sometimes cause problems.
     6534# Create a temporary directory, and hook for its removal unless debugging.
     6535$debug ||
     6536{
     6537  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     6538  trap '{ (exit 1); exit 1; }' 1 2 13 15
     6539}
     6540
     6541# Create a (secure) tmp directory for tmp files.
     6542
     6543{
     6544  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     6545  test -n "$tmp" && test -d "$tmp"
     6546}  ||
     6547{
     6548  tmp=./confstat$$-$RANDOM
     6549  (umask 077 && mkdir $tmp)
     6550} ||
     6551{
     6552   echo "$me: cannot create a temporary directory in ." >&2
     6553   { (exit 1); exit 1; }
     6554}
     6555
     6556_ACEOF
     6557
     6558cat >>$CONFIG_STATUS <<_ACEOF
     6559
     6560#
     6561# CONFIG_FILES section.
     6562#
     6563
     6564# No need to generate the scripts if there are no CONFIG_FILES.
     6565# This happens for instance when ./config.status config.h
     6566if test -n "\$CONFIG_FILES"; then
     6567  # Protect against being on the right side of a sed subst in config.status.
     6568  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     6569   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     6570s,@SHELL@,$SHELL,;t t
     6571s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     6572s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     6573s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     6574s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     6575s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     6576s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     6577s,@exec_prefix@,$exec_prefix,;t t
     6578s,@prefix@,$prefix,;t t
     6579s,@program_transform_name@,$program_transform_name,;t t
     6580s,@bindir@,$bindir,;t t
     6581s,@sbindir@,$sbindir,;t t
     6582s,@libexecdir@,$libexecdir,;t t
     6583s,@datadir@,$datadir,;t t
     6584s,@sysconfdir@,$sysconfdir,;t t
     6585s,@sharedstatedir@,$sharedstatedir,;t t
     6586s,@localstatedir@,$localstatedir,;t t
     6587s,@libdir@,$libdir,;t t
     6588s,@includedir@,$includedir,;t t
     6589s,@oldincludedir@,$oldincludedir,;t t
     6590s,@infodir@,$infodir,;t t
     6591s,@mandir@,$mandir,;t t
     6592s,@build_alias@,$build_alias,;t t
     6593s,@host_alias@,$host_alias,;t t
     6594s,@target_alias@,$target_alias,;t t
     6595s,@DEFS@,$DEFS,;t t
     6596s,@ECHO_C@,$ECHO_C,;t t
     6597s,@ECHO_N@,$ECHO_N,;t t
     6598s,@ECHO_T@,$ECHO_T,;t t
     6599s,@LIBS@,$LIBS,;t t
     6600s,@CXX@,$CXX,;t t
     6601s,@CXXFLAGS@,$CXXFLAGS,;t t
     6602s,@LDFLAGS@,$LDFLAGS,;t t
     6603s,@CPPFLAGS@,$CPPFLAGS,;t t
     6604s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     6605s,@EXEEXT@,$EXEEXT,;t t
     6606s,@OBJEXT@,$OBJEXT,;t t
     6607s,@CC@,$CC,;t t
     6608s,@CFLAGS@,$CFLAGS,;t t
     6609s,@ac_ct_CC@,$ac_ct_CC,;t t
     6610s,@ALLOCA@,$ALLOCA,;t t
     6611s,@CPP@,$CPP,;t t
     6612s,@EGREP@,$EGREP,;t t
     6613s,@LIBOBJS@,$LIBOBJS,;t t
     6614s,@LTLIBOBJS@,$LTLIBOBJS,;t t
     6615CEOF
     6616
     6617_ACEOF
     6618
     6619  cat >>$CONFIG_STATUS <<\_ACEOF
     6620  # Split the substitutions into bite-sized pieces for seds with
     6621  # small command number limits, like on Digital OSF/1 and HP-UX.
     6622  ac_max_sed_lines=48
     6623  ac_sed_frag=1 # Number of current file.
     6624  ac_beg=1 # First line for current file.
     6625  ac_end=$ac_max_sed_lines # Line after last line for current file.
     6626  ac_more_lines=:
     6627  ac_sed_cmds=
     6628  while $ac_more_lines; do
     6629    if test $ac_beg -gt 1; then
     6630      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     6631    else
     6632      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     6633    fi
     6634    if test ! -s $tmp/subs.frag; then
     6635      ac_more_lines=false
     6636    else
     6637      # The purpose of the label and of the branching condition is to
     6638      # speed up the sed processing (if there are no `@' at all, there
     6639      # is no need to browse any of the substitutions).
     6640      # These are the two extra sed commands mentioned above.
     6641      (echo ':t
     6642  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     6643      if test -z "$ac_sed_cmds"; then
     6644        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     6645      else
     6646        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     6647      fi
     6648      ac_sed_frag=`expr $ac_sed_frag + 1`
     6649      ac_beg=$ac_end
     6650      ac_end=`expr $ac_end + $ac_max_sed_lines`
     6651    fi
     6652  done
     6653  if test -z "$ac_sed_cmds"; then
     6654    ac_sed_cmds=cat
     6655  fi
     6656fi # test -n "$CONFIG_FILES"
     6657
     6658_ACEOF
     6659cat >>$CONFIG_STATUS <<\_ACEOF
     6660for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
     6661  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     6662  case $ac_file in
     6663  - | *:- | *:-:* ) # input from stdin
     6664        cat >$tmp/stdin
     6665        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6666        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6667  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6668        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6669  * )   ac_file_in=$ac_file.in ;;
     6670  esac
     6671
     6672  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     6673  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     6674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6675         X"$ac_file" : 'X\(//\)[^/]' \| \
     6676         X"$ac_file" : 'X\(//\)$' \| \
     6677         X"$ac_file" : 'X\(/\)' \| \
     6678         .     : '\(.\)' 2>/dev/null ||
     6679echo X"$ac_file" |
     6680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     6681          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     6682          /^X\(\/\/\)$/{ s//\1/; q; }
     6683          /^X\(\/\).*/{ s//\1/; q; }
     6684          s/.*/./; q'`
     6685  { if $as_mkdir_p; then
     6686    mkdir -p "$ac_dir"
     6687  else
     6688    as_dir="$ac_dir"
     6689    as_dirs=
     6690    while test ! -d "$as_dir"; do
     6691      as_dirs="$as_dir $as_dirs"
     6692      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     6693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     6694         X"$as_dir" : 'X\(//\)[^/]' \| \
     6695         X"$as_dir" : 'X\(//\)$' \| \
     6696         X"$as_dir" : 'X\(/\)' \| \
     6697         .     : '\(.\)' 2>/dev/null ||
     6698echo X"$as_dir" |
     6699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     6700          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     6701          /^X\(\/\/\)$/{ s//\1/; q; }
     6702          /^X\(\/\).*/{ s//\1/; q; }
     6703          s/.*/./; q'`
     6704    done
     6705    test ! -n "$as_dirs" || mkdir $as_dirs
     6706  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     6707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     6708   { (exit 1); exit 1; }; }; }
     6709
     6710  ac_builddir=.
     6711
     6712if test "$ac_dir" != .; then
     6713  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     6714  # A "../" for each directory in $ac_dir_suffix.
     6715  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     6716else
     6717  ac_dir_suffix= ac_top_builddir=
     6718fi
     6719
     6720case $srcdir in
     6721  .)  # No --srcdir option.  We are building in place.
     6722    ac_srcdir=.
     6723    if test -z "$ac_top_builddir"; then
     6724       ac_top_srcdir=.
     6725    else
     6726       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     6727    fi ;;
     6728  [\\/]* | ?:[\\/]* )  # Absolute path.
     6729    ac_srcdir=$srcdir$ac_dir_suffix;
     6730    ac_top_srcdir=$srcdir ;;
     6731  *) # Relative path.
     6732    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     6733    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     6734esac
     6735
     6736# Do not use `cd foo && pwd` to compute absolute paths, because
     6737# the directories may not exist.
     6738case `pwd` in
     6739.) ac_abs_builddir="$ac_dir";;
     6740*)
     6741  case "$ac_dir" in
     6742  .) ac_abs_builddir=`pwd`;;
     6743  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     6744  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     6745  esac;;
     6746esac
     6747case $ac_abs_builddir in
     6748.) ac_abs_top_builddir=${ac_top_builddir}.;;
     6749*)
     6750  case ${ac_top_builddir}. in
     6751  .) ac_abs_top_builddir=$ac_abs_builddir;;
     6752  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     6753  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     6754  esac;;
     6755esac
     6756case $ac_abs_builddir in
     6757.) ac_abs_srcdir=$ac_srcdir;;
     6758*)
     6759  case $ac_srcdir in
     6760  .) ac_abs_srcdir=$ac_abs_builddir;;
     6761  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     6762  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     6763  esac;;
     6764esac
     6765case $ac_abs_builddir in
     6766.) ac_abs_top_srcdir=$ac_top_srcdir;;
     6767*)
     6768  case $ac_top_srcdir in
     6769  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     6770  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     6771  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     6772  esac;;
     6773esac
     6774
     6775
     6776
     6777  if test x"$ac_file" != x-; then
     6778    { echo "$as_me:$LINENO: creating $ac_file" >&5
     6779echo "$as_me: creating $ac_file" >&6;}
     6780    rm -f "$ac_file"
     6781  fi
     6782  # Let's still pretend it is `configure' which instantiates (i.e., don't
     6783  # use $as_me), people would be surprised to read:
     6784  #    /* config.h.  Generated by config.status.  */
     6785  if test x"$ac_file" = x-; then
     6786    configure_input=
     6787  else
     6788    configure_input="$ac_file.  "
     6789  fi
     6790  configure_input=$configure_input"Generated from `echo $ac_file_in |
     6791                                     sed 's,.*/,,'` by configure."
     6792
     6793  # First look for the input files in the build tree, otherwise in the
     6794  # src tree.
     6795  ac_file_inputs=`IFS=:
     6796    for f in $ac_file_in; do
     6797      case $f in
     6798      -) echo $tmp/stdin ;;
     6799      [\\/$]*)
     6800         # Absolute (can't be DOS-style, as IFS=:)
     6801         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     6802echo "$as_me: error: cannot find input file: $f" >&2;}
     6803   { (exit 1); exit 1; }; }
     6804         echo "$f";;
     6805      *) # Relative
     6806         if test -f "$f"; then
     6807           # Build tree
     6808           echo "$f"
     6809         elif test -f "$srcdir/$f"; then
     6810           # Source tree
     6811           echo "$srcdir/$f"
     6812         else
     6813           # /dev/null tree
     6814           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     6815echo "$as_me: error: cannot find input file: $f" >&2;}
     6816   { (exit 1); exit 1; }; }
     6817         fi;;
     6818      esac
     6819    done` || { (exit 1); exit 1; }
     6820_ACEOF
     6821cat >>$CONFIG_STATUS <<_ACEOF
     6822  sed "$ac_vpsub
     6823$extrasub
     6824_ACEOF
     6825cat >>$CONFIG_STATUS <<\_ACEOF
     6826:t
     6827/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     6828s,@configure_input@,$configure_input,;t t
     6829s,@srcdir@,$ac_srcdir,;t t
     6830s,@abs_srcdir@,$ac_abs_srcdir,;t t
     6831s,@top_srcdir@,$ac_top_srcdir,;t t
     6832s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
     6833s,@builddir@,$ac_builddir,;t t
     6834s,@abs_builddir@,$ac_abs_builddir,;t t
     6835s,@top_builddir@,$ac_top_builddir,;t t
     6836s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
     6837" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     6838  rm -f $tmp/stdin
     6839  if test x"$ac_file" != x-; then
     6840    mv $tmp/out $ac_file
     6841  else
     6842    cat $tmp/out
     6843    rm -f $tmp/out
     6844  fi
     6845
     6846done
     6847_ACEOF
     6848cat >>$CONFIG_STATUS <<\_ACEOF
     6849
     6850#
     6851# CONFIG_HEADER section.
     6852#
     6853
     6854# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     6855# NAME is the cpp macro being defined and VALUE is the value it is being given.
     6856#
     6857# ac_d sets the value in "#define NAME VALUE" lines.
     6858ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
     6859ac_dB='[         ].*$,\1#\2'
     6860ac_dC=' '
     6861ac_dD=',;t'
     6862# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     6863ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     6864ac_uB='$,\1#\2define\3'
     6865ac_uC=' '
     6866ac_uD=',;t'
     6867
     6868for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     6869  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     6870  case $ac_file in
     6871  - | *:- | *:-:* ) # input from stdin
     6872        cat >$tmp/stdin
     6873        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6874        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6875  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     6876        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     6877  * )   ac_file_in=$ac_file.in ;;
     6878  esac
     6879
     6880  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     6881echo "$as_me: creating $ac_file" >&6;}
     6882
     6883  # First look for the input files in the build tree, otherwise in the
     6884  # src tree.
     6885  ac_file_inputs=`IFS=:
     6886    for f in $ac_file_in; do
     6887      case $f in
     6888      -) echo $tmp/stdin ;;
     6889      [\\/$]*)
     6890         # Absolute (can't be DOS-style, as IFS=:)
     6891         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     6892echo "$as_me: error: cannot find input file: $f" >&2;}
     6893   { (exit 1); exit 1; }; }
     6894         # Do quote $f, to prevent DOS paths from being IFS'd.
     6895         echo "$f";;
     6896      *) # Relative
     6897         if test -f "$f"; then
     6898           # Build tree
     6899           echo "$f"
     6900         elif test -f "$srcdir/$f"; then
     6901           # Source tree
     6902           echo "$srcdir/$f"
     6903         else
     6904           # /dev/null tree
     6905           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     6906echo "$as_me: error: cannot find input file: $f" >&2;}
     6907   { (exit 1); exit 1; }; }
     6908         fi;;
     6909      esac
     6910    done` || { (exit 1); exit 1; }
     6911  # Remove the trailing spaces.
     6912  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
     6913
     6914_ACEOF
     6915
     6916# Transform confdefs.h into two sed scripts, `conftest.defines' and
     6917# `conftest.undefs', that substitutes the proper values into
     6918# config.h.in to produce config.h.  The first handles `#define'
     6919# templates, and the second `#undef' templates.
     6920# And first: Protect against being on the right side of a sed subst in
     6921# config.status.  Protect against being in an unquoted here document
     6922# in config.status.
     6923rm -f conftest.defines conftest.undefs
     6924# Using a here document instead of a string reduces the quoting nightmare.
     6925# Putting comments in sed scripts is not portable.
     6926#
     6927# `end' is used to avoid that the second main sed command (meant for
     6928# 0-ary CPP macros) applies to n-ary macro definitions.
     6929# See the Autoconf documentation for `clear'.
     6930cat >confdef2sed.sed <<\_ACEOF
     6931s/[\\&,]/\\&/g
     6932s,[\\$`],\\&,g
     6933t clear
     6934: clear
     6935s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     6936t end
     6937s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     6938: end
     6939_ACEOF
     6940# If some macros were called several times there might be several times
     6941# the same #defines, which is useless.  Nevertheless, we may not want to
     6942# sort them, since we want the *last* AC-DEFINE to be honored.
     6943uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     6944sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     6945rm -f confdef2sed.sed
     6946
     6947# This sed command replaces #undef with comments.  This is necessary, for
     6948# example, in the case of _POSIX_SOURCE, which is predefined and required
     6949# on some systems where configure will not decide to define it.
     6950cat >>conftest.undefs <<\_ACEOF
     6951s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     6952_ACEOF
     6953
     6954# Break up conftest.defines because some shells have a limit on the size
     6955# of here documents, and old seds have small limits too (100 cmds).
     6956echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     6957echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     6958echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     6959echo '  :' >>$CONFIG_STATUS
     6960rm -f conftest.tail
     6961while grep . conftest.defines >/dev/null
     6962do
     6963  # Write a limited-size here document to $tmp/defines.sed.
     6964  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     6965  # Speed up: don't consider the non `#define' lines.
     6966  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
     6967  # Work around the forget-to-reset-the-flag bug.
     6968  echo 't clr' >>$CONFIG_STATUS
     6969  echo ': clr' >>$CONFIG_STATUS
     6970  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     6971  echo 'CEOF
     6972  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     6973  rm -f $tmp/in
     6974  mv $tmp/out $tmp/in
     6975' >>$CONFIG_STATUS
     6976  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     6977  rm -f conftest.defines
     6978  mv conftest.tail conftest.defines
     6979done
     6980rm -f conftest.defines
     6981echo '  fi # grep' >>$CONFIG_STATUS
     6982echo >>$CONFIG_STATUS
     6983
     6984# Break up conftest.undefs because some shells have a limit on the size
     6985# of here documents, and old seds have small limits too (100 cmds).
     6986echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     6987rm -f conftest.tail
     6988while grep . conftest.undefs >/dev/null
     6989do
     6990  # Write a limited-size here document to $tmp/undefs.sed.
     6991  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     6992  # Speed up: don't consider the non `#undef'
     6993  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     6994  # Work around the forget-to-reset-the-flag bug.
     6995  echo 't clr' >>$CONFIG_STATUS
     6996  echo ': clr' >>$CONFIG_STATUS
     6997  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     6998  echo 'CEOF
     6999  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     7000  rm -f $tmp/in
     7001  mv $tmp/out $tmp/in
     7002' >>$CONFIG_STATUS
     7003  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     7004  rm -f conftest.undefs
     7005  mv conftest.tail conftest.undefs
     7006done
     7007rm -f conftest.undefs
     7008
     7009cat >>$CONFIG_STATUS <<\_ACEOF
     7010  # Let's still pretend it is `configure' which instantiates (i.e., don't
     7011  # use $as_me), people would be surprised to read:
     7012  #    /* config.h.  Generated by config.status.  */
     7013  if test x"$ac_file" = x-; then
     7014    echo "/* Generated by configure.  */" >$tmp/config.h
     7015  else
     7016    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     7017  fi
     7018  cat $tmp/in >>$tmp/config.h
     7019  rm -f $tmp/in
     7020  if test x"$ac_file" != x-; then
     7021    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     7022      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     7023echo "$as_me: $ac_file is unchanged" >&6;}
     7024    else
     7025      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     7026$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7027         X"$ac_file" : 'X\(//\)[^/]' \| \
     7028         X"$ac_file" : 'X\(//\)$' \| \
     7029         X"$ac_file" : 'X\(/\)' \| \
     7030         .     : '\(.\)' 2>/dev/null ||
     7031echo X"$ac_file" |
     7032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7033          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7034          /^X\(\/\/\)$/{ s//\1/; q; }
     7035          /^X\(\/\).*/{ s//\1/; q; }
     7036          s/.*/./; q'`
     7037      { if $as_mkdir_p; then
     7038    mkdir -p "$ac_dir"
     7039  else
     7040    as_dir="$ac_dir"
     7041    as_dirs=
     7042    while test ! -d "$as_dir"; do
     7043      as_dirs="$as_dir $as_dirs"
     7044      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     7045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     7046         X"$as_dir" : 'X\(//\)[^/]' \| \
     7047         X"$as_dir" : 'X\(//\)$' \| \
     7048         X"$as_dir" : 'X\(/\)' \| \
     7049         .     : '\(.\)' 2>/dev/null ||
     7050echo X"$as_dir" |
     7051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     7052          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     7053          /^X\(\/\/\)$/{ s//\1/; q; }
     7054          /^X\(\/\).*/{ s//\1/; q; }
     7055          s/.*/./; q'`
     7056    done
     7057    test ! -n "$as_dirs" || mkdir $as_dirs
     7058  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     7059echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     7060   { (exit 1); exit 1; }; }; }
     7061
     7062      rm -f $ac_file
     7063      mv $tmp/config.h $ac_file
     7064    fi
     7065  else
     7066    cat $tmp/config.h
     7067    rm -f $tmp/config.h
     7068  fi
     7069done
     7070_ACEOF
     7071
     7072cat >>$CONFIG_STATUS <<\_ACEOF
     7073
     7074{ (exit 0); exit 0; }
     7075_ACEOF
     7076chmod +x $CONFIG_STATUS
     7077ac_clean_files=$ac_clean_files_save
     7078
     7079
     7080# configure is writing to config.log, and then calls config.status.
     7081# config.status does its own redirection, appending to config.log.
     7082# Unfortunately, on DOS this fails, as config.log is still kept open
     7083# by configure, so config.status won't be able to write to it; its
     7084# output is simply discarded.  So we exec the FD to /dev/null,
     7085# effectively closing config.log, so it can be properly (re)opened and
     7086# appended to by config.status.  When coming back to configure, we
     7087# need to make the FD available again.
     7088if test "$no_create" != yes; then
     7089  ac_cs_success=:
     7090  ac_config_status_args=
     7091  test "$silent" = yes &&
     7092    ac_config_status_args="$ac_config_status_args --quiet"
     7093  exec 5>/dev/null
     7094  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
     7095  exec 5>>config.log
     7096  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     7097  # would make configure fail if this is the last instruction.
     7098  $ac_cs_success || { (exit 1); exit 1; }
     7099fi
     7100
Note: See TracChangeset for help on using the changeset viewer.