Skip to content
Snippets Groups Projects
configure 169 KiB
Newer Older
  • Learn to ignore specific revisions
  •       case $ac_val in
          *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
          esac
          $as_echo "$ac_var='\''$ac_val'\''"
        done | sort
        echo
    
        if test -n "$ac_subst_files"; then
    
          $as_echo "## ------------------- ##
    
    ## File substitutions. ##
    
    ## ------------------- ##"
    
          echo
          for ac_var in $ac_subst_files
          do
    	eval ac_val=\$$ac_var
    	case $ac_val in
    	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
    	esac
    	$as_echo "$ac_var='\''$ac_val'\''"
          done | sort
          echo
        fi
    
        if test -s confdefs.h; then
    
          $as_echo "## ----------- ##
    
    ## ----------- ##"
    
          echo
          cat confdefs.h
          echo
        fi
        test "$ac_signal" != 0 &&
          $as_echo "$as_me: caught signal $ac_signal"
        $as_echo "$as_me: exit $exit_status"
      } >&5
      rm -f core *.core core.conftest.* &&
        rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
        exit $exit_status
    ' 0
    for ac_signal in 1 2 13 15; do
    
      trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    
    done
    ac_signal=0
    
    # confdefs.h avoids OS command line length limits that DEFS can exceed.
    rm -f -r conftest* confdefs.h
    
    
    $as_echo "/* confdefs.h */" > confdefs.h
    
    
    # Predefined preprocessor variables.
    
    cat >>confdefs.h <<_ACEOF
    #define PACKAGE_NAME "$PACKAGE_NAME"
    _ACEOF
    
    cat >>confdefs.h <<_ACEOF
    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    _ACEOF
    
    cat >>confdefs.h <<_ACEOF
    #define PACKAGE_VERSION "$PACKAGE_VERSION"
    _ACEOF
    
    cat >>confdefs.h <<_ACEOF
    #define PACKAGE_STRING "$PACKAGE_STRING"
    _ACEOF
    
    cat >>confdefs.h <<_ACEOF
    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    _ACEOF
    
    
    cat >>confdefs.h <<_ACEOF
    #define PACKAGE_URL "$PACKAGE_URL"
    _ACEOF
    
    
    
    # Let the site file select an alternate cache file if it wants to.
    # Prefer an explicitly selected file to automatically selected ones.
    ac_site_file1=NONE
    ac_site_file2=NONE
    if test -n "$CONFIG_SITE"; then
    
      # We do not want a PATH search for config.site.
      case $CONFIG_SITE in #((
        -*)  ac_site_file1=./$CONFIG_SITE;;
        */*) ac_site_file1=$CONFIG_SITE;;
        *)   ac_site_file1=./$CONFIG_SITE;;
      esac
    
    elif test "x$prefix" != xNONE; then
      ac_site_file1=$prefix/share/config.site
      ac_site_file2=$prefix/etc/config.site
    else
      ac_site_file1=$ac_default_prefix/share/config.site
      ac_site_file2=$ac_default_prefix/etc/config.site
    fi
    for ac_site_file in "$ac_site_file1" "$ac_site_file2"
    do
      test "x$ac_site_file" = xNONE && continue
    
      if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
    
    $as_echo "$as_me: loading site script $ac_site_file" >&6;}
        sed 's/^/| /' "$ac_site_file" >&5
    
        . "$ac_site_file" \
          || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    as_fn_error $? "failed to load site script $ac_site_file
    See \`config.log' for more details" "$LINENO" 5; }
    
      # Some versions of bash will fail to source /dev/null (special files
      # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
      if test /dev/null != "$cache_file" && test -f "$cache_file"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
    
    $as_echo "$as_me: loading cache $cache_file" >&6;}
        case $cache_file in
          [\\/]* | ?:[\\/]* ) . "$cache_file";;
          *)                      . "./$cache_file";;
        esac
      fi
    else
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
    
    $as_echo "$as_me: creating cache $cache_file" >&6;}
      >$cache_file
    fi
    
    # Check that the precious variables saved in the cache have kept the same
    # value.
    ac_cache_corrupted=false
    for ac_var in $ac_precious_vars; do
      eval ac_old_set=\$ac_cv_env_${ac_var}_set
      eval ac_new_set=\$ac_env_${ac_var}_set
      eval ac_old_val=\$ac_cv_env_${ac_var}_value
      eval ac_new_val=\$ac_env_${ac_var}_value
      case $ac_old_set,$ac_new_set in
        set,)
    
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    
    $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
          ac_cache_corrupted=: ;;
        ,set)
    
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
    
    $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
          ac_cache_corrupted=: ;;
        ,);;
        *)
          if test "x$ac_old_val" != "x$ac_new_val"; then
    	# differences in whitespace do not lead to failure.
    	ac_old_val_w=`echo x $ac_old_val`
    	ac_new_val_w=`echo x $ac_new_val`
    	if test "$ac_old_val_w" != "$ac_new_val_w"; then
    
    	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
    
    $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    	  ac_cache_corrupted=:
    	else
    
    	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
    
    $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
    	  eval $ac_var=\$ac_old_val
    	fi
    
    	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
    
    $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
    
    	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
    
    $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
          fi;;
      esac
      # Pass precious variables to config.status.
      if test "$ac_new_set" = set; then
        case $ac_new_val in
        *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
        *) ac_arg=$ac_var=$ac_new_val ;;
        esac
        case " $ac_configure_args " in
          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    
          *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    
        esac
      fi
    done
    if $ac_cache_corrupted; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    
    $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    
      as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    
    ## -------------------- ##
    ## Main body of script. ##
    ## -------------------- ##
    
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    
    
    # check existence of the package
    
    
    # specify output header file
    ac_config_headers="$ac_config_headers autoconfig.h"
    
    
    
    
    
    ac_aux_dir=
    for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
      if test -f "$ac_dir/install-sh"; then
        ac_aux_dir=$ac_dir
        ac_install_sh="$ac_aux_dir/install-sh -c"
        break
      elif test -f "$ac_dir/install.sh"; then
        ac_aux_dir=$ac_dir
        ac_install_sh="$ac_aux_dir/install.sh -c"
        break
      elif test -f "$ac_dir/shtool"; then
        ac_aux_dir=$ac_dir
        ac_install_sh="$ac_aux_dir/shtool install -c"
        break
      fi
    done
    if test -z "$ac_aux_dir"; then
    
      as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
    
    fi
    
    # These three variables are undocumented and unsupported,
    # and are intended to be withdrawn in a future Autoconf release.
    # They can cause serious problems if a builder's source tree is in a directory
    # whose full name contains unusual characters.
    ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
    ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
    ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
    
    
    # Make sure we can run config.sub.
    $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    
      as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    
    $as_echo_n "checking build system type... " >&6; }
    
    if ${ac_cv_build+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      ac_build_alias=$build_alias
    test "x$ac_build_alias" = x &&
      ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    test "x$ac_build_alias" = x &&
    
      as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    
    ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    
      as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    
    $as_echo "$ac_cv_build" >&6; }
    case $ac_cv_build in
    *-*-*) ;;
    
    *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    
    esac
    build=$ac_cv_build
    ac_save_IFS=$IFS; IFS='-'
    set x $ac_cv_build
    shift
    build_cpu=$1
    build_vendor=$2
    shift; shift
    # Remember, the first character of IFS is used to create $*,
    # except with old shells:
    build_os=$*
    IFS=$ac_save_IFS
    case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    
    $as_echo_n "checking host system type... " >&6; }
    
    if ${ac_cv_host+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test "x$host_alias" = x; then
      ac_cv_host=$ac_cv_build
    else
      ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    
        as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    
    $as_echo "$ac_cv_host" >&6; }
    case $ac_cv_host in
    *-*-*) ;;
    
    *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    
    esac
    host=$ac_cv_host
    ac_save_IFS=$IFS; IFS='-'
    set x $ac_cv_host
    shift
    host_cpu=$1
    host_vendor=$2
    shift; shift
    # Remember, the first character of IFS is used to create $*,
    # except with old shells:
    host_os=$*
    IFS=$ac_save_IFS
    case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    
    
    
    HOST_OS=${host_os}
    
    
    PBX_WINARCH=0
    case "${host_os}" in
         freebsd*)
         OSARCH=FreeBSD
         ;;
         netbsd*)
         OSARCH=NetBSD
         ;;
         openbsd*)
         OSARCH=OpenBSD
         ;;
         solaris*)
         OSARCH=SunOS
         ;;
         mingw32)
         OSARCH=mingw32
         PBX_WINARCH=1
         ;;
         cygwin)
         OSARCH=cygwin
         PBX_WINARCH=1
         ;;
         linux-gnueabi)
         OSARCH=linux-gnu
         ;;
         *)
         OSARCH=${host_os}
         ;;
    esac
    
    
    
    
    
    # Checks for programs.
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    set dummy ${ac_tool_prefix}gcc; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    if ${ac_cv_prog_CC+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_CC="${ac_tool_prefix}gcc"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
    
    fi
    if test -z "$ac_cv_prog_CC"; then
      ac_ct_CC=$CC
      # Extract the first word of "gcc", so it can be a program name with args.
    set dummy gcc; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    if ${ac_cv_prog_ac_ct_CC+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test -n "$ac_ct_CC"; then
      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_CC="gcc"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CC=$ac_cv_prog_ac_ct_CC
    if test -n "$ac_ct_CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    
    $as_echo "$ac_ct_CC" >&6; }
    else
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
      if test "x$ac_ct_CC" = x; then
        CC=""
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    ac_tool_warned=yes ;;
    esac
        CC=$ac_ct_CC
      fi
    else
      CC="$ac_cv_prog_CC"
    fi
    
    if test -z "$CC"; then
              if test -n "$ac_tool_prefix"; then
        # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    set dummy ${ac_tool_prefix}cc; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    if ${ac_cv_prog_CC+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_CC="${ac_tool_prefix}cc"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
    
      fi
    fi
    if test -z "$CC"; then
      # Extract the first word of "cc", so it can be a program name with args.
    set dummy cc; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    if ${ac_cv_prog_CC+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    else
      ac_prog_rejected=no
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
           ac_prog_rejected=yes
           continue
         fi
        ac_cv_prog_CC="cc"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    if test $ac_prog_rejected = yes; then
      # We found a bogon in the path, so make sure we never use it.
      set dummy $ac_cv_prog_CC
      shift
      if test $# != 0; then
        # We chose a different compiler from the bogus one.
        # However, it has the same basename, so the bogon will be chosen
        # first if we set CC to just the basename; use the full file name.
        shift
        ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
      fi
    fi
    fi
    fi
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
    
    fi
    if test -z "$CC"; then
      if test -n "$ac_tool_prefix"; then
      for ac_prog in cl.exe
      do
        # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    if ${ac_cv_prog_CC+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test -n "$CC"; then
      ac_cv_prog_CC="$CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    CC=$ac_cv_prog_CC
    if test -n "$CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
    
        test -n "$CC" && break
      done
    fi
    if test -z "$CC"; then
      ac_ct_CC=$CC
      for ac_prog in cl.exe
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    if ${ac_cv_prog_ac_ct_CC+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      if test -n "$ac_ct_CC"; then
      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_CC="$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_CC=$ac_cv_prog_ac_ct_CC
    if test -n "$ac_ct_CC"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    
    $as_echo "$ac_ct_CC" >&6; }
    else
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
    
      test -n "$ac_ct_CC" && break
    done
    
      if test "x$ac_ct_CC" = x; then
        CC=""
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    ac_tool_warned=yes ;;
    esac
        CC=$ac_ct_CC
      fi
    fi
    
    fi
    
    
    
    test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
    as_fn_error $? "no acceptable C compiler found in \$PATH
    See \`config.log' for more details" "$LINENO" 5; }
    
    
    # Provide some information about the compiler.
    
    $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
    
    set X $ac_compile
    ac_compiler=$2
    
    for ac_option in --version -v -V -qversion; do
      { { ac_try="$ac_compiler $ac_option >&5"
    
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    $as_echo "$ac_try_echo"; } >&5
      (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    
      if test -s conftest.err; then
        sed '10a\
    ... rest of stderr output deleted ...
             10q' conftest.err >conftest.er1
        cat conftest.er1 >&5
      fi
      rm -f conftest.er1 conftest.err
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; }
    done
    
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    ac_clean_files_save=$ac_clean_files
    ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    # Try to create an executable without -o first, disregard a.out.
    # It will help us diagnose broken compilers, and finding out an intuition
    # of exeext.
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    $as_echo_n "checking whether the C compiler works... " >&6; }
    
    ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    
    # The possible output files:
    ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
    
    ac_rmfiles=
    for ac_file in $ac_files
    do
      case $ac_file in
        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
        * ) ac_rmfiles="$ac_rmfiles $ac_file";;
      esac
    done
    rm -f $ac_rmfiles
    
    
    if { { ac_try="$ac_link_default"
    
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    $as_echo "$ac_try_echo"; } >&5
    
      (eval "$ac_link_default") 2>&5
      ac_status=$?
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; }; then :
    
      # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
    # in a Makefile.  We should not override ac_cv_exeext if it was cached,
    # so that the user can short-circuit this test for compilers unknown to
    # Autoconf.
    for ac_file in $ac_files ''
    do
      test -f "$ac_file" || continue
      case $ac_file in
        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    	;;
        [ab].out )
    	# We found the default executable, but exeext='' is most
    	# certainly right.
    	break;;
        *.* )
    
    	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    
    	then :; else
    	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    	fi
    	# We set ac_cv_exeext here because the later test for it is not
    	# safe: cross compilers may not add the suffix if given an `-o'
    	# argument, so we may need to know it at that point already.
    	# Even if this section looks crufty: it has the advantage of
    	# actually working.
    	break;;
        * )
    	break;;
      esac
    done
    test "$ac_cv_exeext" = no && ac_cv_exeext=
    
    else
      ac_file=''
    fi
    
    if test -z "$ac_file"; then :
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
    as_fn_error 77 "C compiler cannot create executables
    See \`config.log' for more details" "$LINENO" 5; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    $as_echo "yes" >&6; }
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    $as_echo_n "checking for C compiler default output file name... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    $as_echo "$ac_file" >&6; }
    
    ac_exeext=$ac_cv_exeext
    
    rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    ac_clean_files=$ac_clean_files_save
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
    
    $as_echo_n "checking for suffix of executables... " >&6; }
    
    if { { ac_try="$ac_link"
    
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    $as_echo "$ac_try_echo"; } >&5
    
      (eval "$ac_link") 2>&5
      ac_status=$?
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; }; then :
    
      # If both `conftest.exe' and `conftest' are `present' (well, observable)
    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    # work properly (i.e., refer to `conftest.exe'), while it won't with
    # `rm'.
    for ac_file in conftest.exe conftest conftest.*; do
      test -f "$ac_file" || continue
      case $ac_file in
        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    	  break;;
        * ) break;;
      esac
    done
    else
    
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
    as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    See \`config.log' for more details" "$LINENO" 5; }
    
    rm -f conftest conftest$ac_cv_exeext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
    
    $as_echo "$ac_cv_exeext" >&6; }
    
    rm -f conftest.$ac_ext
    EXEEXT=$ac_cv_exeext
    ac_exeext=$EXEEXT
    
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <stdio.h>
    int
    main ()
    {
    FILE *f = fopen ("conftest.out", "w");
     return ferror (f) || fclose (f) != 0;
    
      ;
      return 0;
    }
    _ACEOF
    ac_clean_files="$ac_clean_files conftest.out"
    # Check that the compiler produces executables we can run.  If not, either
    # the compiler is broken, or we cross compile.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    $as_echo_n "checking whether we are cross compiling... " >&6; }
    if test "$cross_compiling" != yes; then
      { { ac_try="$ac_link"
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    $as_echo "$ac_try_echo"; } >&5
      (eval "$ac_link") 2>&5
      ac_status=$?
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; }
      if { ac_try='./conftest$ac_cv_exeext'
      { { case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    $as_echo "$ac_try_echo"; } >&5
      (eval "$ac_try") 2>&5
      ac_status=$?
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; }; }; then
        cross_compiling=no
      else
        if test "$cross_compiling" = maybe; then
    	cross_compiling=yes
        else
    	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    as_fn_error $? "cannot run C compiled programs.
    If you meant to cross compile, use \`--host'.
    See \`config.log' for more details" "$LINENO" 5; }
        fi
      fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    $as_echo "$cross_compiling" >&6; }
    
    rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
    ac_clean_files=$ac_clean_files_save
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    
    $as_echo_n "checking for suffix of object files... " >&6; }
    
    if ${ac_cv_objext+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    rm -f conftest.o conftest.obj
    
    if { { ac_try="$ac_compile"
    
    case "(($ac_try" in
      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
      *) ac_try_echo=$ac_try;;
    esac
    
    eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    $as_echo "$ac_try_echo"; } >&5
    
      (eval "$ac_compile") 2>&5
      ac_status=$?
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; }; then :
    
      for ac_file in conftest.o conftest.obj conftest.*; do
      test -f "$ac_file" || continue;
      case $ac_file in
        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
           break;;
      esac
    done
    else
      $as_echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
    
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    
    as_fn_error $? "cannot compute suffix of object files: cannot compile
    See \`config.log' for more details" "$LINENO" 5; }
    
    fi
    rm -f conftest.$ac_cv_objext conftest.$ac_ext
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
    
    $as_echo "$ac_cv_objext" >&6; }
    OBJEXT=$ac_cv_objext
    ac_objext=$OBJEXT
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    
    $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    
    if ${ac_cv_c_compiler_gnu+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    /* end confdefs.h.  */
    
    int
    main ()
    {
    #ifndef __GNUC__
           choke me
    #endif
    
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      ac_compiler_gnu=no
    
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    ac_cv_c_compiler_gnu=$ac_compiler_gnu
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
    
    $as_echo "$ac_cv_c_compiler_gnu" >&6; }
    if test $ac_compiler_gnu = yes; then
      GCC=yes
    else
      GCC=
    fi
    ac_test_CFLAGS=${CFLAGS+set}
    ac_save_CFLAGS=$CFLAGS
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    
    $as_echo_n "checking whether $CC accepts -g... " >&6; }
    
    if ${ac_cv_prog_cc_g+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      ac_save_c_werror_flag=$ac_c_werror_flag
       ac_c_werror_flag=yes
       ac_cv_prog_cc_g=no
       CFLAGS="-g"
    
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      CFLAGS=""
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
    else
      ac_c_werror_flag=$ac_save_c_werror_flag
    
    	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext