Skip to content
Snippets Groups Projects
configure 940 KiB
Newer Older
  • Learn to ignore specific revisions
  •   ac_srcdir_defaulted=no
    fi
    if test ! -r "$srcdir/$ac_unique_file"; then
      test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    
    David M. Lee's avatar
    David M. Lee committed
      as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
    
    fi
    ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    ac_abs_confdir=`(
    
    David M. Lee's avatar
    David M. Lee committed
    	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
    
    	pwd)`
    # When building in place, set srcdir=.
    if test "$ac_abs_confdir" = "$ac_pwd"; then
      srcdir=.
    fi
    # Remove unnecessary trailing slashes from srcdir.
    # Double slashes in file names in object file debugging info
    # mess up M-x gdb in Emacs.
    case $srcdir in
    */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
    esac
    for ac_var in $ac_precious_vars; do
      eval ac_env_${ac_var}_set=\${${ac_var}+set}
      eval ac_env_${ac_var}_value=\$${ac_var}
      eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
      eval ac_cv_env_${ac_var}_value=\$${ac_var}
    done
    
    #
    # Report the --help message.
    #
    if test "$ac_init_help" = "long"; then
      # Omit some internal or obsolete options to make the list less imposing.
      # This message is too long to be a string in the A/UX 3.1 sh.
      cat <<_ACEOF
    \`configure' configures asterisk trunk to adapt to many kinds of systems.
    
    Usage: $0 [OPTION]... [VAR=VALUE]...
    
    To assign environment variables (e.g., CC, CFLAGS...), specify them as
    VAR=VALUE.  See below for descriptions of some of the useful variables.
    
    Defaults for the options are specified in brackets.
    
    Configuration:
      -h, --help              display this help and exit
          --help=short        display options specific to this package
          --help=recursive    display the short help of all the included packages
      -V, --version           display version information and exit
    
    David M. Lee's avatar
    David M. Lee committed
      -q, --quiet, --silent   do not print \`checking ...' messages
    
          --cache-file=FILE   cache test results in FILE [disabled]
      -C, --config-cache      alias for \`--cache-file=config.cache'
      -n, --no-create         do not create output files
          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    
    Installation directories:
      --prefix=PREFIX         install architecture-independent files in PREFIX
    
                              [$ac_default_prefix]
    
      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    
    
    By default, \`make install' will install all the files in
    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    for instance \`--prefix=\$HOME'.
    
    For better control, use the options below.
    
    Fine tuning of the installation directories:
    
      --bindir=DIR            user executables [EPREFIX/bin]
      --sbindir=DIR           system admin executables [EPREFIX/sbin]
      --libexecdir=DIR        program executables [EPREFIX/libexec]
      --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
      --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
      --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    
      --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
    
      --libdir=DIR            object code libraries [EPREFIX/lib]
      --includedir=DIR        C header files [PREFIX/include]
      --oldincludedir=DIR     C header files for non-gcc [/usr/include]
      --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
      --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
      --infodir=DIR           info documentation [DATAROOTDIR/info]
      --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
      --mandir=DIR            man documentation [DATAROOTDIR/man]
      --docdir=DIR            documentation root [DATAROOTDIR/doc/asterisk]
      --htmldir=DIR           html documentation [DOCDIR]
      --dvidir=DIR            dvi documentation [DOCDIR]
      --pdfdir=DIR            pdf documentation [DOCDIR]
      --psdir=DIR             ps documentation [DOCDIR]
    
    _ACEOF
    
      cat <<\_ACEOF
    
    System types:
      --build=BUILD     configure for building on BUILD [guessed]
      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    _ACEOF
    fi
    
    if test -n "$ac_init_help"; then
      case $ac_init_help in
         short | recursive ) echo "Configuration of asterisk trunk:";;
       esac
      cat <<\_ACEOF
    
    Optional Features:
    
      --disable-option-checking  ignore unrecognized --enable/--with options
    
      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    
      --disable-binary-modules
                              Block installation of binary modules.
    
      --enable-dev-mode       Turn on developer mode
      --enable-coverage       Turn on code coverage tracking (for gcov)
    
      --disable-xmldoc        Explicitly disable XML documentation
    
      --enable-permanent-dlopen
                              Enable when your libc has a permanent dlopen like
                              musl
    
      --disable-largefile     omit support for large files
      --enable-internal-poll  Use Asterisk's poll implementation
    
      --disable-asteriskssl   Disable Asterisk's SSL wrapper library
    
      --disable-rpath         Disables rpath linker option checking
    
    
    Optional Packages:
      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
      --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    
      --with-download-cache=PATH
                              use cached sound AND external module tarfiles in
                              PATH
    
      --with-sounds-cache=PATH
                              use cached sound tarfiles in PATH
      --with-externals-cache=PATH
                              use cached external module tarfiles in PATH
    
      --with-jansson-bundled  Use bundled jansson library
    
                              Use bundled pjproject libraries (default)
    
      --with-crypto=PATH      use OpenSSL Cryptography files in PATH
      --with-ssl=PATH         use OpenSSL Secure Sockets Layer files in PATH
    
      --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
      --with-bfd=PATH         use Debug symbol decoding files in PATH
      --with-execinfo=PATH    use Stack Backtrace files in PATH
      --with-bluetooth=PATH   use Bluetooth files in PATH
      --with-cap=PATH         use POSIX 1.e capabilities files in PATH
    
      --with-codec2=PATH      use Codec 2 Audio Decoder/Encoder files in PATH
    
      --with-cpg=PATH         use Corosync files in PATH
    
      --with-crypt=PATH       use password and data encryption files in PATH
    
      --with-dahdi=PATH       use DAHDI files in PATH
      --with-avcodec=PATH     use Ffmpeg and avcodec files in PATH
      --with-gsm=PATH         use External GSM files in PATH, use 'internal' GSM
                              otherwise
    
      --with-ilbc=PATH        use System iLBC files in PATH, use 'internal' iLBC
                              otherwise
    
      --with-gtk2=PATH        use gtk2 files in PATH
      --with-gmime=PATH       use GMime files in PATH
      --with-hoard=PATH       use Hoard Memory Allocator files in PATH
      --with-ical=PATH        use iCal files in PATH
      --with-iconv=PATH       use Iconv files in PATH
      --with-iksemel=PATH     use Iksemel Jabber files in PATH
      --with-imap=PATH        use UW IMAP Toolkit files in PATH
      --with-inotify=PATH     use inotify support files in PATH
      --with-iodbc=PATH       use iODBC files in PATH
      --with-jack=PATH        use Jack Audio Connection Kit files in PATH
    
    David M. Lee's avatar
    David M. Lee committed
      --with-jansson=PATH     use Jansson JSON library files in PATH
    
    Joshua Colp's avatar
    Joshua Colp committed
      --with-uriparser=PATH   use uriparser library files in PATH
    
      --with-kqueue=PATH      use kqueue support files in PATH
      --with-ldap=PATH        use OpenLDAP files in PATH
    
      --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
                              in PREFIX/include
    
      --with-libedit=PATH     use NetBSD Editline library files in PATH
    
      --with-libxml2=PATH     use LibXML2 files in PATH
    
      --with-libxslt=PATH     use LibXSLT files in PATH
    
      --with-lua=PATH         use Lua files in PATH
      --with-mysqlclient=PATH use MySQL client files in PATH
      --with-neon=PATH        use neon files in PATH
      --with-neon29=PATH      use neon29 files in PATH
      --with-netsnmp=PATH     use Net-SNMP files in PATH
      --with-newt=PATH        use newt files in PATH
      --with-ogg=PATH         use OGG files in PATH
      --with-openr2=PATH      use MFR2 files in PATH
    
      --with-opus=PATH        use Opus files in PATH
    
      --with-opusfile=PATH    use Opusfile files in PATH
    
      --with-osptk=PATH       use OSP Toolkit files in PATH
      --with-postgres=PATH    use PostgreSQL files in PATH
    
      --with-beanstalk=PATH   use Beanstalk Job Queue files in PATH
    
      --with-pjproject=PATH   use PJPROJECT files in PATH
    
      --with-popt=PATH        use popt files in PATH
      --with-portaudio=PATH   use PortAudio files in PATH
      --with-pri=PATH         use ISDN PRI files in PATH
      --with-radius=PATH      use Radius Client files in PATH
    
      --with-fftw3=PATH       use LIBFFTW3 files in PATH
    
      --with-resample=PATH    use LIBRESAMPLE files in PATH
    
      --with-sndfile=PATH     use libsndfile files in PATH
    
      --with-sdl=PATH         use Sdl files in PATH
      --with-SDL_image=PATH   use Sdl Image files in PATH
      --with-spandsp=PATH     use SPANDSP files in PATH
      --with-ss7=PATH         use ISDN SS7 files in PATH
      --with-speex=PATH       use Speex files in PATH
      --with-speex=PATH       use Speex preprocess routines files in PATH
      --with-speexdsp=PATH    use SpeexDSP files in PATH
      --with-sqlite3=PATH     use SQLite files in PATH
      --with-srtp=PATH        use Secure RTP files in PATH
      --with-tds=PATH         use FreeTDS files in PATH
      --with-timerfd=PATH     use timerfd files in PATH
      --with-tonezone=PATH    use tonezone files in PATH
    
      --with-unbound=PATH     use unbound files in PATH
    
      --with-unixodbc=PATH    use unixODBC files in PATH
      --with-vorbis=PATH      use Vorbis files in PATH
      --with-x11=PATH         use X11 files in PATH
      --with-z=PATH           use zlib compression files in PATH
    
    Some influential environment variables:
      CC          C compiler command
      CFLAGS      C compiler flags
      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                  nonstandard directory <lib dir>
      LIBS        libraries to pass to the linker, e.g. -l<library>
    
      CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    
                  you have headers in a nonstandard directory <include dir>
    
      CPP         C preprocessor
    
      CXX         C++ compiler command
      CXXFLAGS    C++ compiler flags
      CXXCPP      C++ preprocessor
    
      PKG_CONFIG  path to pkg-config utility
      PKG_CONFIG_PATH
                  directories to add to pkg-config's search path
      PKG_CONFIG_LIBDIR
                  path overriding pkg-config's built-in search path
      OPENSSL_CFLAGS
                  C compiler flags for OPENSSL, overriding pkg-config
      OPENSSL_LIBS
                  linker flags for OPENSSL, overriding pkg-config
    
      JANSSON_CONFIGURE_OPTS
                  Additional configure options to pass to bundled jansson
    
      PJPROJECT_CONFIGURE_OPTS
                  Additional configure options to pass to bundled pjproject
    
      LUA_VERSIONS
                  A space separated list of target lua versions to test.
    
      LIBEDIT_CFLAGS
                  C compiler flags for LIBEDIT, overriding pkg-config
      LIBEDIT_LIBS
                  linker flags for LIBEDIT, overriding pkg-config
    
      JANSSON_CFLAGS
                  C compiler flags for JANSSON, overriding pkg-config
      JANSSON_LIBS
                  linker flags for JANSSON, overriding pkg-config
    
      LIBXML2_CFLAGS
                  C compiler flags for LIBXML2, overriding pkg-config
      LIBXML2_LIBS
                  linker flags for LIBXML2, overriding pkg-config
    
      ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
      ILBC_LIBS   linker flags for ILBC, overriding pkg-config
    
      NETSNMP_CFLAGS
                  C compiler flags for NETSNMP, overriding pkg-config
      NETSNMP_LIBS
                  linker flags for NETSNMP, overriding pkg-config
    
      PJPROJECT_CFLAGS
                  C compiler flags for PJPROJECT, overriding pkg-config
      PJPROJECT_LIBS
                  linker flags for PJPROJECT, overriding pkg-config
    
      PYTHONDEV_CFLAGS
                  C compiler flags for PYTHONDEV, overriding pkg-config
      PYTHONDEV_LIBS
                  linker flags for PYTHONDEV, overriding pkg-config
    
      PORTAUDIO_CFLAGS
                  C compiler flags for PORTAUDIO, overriding pkg-config
      PORTAUDIO_LIBS
                  linker flags for PORTAUDIO, overriding pkg-config
    
      GMIME_CFLAGS
                  C compiler flags for GMIME, overriding pkg-config
      GMIME_LIBS  linker flags for GMIME, overriding pkg-config
      GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
      GTK2_LIBS   linker flags for GTK2, overriding pkg-config
    
      SYSTEMD_CFLAGS
                  C compiler flags for SYSTEMD, overriding pkg-config
      SYSTEMD_LIBS
                  linker flags for SYSTEMD, overriding pkg-config
    
    
    Use these variables to override the choices made by `configure' or to help
    it to find libraries and programs with nonstandard names/locations.
    
    Report bugs to <https://issues.asterisk.org>.
    _ACEOF
    ac_status=$?
    fi
    
    if test "$ac_init_help" = "recursive"; then
      # If there are subdirs, report their specific --help.
      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    
        test -d "$ac_dir" ||
          { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
          continue
    
        ac_builddir=.
    
    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
    
    case $srcdir in
      .)  # We are building in place.
        ac_srcdir=.
        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 ;;
    esac
    ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
    
        cd "$ac_dir" || { ac_status=$?; continue; }
    
        # Check for guested configure.
    
        if test -f "$ac_srcdir/configure.gnu"; then
          echo &&
          $SHELL "$ac_srcdir/configure.gnu" --help=recursive
        elif test -f "$ac_srcdir/configure"; then
          echo &&
          $SHELL "$ac_srcdir/configure" --help=recursive
        else
    
          $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    
        fi || ac_status=$?
        cd "$ac_pwd" || { ac_status=$?; break; }
      done
    fi
    
    test -n "$ac_init_help" && exit $ac_status
    if $ac_init_version; then
      cat <<\_ACEOF
    asterisk configure trunk
    
    generated by GNU Autoconf 2.69
    
    Copyright (C) 2012 Free Software Foundation, Inc.
    
    This configure script is free software; the Free Software Foundation
    gives unlimited permission to copy, distribute and modify it.
    
    "Asterisk"
    _ACEOF
      exit
    fi
    
    
    ## ------------------------ ##
    ## Autoconf initialization. ##
    ## ------------------------ ##
    
    # ac_fn_c_try_compile LINENO
    # --------------------------
    # Try to compile conftest.$ac_ext, and return whether this succeeded.
    ac_fn_c_try_compile ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      rm -f conftest.$ac_objext
    
      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>conftest.err
      ac_status=$?
      if test -s conftest.err; then
        grep -v '^ *+' conftest.err >conftest.er1
        cat conftest.er1 >&5
        mv -f conftest.er1 conftest.err
      fi
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    
      test $ac_status = 0; } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
    
           } && test -s conftest.$ac_objext; then :
    
      ac_retval=0
    
    else
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_retval=1
    fi
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
      as_fn_set_status $ac_retval
    
    } # ac_fn_c_try_compile
    
    
    # ac_fn_c_try_cpp LINENO
    # ----------------------
    # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    ac_fn_c_try_cpp ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
      if { { ac_try="$ac_cpp conftest.$ac_ext"
    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_cpp conftest.$ac_ext") 2>conftest.err
      ac_status=$?
      if test -s conftest.err; then
        grep -v '^ *+' conftest.err >conftest.er1
        cat conftest.er1 >&5
        mv -f conftest.er1 conftest.err
      fi
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
      test $ac_status = 0; } > conftest.i && {
    	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           }; then :
      ac_retval=0
    else
      $as_echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
        ac_retval=1
    fi
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
      as_fn_set_status $ac_retval
    
    } # ac_fn_c_try_cpp
    
    # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
    # -------------------------------------------------------
    # Tests whether HEADER exists, giving a warning if it cannot be compiled using
    # the include files in INCLUDES and setting the cache variable VAR
    # accordingly.
    ac_fn_c_check_header_mongrel ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
      if eval \${$3+:} false; then :
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    $as_echo_n "checking for $2... " >&6; }
    if eval \${$3+:} false; then :
      $as_echo_n "(cached) " >&6
    fi
    eval ac_res=\$$3
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    else
      # Is the header compilable?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
    $as_echo_n "checking $2 usability... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    #include <$2>
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_header_compiler=yes
    else
      ac_header_compiler=no
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
    $as_echo "$ac_header_compiler" >&6; }
    
    # Is the header present?
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
    $as_echo_n "checking $2 presence... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <$2>
    _ACEOF
    if ac_fn_c_try_cpp "$LINENO"; then :
      ac_header_preproc=yes
    else
      ac_header_preproc=no
    fi
    rm -f conftest.err conftest.i conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    $as_echo "$ac_header_preproc" >&6; }
    
    # So?  What about this header?
    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
      yes:no: )
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
    $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
        ;;
      no:yes:* )
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
    $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
    $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
    $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
    $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ( $as_echo "## ------------------------------------------ ##
    ## Report this to https://issues.asterisk.org ##
    ## ------------------------------------------ ##"
         ) | sed "s/^/$as_me: WARNING:     /" >&2
        ;;
    esac
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    $as_echo_n "checking for $2... " >&6; }
    if eval \${$3+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      eval "$3=\$ac_header_compiler"
    fi
    eval ac_res=\$$3
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    fi
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
    } # ac_fn_c_check_header_mongrel
    
    # ac_fn_c_try_run LINENO
    # ----------------------
    # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    # that executables *can* be run.
    ac_fn_c_try_run ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
      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; } && { ac_try='./conftest$ac_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 :
      ac_retval=0
    else
      $as_echo "$as_me: program exited with status $ac_status" >&5
           $as_echo "$as_me: failed program was:" >&5
    sed 's/^/| /' conftest.$ac_ext >&5
    
           ac_retval=$ac_status
    fi
      rm -rf conftest.dSYM conftest_ipa8_conftest.oo
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
      as_fn_set_status $ac_retval
    
    } # ac_fn_c_try_run
    
    
    # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
    # -------------------------------------------------------
    # Tests whether HEADER exists and can be compiled using the include files in
    # INCLUDES, setting the cache variable VAR accordingly.
    ac_fn_c_check_header_compile ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    $as_echo_n "checking for $2... " >&6; }
    if eval \${$3+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    #include <$2>
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      eval "$3=yes"
    
      eval "$3=no"
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    fi
    eval ac_res=\$$3
    
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
    
    } # ac_fn_c_check_header_compile
    
    # ac_fn_cxx_try_compile LINENO
    # ----------------------------
    # Try to compile conftest.$ac_ext, and return whether this succeeded.
    ac_fn_cxx_try_compile ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      rm -f conftest.$ac_objext
    
      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>conftest.err
      ac_status=$?
      if test -s conftest.err; then
        grep -v '^ *+' conftest.err >conftest.er1
        cat conftest.er1 >&5
        mv -f conftest.er1 conftest.err
      fi
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    
      test $ac_status = 0; } && {
    	 test -z "$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
    
           } && test -s conftest.$ac_objext; then :
    
      ac_retval=0
    
    else
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_retval=1
    fi
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
      as_fn_set_status $ac_retval
    
    } # ac_fn_cxx_try_compile
    
    # ac_fn_cxx_try_cpp LINENO
    # ------------------------
    # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    ac_fn_cxx_try_cpp ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
      if { { ac_try="$ac_cpp conftest.$ac_ext"
    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_cpp conftest.$ac_ext") 2>conftest.err
      ac_status=$?
      if test -s conftest.err; then
        grep -v '^ *+' conftest.err >conftest.er1
        cat conftest.er1 >&5
        mv -f conftest.er1 conftest.err
      fi
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    
    David M. Lee's avatar
    David M. Lee committed
      test $ac_status = 0; } > conftest.i && {
    
    	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    	 test ! -s conftest.err
    
      ac_retval=0
    
    else
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
        ac_retval=1
    fi
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
      as_fn_set_status $ac_retval
    
    } # ac_fn_cxx_try_cpp
    
    # ac_fn_c_try_link LINENO
    # -----------------------
    # Try to link conftest.$ac_ext, and return whether this succeeded.
    ac_fn_c_try_link ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      rm -f conftest.$ac_objext conftest$ac_exeext
    
      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>conftest.err
      ac_status=$?
      if test -s conftest.err; then
        grep -v '^ *+' conftest.err >conftest.er1
        cat conftest.er1 >&5
        mv -f conftest.er1 conftest.err
      fi
    
      $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    
      test $ac_status = 0; } && {
    	 test -z "$ac_c_werror_flag" ||
    	 test ! -s conftest.err
           } && test -s conftest$ac_exeext && {
    	 test "$cross_compiling" = yes ||
    
    David M. Lee's avatar
    David M. Lee committed
    	 test -x conftest$ac_exeext
    
      ac_retval=0
    
    else
      $as_echo "$as_me: failed program was:" >&5
    
    sed 's/^/| /' conftest.$ac_ext >&5
    
    	ac_retval=1
    fi
      # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
      # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
      # interfere with the next link command; also delete a directory that is
      # left behind by Apple's compiler.  We do this before executing the actions.
      rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
      as_fn_set_status $ac_retval
    
    } # ac_fn_c_try_link
    
    # ac_fn_c_check_func LINENO FUNC VAR
    # ----------------------------------
    # Tests whether FUNC exists, setting the cache variable VAR accordingly
    ac_fn_c_check_func ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    $as_echo_n "checking for $2... " >&6; }
    if eval \${$3+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    #define $2 innocuous_$2
    
    /* System header to define __stub macros and hopefully few prototypes,
    
        which can conflict with char $2 (); below.
        Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        <limits.h> exists even on freestanding compilers.  */
    
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    
    
    #undef $2
    
    /* Override any GCC internal prototype to avoid an error.
       Use char because int might match the return type of a GCC
       builtin and then its argument prototype would still apply.  */
    #ifdef __cplusplus
    extern "C"
    #endif
    char $2 ();
    /* The GNU C library defines this for functions which it implements
        to always fail with ENOSYS.  Some functions are actually named
        something starting with __ and the normal name is an alias.  */
    #if defined __stub_$2 || defined __stub___$2
    choke me
    #endif
    
    int
    
    {
    return $2 ();
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_link "$LINENO"; then :
    
      eval "$3=yes"
    
      eval "$3=no"
    fi
    
    rm -f core conftest.err conftest.$ac_objext \
    
        conftest$ac_exeext conftest.$ac_ext
    fi
    eval ac_res=\$$3
    
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
    
    } # ac_fn_c_check_func
    
    # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
    # -------------------------------------------
    # Tests whether TYPE exists after having included INCLUDES, setting cache
    # variable VAR accordingly.
    ac_fn_c_check_type ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    $as_echo_n "checking for $2... " >&6; }
    if eval \${$3+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      eval "$3=no"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    int
    
    {
    if (sizeof ($2))
    	 return 0;
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    int
    
    {
    if (sizeof (($2)))
    	    return 0;
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      eval "$3=yes"
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    fi
    eval ac_res=\$$3
    
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
    
    } # ac_fn_c_check_type
    
    
    # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
    # ----------------------------------------------------
    # Tries to find if the field MEMBER exists in type AGGR, after including
    # INCLUDES, setting cache variable VAR accordingly.
    ac_fn_c_check_member ()
    
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
    $as_echo_n "checking for $2.$3... " >&6; }
    if eval \${$4+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $5
    int
    
    {
    static $2 ac_aggr;
    if (ac_aggr.$3)
    return 0;
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    
    {
    static $2 ac_aggr;
    if (sizeof ac_aggr.$3)
    return 0;
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      eval "$4=yes"
    
      eval "$4=no"
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    fi
    eval ac_res=\$$4
    
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
    
    } # ac_fn_c_check_member
    
    
    # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
    # ---------------------------------------------
    
    # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
    
    # accordingly.
    ac_fn_c_check_decl ()
    
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
      as_decl_name=`echo $2|sed 's/ *(.*//'`
      as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
    $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
    if eval \${$3+:} false; then :
      $as_echo_n "(cached) " >&6
    else
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    int
    
    {
    #ifndef $as_decl_name
    #ifdef __cplusplus
      (void) $as_decl_use;
    #else
      (void) $as_decl_name;
    #endif
    #endif
    
      ;
      return 0;
    }
    _ACEOF
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    $as_echo "$ac_res" >&6; }
    
      eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    
    
    } # ac_fn_c_check_decl
    
    # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
    # --------------------------------------------
    # Tries to find the compile-time value of EXPR in a program that includes
    # INCLUDES, setting VAR accordingly. Returns whether the value could be
    # computed
    ac_fn_c_compute_int ()
    {
      as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
      if test "$cross_compiling" = yes; then
        # Depending upon the size, compute the lo and hi bounds.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    int
    
    {
    static int test_array [1 - 2 * !(($2) >= 0)];
    
    David M. Lee's avatar
    David M. Lee committed
    test_array [0] = 0;
    return test_array [0];
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      ac_lo=0 ac_mid=0
      while :; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    int
    
    {
    static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    
    David M. Lee's avatar
    David M. Lee committed
    test_array [0] = 0;
    return test_array [0];
    
    if ac_fn_c_try_compile "$LINENO"; then :
    
      ac_hi=$ac_mid; break
    
      as_fn_arith $ac_mid + 1 && ac_lo=$as_val
    			if test $ac_lo -le $ac_mid; then
    			  ac_lo= ac_hi=
    			  break
    			fi
    			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
    fi
    
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    $4
    int