Skip to content
Snippets Groups Projects
configure.ac 32.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • AC_CHECK_TOOL(PKGCONFIG, pkg-config, No)
    if test ! "x${PKGCONFIG}" = xNo; then
       GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags)
       GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
       PBX_GTK2=1
       AC_DEFINE([HAVE_GTK2], 1, [Define if your system has the GTK2 libraries.])
    fi
    AC_SUBST(PBX_GTK2)
    AC_SUBST(GTK2_INCLUDE)
    AC_SUBST(GTK2_LIB)
    
    
    if test "${USE_CURL}" != "no"; then
    
       AC_PATH_TOOL([CURL_CONFIG], [curl-config], No)
       if test ! x"${CURL_CONFIG}" = xNo; then
    
          if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
             CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
             CURL_LIB=$(${CURL_CONFIG} --libs)
    
    
             AC_MSG_CHECKING(for curl_version() in curl/curl.h)
             saved_cppflags="${CPPFLAGS}"
             CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
             AC_COMPILE_IFELSE(
                [AC_LANG_PROGRAM(
                    [#include <curl/curl.h>],
                        [curl_version();])
                ],[
                    AC_MSG_RESULT(yes)
                    ac_cv_curl_h="yes"
                ],[
                    AC_MSG_RESULT(no)
                    ac_cv_curl_h="no"
                ]
    	 )
    	 CPPFLAGS="${saved_cppflags}"
             if test "${ac_cv_curl_h}" = "yes"; then
                 PBX_CURL=1
                 AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
             fi
    
    AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile])
    
    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
    
    AC_MSG_NOTICE(Package configured for: )
    
    AC_MSG_NOTICE( OS type  : $host_os)
    
    AC_MSG_NOTICE( Host CPU : $host_cpu)
    
    if test "${cross_compiling}" = "yes"; then
    
       AC_MSG_NOTICE( Cross Compilation = YES)