Skip to content
Snippets Groups Projects
configure 903 KiB
Newer Older
  • Learn to ignore specific revisions
  • David M. Lee's avatar
    David M. Lee committed
      ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
    h
    s///
    s/^/:/
    s/[	 ]*$/:/
    s/:\$(srcdir):/:/g
    s/:\${srcdir}:/:/g
    s/:@srcdir@:/:/g
    s/^:*//
    
    David M. Lee's avatar
    David M. Lee committed
    x
    s/\(=[	 ]*\).*/\1/
    G
    s/\n//
    
    s/^[^=]*=[	 ]*$//
    }'
    fi
    
    cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    fi # test -n "$CONFIG_FILES"
    
    
    # Set up the scripts for CONFIG_HEADERS section.
    # No need to generate them if there are no CONFIG_HEADERS.
    # This happens for instance with `./config.status Makefile'.
    if test -n "$CONFIG_HEADERS"; then
    
    David M. Lee's avatar
    David M. Lee committed
    cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
    
    BEGIN {
    _ACEOF
    
    # Transform confdefs.h into an awk script `defines.awk', embedded as
    # here-document in config.status, that substitutes the proper values into
    # config.h.in to produce config.h.
    
    # Create a delimiter string that does not exist in confdefs.h, to ease
    # handling of long lines.
    ac_delim='%!_!# '
    for ac_last_try in false false :; do
    
    David M. Lee's avatar
    David M. Lee committed
      ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
      if test -z "$ac_tt"; then
    
        break
      elif $ac_last_try; then
    
    David M. Lee's avatar
    David M. Lee committed
        as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
    
      else
        ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
      fi
    done
    
    # For the awk script, D is an array of macro values keyed by name,
    # likewise P contains macro parameters if any.  Preserve backslash
    # newline sequences.
    
    ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
    sed -n '
    s/.\{148\}/&'"$ac_delim"'/g
    t rset
    :rset
    s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
    t def
    d
    :def
    s/\\$//
    t bsnl
    s/["\\]/\\&/g
    s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
    D["\1"]=" \3"/p
    s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
    d
    :bsnl
    s/["\\]/\\&/g
    s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
    D["\1"]=" \3\\\\\\n"\\/p
    t cont
    s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
    t cont
    d
    :cont
    n
    s/.\{148\}/&'"$ac_delim"'/g
    t clear
    :clear
    s/\\$//
    t bsnlc
    s/["\\]/\\&/g; s/^/"/; s/$/"/p
    d
    :bsnlc
    s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
    b cont
    ' <confdefs.h | sed '
    s/'"$ac_delim"'/"\\\
    "/g' >>$CONFIG_STATUS || ac_write_fail=1
    
    cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
      for (key in D) D_is_set[key] = 1
      FS = ""
    }
    /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
      line = \$ 0
      split(line, arg, " ")
      if (arg[1] == "#") {
        defundef = arg[2]
        mac1 = arg[3]
      } else {
        defundef = substr(arg[1], 2)
        mac1 = arg[2]
      }
      split(mac1, mac2, "(") #)
      macro = mac2[1]
      prefix = substr(line, 1, index(line, defundef) - 1)
      if (D_is_set[macro]) {
        # Preserve the white space surrounding the "#".
        print prefix "define", macro P[macro] D[macro]
        next
      } else {
        # Replace #undef with comments.  This is necessary, for example,
        # in the case of _POSIX_SOURCE, which is predefined and required
        # on some systems where configure will not decide to define it.
        if (defundef == "undef") {
          print "/*", prefix defundef, macro, "*/"
          next
        }
      }
    }
    { print }
    _ACAWK
    _ACEOF
    cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    
    David M. Lee's avatar
    David M. Lee committed
      as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
    
    fi # test -n "$CONFIG_HEADERS"
    
    
    eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
    
    do
      case $ac_tag in
      :[FHLC]) ac_mode=$ac_tag; continue;;
      esac
      case $ac_mode$ac_tag in
      :[FHL]*:*);;
    
    David M. Lee's avatar
    David M. Lee committed
      :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
    
      :[FH]-) ac_tag=-:-;;
      :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
      esac
      ac_save_IFS=$IFS
      IFS=:
      set x $ac_tag
      IFS=$ac_save_IFS
      shift
      ac_file=$1
      shift
    
      case $ac_mode in
      :L) ac_source=$1;;
      :[FH])
        ac_file_inputs=
        for ac_f
        do
          case $ac_f in
    
    David M. Lee's avatar
    David M. Lee committed
          -) ac_f="$ac_tmp/stdin";;
    
          *) # Look for the file first in the build tree, then in the source tree
    	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
    	 # because $ac_f cannot contain `:'.
    	 test -f "$ac_f" ||
    	   case $ac_f in
    	   [\\/$]*) false;;
    	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    	   esac ||
    
    David M. Lee's avatar
    David M. Lee committed
    	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
    
          case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
    
          as_fn_append ac_file_inputs " '$ac_f'"
    
        done
    
        # Let's still pretend it is `configure' which instantiates (i.e., don't
        # use $as_me), people would be surprised to read:
        #    /* config.h.  Generated by config.status.  */
    
        configure_input='Generated from '`
    	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
    	`' by configure.'
    
        if test x"$ac_file" != x-; then
          configure_input="$ac_file.  $configure_input"
    
          { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
    
    $as_echo "$as_me: creating $ac_file" >&6;}
    
        # Neutralize special characters interpreted by sed in replacement strings.
        case $configure_input in #(
        *\&* | *\|* | *\\* )
           ac_sed_conf_input=`$as_echo "$configure_input" |
           sed 's/[\\\\&|]/\\\\&/g'`;; #(
        *) ac_sed_conf_input=$configure_input;;
        esac
    
    David M. Lee's avatar
    David M. Lee committed
        *:-:* | *:-) cat >"$ac_tmp/stdin" \
          || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    
      ac_dir=`$as_dirname -- "$ac_file" ||
    
    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    	 X"$ac_file" : 'X\(//\)[^/]' \| \
    	 X"$ac_file" : 'X\(//\)$' \| \
    
    	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
    
    $as_echo X"$ac_file" |
    
        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)[^/].*/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\/\)$/{
    	    s//\1/
    	    q
    	  }
    	  /^X\(\/\).*/{
    	    s//\1/
    	    q
    	  }
    	  s/.*/./; q'`
    
      as_dir="$ac_dir"; as_fn_mkdir_p
    
    case "$ac_dir" in
    .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
    *)
    
      ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
    
      # A ".." for each directory in $ac_dir_suffix.
    
      ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
    
      case $ac_top_builddir_sub in
      "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
      *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
      esac ;;
    esac
    ac_abs_top_builddir=$ac_pwd
    ac_abs_builddir=$ac_pwd$ac_dir_suffix
    # for backward compatibility:
    ac_top_builddir=$ac_top_build_prefix
    
      .)  # We are building in place.
    
        ac_top_srcdir=$ac_top_builddir_sub
        ac_abs_top_srcdir=$ac_pwd ;;
      [\\/]* | ?:[\\/]* )  # Absolute name.
    
        ac_srcdir=$srcdir$ac_dir_suffix;
    
        ac_top_srcdir=$srcdir
        ac_abs_top_srcdir=$srcdir ;;
      *) # Relative name.
        ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
        ac_top_srcdir=$ac_top_build_prefix$srcdir
        ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    
    ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
    
      :F)
      #
      # CONFIG_FILE
      #
    
      case $INSTALL in
      [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
      *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
      esac
    _ACEOF
    
    cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    # If the template does not know about datarootdir, expand it.
    # FIXME: This hack should be removed a few years after 2.60.
    ac_datarootdir_hack=; ac_datarootdir_seen=
    ac_sed_dataroot='
    /datarootdir/ {
      p
      q
    }
    /@datadir@/p
    /@docdir@/p
    /@infodir@/p
    /@localedir@/p
    /@mandir@/p'
    case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
    *datarootdir*) ac_datarootdir_seen=yes;;
    *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
    $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
    _ACEOF
    cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
      ac_datarootdir_hack='
      s&@datadir@&$datadir&g
      s&@docdir@&$docdir&g
      s&@infodir@&$infodir&g
      s&@localedir@&$localedir&g
      s&@mandir@&$mandir&g
      s&\\\${datarootdir}&$datarootdir&g' ;;
    esac
    _ACEOF
    
    # Neutralize VPATH when `$srcdir' = `.'.
    # Shell code in configure.ac might set extrasub.
    # FIXME: do we really want to maintain this feature?
    cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    ac_sed_extra="$ac_vpsub
    $extrasub
    _ACEOF
    cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    :t
    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    s|@configure_input@|$ac_sed_conf_input|;t t
    s&@top_builddir@&$ac_top_builddir_sub&;t t
    s&@top_build_prefix@&$ac_top_build_prefix&;t t
    s&@srcdir@&$ac_srcdir&;t t
    s&@abs_srcdir@&$ac_abs_srcdir&;t t
    s&@top_srcdir@&$ac_top_srcdir&;t t
    s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
    s&@builddir@&$ac_builddir&;t t
    s&@abs_builddir@&$ac_abs_builddir&;t t
    s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
    s&@INSTALL@&$ac_INSTALL&;t t
    $ac_datarootdir_hack
    "
    
    David M. Lee's avatar
    David M. Lee committed
    eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
      >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
    
    test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    
    David M. Lee's avatar
    David M. Lee committed
      { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
      { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
          "$ac_tmp/out"`; test -z "$ac_out"; } &&
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    
    David M. Lee's avatar
    David M. Lee committed
    which seems to be undefined.  Please make sure it is defined" >&5
    
    $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    
    David M. Lee's avatar
    David M. Lee committed
    which seems to be undefined.  Please make sure it is defined" >&2;}
    
    David M. Lee's avatar
    David M. Lee committed
      rm -f "$ac_tmp/stdin"
    
    David M. Lee's avatar
    David M. Lee committed
      -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
      *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
    
    David M. Lee's avatar
    David M. Lee committed
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
      if test x"$ac_file" != x-; then
    
        {
          $as_echo "/* $configure_input  */" \
    
    David M. Lee's avatar
    David M. Lee committed
          && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
        } >"$ac_tmp/config.h" \
          || as_fn_error $? "could not create $ac_file" "$LINENO" 5
        if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
    
          { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
    
    $as_echo "$as_me: $ac_file is unchanged" >&6;}
    
          rm -f "$ac_file"
    
    David M. Lee's avatar
    David M. Lee committed
          mv "$ac_tmp/config.h" "$ac_file" \
    	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    
        $as_echo "/* $configure_input  */" \
    
    David M. Lee's avatar
    David M. Lee committed
          && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
          || as_fn_error $? "could not create -" "$LINENO" 5
    
    as_fn_exit 0
    
    _ACEOF
    ac_clean_files=$ac_clean_files_save
    
    
    test $ac_write_fail = 0 ||
    
    David M. Lee's avatar
    David M. Lee committed
      as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    
    
    # configure is writing to config.log, and then calls config.status.
    # config.status does its own redirection, appending to config.log.
    # Unfortunately, on DOS this fails, as config.log is still kept open
    # by configure, so config.status won't be able to write to it; its
    # output is simply discarded.  So we exec the FD to /dev/null,
    # effectively closing config.log, so it can be properly (re)opened and
    # appended to by config.status.  When coming back to configure, we
    # need to make the FD available again.
    if test "$no_create" != yes; then
      ac_cs_success=:
      ac_config_status_args=
      test "$silent" = yes &&
        ac_config_status_args="$ac_config_status_args --quiet"
      exec 5>/dev/null
      $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
      exec 5>>config.log
      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
      # would make configure fail if this is the last instruction.
    
    David M. Lee's avatar
    David M. Lee committed
      $ac_cs_success || as_fn_exit 1
    
    if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
    
    $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
    fi
    
    ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
    
    if test "x${ac_cv_path_CMP}" = "x:"; then
    
    	( cd `pwd`/menuselect && ./configure )
    else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
    	( cd `pwd`/menuselect && ./configure )
    
    rm makeopts.acbak makeopts.acbak2
    
    if test "x${silent}" != "xyes" ; then
    
    echo
    echo "               .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=..      "
    echo "            .\$7\$7..          .7\$\$7:.    "
    echo "          .\$\$:.                 ,\$7.7   "
    echo "        .\$7.     7\$\$\$\$           .\$\$77  "
    echo "     ..\$\$.       \$\$\$\$\$            .\$\$\$7 "
    echo "    ..7\$   .?.   \$\$\$\$\$   .?.       7\$\$\$."
    echo "   \$.\$.   .\$\$\$7. \$\$\$\$7 .7\$\$\$.      .\$\$\$."
    echo " .777.   .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7.      \$\$\$,"
    echo " \$\$\$~      .7\$\$\$\$\$\$\$\$\$\$\$\$\$7.       .\$\$\$."
    echo ".\$\$7          .7\$\$\$\$\$\$\$7:          ?\$\$\$."
    echo "\$\$\$          ?7\$\$\$\$\$\$\$\$\$\$I        .\$\$\$7 "
    echo "\$\$\$       .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$      :\$\$\$. "
    echo "\$\$\$       \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$    .\$\$\$.  "
    echo "\$\$\$        \$\$\$   7\$\$\$7  .\$\$\$    .\$\$\$.   "
    echo "\$\$\$\$             \$\$\$\$7         .\$\$\$.    "
    echo "7\$\$\$7            7\$\$\$\$        7\$\$\$      "
    echo " \$\$\$\$\$                        \$\$\$       "
    echo "  \$\$\$\$7.                       \$\$  (TM)     "
    echo "   \$\$\$\$\$\$\$.           .7\$\$\$\$\$\$  \$\$      "
    echo "     \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$      "
    echo "       \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$.                "
    echo
    
    if test "x${AST_IODBC_FOUND}" = "xyes"; then
    	echo "WARNING: iodbc libs/headers found!"
    	echo
    	echo "  If you plan to use ODBC functionality, you should consider"
    	echo "  switching to unixodbc instead."
    	echo "  See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
    	echo
    fi
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
    
    $as_echo "$as_me: Package configured for: " >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: OS type  : $host_os" >&5
    
    $as_echo "$as_me: OS type  : $host_os" >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
    
    $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
    
    $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
    
    $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
    
    if test "${cross_compiling}" = "yes"; then
    
       { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
    
    $as_echo "$as_me: Cross Compilation = YES" >&6;}