~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
 
17
[m4_warning([this file was generated for autoconf 2.67.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
7986
7986
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7987
7987
 
7988
7988
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
7989
# serial 1 (pkg-config-0.24)
7989
7990
7990
7991
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7991
7992
#
8013
8014
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8014
8015
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8015
8016
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8016
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
8017
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
8018
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
8019
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
8020
 
8017
8021
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8018
8022
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8019
8023
fi
8026
8030
                AC_MSG_RESULT([no])
8027
8031
                PKG_CONFIG=""
8028
8032
        fi
8029
 
                
8030
8033
fi[]dnl
8031
8034
])# PKG_PROG_PKG_CONFIG
8032
8035
 
8035
8038
# Check to see whether a particular set of modules exists.  Similar
8036
8039
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8037
8040
#
8038
 
#
8039
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8040
 
# this or PKG_CHECK_MODULES is called, or make sure to call
8041
 
# PKG_CHECK_EXISTS manually
 
8041
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
8042
# only at the first occurence in configure.ac, so if the first place
 
8043
# it's called might be skipped (such as if it is within an "if", you
 
8044
# have to call PKG_CHECK_EXISTS manually
8042
8045
# --------------------------------------------------------------
8043
8046
AC_DEFUN([PKG_CHECK_EXISTS],
8044
8047
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8045
8048
if test -n "$PKG_CONFIG" && \
8046
8049
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8047
 
  m4_ifval([$2], [$2], [:])
 
8050
  m4_default([$2], [:])
8048
8051
m4_ifvaln([$3], [else
8049
8052
  $3])dnl
8050
8053
fi])
8051
8054
 
8052
 
 
8053
8055
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8054
8056
# ---------------------------------------------
8055
8057
m4_define([_PKG_CONFIG],
8056
 
[if test -n "$PKG_CONFIG"; then
8057
 
    if test -n "$$1"; then
8058
 
        pkg_cv_[]$1="$$1"
8059
 
    else
8060
 
        PKG_CHECK_EXISTS([$3],
8061
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8062
 
                         [pkg_failed=yes])
8063
 
    fi
8064
 
else
8065
 
        pkg_failed=untried
 
8058
[if test -n "$$1"; then
 
8059
    pkg_cv_[]$1="$$1"
 
8060
 elif test -n "$PKG_CONFIG"; then
 
8061
    PKG_CHECK_EXISTS([$3],
 
8062
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
8063
                     [pkg_failed=yes])
 
8064
 else
 
8065
    pkg_failed=untried
8066
8066
fi[]dnl
8067
8067
])# _PKG_CONFIG
8068
8068
 
8104
8104
See the pkg-config man page for more details.])
8105
8105
 
8106
8106
if test $pkg_failed = yes; then
 
8107
        AC_MSG_RESULT([no])
8107
8108
        _PKG_SHORT_ERRORS_SUPPORTED
8108
8109
        if test $_pkg_short_errors_supported = yes; then
8109
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
8110
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
8110
8111
        else 
8111
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
8112
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
8112
8113
        fi
8113
8114
        # Put the nasty error message in config.log where it belongs
8114
8115
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8115
8116
 
8116
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
8117
        m4_default([$4], [AC_MSG_ERROR(
8117
8118
[Package requirements ($2) were not met:
8118
8119
 
8119
8120
$$1_PKG_ERRORS
8121
8122
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8122
8123
installed software in a non-standard prefix.
8123
8124
 
8124
 
_PKG_TEXT
8125
 
])],
8126
 
                [AC_MSG_RESULT([no])
8127
 
                $4])
 
8125
_PKG_TEXT])dnl
 
8126
        ])
8128
8127
elif test $pkg_failed = untried; then
8129
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
8128
        AC_MSG_RESULT([no])
 
8129
        m4_default([$4], [AC_MSG_FAILURE(
8130
8130
[The pkg-config script could not be found or is too old.  Make sure it
8131
8131
is in your PATH or set the PKG_CONFIG environment variable to the full
8132
8132
path to pkg-config.
8133
8133
 
8134
8134
_PKG_TEXT
8135
8135
 
8136
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
8137
 
                [$4])
 
8136
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
 
8137
        ])
8138
8138
else
8139
8139
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8140
8140
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8141
8141
        AC_MSG_RESULT([yes])
8142
 
        ifelse([$3], , :, [$3])
 
8142
        $3
8143
8143
fi[]dnl
8144
8144
])# PKG_CHECK_MODULES
8145
8145