coreboot/util/mkelfImage/configure
<<
>>
Prefs
   1#! /bin/sh
   2# Guess values for system-dependent variables and create Makefiles.
   3# Generated by GNU Autoconf 2.61.
   4#
   5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   7# This configure script is free software; the Free Software Foundation
   8# gives unlimited permission to copy, distribute and modify it.
   9## --------------------- ##
  10## M4sh Initialization.  ##
  11## --------------------- ##
  12
  13# Be more Bourne compatible
  14DUALCASE=1; export DUALCASE # for MKS sh
  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+"$@"}'='"$@"'
  21  setopt NO_GLOB_SUBST
  22else
  23  case `(set -o) 2>/dev/null` in
  24  *posix*) set -o posix ;;
  25esac
  26
  27fi
  28
  29
  30
  31
  32# PATH needs CR
  33# Avoid depending upon Character Ranges.
  34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  37as_cr_digits='0123456789'
  38as_cr_alnum=$as_cr_Letters$as_cr_digits
  39
  40# The user is always right.
  41if test "${PATH_SEPARATOR+set}" != set; then
  42  echo "#! /bin/sh" >conf$$.sh
  43  echo  "exit 0"   >>conf$$.sh
  44  chmod +x conf$$.sh
  45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  46    PATH_SEPARATOR=';'
  47  else
  48    PATH_SEPARATOR=:
  49  fi
  50  rm -f conf$$.sh
  51fi
  52
  53# Support unset when possible.
  54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  55  as_unset=unset
  56else
  57  as_unset=false
  58fi
  59
  60
  61# IFS
  62# We need space, tab and new line, in precisely that order.  Quoting is
  63# there to prevent editors from complaining about space-tab.
  64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  65# splitting by setting IFS to empty value.)
  66as_nl='
  67'
  68IFS=" ""        $as_nl"
  69
  70# Find who we are.  Look in the path if we contain no directory separator.
  71case $0 in
  72  *[\\/]* ) as_myself=$0 ;;
  73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  74for as_dir in $PATH
  75do
  76  IFS=$as_save_IFS
  77  test -z "$as_dir" && as_dir=.
  78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  79done
  80IFS=$as_save_IFS
  81
  82     ;;
  83esac
  84# We did not find ourselves, most probably we were run as `sh COMMAND'
  85# in which case we are not to be found in the path.
  86if test "x$as_myself" = x; then
  87  as_myself=$0
  88fi
  89if test ! -f "$as_myself"; then
  90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  91  { (exit 1); exit 1; }
  92fi
  93
  94# Work around bugs in pre-3.0 UWIN ksh.
  95for as_var in ENV MAIL MAILPATH
  96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  97done
  98PS1='$ '
  99PS2='> '
 100PS4='+ '
 101
 102# NLS nuisances.
 103for as_var in \
 104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 106  LC_TELEPHONE LC_TIME
 107do
 108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 109    eval $as_var=C; export $as_var
 110  else
 111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 112  fi
 113done
 114
 115# Required to use basename.
 116if expr a : '\(a\)' >/dev/null 2>&1 &&
 117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 118  as_expr=expr
 119else
 120  as_expr=false
 121fi
 122
 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 124  as_basename=basename
 125else
 126  as_basename=false
 127fi
 128
 129
 130# Name of the executable.
 131as_me=`$as_basename -- "$0" ||
 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 133         X"$0" : 'X\(//\)$' \| \
 134         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 135echo X/"$0" |
 136    sed '/^.*\/\([^/][^/]*\)\/*$/{
 137            s//\1/
 138            q
 139          }
 140          /^X\/\(\/\/\)$/{
 141            s//\1/
 142            q
 143          }
 144          /^X\/\(\/\).*/{
 145            s//\1/
 146            q
 147          }
 148          s/.*/./; q'`
 149
 150# CDPATH.
 151$as_unset CDPATH
 152
 153
 154if test "x$CONFIG_SHELL" = x; then
 155  if (eval ":") 2>/dev/null; then
 156  as_have_required=yes
 157else
 158  as_have_required=no
 159fi
 160
 161  if test $as_have_required = yes &&     (eval ":
 162(as_func_return () {
 163  (exit \$1)
 164}
 165as_func_success () {
 166  as_func_return 0
 167}
 168as_func_failure () {
 169  as_func_return 1
 170}
 171as_func_ret_success () {
 172  return 0
 173}
 174as_func_ret_failure () {
 175  return 1
 176}
 177
 178exitcode=0
 179if as_func_success; then
 180  :
 181else
 182  exitcode=1
 183  echo as_func_success failed.
 184fi
 185
 186if as_func_failure; then
 187  exitcode=1
 188  echo as_func_failure succeeded.
 189fi
 190
 191if as_func_ret_success; then
 192  :
 193else
 194  exitcode=1
 195  echo as_func_ret_success failed.
 196fi
 197
 198if as_func_ret_failure; then
 199  exitcode=1
 200  echo as_func_ret_failure succeeded.
 201fi
 202
 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 204  :
 205else
 206  exitcode=1
 207  echo positional parameters were not saved.
 208fi
 209
 210test \$exitcode = 0) || { (exit 1); exit 1; }
 211
 212(
 213  as_lineno_1=\$LINENO
 214  as_lineno_2=\$LINENO
 215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 217") 2> /dev/null; then
 218  :
 219else
 220  as_candidate_shells=
 221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 223do
 224  IFS=$as_save_IFS
 225  test -z "$as_dir" && as_dir=.
 226  case $as_dir in
 227         /*)
 228           for as_base in sh bash ksh sh5; do
 229             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 230           done;;
 231       esac
 232done
 233IFS=$as_save_IFS
 234
 235
 236      for as_shell in $as_candidate_shells $SHELL; do
 237         # Try only shells that exist, to save several forks.
 238         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 239                { ("$as_shell") 2> /dev/null <<\_ASEOF
 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 241  emulate sh
 242  NULLCMD=:
 243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 244  # is contrary to our usage.  Disable this feature.
 245  alias -g '${1+"$@"}'='"$@"'
 246  setopt NO_GLOB_SUBST
 247else
 248  case `(set -o) 2>/dev/null` in
 249  *posix*) set -o posix ;;
 250esac
 251
 252fi
 253
 254
 255:
 256_ASEOF
 257}; then
 258  CONFIG_SHELL=$as_shell
 259               as_have_required=yes
 260               if { "$as_shell" 2> /dev/null <<\_ASEOF
 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 262  emulate sh
 263  NULLCMD=:
 264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 265  # is contrary to our usage.  Disable this feature.
 266  alias -g '${1+"$@"}'='"$@"'
 267  setopt NO_GLOB_SUBST
 268else
 269  case `(set -o) 2>/dev/null` in
 270  *posix*) set -o posix ;;
 271esac
 272
 273fi
 274
 275
 276:
 277(as_func_return () {
 278  (exit $1)
 279}
 280as_func_success () {
 281  as_func_return 0
 282}
 283as_func_failure () {
 284  as_func_return 1
 285}
 286as_func_ret_success () {
 287  return 0
 288}
 289as_func_ret_failure () {
 290  return 1
 291}
 292
 293exitcode=0
 294if as_func_success; then
 295  :
 296else
 297  exitcode=1
 298  echo as_func_success failed.
 299fi
 300
 301if as_func_failure; then
 302  exitcode=1
 303  echo as_func_failure succeeded.
 304fi
 305
 306if as_func_ret_success; then
 307  :
 308else
 309  exitcode=1
 310  echo as_func_ret_success failed.
 311fi
 312
 313if as_func_ret_failure; then
 314  exitcode=1
 315  echo as_func_ret_failure succeeded.
 316fi
 317
 318if ( set x; as_func_ret_success y && test x = "$1" ); then
 319  :
 320else
 321  exitcode=1
 322  echo positional parameters were not saved.
 323fi
 324
 325test $exitcode = 0) || { (exit 1); exit 1; }
 326
 327(
 328  as_lineno_1=$LINENO
 329  as_lineno_2=$LINENO
 330  test "x$as_lineno_1" != "x$as_lineno_2" &&
 331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 332
 333_ASEOF
 334}; then
 335  break
 336fi
 337
 338fi
 339
 340      done
 341
 342      if test "x$CONFIG_SHELL" != x; then
 343  for as_var in BASH_ENV ENV
 344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 345        done
 346        export CONFIG_SHELL
 347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 348fi
 349
 350
 351    if test $as_have_required = no; then
 352  echo This script requires a shell more modern than all the
 353      echo shells that I found on your system.  Please install a
 354      echo modern shell, or manually run the script under such a
 355      echo shell if you do have one.
 356      { (exit 1); exit 1; }
 357fi
 358
 359
 360fi
 361
 362fi
 363
 364
 365
 366(eval "as_func_return () {
 367  (exit \$1)
 368}
 369as_func_success () {
 370  as_func_return 0
 371}
 372as_func_failure () {
 373  as_func_return 1
 374}
 375as_func_ret_success () {
 376  return 0
 377}
 378as_func_ret_failure () {
 379  return 1
 380}
 381
 382exitcode=0
 383if as_func_success; then
 384  :
 385else
 386  exitcode=1
 387  echo as_func_success failed.
 388fi
 389
 390if as_func_failure; then
 391  exitcode=1
 392  echo as_func_failure succeeded.
 393fi
 394
 395if as_func_ret_success; then
 396  :
 397else
 398  exitcode=1
 399  echo as_func_ret_success failed.
 400fi
 401
 402if as_func_ret_failure; then
 403  exitcode=1
 404  echo as_func_ret_failure succeeded.
 405fi
 406
 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 408  :
 409else
 410  exitcode=1
 411  echo positional parameters were not saved.
 412fi
 413
 414test \$exitcode = 0") || {
 415  echo No shell found that supports shell functions.
 416  echo Please tell autoconf@gnu.org about your system,
 417  echo including any error possibly output before this
 418  echo message
 419}
 420
 421
 422
 423  as_lineno_1=$LINENO
 424  as_lineno_2=$LINENO
 425  test "x$as_lineno_1" != "x$as_lineno_2" &&
 426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 427
 428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 429  # uniformly replaced by the line number.  The first 'sed' inserts a
 430  # line-number line after each line using $LINENO; the second 'sed'
 431  # does the real work.  The second script uses 'N' to pair each
 432  # line-number line with the line containing $LINENO, and appends
 433  # trailing '-' during substitution so that $LINENO is not a special
 434  # case at line end.
 435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 437  # E. McMahon (1931-1989) for sed's syntax.  :-)
 438  sed -n '
 439    p
 440    /[$]LINENO/=
 441  ' <$as_myself |
 442    sed '
 443      s/[$]LINENO.*/&-/
 444      t lineno
 445      b
 446      :lineno
 447      N
 448      :loop
 449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 450      t loop
 451      s/-\n.*//
 452    ' >$as_me.lineno &&
 453  chmod +x "$as_me.lineno" ||
 454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 455   { (exit 1); exit 1; }; }
 456
 457  # Don't try to exec as it changes $[0], causing all sort of problems
 458  # (the dirname of $[0] is not the place where we might find the
 459  # original and so on.  Autoconf is especially sensitive to this).
 460  . "./$as_me.lineno"
 461  # Exit status is that of the last command.
 462  exit
 463}
 464
 465
 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 467  as_dirname=dirname
 468else
 469  as_dirname=false
 470fi
 471
 472ECHO_C= ECHO_N= ECHO_T=
 473case `echo -n x` in
 474-n*)
 475  case `echo 'x\c'` in
 476  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 477  *)   ECHO_C='\c';;
 478  esac;;
 479*)
 480  ECHO_N='-n';;
 481esac
 482
 483if expr a : '\(a\)' >/dev/null 2>&1 &&
 484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 485  as_expr=expr
 486else
 487  as_expr=false
 488fi
 489
 490rm -f conf$$ conf$$.exe conf$$.file
 491if test -d conf$$.dir; then
 492  rm -f conf$$.dir/conf$$.file
 493else
 494  rm -f conf$$.dir
 495  mkdir conf$$.dir
 496fi
 497echo >conf$$.file
 498if ln -s conf$$.file conf$$ 2>/dev/null; then
 499  as_ln_s='ln -s'
 500  # ... but there are two gotchas:
 501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 503  # In both cases, we have to default to `cp -p'.
 504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 505    as_ln_s='cp -p'
 506elif ln conf$$.file conf$$ 2>/dev/null; then
 507  as_ln_s=ln
 508else
 509  as_ln_s='cp -p'
 510fi
 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 512rmdir conf$$.dir 2>/dev/null
 513
 514if mkdir -p . 2>/dev/null; then
 515  as_mkdir_p=:
 516else
 517  test -d ./-p && rmdir ./-p
 518  as_mkdir_p=false
 519fi
 520
 521if test -x / >/dev/null 2>&1; then
 522  as_test_x='test -x'
 523else
 524  if ls -dL / >/dev/null 2>&1; then
 525    as_ls_L_option=L
 526  else
 527    as_ls_L_option=
 528  fi
 529  as_test_x='
 530    eval sh -c '\''
 531      if test -d "$1"; then
 532        test -d "$1/.";
 533      else
 534        case $1 in
 535        -*)set "./$1";;
 536        esac;
 537        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 538        ???[sx]*):;;*)false;;esac;fi
 539    '\'' sh
 540  '
 541fi
 542as_executable_p=$as_test_x
 543
 544# Sed expression to map a string onto a valid CPP name.
 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 546
 547# Sed expression to map a string onto a valid variable name.
 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 549
 550
 551
 552exec 7<&0 </dev/null 6>&1
 553
 554# Name of the host.
 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 556# so uname gets run too.
 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 558
 559#
 560# Initializations.
 561#
 562ac_default_prefix=/usr/local
 563ac_clean_files=
 564ac_config_libobj_dir=.
 565LIBOBJS=
 566cross_compiling=no
 567subdirs=
 568MFLAGS=
 569MAKEFLAGS=
 570SHELL=${CONFIG_SHELL-/bin/sh}
 571
 572# Identity of this package.
 573PACKAGE_NAME=
 574PACKAGE_TARNAME=
 575PACKAGE_VERSION=
 576PACKAGE_STRING=
 577PACKAGE_BUGREPORT=
 578
 579ac_unique_file="Makefile.conf.in"
 580# Factoring default headers for most tests.
 581ac_includes_default="\
 582#include <stdio.h>
 583#ifdef HAVE_SYS_TYPES_H
 584# include <sys/types.h>
 585#endif
 586#ifdef HAVE_SYS_STAT_H
 587# include <sys/stat.h>
 588#endif
 589#ifdef STDC_HEADERS
 590# include <stdlib.h>
 591# include <stddef.h>
 592#else
 593# ifdef HAVE_STDLIB_H
 594#  include <stdlib.h>
 595# endif
 596#endif
 597#ifdef HAVE_STRING_H
 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 599#  include <memory.h>
 600# endif
 601# include <string.h>
 602#endif
 603#ifdef HAVE_STRINGS_H
 604# include <strings.h>
 605#endif
 606#ifdef HAVE_INTTYPES_H
 607# include <inttypes.h>
 608#endif
 609#ifdef HAVE_STDINT_H
 610# include <stdint.h>
 611#endif
 612#ifdef HAVE_UNISTD_H
 613# include <unistd.h>
 614#endif"
 615
 616ac_subst_vars='SHELL
 617PATH_SEPARATOR
 618PACKAGE_NAME
 619PACKAGE_TARNAME
 620PACKAGE_VERSION
 621PACKAGE_STRING
 622PACKAGE_BUGREPORT
 623exec_prefix
 624prefix
 625program_transform_name
 626bindir
 627sbindir
 628libexecdir
 629datarootdir
 630datadir
 631sysconfdir
 632sharedstatedir
 633localstatedir
 634includedir
 635oldincludedir
 636docdir
 637infodir
 638htmldir
 639dvidir
 640pdfdir
 641psdir
 642libdir
 643localedir
 644mandir
 645DEFS
 646ECHO_C
 647ECHO_N
 648ECHO_T
 649LIBS
 650build_alias
 651host_alias
 652target_alias
 653build
 654build_cpu
 655build_vendor
 656build_os
 657host
 658host_cpu
 659host_vendor
 660host_os
 661CC
 662CFLAGS
 663LDFLAGS
 664CPPFLAGS
 665ac_ct_CC
 666EXEEXT
 667OBJEXT
 668MKDIR
 669RM
 670CP
 671LN
 672TAR
 673RPM
 674SED
 675FIND
 676CPP
 677GREP
 678EGREP
 679LD
 680AS
 681OBJCOPY
 682I386_CC
 683I386_CPP
 684I386_LD
 685I386_AS
 686I386_OBJCOPY
 687IA64_CC
 688IA64_CPP
 689IA64_LD
 690IA64_AS
 691IA64_OBJCOPY
 692HOST_CC
 693HOST_CFLAGS
 694I386_CFLAGS
 695I386_ASFLAGS
 696I386_LDFLAGS
 697IA64_CFLAGS
 698IA64_ASFLAGS
 699IA64_LDFLAGS
 700LIBOBJS
 701LTLIBOBJS'
 702ac_subst_files=''
 703      ac_precious_vars='build_alias
 704host_alias
 705target_alias
 706CC
 707CFLAGS
 708LDFLAGS
 709LIBS
 710CPPFLAGS
 711CPP'
 712
 713
 714# Initialize some variables set by options.
 715ac_init_help=
 716ac_init_version=false
 717# The variables have the same names as the options, with
 718# dashes changed to underlines.
 719cache_file=/dev/null
 720exec_prefix=NONE
 721no_create=
 722no_recursion=
 723prefix=NONE
 724program_prefix=NONE
 725program_suffix=NONE
 726program_transform_name=s,x,x,
 727silent=
 728site=
 729srcdir=
 730verbose=
 731x_includes=NONE
 732x_libraries=NONE
 733
 734# Installation directory options.
 735# These are left unexpanded so users can "make install exec_prefix=/foo"
 736# and all the variables that are supposed to be based on exec_prefix
 737# by default will actually change.
 738# Use braces instead of parens because sh, perl, etc. also accept them.
 739# (The list follows the same order as the GNU Coding Standards.)
 740bindir='${exec_prefix}/bin'
 741sbindir='${exec_prefix}/sbin'
 742libexecdir='${exec_prefix}/libexec'
 743datarootdir='${prefix}/share'
 744datadir='${datarootdir}'
 745sysconfdir='${prefix}/etc'
 746sharedstatedir='${prefix}/com'
 747localstatedir='${prefix}/var'
 748includedir='${prefix}/include'
 749oldincludedir='/usr/include'
 750docdir='${datarootdir}/doc/${PACKAGE}'
 751infodir='${datarootdir}/info'
 752htmldir='${docdir}'
 753dvidir='${docdir}'
 754pdfdir='${docdir}'
 755psdir='${docdir}'
 756libdir='${exec_prefix}/lib'
 757localedir='${datarootdir}/locale'
 758mandir='${datarootdir}/man'
 759
 760ac_prev=
 761ac_dashdash=
 762for ac_option
 763do
 764  # If the previous option needs an argument, assign it.
 765  if test -n "$ac_prev"; then
 766    eval $ac_prev=\$ac_option
 767    ac_prev=
 768    continue
 769  fi
 770
 771  case $ac_option in
 772  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 773  *)    ac_optarg=yes ;;
 774  esac
 775
 776  # Accept the important Cygnus configure options, so we can diagnose typos.
 777
 778  case $ac_dashdash$ac_option in
 779  --)
 780    ac_dashdash=yes ;;
 781
 782  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 783    ac_prev=bindir ;;
 784  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 785    bindir=$ac_optarg ;;
 786
 787  -build | --build | --buil | --bui | --bu)
 788    ac_prev=build_alias ;;
 789  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 790    build_alias=$ac_optarg ;;
 791
 792  -cache-file | --cache-file | --cache-fil | --cache-fi \
 793  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 794    ac_prev=cache_file ;;
 795  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 796  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 797    cache_file=$ac_optarg ;;
 798
 799  --config-cache | -C)
 800    cache_file=config.cache ;;
 801
 802  -datadir | --datadir | --datadi | --datad)
 803    ac_prev=datadir ;;
 804  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 805    datadir=$ac_optarg ;;
 806
 807  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 808  | --dataroo | --dataro | --datar)
 809    ac_prev=datarootdir ;;
 810  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 811  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 812    datarootdir=$ac_optarg ;;
 813
 814  -disable-* | --disable-*)
 815    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 816    # Reject names that are not valid shell variable names.
 817    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 818      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 819   { (exit 1); exit 1; }; }
 820    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 821    eval enable_$ac_feature=no ;;
 822
 823  -docdir | --docdir | --docdi | --doc | --do)
 824    ac_prev=docdir ;;
 825  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 826    docdir=$ac_optarg ;;
 827
 828  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 829    ac_prev=dvidir ;;
 830  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 831    dvidir=$ac_optarg ;;
 832
 833  -enable-* | --enable-*)
 834    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 835    # Reject names that are not valid shell variable names.
 836    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 837      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 838   { (exit 1); exit 1; }; }
 839    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 840    eval enable_$ac_feature=\$ac_optarg ;;
 841
 842  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 843  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 844  | --exec | --exe | --ex)
 845    ac_prev=exec_prefix ;;
 846  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 847  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 848  | --exec=* | --exe=* | --ex=*)
 849    exec_prefix=$ac_optarg ;;
 850
 851  -gas | --gas | --ga | --g)
 852    # Obsolete; use --with-gas.
 853    with_gas=yes ;;
 854
 855  -help | --help | --hel | --he | -h)
 856    ac_init_help=long ;;
 857  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 858    ac_init_help=recursive ;;
 859  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 860    ac_init_help=short ;;
 861
 862  -host | --host | --hos | --ho)
 863    ac_prev=host_alias ;;
 864  -host=* | --host=* | --hos=* | --ho=*)
 865    host_alias=$ac_optarg ;;
 866
 867  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 868    ac_prev=htmldir ;;
 869  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 870  | --ht=*)
 871    htmldir=$ac_optarg ;;
 872
 873  -includedir | --includedir | --includedi | --included | --include \
 874  | --includ | --inclu | --incl | --inc)
 875    ac_prev=includedir ;;
 876  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 877  | --includ=* | --inclu=* | --incl=* | --inc=*)
 878    includedir=$ac_optarg ;;
 879
 880  -infodir | --infodir | --infodi | --infod | --info | --inf)
 881    ac_prev=infodir ;;
 882  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 883    infodir=$ac_optarg ;;
 884
 885  -libdir | --libdir | --libdi | --libd)
 886    ac_prev=libdir ;;
 887  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 888    libdir=$ac_optarg ;;
 889
 890  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 891  | --libexe | --libex | --libe)
 892    ac_prev=libexecdir ;;
 893  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 894  | --libexe=* | --libex=* | --libe=*)
 895    libexecdir=$ac_optarg ;;
 896
 897  -localedir | --localedir | --localedi | --localed | --locale)
 898    ac_prev=localedir ;;
 899  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 900    localedir=$ac_optarg ;;
 901
 902  -localstatedir | --localstatedir | --localstatedi | --localstated \
 903  | --localstate | --localstat | --localsta | --localst | --locals)
 904    ac_prev=localstatedir ;;
 905  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 906  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 907    localstatedir=$ac_optarg ;;
 908
 909  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 910    ac_prev=mandir ;;
 911  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 912    mandir=$ac_optarg ;;
 913
 914  -nfp | --nfp | --nf)
 915    # Obsolete; use --without-fp.
 916    with_fp=no ;;
 917
 918  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 919  | --no-cr | --no-c | -n)
 920    no_create=yes ;;
 921
 922  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 923  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 924    no_recursion=yes ;;
 925
 926  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 927  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 928  | --oldin | --oldi | --old | --ol | --o)
 929    ac_prev=oldincludedir ;;
 930  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 931  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 932  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 933    oldincludedir=$ac_optarg ;;
 934
 935  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 936    ac_prev=prefix ;;
 937  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 938    prefix=$ac_optarg ;;
 939
 940  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 941  | --program-pre | --program-pr | --program-p)
 942    ac_prev=program_prefix ;;
 943  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 944  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 945    program_prefix=$ac_optarg ;;
 946
 947  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 948  | --program-suf | --program-su | --program-s)
 949    ac_prev=program_suffix ;;
 950  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 951  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 952    program_suffix=$ac_optarg ;;
 953
 954  -program-transform-name | --program-transform-name \
 955  | --program-transform-nam | --program-transform-na \
 956  | --program-transform-n | --program-transform- \
 957  | --program-transform | --program-transfor \
 958  | --program-transfo | --program-transf \
 959  | --program-trans | --program-tran \
 960  | --progr-tra | --program-tr | --program-t)
 961    ac_prev=program_transform_name ;;
 962  -program-transform-name=* | --program-transform-name=* \
 963  | --program-transform-nam=* | --program-transform-na=* \
 964  | --program-transform-n=* | --program-transform-=* \
 965  | --program-transform=* | --program-transfor=* \
 966  | --program-transfo=* | --program-transf=* \
 967  | --program-trans=* | --program-tran=* \
 968  | --progr-tra=* | --program-tr=* | --program-t=*)
 969    program_transform_name=$ac_optarg ;;
 970
 971  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 972    ac_prev=pdfdir ;;
 973  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 974    pdfdir=$ac_optarg ;;
 975
 976  -psdir | --psdir | --psdi | --psd | --ps)
 977    ac_prev=psdir ;;
 978  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 979    psdir=$ac_optarg ;;
 980
 981  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 982  | -silent | --silent | --silen | --sile | --sil)
 983    silent=yes ;;
 984
 985  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 986    ac_prev=sbindir ;;
 987  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 988  | --sbi=* | --sb=*)
 989    sbindir=$ac_optarg ;;
 990
 991  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 992  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 993  | --sharedst | --shareds | --shared | --share | --shar \
 994  | --sha | --sh)
 995    ac_prev=sharedstatedir ;;
 996  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 997  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 998  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 999  | --sha=* | --sh=*)
