/[debian]/bti/branches/upstream/current/aclocal.m4
ViewVC logotype

Diff of /bti/branches/upstream/current/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2232 by gregoa, Wed May 19 19:21:49 2010 UTC revision 2233 by gregoa, Wed Aug 18 15:33:14 2010 UTC
# Line 1  Line 1 
1  # generated automatically by aclocal 1.11 -*- Autoconf -*-  # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2    
3  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4  # 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.  # 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
# Line 13  Line 13 
13    
14  m4_ifndef([AC_AUTOCONF_VERSION],  m4_ifndef([AC_AUTOCONF_VERSION],
15    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16  m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,  m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17  [m4_warning([this file was generated for autoconf 2.63.  [m4_warning([this file was generated for autoconf 2.65.
18  You have another version of autoconf.  It may work, but is not guaranteed to.  You have another version of autoconf.  It may work, but is not guaranteed to.
19  If you have problems, you may need to regenerate the build system entirely.  If you have problems, you may need to regenerate the build system entirely.
20  To do so, use the procedure documented by the package, typically `autoreconf'.])])  To do so, use the procedure documented by the package, typically `autoreconf'.])])
# Line 76  AC_DEFUN([LIBCURL_CHECK_CONFIG], Line 76  AC_DEFUN([LIBCURL_CHECK_CONFIG],
76    AH_TEMPLATE([LIBCURL_PROTOCOL_LDAP],[Defined if libcurl supports LDAP])    AH_TEMPLATE([LIBCURL_PROTOCOL_LDAP],[Defined if libcurl supports LDAP])
77    AH_TEMPLATE([LIBCURL_PROTOCOL_DICT],[Defined if libcurl supports DICT])    AH_TEMPLATE([LIBCURL_PROTOCOL_DICT],[Defined if libcurl supports DICT])
78    AH_TEMPLATE([LIBCURL_PROTOCOL_TFTP],[Defined if libcurl supports TFTP])    AH_TEMPLATE([LIBCURL_PROTOCOL_TFTP],[Defined if libcurl supports TFTP])
79      AH_TEMPLATE([LIBCURL_PROTOCOL_RTSP],[Defined if libcurl supports RTSP])
80      AH_TEMPLATE([LIBCURL_PROTOCOL_POP3],[Defined if libcurl supports POP3])
81      AH_TEMPLATE([LIBCURL_PROTOCOL_IMAP],[Defined if libcurl supports IMAP])
82      AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP])
83    
84    AC_ARG_WITH(libcurl,    AC_ARG_WITH(libcurl,
85       AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),       AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),
# Line 95  AC_DEFUN([LIBCURL_CHECK_CONFIG], Line 99  AC_DEFUN([LIBCURL_CHECK_CONFIG],
99          AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"],          AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"],
100                       ["$withval/bin"])                       ["$withval/bin"])
101       else       else
102          AC_PATH_PROG([_libcurl_config],[curl-config])          AC_PATH_PROG([_libcurl_config],[curl-config])
103       fi       fi
104    
105       if test x$_libcurl_config != "x" ; then       if test x$_libcurl_config != "x" ; then
106          AC_CACHE_CHECK([for the version of libcurl],          AC_CACHE_CHECK([for the version of libcurl],
107             [libcurl_cv_lib_curl_version],             [libcurl_cv_lib_curl_version],
108             [libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $[]2}'`])             [libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $[]2}'`])
109    
110          _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`          _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
111          _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse`          _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse`
112    
113          if test $_libcurl_wanted -gt 0 ; then          if test $_libcurl_wanted -gt 0 ; then
114             AC_CACHE_CHECK([for libcurl >= version $2],             AC_CACHE_CHECK([for libcurl >= version $2],
115                [libcurl_cv_lib_version_ok],                [libcurl_cv_lib_version_ok],
116                [                [
117                if test $_libcurl_version -ge $_libcurl_wanted ; then                if test $_libcurl_version -ge $_libcurl_wanted ; then
118                   libcurl_cv_lib_version_ok=yes                   libcurl_cv_lib_version_ok=yes
119                else                else
120                   libcurl_cv_lib_version_ok=no                   libcurl_cv_lib_version_ok=no
121                fi                fi
122                ])                ])
123          fi          fi
124    
125          if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then          if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
126             if test x"$LIBCURL_CPPFLAGS" = "x" ; then             if test x"$LIBCURL_CPPFLAGS" = "x" ; then
127                LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`                LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
128             fi             fi
# Line 126  AC_DEFUN([LIBCURL_CHECK_CONFIG], Line 130  AC_DEFUN([LIBCURL_CHECK_CONFIG],
130                LIBCURL=`$_libcurl_config --libs`                LIBCURL=`$_libcurl_config --libs`
131    
132                # This is so silly, but Apple actually has a bug in their                # This is so silly, but Apple actually has a bug in their
133                # curl-config script.  Fixed in Tiger, but there are still                # curl-config script.  Fixed in Tiger, but there are still
134                # lots of Panther installs around.                # lots of Panther installs around.
135                case "${host}" in                case "${host}" in
136                   powerpc-apple-darwin7*)                   powerpc-apple-darwin7*)
137                      LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`                      LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
# Line 135  AC_DEFUN([LIBCURL_CHECK_CONFIG], Line 139  AC_DEFUN([LIBCURL_CHECK_CONFIG],
139                esac                esac
140             fi             fi
141    
142             # All curl-config scripts support --feature             # All curl-config scripts support --feature
143             _libcurl_features=`$_libcurl_config --feature`             _libcurl_features=`$_libcurl_config --feature`
144    
145             # Is it modern enough to have --protocols? (7.12.4)             # Is it modern enough to have --protocols? (7.12.4)
146             if test $_libcurl_version -ge 461828 ; then             if test $_libcurl_version -ge 461828 ; then
147                _libcurl_protocols=`$_libcurl_config --protocols`                _libcurl_protocols=`$_libcurl_config --protocols`
148             fi             fi
149          else          else
150             _libcurl_try_link=no             _libcurl_try_link=no
151          fi          fi
152    
153          unset _libcurl_wanted          unset _libcurl_wanted
154       fi       fi
155    
156       if test $_libcurl_try_link = yes ; then       if test $_libcurl_try_link = yes ; then
# Line 184  x=CURLOPT_VERBOSE; Line 188  x=CURLOPT_VERBOSE;
188    
189          if test $libcurl_cv_lib_curl_usable = yes ; then          if test $libcurl_cv_lib_curl_usable = yes ; then
190    
191             # Does curl_free() exist in this version of libcurl?             # Does curl_free() exist in this version of libcurl?
192             # If not, fake it with free()             # If not, fake it with free()
193    
194             _libcurl_save_cppflags=$CPPFLAGS             _libcurl_save_cppflags=$CPPFLAGS
195             CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"             CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
# Line 193  x=CURLOPT_VERBOSE; Line 197  x=CURLOPT_VERBOSE;
197             LIBS="$LIBS $LIBCURL"             LIBS="$LIBS $LIBCURL"
198    
199             AC_CHECK_FUNC(curl_free,,             AC_CHECK_FUNC(curl_free,,
200                AC_DEFINE(curl_free,free,                AC_DEFINE(curl_free,free,
201                  [Define curl_free() as free() if our version of curl lacks curl_free.]))                  [Define curl_free() as free() if our version of curl lacks curl_free.]))
202    
203             CPPFLAGS=$_libcurl_save_cppflags             CPPFLAGS=$_libcurl_save_cppflags
204             LIBS=$_libcurl_save_libs             LIBS=$_libcurl_save_libs
# Line 207  x=CURLOPT_VERBOSE; Line 211  x=CURLOPT_VERBOSE;
211             AC_SUBST(LIBCURL)             AC_SUBST(LIBCURL)
212    
213             for _libcurl_feature in $_libcurl_features ; do             for _libcurl_feature in $_libcurl_features ; do
214                AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1])                AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1])
215                eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes                eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes
216             done             done
217    
218             if test "x$_libcurl_protocols" = "x" ; then             if test "x$_libcurl_protocols" = "x" ; then
219    
220                  # We don't have --protocols, so just assume that all
221                  # protocols are available
222                  _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
223    
224                  if test x$libcurl_feature_SSL = xyes ; then
225                     _libcurl_protocols="$_libcurl_protocols HTTPS"
226    
227                     # FTPS wasn't standards-compliant until version
228                     # 7.11.0 (0x070b00 == 461568)
229                     if test $_libcurl_version -ge 461568; then
230                        _libcurl_protocols="$_libcurl_protocols FTPS"
231                     fi
232                  fi
233    
234                  # RTSP, IMAP, POP3 and SMTP were added in
235                  # 7.20.0 (0x071400 == 463872)
236                  if test $_libcurl_version -ge 463872; then
237                     _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
238                  fi
239               fi
240    
241                # We don't have --protocols, so just assume that all             for _libcurl_protocol in $_libcurl_protocols ; do
242                # protocols are available                AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1])
243                _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"                eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes
   
               if test x$libcurl_feature_SSL = xyes ; then  
                  _libcurl_protocols="$_libcurl_protocols HTTPS"  
   
                  # FTPS wasn't standards-compliant until version  
                  # 7.11.0  
                  if test $_libcurl_version -ge 461568; then  
                     _libcurl_protocols="$_libcurl_protocols FTPS"  
                  fi  
               fi  
            fi  
   
            for _libcurl_protocol in $_libcurl_protocols ; do  
               AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1])  
               eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes  
