Skip to content
Snippets Groups Projects
configure 940 KiB
Newer Older
  • Learn to ignore specific revisions
  • $as_echo "no" >&6; }
    
    fi
    
    
    fi
    if test -z "$ac_cv_prog_CC"; then
      ac_ct_CC=$CC
      # Extract the first word of "gcc", so it can be a program name with args.
    set dummy gcc; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_ac_ct_CC+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$ac_ct_CC"; then
      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_CC="gcc"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CC=$ac_cv_prog_ac_ct_CC
    if test -n "$ac_ct_CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    $as_echo "$ac_ct_CC" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
      if test "x$ac_ct_CC" = x; then
        CC=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        CC=$ac_ct_CC
      fi
    else
      CC="$ac_cv_prog_CC"
    fi
    
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
    set dummy ${ac_tool_prefix}g++; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_CXX+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$CXX"; then
      ac_cv_prog_CXX="$CXX" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_CXX="${ac_tool_prefix}g++"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    CXX=$ac_cv_prog_CXX
    if test -n "$CXX"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
    $as_echo "$CXX" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
    
    fi
    if test -z "$ac_cv_prog_CXX"; then
      ac_ct_CXX=$CXX
      # Extract the first word of "g++", so it can be a program name with args.
    set dummy g++; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_ac_ct_CXX+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$ac_ct_CXX"; then
      ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_CXX="g++"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    if test -n "$ac_ct_CXX"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
    $as_echo "$ac_ct_CXX" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
      if test "x$ac_ct_CXX" = x; then
        CXX=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        CXX=$ac_ct_CXX
      fi
    else
      CXX="$ac_cv_prog_CXX"
    fi
    
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
    set dummy ${ac_tool_prefix}ld; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_LD+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$LD"; then
      ac_cv_prog_LD="$LD" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_LD="${ac_tool_prefix}ld"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    LD=$ac_cv_prog_LD
    if test -n "$LD"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
    $as_echo "$LD" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
    
    fi
    if test -z "$ac_cv_prog_LD"; then
      ac_ct_LD=$LD
      # Extract the first word of "ld", so it can be a program name with args.
    set dummy ld; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_ac_ct_LD+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$ac_ct_LD"; then
      ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_LD="ld"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_LD=$ac_cv_prog_ac_ct_LD
    if test -n "$ac_ct_LD"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
    $as_echo "$ac_ct_LD" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
      if test "x$ac_ct_LD" = x; then
        LD=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        LD=$ac_ct_LD
      fi
    else
      LD="$ac_cv_prog_LD"
    fi
    
       if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_RANLIB+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$RANLIB"; then
      ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    RANLIB=$ac_cv_prog_RANLIB
    if test -n "$RANLIB"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    $as_echo "$RANLIB" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
    
    fi
    if test -z "$ac_cv_prog_RANLIB"; then
      ac_ct_RANLIB=$RANLIB
      # Extract the first word of "ranlib", so it can be a program name with args.
    set dummy ranlib; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$ac_ct_RANLIB"; then
      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_RANLIB="ranlib"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    if test -n "$ac_ct_RANLIB"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    $as_echo "$ac_ct_RANLIB" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
      if test "x$ac_ct_RANLIB" = x; then
        RANLIB=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        RANLIB=$ac_ct_RANLIB
      fi
    else
      RANLIB="$ac_cv_prog_RANLIB"
    fi
    
    
    fi
    
    # Checks for programs.
    ac_ext=cpp
    ac_cpp='$CXXCPP $CPPFLAGS'
    ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    if test -z "$CXX"; then
      if test -n "$CCC"; then
        CXX=$CCC
      else
        if test -n "$ac_tool_prefix"; then
    
      for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    
      do
        # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_CXX+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$CXX"; then
      ac_cv_prog_CXX="$CXX" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    CXX=$ac_cv_prog_CXX
    if test -n "$CXX"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
    $as_echo "$CXX" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
    
        test -n "$CXX" && break
      done
    fi
    if test -z "$CXX"; then
      ac_ct_CXX=$CXX
    
      for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_prog_ac_ct_CXX+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if test -n "$ac_ct_CXX"; then
      ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_CXX="$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    if test -n "$ac_ct_CXX"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
    $as_echo "$ac_ct_CXX" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    
    fi
    
    
      test -n "$ac_ct_CXX" && break
    done
    
      if test "x$ac_ct_CXX" = x; then
        CXX="g++"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        CXX=$ac_ct_CXX
      fi
    fi
    
      fi
    fi
    # Provide some information about the compiler.
    
    $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
    
    set X $ac_compile
    ac_compiler=$2
    
    for ac_option in --version -v -V -qversion; do
      { { ac_try="$ac_compiler $ac_option >&5"
    
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    
    $as_echo "$ac_try_echo"; } >&5
    
      (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    
      if test -s conftest.err; then
        sed '10a\
    ... rest of stderr output deleted ...
             10q' conftest.err >conftest.er1
        cat conftest.er1 >&5
      fi
      rm -f conftest.er1 conftest.err
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    
      test $ac_status = 0; }
    done
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
    $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    if ${ac_cv_cxx_compiler_gnu+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    
    {
    #ifndef __GNUC__
           choke me
    #endif
    
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_cxx_try_compile "$LINENO"; then :
    
      ac_compiler_gnu=yes
    
      ac_compiler_gnu=no
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
    $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    
    if test $ac_compiler_gnu = yes; then
      GXX=yes
    else
      GXX=
    fi
    
    ac_test_CXXFLAGS=${CXXFLAGS+set}
    
    ac_save_CXXFLAGS=$CXXFLAGS
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
    $as_echo_n "checking whether $CXX accepts -g... " >&6; }
    if ${ac_cv_prog_cxx_g+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      ac_save_cxx_werror_flag=$ac_cxx_werror_flag
       ac_cxx_werror_flag=yes
       ac_cv_prog_cxx_g=no
       CXXFLAGS="-g"
    
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    
    if ac_fn_cxx_try_compile "$LINENO"; then :
    
      ac_cv_prog_cxx_g=yes
    
      CXXFLAGS=""
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    
    if ac_fn_cxx_try_compile "$LINENO"; then :
    
      ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    
    	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    
    if ac_fn_cxx_try_compile "$LINENO"; then :
    
      ac_cv_prog_cxx_g=yes
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
       ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
    $as_echo "$ac_cv_prog_cxx_g" >&6; }
    if test "$ac_test_CXXFLAGS" = set; then
    
      CXXFLAGS=$ac_save_CXXFLAGS
    elif test $ac_cv_prog_cxx_g = yes; then
      if test "$GXX" = yes; then
        CXXFLAGS="-g -O2"
      else
        CXXFLAGS="-g"
      fi
    else
      if test "$GXX" = yes; then
        CXXFLAGS="-O2"
      else
        CXXFLAGS=
      fi
    fi
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
    $as_echo_n "checking how to run the C preprocessor... " >&6; }
    
    # On Suns, sometimes $CPP names a directory.
    if test -n "$CPP" && test -d "$CPP"; then
      CPP=
    fi
    if test -z "$CPP"; then
    
      if ${ac_cv_prog_CPP+:} false; then :
      $as_echo_n "(cached) " >&6
    else
          # Double quotes because CPP needs to be expanded
        for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    
        do
          ac_preproc_ok=false
    for ac_c_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
    
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
    
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    
    if ac_fn_c_try_cpp "$LINENO"; then :
    
      # Broken: fails on valid input.
    continue
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
      # can be detected and how.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if ac_fn_c_try_cpp "$LINENO"; then :
    
      # Broken: success on invalid input.
    continue
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.i conftest.err conftest.$ac_ext
    
    if $ac_preproc_ok; then :
    
      break
    fi
    
        done
        ac_cv_prog_CPP=$CPP
    
    fi
      CPP=$ac_cv_prog_CPP
    else
      ac_cv_prog_CPP=$CPP
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
    $as_echo "$CPP" >&6; }
    
    ac_preproc_ok=false
    for ac_c_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
    
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
    
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    
    if ac_fn_c_try_cpp "$LINENO"; then :
    
      # Broken: fails on valid input.
    continue
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
      # can be detected and how.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if ac_fn_c_try_cpp "$LINENO"; then :
    
      # Broken: success on invalid input.
    continue
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.i conftest.err conftest.$ac_ext
    
    if $ac_preproc_ok; then :
    
    else
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
    David M. Lee's avatar
    David M. Lee committed
    as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    See \`config.log' for more details" "$LINENO" 5; }
    
    fi
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    ac_ext=cpp
    ac_cpp='$CXXCPP $CPPFLAGS'
    ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
    $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    
    if test -z "$CXXCPP"; then
    
      if ${ac_cv_prog_CXXCPP+:} false; then :
      $as_echo_n "(cached) " >&6
    else
          # Double quotes because CXXCPP needs to be expanded
        for CXXCPP in "$CXX -E" "/lib/cpp"
    
        do
          ac_preproc_ok=false
    for ac_cxx_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
    
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
    
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    
    if ac_fn_cxx_try_cpp "$LINENO"; then :
    
      # Broken: fails on valid input.
    continue
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
      # can be detected and how.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if ac_fn_cxx_try_cpp "$LINENO"; then :
    
      # Broken: success on invalid input.
    continue
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.i conftest.err conftest.$ac_ext
    
    if $ac_preproc_ok; then :
    
      break
    fi
    
        done
        ac_cv_prog_CXXCPP=$CXXCPP
    
    fi
      CXXCPP=$ac_cv_prog_CXXCPP
    else
      ac_cv_prog_CXXCPP=$CXXCPP
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
    $as_echo "$CXXCPP" >&6; }
    
    ac_preproc_ok=false
    for ac_cxx_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
    
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
    
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    
    if ac_fn_cxx_try_cpp "$LINENO"; then :
    
      # Broken: fails on valid input.
    continue
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
      # OK, works on sane cases.  Now check whether nonexistent headers
      # can be detected and how.
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    
    if ac_fn_cxx_try_cpp "$LINENO"; then :
    
      # Broken: success on invalid input.
    continue
    
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    
    David M. Lee's avatar
    David M. Lee committed
    rm -f conftest.i conftest.err conftest.$ac_ext
    
    if $ac_preproc_ok; then :
    
    else
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
    David M. Lee's avatar
    David M. Lee committed
    as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
    See \`config.log' for more details" "$LINENO" 5; }
    
    fi
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
    # the developers regenerating the configure script don't have to install libtool.
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
    $as_echo_n "checking for a sed that does not truncate output... " >&6; }
    if ${ac_cv_path_SED+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
                ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
         for ac_i in 1 2 3 4 5 6 7; do
           ac_script="$ac_script$as_nl$ac_script"
         done
         echo "$ac_script" | sed 99q >conftest.sed
         $as_unset ac_script || ac_script=
    
         if test -z "$SED"; then
    
      ac_path_SED_found=false
    
      # Loop through the user's path and test for each of PROGNAME-LIST
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
    
      test -z "$as_dir" && as_dir=.
        for ac_prog in sed gsed; do
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
          ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
    
    David M. Lee's avatar
    David M. Lee committed
          as_fn_executable_p "$ac_path_SED" || continue
    
    # Check for GNU ac_path_SED and select it if it is found.
    
      # Check for GNU $ac_path_SED
    case `"$ac_path_SED" --version 2>&1` in
    *GNU*)
      ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
    *)
      ac_count=0
    
      $as_echo_n 0123456789 >"conftest.in"
    
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
    
        $as_echo '' >> "conftest.nl"
    
        "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    
        as_fn_arith $ac_count + 1 && ac_count=$as_val
    
        if test $ac_count -gt ${ac_path_SED_max-0}; then
          # Best one so far, save it but keep looking for a better one
          ac_cv_path_SED="$ac_path_SED"
          ac_path_SED_max=$ac_count
        fi
        # 10*(2^10) chars as input seems more than enough
        test $ac_count -gt 10 && break
      done
      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    esac
    
    
          $ac_path_SED_found && break 3
        done
    
    IFS=$as_save_IFS
    
      if test -z "$ac_cv_path_SED"; then
    
    David M. Lee's avatar
    David M. Lee committed
        as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
    $as_echo "$ac_cv_path_SED" >&6; }
    
     SED="$ac_cv_path_SED"
      rm -f conftest.sed
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    $as_echo_n "checking for egrep... " >&6; }
    if ${ac_cv_prog_egrep+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      if echo a | (grep -E '(a|b)') >/dev/null 2>&1
        then ac_cv_prog_egrep='grep -E'
        else ac_cv_prog_egrep='egrep'
        fi
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
    $as_echo "$ac_cv_prog_egrep" >&6; }
    
     EGREP=$ac_cv_prog_egrep
    
    
    
    # Check whether --with-gnu-ld was given.
    
    if test "${with_gnu_ld+set}" = set; then :
    
      withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
    
      with_gnu_ld=no
    fi
    
    ac_prog=ld
    if test "$GCC" = yes; then
      # Check if gcc -print-prog-name=ld gives a path.
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
    $as_echo_n "checking for ld used by $CC... " >&6; }
    
      case $host in
      *-*-mingw*)
        # gcc leaves a trailing carriage return which upsets mingw
        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
      *)
        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
      esac
      case $ac_prog in
        # Accept absolute paths.
        [\\/]* | ?:[\\/]*)
          re_direlt='/[^/][^/]*/\.\./'
          # Canonicalize the pathname of ld
          ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
          done
          test -z "$LD" && LD="$ac_prog"
          ;;
      "")
        # If it fails, then pretend we aren't using GCC.
        ac_prog=ld
        ;;
      *)
        # If it is relative, then search for the first ld in PATH.
        with_gnu_ld=unknown
        ;;
      esac
    elif test "$with_gnu_ld" = yes; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
    $as_echo_n "checking for GNU ld... " >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
    $as_echo_n "checking for non-GNU ld... " >&6; }
    
    if ${lt_cv_path_LD+:} false; then :