1000    sharedstatedir=$ac_optarg ;;
1001
1002  -site | --site | --sit)
1003    ac_prev=site ;;
1004  -site=* | --site=* | --sit=*)
1005    site=$ac_optarg ;;
1006
1007  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008    ac_prev=srcdir ;;
1009  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1010    srcdir=$ac_optarg ;;
1011
1012  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1013  | --syscon | --sysco | --sysc | --sys | --sy)
1014    ac_prev=sysconfdir ;;
1015  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1016  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1017    sysconfdir=$ac_optarg ;;
1018
1019  -target | --target | --targe | --targ | --tar | --ta | --t)
1020    ac_prev=target_alias ;;
1021  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1022    target_alias=$ac_optarg ;;
1023
1024  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025    verbose=yes ;;
1026
1027  -version | --version | --versio | --versi | --vers | -V)
1028    ac_init_version=: ;;
1029
1030  -with-* | --with-*)
1031    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034      { echo "$as_me: error: invalid package name: $ac_package" >&2
1035   { (exit 1); exit 1; }; }
1036    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1037    eval with_$ac_package=\$ac_optarg ;;
1038
1039  -without-* | --without-*)
1040    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043      { echo "$as_me: error: invalid package name: $ac_package" >&2
1044   { (exit 1); exit 1; }; }
1045    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1046    eval with_$ac_package=no ;;
1047
1048  --x)
1049    # Obsolete; use --with-x.
1050    with_x=yes ;;
1051
1052  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1053  | --x-incl | --x-inc | --x-in | --x-i)
1054    ac_prev=x_includes ;;
1055  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1056  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1057    x_includes=$ac_optarg ;;
1058
1059  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1060  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1061    ac_prev=x_libraries ;;
1062  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1063  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1064    x_libraries=$ac_optarg ;;
1065
1066  -*) { echo "$as_me: error: unrecognized option: $ac_option
1067Try \`$0 --help' for more information." >&2
1068   { (exit 1); exit 1; }; }
1069    ;;
1070
1071  *=*)
1072    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073    # Reject names that are not valid shell variable names.
1074    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1075      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1076   { (exit 1); exit 1; }; }
1077    eval $ac_envvar=\$ac_optarg
1078    export $ac_envvar ;;
1079
1080  *)
1081    # FIXME: should be removed in autoconf 3.0.
1082    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1083    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1085    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1086    ;;
1087
1088  esac
1089done
1090
1091if test -n "$ac_prev"; then
1092  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1093  { echo "$as_me: error: missing argument to $ac_option" >&2
1094   { (exit 1); exit 1; }; }
1095fi
1096
1097# Be sure to have absolute directory names.
1098for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099                datadir sysconfdir sharedstatedir localstatedir includedir \
1100                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101                libdir localedir mandir
1102do
1103  eval ac_val=\$$ac_var
1104  case $ac_val in
1105    [\\/$]* | ?:[\\/]* )  continue;;
1106    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107  esac
1108  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1109   { (exit 1); exit 1; }; }
1110done
1111
1112# There might be people who depend on the old broken behavior: `$host'
1113# used to hold the argument of --host etc.
1114# FIXME: To remove some day.
1115build=$build_alias
1116host=$host_alias
1117target=$target_alias
1118
1119# FIXME: To remove some day.
1120if test "x$host_alias" != x; then
1121  if test "x$build_alias" = x; then
1122    cross_compiling=maybe
1123    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1124    If a cross compiler is detected then cross compile mode will be used." >&2
1125  elif test "x$build_alias" != "x$host_alias"; then
1126    cross_compiling=yes
1127  fi
1128fi
1129
1130ac_tool_prefix=
1131test -n "$host_alias" && ac_tool_prefix=$host_alias-
1132
1133test "$silent" = yes && exec 6>/dev/null
1134
1135
1136ac_pwd=`pwd` && test -n "$ac_pwd" &&
1137ac_ls_di=`ls -di .` &&
1138ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1139  { echo "$as_me: error: Working directory cannot be determined" >&2
1140   { (exit 1); exit 1; }; }
1141test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142  { echo "$as_me: error: pwd does not report name of working directory" >&2
1143   { (exit 1); exit 1; }; }
1144
1145
1146# Find the source files, if location was not specified.
1147if test -z "$srcdir"; then
1148  ac_srcdir_defaulted=yes
1149  # Try the directory containing this script, then the parent directory.
1150  ac_confdir=`$as_dirname -- "$0" ||
1151$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152         X"$0" : 'X\(//\)[^/]' \| \
1153         X"$0" : 'X\(//\)$' \| \
1154         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155echo X"$0" |
1156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1157            s//\1/
1158            q
1159          }
1160          /^X\(\/\/\)[^/].*/{
1161            s//\1/
1162            q
1163          }
1164          /^X\(\/\/\)$/{
1165            s//\1/
1166            q
1167          }
1168          /^X\(\/\).*/{
1169            s//\1/
1170            q
1171          }
1172          s/.*/./; q'`
1173  srcdir=$ac_confdir
1174  if test ! -r "$srcdir/$ac_unique_file"; then
1175    srcdir=..
1176  fi
1177else
1178  ac_srcdir_defaulted=no
1179fi
1180if test ! -r "$srcdir/$ac_unique_file"; then
1181  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1182  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1183   { (exit 1); exit 1; }; }
1184fi
1185ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1186ac_abs_confdir=`(
1187        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1188   { (exit 1); exit 1; }; }
1189        pwd)`
1190# When building in place, set srcdir=.
1191if test "$ac_abs_confdir" = "$ac_pwd"; then
1192  srcdir=.
1193fi
1194# Remove unnecessary trailing slashes from srcdir.
1195# Double slashes in file names in object file debugging info
1196# mess up M-x gdb in Emacs.
1197case $srcdir in
1198*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199esac
1200for ac_var in $ac_precious_vars; do
1201  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1202  eval ac_env_${ac_var}_value=\$${ac_var}
1203  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1204  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1205done
1206
1207#
1208# Report the --help message.
1209#
1210if test "$ac_init_help" = "long"; then
1211  # Omit some internal or obsolete options to make the list less imposing.
1212  # This message is too long to be a string in the A/UX 3.1 sh.
1213  cat <<_ACEOF
1214\`configure' configures this package to adapt to many kinds of systems.
1215
1216Usage: $0 [OPTION]... [VAR=VALUE]...
1217
1218To assign environment variables (e.g., CC, CFLAGS...), specify them as
1219VAR=VALUE.  See below for descriptions of some of the useful variables.
1220
1221Defaults for the options are specified in brackets.
1222
1223Configuration:
1224  -h, --help              display this help and exit
1225      --help=short        display options specific to this package
1226      --help=recursive    display the short help of all the included packages
1227  -V, --version           display version information and exit
1228  -q, --quiet, --silent   do not print \`checking...' messages
1229      --cache-file=FILE   cache test results in FILE [disabled]
1230  -C, --config-cache      alias for \`--cache-file=config.cache'
1231  -n, --no-create         do not create output files
1232      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1233
1234Installation directories:
1235  --prefix=PREFIX         install architecture-independent files in PREFIX
1236                          [$ac_default_prefix]
1237  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1238                          [PREFIX]
1239
1240By default, \`make install' will install all the files in
1241\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1242an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1243for instance \`--prefix=\$HOME'.
1244
1245For better control, use the options below.
1246
1247Fine tuning of the installation directories:
1248  --bindir=DIR           user executables [EPREFIX/bin]
1249  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1250  --libexecdir=DIR       program executables [EPREFIX/libexec]
1251  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1252  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1253  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1254  --libdir=DIR           object code libraries [EPREFIX/lib]
1255  --includedir=DIR       C header files [PREFIX/include]
1256  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1257  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1258  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1259  --infodir=DIR          info documentation [DATAROOTDIR/info]
1260  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1261  --mandir=DIR           man documentation [DATAROOTDIR/man]
1262  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1263  --htmldir=DIR          html documentation [DOCDIR]
1264  --dvidir=DIR           dvi documentation [DOCDIR]
1265  --pdfdir=DIR           pdf documentation [DOCDIR]
1266  --psdir=DIR            ps documentation [DOCDIR]
1267_ACEOF
1268
1269  cat <<\_ACEOF
1270
1271System types:
1272  --build=BUILD     configure for building on BUILD [guessed]
1273  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1274_ACEOF
1275fi
1276
1277if test -n "$ac_init_help"; then
1278
1279  cat <<\_ACEOF
1280
1281Optional Packages:
1282  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1283  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1284  --with-i386             enable building i386 code
1285  --with-ia64             enable building ia64 code
1286
1287Some influential environment variables:
1288  CC          C compiler command
1289  CFLAGS      C compiler flags
1290  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1291              nonstandard directory <lib dir>
1292  LIBS        libraries to pass to the linker, e.g. -l<library>
1293  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294              you have headers in a nonstandard directory <include dir>
1295  CPP         C preprocessor
1296
1297Use these variables to override the choices made by `configure' or to help
1298it to find libraries and programs with nonstandard names/locations.
1299
1300_ACEOF
1301ac_status=$?
1302fi
1303
1304if test "$ac_init_help" = "recursive"; then
1305  # If there are subdirs, report their specific --help.
1306  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307    test -d "$ac_dir" || continue
1308    ac_builddir=.
1309
1310case "$ac_dir" in
1311.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312*)
1313  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314  # A ".." for each directory in $ac_dir_suffix.
1315  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316  case $ac_top_builddir_sub in
1317  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319  esac ;;
1320esac
1321ac_abs_top_builddir=$ac_pwd
1322ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323# for backward compatibility:
1324ac_top_builddir=$ac_top_build_prefix
1325
1326case $srcdir in
1327  .)  # We are building in place.
1328    ac_srcdir=.
1329    ac_top_srcdir=$ac_top_builddir_sub
1330    ac_abs_top_srcdir=$ac_pwd ;;
1331  [\\/]* | ?:[\\/]* )  # Absolute name.
1332    ac_srcdir=$srcdir$ac_dir_suffix;
1333    ac_top_srcdir=$srcdir
1334    ac_abs_top_srcdir=$srcdir ;;
1335  *) # Relative name.
1336    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337    ac_top_srcdir=$ac_top_build_prefix$srcdir
1338    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339esac
1340ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342    cd "$ac_dir" || { ac_status=$?; continue; }
1343    # Check for guested configure.
1344    if test -f "$ac_srcdir/configure.gnu"; then
1345      echo &&
1346      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347    elif test -f "$ac_srcdir/configure"; then
1348      echo &&
1349      $SHELL "$ac_srcdir/configure" --help=recursive
1350    else
1351      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352    fi || ac_status=$?
1353    cd "$ac_pwd" || { ac_status=$?; break; }
1354  done
1355fi
1356
1357test -n "$ac_init_help" && exit $ac_status
1358if $ac_init_version; then
1359  cat <<\_ACEOF
1360configure
1361generated by GNU Autoconf 2.61
1362
1363Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365This configure script is free software; the Free Software Foundation
1366gives unlimited permission to copy, distribute and modify it.
1367_ACEOF
1368  exit
1369fi
1370cat >config.log <<_ACEOF
1371This file contains any messages produced by compilers while
1372running configure, to aid debugging if configure makes a mistake.
1373
1374It was created by $as_me, which was
1375generated by GNU Autoconf 2.61.  Invocation command line was
1376
1377  $ $0 $@
1378
1379_ACEOF
1380exec 5>>config.log
1381{
1382cat <<_ASUNAME
1383## --------- ##
1384## Platform. ##
1385## --------- ##
1386
1387hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1395
1396/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1397/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1398/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1400/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1401/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1402/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1403
1404_ASUNAME
1405
1406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407for as_dir in $PATH
1408do
1409  IFS=$as_save_IFS
1410  test -z "$as_dir" && as_dir=.
1411  echo "PATH: $as_dir"
1412done
1413IFS=$as_save_IFS
1414
1415} >&5
1416
1417cat >&5 <<_ACEOF
1418
1419
1420## ----------- ##
1421## Core tests. ##
1422## ----------- ##
1423
1424_ACEOF
1425
1426
1427# Keep a trace of the command line.
1428# Strip out --no-create and --no-recursion so they do not pile up.
1429# Strip out --silent because we don't want to record it for future runs.
1430# Also quote any args containing shell meta-characters.
1431# Make two passes to allow for proper duplicate-argument suppression.
1432ac_configure_args=
1433ac_configure_args0=
1434ac_configure_args1=
1435ac_must_keep_next=false
1436for ac_pass in 1 2
1437do
1438  for ac_arg
1439  do
1440    case $ac_arg in
1441    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443    | -silent | --silent | --silen | --sile | --sil)
1444      continue ;;
1445    *\'*)
1446      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447    esac
1448    case $ac_pass in
1449    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450    2)
1451      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452      if test $ac_must_keep_next = true; then
1453        ac_must_keep_next=false # Got value, back to normal.
1454      else
1455        case $ac_arg in
1456          *=* | --config-cache | -C | -disable-* | --disable-* \
1457          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459          | -with-* | --with-* | -without-* | --without-* | --x)
1460            case "$ac_configure_args0 " in
1461              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462            esac
1463            ;;
1464          -* ) ac_must_keep_next=true ;;
1465        esac
1466      fi
1467      ac_configure_args="$ac_configure_args '$ac_arg'"
1468      ;;
1469    esac
1470  done
1471done
1472$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475# When interrupted or exit'd, cleanup temporary files, and complete
1476# config.log.  We remove comments because anyway the quotes in there
1477# would cause problems or look ugly.
1478# WARNING: Use '\'' to represent an apostrophe within the trap.
1479# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480trap 'exit_status=$?
1481  # Save into config.log some information that might help in debugging.
1482  {
1483    echo
1484
1485    cat <<\_ASBOX
1486## ---------------- ##
1487## Cache variables. ##
1488## ---------------- ##
1489_ASBOX
1490    echo
1491    # The following way of writing the cache mishandles newlines in values,
1492(
1493  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494    eval ac_val=\$$ac_var
1495    case $ac_val in #(
1496    *${as_nl}*)
1497      case $ac_var in #(
1498      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500      esac
1501      case $ac_var in #(
1502      _ | IFS | as_nl) ;; #(
1503      *) $as_unset $ac_var ;;
1504      esac ;;
1505    esac
1506  done
1507  (set) 2>&1 |
1508    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509    *${as_nl}ac_space=\ *)
1510      sed -n \
1511        "s/'\''/'\''\\\\'\'''\''/g;
1512          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513      ;; #(
1514    *)
1515      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516      ;;
1517    esac |
1518    sort
1519)
1520    echo
1521
1522    cat <<\_ASBOX
1523## ----------------- ##
1524## Output variables. ##
1525## ----------------- ##
1526_ASBOX
1527    echo
1528    for ac_var in $ac_subst_vars
1529    do
1530      eval ac_val=\$$ac_var
1531      case $ac_val in
1532      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533      esac
1534      echo "$ac_var='\''$ac_val'\''"
1535    done | sort
1536    echo
1537
1538    if test -n "$ac_subst_files"; then
1539      cat <<\_ASBOX
1540## ------------------- ##
1541## File substitutions. ##
1542## ------------------- ##
1543_ASBOX
1544      echo
1545      for ac_var in $ac_subst_files
1546      do
1547        eval ac_val=\$$ac_var
1548        case $ac_val in
1549        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550        esac
1551        echo "$ac_var='\''$ac_val'\''"
1552      done | sort
1553      echo
1554    fi
1555
1556    if test -s confdefs.h; then
1557      cat <<\_ASBOX
1558## ----------- ##
1559## confdefs.h. ##
1560## ----------- ##
1561_ASBOX
1562      echo
1563      cat confdefs.h
1564      echo
1565    fi
1566    test "$ac_signal" != 0 &&
1567      echo "$as_me: caught signal $ac_signal"
1568    echo "$as_me: exit $exit_status"
1569  } >&5
1570  rm -f core *.core core.conftest.* &&
1571    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572    exit $exit_status
1573' 0
1574for ac_signal in 1 2 13 15; do
1575  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576done
1577ac_signal=0
1578
1579# confdefs.h avoids OS command line length limits that DEFS can exceed.
1580rm -f -r conftest* confdefs.h
1581
1582# Predefined preprocessor variables.
1583
1584cat >>confdefs.h <<_ACEOF
1585#define PACKAGE_NAME "$PACKAGE_NAME"
1586_ACEOF
1587
1588
1589cat >>confdefs.h <<_ACEOF
1590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591_ACEOF
1592
1593
1594cat >>confdefs.h <<_ACEOF
1595#define PACKAGE_VERSION "$PACKAGE_VERSION"
1596_ACEOF
1597
1598
1599cat >>confdefs.h <<_ACEOF
1600#define PACKAGE_STRING "$PACKAGE_STRING"
1601_ACEOF
1602
1603
1604cat >>confdefs.h <<_ACEOF
1605#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606_ACEOF
1607
1608
1609# Let the site file select an alternate cache file if it wants to.
1610# Prefer explicitly selected file to automatically selected ones.
1611if test -n "$CONFIG_SITE"; then
1612  set x "$CONFIG_SITE"
1613elif test "x$prefix" != xNONE; then
1614  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615else
1616  set x "$ac_default_prefix/share/config.site" \
1617        "$ac_default_prefix/etc/config.site"
1618fi
1619shift
1620for ac_site_file
1621do
1622  if test -r "$ac_site_file"; then
1623    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624echo "$as_me: loading site script $ac_site_file" >&6;}
1625    sed 's/^/| /' "$ac_site_file" >&5
1626    . "$ac_site_file"
1627  fi
1628done
1629
1630if test -r "$cache_file"; then
1631  # Some versions of bash will fail to source /dev/null (special
1632  # files actually), so we avoid doing that.
1633  if test -f "$cache_file"; then
1634    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635echo "$as_me: loading cache $cache_file" >&6;}
1636    case $cache_file in
1637      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638      *)                      . "./$cache_file";;
1639    esac
1640  fi
1641else
1642  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643echo "$as_me: creating cache $cache_file" >&6;}
1644  >$cache_file
1645fi
1646
1647# Check that the precious variables saved in the cache have kept the same
1648# value.
1649ac_cache_corrupted=false
1650for ac_var in $ac_precious_vars; do
1651  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652  eval ac_new_set=\$ac_env_${ac_var}_set
1653  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654  eval ac_new_val=\$ac_env_${ac_var}_value
1655  case $ac_old_set,$ac_new_set in
1656    set,)
1657      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659      ac_cache_corrupted=: ;;
1660    ,set)
1661      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663      ac_cache_corrupted=: ;;
1664    ,);;
1665    *)
1666      if test "x$ac_old_val" != "x$ac_new_val"; then
1667        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1670echo "$as_me:   former value:  $ac_old_val" >&2;}
1671        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1672echo "$as_me:   current value: $ac_new_val" >&2;}
1673        ac_cache_corrupted=:
1674      fi;;
1675  esac
1676  # Pass precious variables to config.status.
1677  if test "$ac_new_set" = set; then
1678    case $ac_new_val in
1679    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680    *) ac_arg=$ac_var=$ac_new_val ;;
1681    esac
1682    case " $ac_configure_args " in
1683      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1684      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685    esac
1686  fi
1687done
1688if $ac_cache_corrupted; then
1689  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693   { (exit 1); exit 1; }; }
1694fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712ac_ext=c
1713ac_cpp='$CPP $CPPFLAGS'
1714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719ac_aux_dir=
1720for ac_dir in ./config "$srcdir"/./config; do
1721  if test -f "$ac_dir/install-sh"; then
1722    ac_aux_dir=$ac_dir
1723    ac_install_sh="$ac_aux_dir/install-sh -c"
1724    break
1725  elif test -f "$ac_dir/install.sh"; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install.sh -c"
1728    break
1729  elif test -f "$ac_dir/shtool"; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/shtool install -c"
1732    break
1733  fi
1734done
1735if test -z "$ac_aux_dir"; then
1736  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./config \"$srcdir\"/./config" >&5
1737echo "$as_me: error: cannot find install-sh or install.sh in ./config \"$srcdir\"/./config" >&2;}
1738   { (exit 1); exit 1; }; }
1739fi
1740
1741# These three variables are undocumented and unsupported,
1742# and are intended to be withdrawn in a future Autoconf release.
1743# They can cause serious problems if a builder's source tree is in a directory
1744# whose full name contains unusual characters.
1745ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1746ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1747ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1748
1749
1750
1751
1752
1753# Make sure we can run config.sub.
1754$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1755  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1756echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1757   { (exit 1); exit 1; }; }
1758
1759{ echo "$as_me:$LINENO: checking build system type" >&5
1760echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1761if test "${ac_cv_build+set}" = set; then
1762  echo $ECHO_N "(cached) $ECHO_C" >&6
1763else
1764  ac_build_alias=$build_alias
1765test "x$ac_build_alias" = x &&
1766  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1767test "x$ac_build_alias" = x &&
1768  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1769echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1770   { (exit 1); exit 1; }; }
1771ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1772  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1773echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1774   { (exit 1); exit 1; }; }
1775
1776fi
1777{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1778echo "${ECHO_T}$ac_cv_build" >&6; }
1779case $ac_cv_build in
1780*-*-*) ;;
1781*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1782echo "$as_me: error: invalid value of canonical build" >&2;}
1783   { (exit 1); exit 1; }; };;
1784esac
1785build=$ac_cv_build
1786ac_save_IFS=$IFS; IFS='-'
1787set x $ac_cv_build
1788shift
1789build_cpu=$1
1790build_vendor=$2
1791shift; shift
1792# Remember, the first character of IFS is used to create $*,
1793# except with old shells:
1794build_os=$*
1795IFS=$ac_save_IFS
1796case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1797
1798
1799{ echo "$as_me:$LINENO: checking host system type" >&5
1800echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1801if test "${ac_cv_host+set}" = set; then
1802  echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804  if test "x$host_alias" = x; then
1805  ac_cv_host=$ac_cv_build
1806else
1807  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1808    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1809echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1810   { (exit 1); exit 1; }; }
1811fi
1812
1813fi
1814{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1815echo "${ECHO_T}$ac_cv_host" >&6; }
1816case $ac_cv_host in
1817*-*-*) ;;
1818*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1819echo "$as_me: error: invalid value of canonical host" >&2;}
1820   { (exit 1); exit 1; }; };;
1821esac
1822host=$ac_cv_host
1823ac_save_IFS=$IFS; IFS='-'
1824set x $ac_cv_host
1825shift
1826host_cpu=$1
1827host_vendor=$2
1828shift; shift
1829# Remember, the first character of IFS is used to create $*,
1830# except with old shells:
1831host_os=$*
1832IFS=$ac_save_IFS
1833case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1834
1835
1836#AC_CANONICAL_TARGET
1837
1838
1839case $host_cpu in
1840        i?86 )
1841                target_cpu="i386"
1842                ;;
1843        * )
1844                target_cpu="$host_cpu"
1845                ;;
1846esac
1847
1848targets=""
1849
1850
1851# Check whether --with-i386 was given.
1852if test "${with_i386+set}" = set; then
1853  withval=$with_i386;  if test "withval" = "yes" ; then with_i386="i386"; else with_i386="$withval"; fi
1854else
1855   with_i386="no"
1856fi
1857
1858
1859
1860# Check whether --with-ia64 was given.
1861if test "${with_ia64+set}" = set; then
1862  withval=$with_ia64;  if test "withval" = "yes" ; then with_ia64="ia64"; else with_ia64="$withval"; fi
1863else
1864   with_ia64="no"
1865fi
1866
1867
1868with_default="no"
1869if      test "$with_i386" = "no" &&
1870        test "$with_ia64" = "no" ; then
1871        with_default=`echo $target_cpu | tr a-z A-Z`
1872fi
1873
1874{ echo "$as_me:$LINENO: with_default=$with_default" >&5
1875echo "$as_me: with_default=$with_default" >&6;}
1876{ echo "$as_me:$LINENO: with_i386=$with_i386" >&5
1877echo "$as_me: with_i386=$with_i386" >&6;}
1878{ echo "$as_me:$LINENO: with_ia64=$with_ia64" >&5
1879echo "$as_me: with_ia64=$with_ia64" >&6;}
1880
1881
1882ac_ext=c
1883ac_cpp='$CPP $CPPFLAGS'
1884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887if test -n "$ac_tool_prefix"; then
1888  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1889set dummy ${ac_tool_prefix}gcc; ac_word=$2
1890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1892if test "${ac_cv_prog_CC+set}" = set; then
1893  echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895  if test -n "$CC"; then
1896  ac_cv_prog_CC="$CC" # Let the user override the test.
1897else
1898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899for as_dir in $PATH
1900do
1901  IFS=$as_save_IFS
1902  test -z "$as_dir" && as_dir=.
1903  for ac_exec_ext in '' $ac_executable_extensions; do
1904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1905    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907    break 2
1908  fi
1909done
1910done
1911IFS=$as_save_IFS
1912
1913fi
1914fi
1915CC=$ac_cv_prog_CC
1916if test -n "$CC"; then
1917  { echo "$as_me:$LINENO: result: $CC" >&5
1918echo "${ECHO_T}$CC" >&6; }
1919else
1920  { echo "$as_me:$LINENO: result: no" >&5
1921echo "${ECHO_T}no" >&6; }
1922fi
1923
1924
1925fi
1926if test -z "$ac_cv_prog_CC"; then
1927  ac_ct_CC=$CC
1928  # Extract the first word of "gcc", so it can be a program name with args.
1929set dummy gcc; ac_word=$2
1930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933  echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935  if test -n "$ac_ct_CC"; then
1936  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941  IFS=$as_save_IFS
1942  test -z "$as_dir" && as_dir=.
1943  for ac_exec_ext in '' $ac_executable_extensions; do
1944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945    ac_cv_prog_ac_ct_CC="gcc"
1946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947    break 2
1948  fi
1949done
1950done
1951IFS=$as_save_IFS
1952
1953fi
1954fi
1955ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956if test -n "$ac_ct_CC"; then
1957  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958echo "${ECHO_T}$ac_ct_CC" >&6; }
1959else
1960  { echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6; }
1962fi
1963
1964  if test "x$ac_ct_CC" = x; then
1965    CC=""
1966  else
1967    case $cross_compiling:$ac_tool_warned in
1968yes:)
1969{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1970whose name does not start with the host triplet.  If you think this
1971configuration is useful to you, please write to autoconf@gnu.org." >&5
1972echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1973whose name does not start with the host triplet.  If you think this
1974configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1975ac_tool_warned=yes ;;
1976esac
1977    CC=$ac_ct_CC
1978  fi
1979else
1980  CC="$ac_cv_prog_CC"
1981fi
1982
1983if test -z "$CC"; then
1984          if test -n "$ac_tool_prefix"; then
1985    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1986set dummy ${ac_tool_prefix}cc; ac_word=$2
1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1989if test "${ac_cv_prog_CC+set}" = set; then
1990  echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992  if test -n "$CC"; then
1993  ac_cv_prog_CC="$CC" # Let the user override the test.
1994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998  IFS=$as_save_IFS
1999  test -z "$as_dir" && as_dir=.
2000  for ac_exec_ext in '' $ac_executable_extensions; do
2001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002    ac_cv_prog_CC="${ac_tool_prefix}cc"
2003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004    break 2
2005  fi
2006done
2007done
2008IFS=$as_save_IFS
2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014  { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
2016else
2017  { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
2019fi
2020
2021
2022  fi
2023fi
2024if test -z "$CC"; then
2025  # Extract the first word of "cc", so it can be a program name with args.
2026set dummy cc; ac_word=$2
2027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029if test "${ac_cv_prog_CC+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  if test -n "$CC"; then
2033  ac_cv_prog_CC="$CC" # Let the user override the test.
2034else
2035  ac_prog_rejected=no
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039  IFS=$as_save_IFS
2040  test -z "$as_dir" && as_dir=.
2041  for ac_exec_ext in '' $ac_executable_extensions; do
2042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2044       ac_prog_rejected=yes
2045       continue
2046     fi
2047    ac_cv_prog_CC="cc"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053IFS=$as_save_IFS
2054
2055if test $ac_prog_rejected = yes; then
2056  # We found a bogon in the path, so make sure we never use it.
2057  set dummy $ac_cv_prog_CC
2058  shift
2059  if test $# != 0; then
2060    # We chose a different compiler from the bogus one.
2061    # However, it has the same basename, so the bogon will be chosen
2062    # first if we set CC to just the basename; use the full file name.
2063    shift
2064    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2065  fi
2066fi
2067fi
2068fi
2069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071  { echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6; }
2073else
2074  { echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6; }
2076fi
2077
2078
2079fi
2080if test -z "$CC"; then
2081  if test -n "$ac_tool_prefix"; then
2082  for ac_prog in cl.exe
2083  do
2084    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088if test "${ac_cv_prog_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$CC"; then
2092  ac_cv_prog_CC="$CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107IFS=$as_save_IFS
2108
2109fi
2110fi
2111CC=$ac_cv_prog_CC
2112if test -n "$CC"; then
2113  { echo "$as_me:$LINENO: result: $CC" >&5
2114echo "${ECHO_T}$CC" >&6; }
2115else
2116  { echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6; }
2118fi
2119
2120
2121    test -n "$CC" && break
2122  done
2123fi
2124if test -z "$CC"; then
2125  ac_ct_CC=$CC
2126  for ac_prog in cl.exe
2127do
2128  # Extract the first word of "$ac_prog", so it can be a program name with args.
2129set dummy $ac_prog; ac_word=$2
2130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2132if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133  echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135  if test -n "$ac_ct_CC"; then
2136  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2137else
2138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139for as_dir in $PATH
2140do
2141  IFS=$as_save_IFS
2142  test -z "$as_dir" && as_dir=.
2143  for ac_exec_ext in '' $ac_executable_extensions; do
2144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2145    ac_cv_prog_ac_ct_CC="$ac_prog"
2146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147    break 2
2148  fi
2149done
2150done
2151IFS=$as_save_IFS
2152
2153fi
2154fi
2155ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156if test -n "$ac_ct_CC"; then
2157  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158echo "${ECHO_T}$ac_ct_CC" >&6; }
2159else
2160  { echo "$as_me:$LINENO: result: no" >&5
2161echo "${ECHO_T}no" >&6; }
2162fi
2163
2164
2165  test -n "$ac_ct_CC" && break
2166done
2167
2168  if test "x$ac_ct_CC" = x; then
2169    CC=""
2170  else
2171    case $cross_compiling:$ac_tool_warned in
2172yes:)
2173{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2174whose name does not start with the host triplet.  If you think this
2175configuration is useful to you, please write to autoconf@gnu.org." >&5
2176echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2177whose name does not start with the host triplet.  If you think this
2178configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2179ac_tool_warned=yes ;;
2180esac
2181    CC=$ac_ct_CC
2182  fi
2183fi
2184
2185fi
2186
2187
2188test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: no acceptable C compiler found in \$PATH
2191See \`config.log' for more details." >&2;}
2192   { (exit 1); exit 1; }; }
2193
2194# Provide some information about the compiler.
2195echo "$as_me:$LINENO: checking for C compiler version" >&5
2196ac_compiler=`set X $ac_compile; echo $2`
2197{ (ac_try="$ac_compiler --version >&5"
2198case "(($ac_try" in
2199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200  *) ac_try_echo=$ac_try;;
2201esac
2202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203  (eval "$ac_compiler --version >&5") 2>&5
2204  ac_status=$?
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); }
2207{ (ac_try="$ac_compiler -v >&5"
2208case "(($ac_try" in
2209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210  *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213  (eval "$ac_compiler -v >&5") 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }
2217{ (ac_try="$ac_compiler -V >&5"
2218case "(($ac_try" in
2219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220  *) ac_try_echo=$ac_try;;
2221esac
2222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223  (eval "$ac_compiler -V >&5") 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227
2228cat >conftest.$ac_ext <<_ACEOF
2229/* confdefs.h.  */
2230_ACEOF
2231cat confdefs.h >>conftest.$ac_ext
2232cat >>conftest.$ac_ext <<_ACEOF
2233/* end confdefs.h.  */
2234
2235int
2236main ()
2237{
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243ac_clean_files_save=$ac_clean_files
2244ac_clean_files="$ac_clean_files a.out a.exe b.out"
2245# Try to create an executable without -o first, disregard a.out.
2246# It will help us diagnose broken compilers, and finding out an intuition
2247# of exeext.
2248{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2249echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2250ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2251#
2252# List of possible output files, starting from the most likely.
2253# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2254# only as a last resort.  b.out is created by i960 compilers.
2255ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2256#
2257# The IRIX 6 linker writes into existing files which may not be
2258# executable, retaining their permissions.  Remove them first so a
2259# subsequent execution test works.
2260ac_rmfiles=
2261for ac_file in $ac_files
2262do
2263  case $ac_file in
2264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2265    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2266  esac
2267done
2268rm -f $ac_rmfiles
2269
2270if { (ac_try="$ac_link_default"
2271case "(($ac_try" in
2272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273  *) ac_try_echo=$ac_try;;
2274esac
2275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276  (eval "$ac_link_default") 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; then
2280  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2281# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2282# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2283# so that the user can short-circuit this test for compilers unknown to
2284# Autoconf.
2285for ac_file in $ac_files ''
2286do
2287  test -f "$ac_file" || continue
2288  case $ac_file in
2289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2290        ;;
2291    [ab].out )
2292        # We found the default executable, but exeext='' is most
2293        # certainly right.
2294        break;;
2295    *.* )
2296        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2297        then :; else
2298           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2299        fi
2300        # We set ac_cv_exeext here because the later test for it is not
2301        # safe: cross compilers may not add the suffix if given an `-o'
2302        # argument, so we may need to know it at that point already.
2303        # Even if this section looks crufty: it has the advantage of
2304        # actually working.
2305        break;;
2306    * )
2307        break;;
2308  esac
2309done
2310test "$ac_cv_exeext" = no && ac_cv_exeext=
2311
2312else
2313  ac_file=''
2314fi
2315
2316{ echo "$as_me:$LINENO: result: $ac_file" >&5
2317echo "${ECHO_T}$ac_file" >&6; }
2318if test -z "$ac_file"; then
2319  echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: C compiler cannot create executables
2325See \`config.log' for more details." >&2;}
2326   { (exit 77); exit 77; }; }
2327fi
2328
2329ac_exeext=$ac_cv_exeext
2330
2331# Check that the compiler produces executables we can run.  If not, either
2332# the compiler is broken, or we cross compile.
2333{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2334echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2335# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2336# If not cross compiling, check that we can run a simple program.
2337if test "$cross_compiling" != yes; then
2338  if { ac_try='./$ac_file'
2339  { (case "(($ac_try" in
2340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341  *) ac_try_echo=$ac_try;;
2342esac
2343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344  (eval "$ac_try") 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; }; then
2348    cross_compiling=no
2349  else
2350    if test "$cross_compiling" = maybe; then
2351        cross_compiling=yes
2352    else
2353        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2354If you meant to cross compile, use \`--host'.
2355See \`config.log' for more details." >&5
2356echo "$as_me: error: cannot run C compiled programs.
2357If you meant to cross compile, use \`--host'.
2358See \`config.log' for more details." >&2;}
2359   { (exit 1); exit 1; }; }
2360    fi
2361  fi
2362fi
2363{ echo "$as_me:$LINENO: result: yes" >&5
2364echo "${ECHO_T}yes" >&6; }
2365
2366rm -f a.out a.exe conftest$ac_cv_exeext b.out
2367ac_clean_files=$ac_clean_files_save
2368# Check that the compiler produces executables we can run.  If not, either
2369# the compiler is broken, or we cross compile.
2370{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2371echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2372{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2373echo "${ECHO_T}$cross_compiling" >&6; }
2374
2375{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2376echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2377if { (ac_try="$ac_link"
2378case "(($ac_try" in
2379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380  *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383  (eval "$ac_link") 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; then
2387  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2388# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2389# work properly (i.e., refer to `conftest.exe'), while it won't with
2390# `rm'.
2391for ac_file in conftest.exe conftest conftest.*; do
2392  test -f "$ac_file" || continue
2393  case $ac_file in
2394    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2395    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2396          break;;
2397    * ) break;;
2398  esac
2399done
2400else
2401  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2402See \`config.log' for more details." >&5
2403echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2404See \`config.log' for more details." >&2;}
2405   { (exit 1); exit 1; }; }
2406fi
2407
2408rm -f conftest$ac_cv_exeext
2409{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2410echo "${ECHO_T}$ac_cv_exeext" >&6; }
2411
2412rm -f conftest.$ac_ext
2413EXEEXT=$ac_cv_exeext
2414ac_exeext=$EXEEXT
2415{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2416echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2417if test "${ac_cv_objext+set}" = set; then
2418  echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420  cat >conftest.$ac_ext <<_ACEOF
2421/* confdefs.h.  */
2422_ACEOF
2423cat confdefs.h >>conftest.$ac_ext
2424cat >>conftest.$ac_ext <<_ACEOF
2425/* end confdefs.h.  */
2426
2427int
2428main ()
2429{
2430
2431  ;
2432  return 0;
2433}
2434_ACEOF
2435rm -f conftest.o conftest.obj
2436if { (ac_try="$ac_compile"
2437case "(($ac_try" in
2438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439  *) ac_try_echo=$ac_try;;
2440esac
2441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442  (eval "$ac_compile") 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }; then
2446  for ac_file in conftest.o conftest.obj conftest.*; do
2447  test -f "$ac_file" || continue;
2448  case $ac_file in
2449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2450    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2451       break;;
2452  esac
2453done
2454else
2455  echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2459See \`config.log' for more details." >&5
2460echo "$as_me: error: cannot compute suffix of object files: cannot compile
2461See \`config.log' for more details." >&2;}
2462   { (exit 1); exit 1; }; }
2463fi
2464
2465rm -f conftest.$ac_cv_objext conftest.$ac_ext
2466fi
2467{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2468echo "${ECHO_T}$ac_cv_objext" >&6; }
2469OBJEXT=$ac_cv_objext
2470ac_objext=$OBJEXT
2471{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2472echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2473if test "${ac_cv_c_compiler_gnu+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h.  */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h.  */
2482
2483int
2484main ()
2485{
2486#ifndef __GNUC__
2487       choke me
2488#endif
2489
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (ac_try="$ac_compile"
2496case "(($ac_try" in
2497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498  *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501  (eval "$ac_compile") 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } && {
2508         test -z "$ac_c_werror_flag" ||
2509         test ! -s conftest.err
2510       } && test -s conftest.$ac_objext; then
2511  ac_compiler_gnu=yes
2512else
2513  echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516        ac_compiler_gnu=no
2517fi
2518
2519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520ac_cv_c_compiler_gnu=$ac_compiler_gnu
2521
2522fi
2523{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2524echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2525GCC=`test $ac_compiler_gnu = yes && echo yes`
2526ac_test_CFLAGS=${CFLAGS+set}
2527ac_save_CFLAGS=$CFLAGS
2528{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2529echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_cc_g+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  ac_save_c_werror_flag=$ac_c_werror_flag
2534   ac_c_werror_flag=yes
2535   ac_cv_prog_cc_g=no
2536   CFLAGS="-g"
2537   cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h.  */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h.  */
2543
2544int
2545main ()
2546{
2547
2548  ;
2549  return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556  *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559  (eval "$ac_compile") 2>conftest.er1
2560  ac_status=$?
2561  grep -v '^ *+' conftest.er1 >conftest.err
2562  rm -f conftest.er1
2563  cat conftest.err >&5
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); } && {
2566         test -z "$ac_c_werror_flag" ||
2567         test ! -s conftest.err
2568       } && test -s conftest.$ac_objext; then
2569  ac_cv_prog_cc_g=yes
2570else
2571  echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574        CFLAGS=""
2575      cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h.  */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h.  */
2581
2582int
2583main ()
2584{
2585
2586  ;
2587  return 0;
2588}
2589_ACEOF
2590rm -f conftest.$ac_objext
2591if { (ac_try="$ac_compile"
2592case "(($ac_try" in
2593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594  *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597  (eval "$ac_compile") 2>conftest.er1
2598  ac_status=$?
2599  grep -v '^ *+' conftest.er1 >conftest.err
2600  rm -f conftest.er1
2601  cat conftest.err >&5
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); } && {
2604         test -z "$ac_c_werror_flag" ||
2605         test ! -s conftest.err
2606       } && test -s conftest.$ac_objext; then
2607  :
2608else
2609  echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612        ac_c_werror_flag=$ac_save_c_werror_flag
2613         CFLAGS="-g"
2614         cat >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
2621int
2622main ()
2623{
2624
2625  ;
2626  return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (ac_try="$ac_compile"
2631case "(($ac_try" in
2632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633  *) ac_try_echo=$ac_try;;
2634esac
2635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636  (eval "$ac_compile") 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } && {
2643         test -z "$ac_c_werror_flag" ||
2644         test ! -s conftest.err
2645       } && test -s conftest.$ac_objext; then
2646  ac_cv_prog_cc_g=yes
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651
2652fi
2653
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656
2657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658fi
2659
2660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661   ac_c_werror_flag=$ac_save_c_werror_flag
2662fi
2663{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2664echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2665if test "$ac_test_CFLAGS" = set; then
2666  CFLAGS=$ac_save_CFLAGS
2667elif test $ac_cv_prog_cc_g = yes; then
2668  if test "$GCC" = yes; then
2669    CFLAGS="-g -O2"
2670  else
2671    CFLAGS="-g"
2672  fi
2673else
2674  if test "$GCC" = yes; then
2675    CFLAGS="-O2"
2676  else
2677    CFLAGS=
2678  fi
2679fi
2680{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2681echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2682if test "${ac_cv_prog_cc_c89+set}" = set; then
2683  echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685  ac_cv_prog_cc_c89=no
2686ac_save_CC=$CC
2687cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693#include <stdarg.h>
2694#include <stdio.h>
2695#include <sys/types.h>
2696#include <sys/stat.h>
2697/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2698struct buf { int x; };
2699FILE * (*rcsopen) (struct buf *, struct stat *, int);
2700static char *e (p, i)
2701     char **p;
2702     int i;
2703{
2704  return p[i];
2705}
2706static char *f (char * (*g) (char **, int), char **p, ...)
2707{
2708  char *s;
2709  va_list v;
2710  va_start (v,p);
2711  s = g (p, va_arg (v,int));
2712  va_end (v);
2713  return s;
2714}
2715
2716/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2717   function prototypes and stuff, but not '\xHH' hex character constants.
2718   These don't provoke an error unfortunately, instead are silently treated
2719   as 'x'.  The following induces an error, until -std is added to get
2720   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2721   array size at least.  It's necessary to write '\x00'==0 to get something
2722   that's true only with -std.  */
2723int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2724
2725/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2726   inside strings and character constants.  */
2727#define FOO(x) 'x'
2728int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2729
2730int test (int i, double x);
2731struct s1 {int (*f) (int a);};
2732struct s2 {int (*f) (double a);};
2733int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2734int argc;
2735char **argv;
2736int
2737main ()
2738{
2739return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2745        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746do
2747  CC="$ac_save_CC $ac_arg"
2748  rm -f conftest.$ac_objext
2749if { (ac_try="$ac_compile"
2750case "(($ac_try" in
2751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752  *) ac_try_echo=$ac_try;;
2753esac
2754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755  (eval "$ac_compile") 2>conftest.er1
2756  ac_status=$?
2757  grep -v '^ *+' conftest.er1 >conftest.err
2758  rm -f conftest.er1
2759  cat conftest.err >&5
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); } && {
2762         test -z "$ac_c_werror_flag" ||
2763         test ! -s conftest.err
2764       } && test -s conftest.$ac_objext; then
2765  ac_cv_prog_cc_c89=$ac_arg
2766else
2767  echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771fi
2772
2773rm -f core conftest.err conftest.$ac_objext
2774  test "x$ac_cv_prog_cc_c89" != "xno" && break
2775done
2776rm -f conftest.$ac_ext
2777CC=$ac_save_CC
2778
2779fi
2780# AC_CACHE_VAL
2781case "x$ac_cv_prog_cc_c89" in
2782  x)
2783    { echo "$as_me:$LINENO: result: none needed" >&5
2784echo "${ECHO_T}none needed" >&6; } ;;
2785  xno)
2786    { echo "$as_me:$LINENO: result: unsupported" >&5
2787echo "${ECHO_T}unsupported" >&6; } ;;
2788  *)
2789    CC="$CC $ac_cv_prog_cc_c89"
2790    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792esac
2793
2794
2795ac_ext=c
2796ac_cpp='$CPP $CPPFLAGS'
2797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801
2802
2803# Extract the first word of "mkdir", so it can be a program name with args.
2804set dummy mkdir; ac_word=$2
2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807if test "${ac_cv_prog_MKDIR+set}" = set; then
2808  echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810  if test -n "$MKDIR"; then
2811  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816  IFS=$as_save_IFS
2817  test -z "$as_dir" && as_dir=.
2818  for ac_exec_ext in '' $ac_executable_extensions; do
2819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820    ac_cv_prog_MKDIR="mkdir"
2821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822    break 2
2823  fi
2824done
2825done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
2830MKDIR=$ac_cv_prog_MKDIR
2831if test -n "$MKDIR"; then
2832  { echo "$as_me:$LINENO: result: $MKDIR" >&5
2833echo "${ECHO_T}$MKDIR" >&6; }
2834else
2835  { echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6; }
2837fi
2838
2839
2840# Extract the first word of "rm", so it can be a program name with args.
2841set dummy rm; ac_word=$2
2842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844if test "${ac_cv_prog_RM+set}" = set; then
2845  echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847  if test -n "$RM"; then
2848  ac_cv_prog_RM="$RM" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857    ac_cv_prog_RM="rm"
2858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862done
2863IFS=$as_save_IFS
2864
2865fi
2866fi
2867RM=$ac_cv_prog_RM
2868if test -n "$RM"; then
2869  { echo "$as_me:$LINENO: result: $RM" >&5
2870echo "${ECHO_T}$RM" >&6; }
2871else
2872  { echo "$as_me:$LINENO: result: no" >&5
2873echo "${ECHO_T}no" >&6; }
2874fi
2875
2876
2877# Extract the first word of "cp", so it can be a program name with args.
2878set dummy cp; ac_word=$2
2879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881if test "${ac_cv_prog_CP+set}" = set; then
2882  echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884  if test -n "$CP"; then
2885  ac_cv_prog_CP="$CP" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892  for ac_exec_ext in '' $ac_executable_extensions; do
2893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894    ac_cv_prog_CP="cp"
2895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CP=$ac_cv_prog_CP
2905if test -n "$CP"; then
2906  { echo "$as_me:$LINENO: result: $CP" >&5
2907echo "${ECHO_T}$CP" >&6; }
2908else
2909  { echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6; }
2911fi
2912
2913
2914# Extract the first word of "ln", so it can be a program name with args.
2915set dummy ln; ac_word=$2
2916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2918if test "${ac_cv_prog_LN+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  if test -n "$LN"; then
2922  ac_cv_prog_LN="$LN" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929  for ac_exec_ext in '' $ac_executable_extensions; do
2930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931    ac_cv_prog_LN="ln"
2932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941LN=$ac_cv_prog_LN
2942if test -n "$LN"; then
2943  { echo "$as_me:$LINENO: result: $LN" >&5
2944echo "${ECHO_T}$LN" >&6; }
2945else
2946  { echo "$as_me:$LINENO: result: no" >&5
2947echo "${ECHO_T}no" >&6; }
2948fi
2949
2950
2951# Extract the first word of "tar", so it can be a program name with args.
2952set dummy tar; ac_word=$2
2953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2955if test "${ac_cv_prog_TAR+set}" = set; then
2956  echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958  if test -n "$TAR"; then
2959  ac_cv_prog_TAR="$TAR" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966  for ac_exec_ext in '' $ac_executable_extensions; do
2967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968    ac_cv_prog_TAR="tar"
2969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973done
2974IFS=$as_save_IFS
2975
2976fi
2977fi
2978TAR=$ac_cv_prog_TAR
2979if test -n "$TAR"; then
2980  { echo "$as_me:$LINENO: result: $TAR" >&5
2981echo "${ECHO_T}$TAR" >&6; }
2982else
2983  { echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6; }
2985fi
2986
2987
2988# Extract the first word of "rpm", so it can be a program name with args.
2989set dummy rpm; ac_word=$2
2990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2992if test "${ac_cv_prog_RPM+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  if test -n "$RPM"; then
2996  ac_cv_prog_RPM="$RPM" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001  IFS=$as_save_IFS
3002  test -z "$as_dir" && as_dir=.
3003  for ac_exec_ext in '' $ac_executable_extensions; do
3004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005    ac_cv_prog_RPM="rpm"
3006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007    break 2
3008  fi
3009done
3010done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015RPM=$ac_cv_prog_RPM
3016if test -n "$RPM"; then
3017  { echo "$as_me:$LINENO: result: $RPM" >&5
3018echo "${ECHO_T}$RPM" >&6; }
3019else
3020  { echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6; }
3022fi
3023
3024
3025# Extract the first word of "sed", so it can be a program name with args.
3026set dummy sed; ac_word=$2
3027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3029if test "${ac_cv_prog_SED+set}" = set; then
3030  echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032  if test -n "$SED"; then
3033  ac_cv_prog_SED="$SED" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040  for ac_exec_ext in '' $ac_executable_extensions; do
3041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042    ac_cv_prog_SED="sed"
3043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044    break 2
3045  fi
3046done
3047done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052SED=$ac_cv_prog_SED
3053if test -n "$SED"; then
3054  { echo "$as_me:$LINENO: result: $SED" >&5
3055echo "${ECHO_T}$SED" >&6; }
3056else
3057  { echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6; }
3059fi
3060
3061
3062# Extract the first word of "find", so it can be a program name with args.
3063set dummy find; ac_word=$2
3064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3066if test "${ac_cv_prog_FIND+set}" = set; then
3067  echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069  if test -n "$FIND"; then
3070  ac_cv_prog_FIND="$FIND" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077  for ac_exec_ext in '' $ac_executable_extensions; do
3078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079    ac_cv_prog_FIND="find"
3080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089FIND=$ac_cv_prog_FIND
3090if test -n "$FIND"; then
3091  { echo "$as_me:$LINENO: result: $FIND" >&5
3092echo "${ECHO_T}$FIND" >&6; }
3093else
3094  { echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6; }
3096fi
3097
3098
3099
3100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3106echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3107# On Suns, sometimes $CPP names a directory.
3108if test -n "$CPP" && test -d "$CPP"; then
3109  CPP=
3110fi
3111if test -z "$CPP"; then
3112  if test "${ac_cv_prog_CPP+set}" = set; then
3113  echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115      # Double quotes because CPP needs to be expanded
3116    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3117    do
3118      ac_preproc_ok=false
3119for ac_c_preproc_warn_flag in '' yes
3120do
3121  # Use a header file that comes with gcc, so configuring glibc
3122  # with a fresh cross-compiler works.
3123  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3124  # <limits.h> exists even on freestanding compilers.
3125  # On the NeXT, cc -E runs the code through the compiler's parser,
3126  # not just through cpp. "Syntax error" is here to catch this case.
3127  cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133#ifdef __STDC__
3134# include <limits.h>
3135#else
3136# include <assert.h>
3137#endif
3138                     Syntax error
3139_ACEOF
3140if { (ac_try="$ac_cpp conftest.$ac_ext"
3141case "(($ac_try" in
3142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143  *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3147  ac_status=$?
3148  grep -v '^ *+' conftest.er1 >conftest.err
3149  rm -f conftest.er1
3150  cat conftest.err >&5
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); } >/dev/null && {
3153         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3154         test ! -s conftest.err
3155       }; then
3156  :
3157else
3158  echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161  # Broken: fails on valid input.
3162continue
3163fi
3164
3165rm -f conftest.err conftest.$ac_ext
3166
3167  # OK, works on sane cases.  Now check whether nonexistent headers
3168  # can be detected and how.
3169  cat >conftest.$ac_ext <<_ACEOF
3170/* confdefs.h.  */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h.  */
3175#include <ac_nonexistent.h>
3176_ACEOF
3177if { (ac_try="$ac_cpp conftest.$ac_ext"
3178case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3184  ac_status=$?
3185  grep -v '^ *+' conftest.er1 >conftest.err
3186  rm -f conftest.er1
3187  cat conftest.err >&5
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); } >/dev/null && {
3190         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3191         test ! -s conftest.err
3192       }; then
3193  # Broken: success on invalid input.
3194continue
3195else
3196  echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199  # Passes both tests.
3200ac_preproc_ok=:
3201break
3202fi
3203
3204rm -f conftest.err conftest.$ac_ext
3205
3206done
3207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3208rm -f conftest.err conftest.$ac_ext
3209if $ac_preproc_ok; then
3210  break
3211fi
3212
3213    done
3214    ac_cv_prog_CPP=$CPP
3215
3216fi
3217  CPP=$ac_cv_prog_CPP
3218else
3219  ac_cv_prog_CPP=$CPP
3220fi
3221{ echo "$as_me:$LINENO: result: $CPP" >&5
3222echo "${ECHO_T}$CPP" >&6; }
3223ac_preproc_ok=false
3224for ac_c_preproc_warn_flag in '' yes
3225do
3226  # Use a header file that comes with gcc, so configuring glibc
3227  # with a fresh cross-compiler works.
3228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229  # <limits.h> exists even on freestanding compilers.
3230  # On the NeXT, cc -E runs the code through the compiler's parser,
3231  # not just through cpp. "Syntax error" is here to catch this case.
3232  cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h.  */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h.  */
3238#ifdef __STDC__
3239# include <limits.h>
3240#else
3241# include <assert.h>
3242#endif
3243                     Syntax error
3244_ACEOF
3245if { (ac_try="$ac_cpp conftest.$ac_ext"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252  ac_status=$?
3253  grep -v '^ *+' conftest.er1 >conftest.err
3254  rm -f conftest.er1
3255  cat conftest.err >&5
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); } >/dev/null && {
3258         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3259         test ! -s conftest.err
3260       }; then
3261  :
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266  # Broken: fails on valid input.
3267continue
3268fi
3269
3270rm -f conftest.err conftest.$ac_ext
3271
3272  # OK, works on sane cases.  Now check whether nonexistent headers
3273  # can be detected and how.
3274  cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h.  */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h.  */
3280#include <ac_nonexistent.h>
3281_ACEOF
3282if { (ac_try="$ac_cpp conftest.$ac_ext"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289  ac_status=$?
3290  grep -v '^ *+' conftest.er1 >conftest.err
3291  rm -f conftest.er1
3292  cat conftest.err >&5
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); } >/dev/null && {
3295         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3296         test ! -s conftest.err
3297       }; then
3298  # Broken: success on invalid input.
3299continue
3300else
3301  echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304  # Passes both tests.
3305ac_preproc_ok=:
3306break
3307fi
3308
3309rm -f conftest.err conftest.$ac_ext
3310
3311done
3312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3313rm -f conftest.err conftest.$ac_ext
3314if $ac_preproc_ok; then
3315  :
3316else
3317  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3318See \`config.log' for more details." >&5
3319echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3320See \`config.log' for more details." >&2;}
3321   { (exit 1); exit 1; }; }
3322fi
3323
3324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330
3331{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3332echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3333if test "${ac_cv_path_GREP+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  # Extract the first word of "grep ggrep" to use in msg output
3337if test -z "$GREP"; then
3338set dummy grep ggrep; ac_prog_name=$2
3339if test "${ac_cv_path_GREP+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342  ac_path_GREP_found=false
3343# Loop through the user's path and test for each of PROGNAME-LIST
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349  for ac_prog in grep ggrep; do
3350  for ac_exec_ext in '' $ac_executable_extensions; do
3351    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3352    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3353    # Check for GNU ac_path_GREP and select it if it is found.
3354  # Check for GNU $ac_path_GREP
3355case `"$ac_path_GREP" --version 2>&1` in
3356*GNU*)
3357  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3358*)
3359  ac_count=0
3360  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3361  while :
3362  do
3363    cat "conftest.in" "conftest.in" >"conftest.tmp"
3364    mv "conftest.tmp" "conftest.in"
3365    cp "conftest.in" "conftest.nl"
3366    echo 'GREP' >> "conftest.nl"
3367    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3368    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3369    ac_count=`expr $ac_count + 1`
3370    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3371      # Best one so far, save it but keep looking for a better one
3372      ac_cv_path_GREP="$ac_path_GREP"
3373      ac_path_GREP_max=$ac_count
3374    fi
3375    # 10*(2^10) chars as input seems more than enough
3376    test $ac_count -gt 10 && break
3377  done
3378  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379esac
3380
3381
3382    $ac_path_GREP_found && break 3
3383  done
3384done
3385
3386done
3387IFS=$as_save_IFS
3388
3389
3390fi
3391
3392GREP="$ac_cv_path_GREP"
3393if test -z "$GREP"; then
3394  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3395echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3396   { (exit 1); exit 1; }; }
3397fi
3398
3399else
3400  ac_cv_path_GREP=$GREP
3401fi
3402
3403
3404fi
3405{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3406echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3407 GREP="$ac_cv_path_GREP"
3408
3409
3410{ echo "$as_me:$LINENO: checking for egrep" >&5
3411echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3412if test "${ac_cv_path_EGREP+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3416   then ac_cv_path_EGREP="$GREP -E"
3417   else
3418     # Extract the first word of "egrep" to use in msg output
3419if test -z "$EGREP"; then
3420set dummy egrep; ac_prog_name=$2
3421if test "${ac_cv_path_EGREP+set}" = set; then
3422  echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424  ac_path_EGREP_found=false
3425# Loop through the user's path and test for each of PROGNAME-LIST
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3428do
3429  IFS=$as_save_IFS
3430  test -z "$as_dir" && as_dir=.
3431  for ac_prog in egrep; do
3432  for ac_exec_ext in '' $ac_executable_extensions; do
3433    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3434    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3435    # Check for GNU ac_path_EGREP and select it if it is found.
3436  # Check for GNU $ac_path_EGREP
3437case `"$ac_path_EGREP" --version 2>&1` in
3438*GNU*)
3439  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3440*)
3441  ac_count=0
3442  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3443  while :
3444  do
3445    cat "conftest.in" "conftest.in" >"conftest.tmp"
3446    mv "conftest.tmp" "conftest.in"
3447    cp "conftest.in" "conftest.nl"
3448    echo 'EGREP' >> "conftest.nl"
3449    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3450    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3451    ac_count=`expr $ac_count + 1`
3452    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3453      # Best one so far, save it but keep looking for a better one
3454      ac_cv_path_EGREP="$ac_path_EGREP"
3455      ac_path_EGREP_max=$ac_count
3456    fi
3457    # 10*(2^10) chars as input seems more than enough
3458    test $ac_count -gt 10 && break
3459  done
3460  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3461esac
3462
3463
3464    $ac_path_EGREP_found && break 3
3465  done
3466done
3467
3468done
3469IFS=$as_save_IFS
3470
3471
3472fi
3473
3474EGREP="$ac_cv_path_EGREP"
3475if test -z "$EGREP"; then
3476  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3477echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3478   { (exit 1); exit 1; }; }
3479fi
3480
3481else
3482  ac_cv_path_EGREP=$EGREP
3483fi
3484
3485
3486   fi
3487fi
3488{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3489echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3490 EGREP=