244             done             done
245          else          else
246             unset LIBCURL             unset LIBCURL
247             unset LIBCURL_CPPFLAGS             unset LIBCURL_CPPFLAGS
248          fi          fi
249       fi       fi
250    
# Line 449  main() Line 459  main()
459    rm -f conf.xmltest    rm -f conf.xmltest
460  ])  ])
461    
462    # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
463    #
464    # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
465    #
466    # This program is free software; you can redistribute it and/or modify
467    # it under the terms of the GNU General Public License as published by
468    # the Free Software Foundation; either version 2 of the License, or
469    # (at your option) any later version.
470    #
471    # This program is distributed in the hope that it will be useful, but
472    # WITHOUT ANY WARRANTY; without even the implied warranty of
473    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
474    # General Public License for more details.
475    #
476    # You should have received a copy of the GNU General Public License
477    # along with this program; if not, write to the Free Software
478    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
479    #
480    # As a special exception to the GNU General Public License, if you
481    # distribute this file as part of a program that contains a
482    # configuration script generated by Autoconf, you may include it under
483    # the same distribution terms that you use for the rest of that program.
484    
485    # PKG_PROG_PKG_CONFIG([MIN-VERSION])
486    # ----------------------------------
487    AC_DEFUN([PKG_PROG_PKG_CONFIG],
488    [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
489    m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
490    AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
491    if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
492            AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
493    fi
494    if test -n "$PKG_CONFIG"; then
495            _pkg_min_version=m4_default([$1], [0.9.0])
496            AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
497            if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
498                    AC_MSG_RESULT([yes])
499            else
500                    AC_MSG_RESULT([no])
501                    PKG_CONFIG=""
502            fi
503                    
504    fi[]dnl
505    ])# PKG_PROG_PKG_CONFIG
506    
507    # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
508    #
509    # Check to see whether a particular set of modules exists.  Similar
510    # to PKG_CHECK_MODULES(), but does not set variables or print errors.
511    #
512    #
513    # Similar to PKG_CHECK_MODULES, make sure that the first instance of
514    # this or PKG_CHECK_MODULES is called, or make sure to call
515    # PKG_CHECK_EXISTS manually
516    # --------------------------------------------------------------
517    AC_DEFUN([PKG_CHECK_EXISTS],
518    [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
519    if test -n "$PKG_CONFIG" && \
520        AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
521      m4_ifval([$2], [$2], [:])
522    m4_ifvaln([$3], [else
523      $3])dnl
524    fi])
525    
526    
527    # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
528    # ---------------------------------------------
529    m4_define([_PKG_CONFIG],
530    [if test -n "$$1"; then
531        pkg_cv_[]$1="$$1"
532     elif test -n "$PKG_CONFIG"; then
533        PKG_CHECK_EXISTS([$3],
534                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
535                         [pkg_failed=yes])
536     else
537        pkg_failed=untried
538    fi[]dnl
539    ])# _PKG_CONFIG
540    
541    # _PKG_SHORT_ERRORS_SUPPORTED
542    # -----------------------------
543    AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
544    [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
545    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
546            _pkg_short_errors_supported=yes
547    else
548            _pkg_short_errors_supported=no
549    fi[]dnl
550    ])# _PKG_SHORT_ERRORS_SUPPORTED
551    
552    
553    # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
554    # [ACTION-IF-NOT-FOUND])
555    #
556    #
557    # Note that if there is a possibility the first call to
558    # PKG_CHECK_MODULES might not happen, you should be sure to include an
559    # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
560    #
561    #
562    # --------------------------------------------------------------
563    AC_DEFUN([PKG_CHECK_MODULES],
564    [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
565    AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
566    AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
567    
568    pkg_failed=no
569    AC_MSG_CHECKING([for $1])
570    
571    _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
572    _PKG_CONFIG([$1][_LIBS], [libs], [$2])
573    
574    m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
575    and $1[]_LIBS to avoid the need to call pkg-config.
576    See the pkg-config man page for more details.])
577    
578    if test $pkg_failed = yes; then
579            _PKG_SHORT_ERRORS_SUPPORTED
580            if test $_pkg_short_errors_supported = yes; then
581                    $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
582            else
583                    $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
584            fi
585            # Put the nasty error message in config.log where it belongs
586            echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
587    
588            ifelse([$4], , [AC_MSG_ERROR(dnl
589    [Package requirements ($2) were not met:
590    
591    $$1_PKG_ERRORS
592    
593    Consider adjusting the PKG_CONFIG_PATH environment variable if you
594    installed software in a non-standard prefix.
595    
596    _PKG_TEXT
597    ])],
598                    [AC_MSG_RESULT([no])
599                    $4])
600    elif test $pkg_failed = untried; then
601            ifelse([$4], , [AC_MSG_FAILURE(dnl
602    [The pkg-config script could not be found or is too old.  Make sure it
603    is in your PATH or set the PKG_CONFIG environment variable to the full
604    path to pkg-config.
605    
606    _PKG_TEXT
607    
608    To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
609                    [$4])
610    else
611            $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
612            $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
613            AC_MSG_RESULT([yes])
614            ifelse([$3], , :, [$3])
615    fi[]dnl
616    ])# PKG_CHECK_MODULES
617    
618  # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.  # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
619  #  #
620  # This file is free software; the Free Software Foundation  # This file is free software; the Free Software Foundation
# Line 464  AC_DEFUN([AM_AUTOMAKE_VERSION], Line 630  AC_DEFUN([AM_AUTOMAKE_VERSION],
630  [am__api_version='1.11'  [am__api_version='1.11'
631  dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to  dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
632  dnl require some minimum version.  Point them to the right macro.  dnl require some minimum version.  Point them to the right macro.
633  m4_if([$1], [1.11], [],  m4_if([$1], [1.11.1], [],
634        [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl        [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
635  ])  ])
636    
# Line 480  m4_define([_AM_AUTOCONF_VERSION], []) Line 646  m4_define([_AM_AUTOCONF_VERSION], [])
646  # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.  # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
647  # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.  # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
648  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
649  [AM_AUTOMAKE_VERSION([1.11])dnl  [AM_AUTOMAKE_VERSION([1.11.1])dnl
650  m4_ifndef([AC_AUTOCONF_VERSION],  m4_ifndef([AC_AUTOCONF_VERSION],
651    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
652  _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])  _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])

Legend:
Removed from v.2232  
changed lines
  Added in v.2233

  ViewVC Help
Powered by ViewVC 1.1.26