~ubuntu-branches/ubuntu/trusty/argyll/trusty-proposed

« back to all changes in this revision

Viewing changes to libusb/acinclude.m4

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-02-12 00:35:39 UTC
  • mfrom: (13.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20140212003539-24tautzlitsiz61w
Tags: 1.5.1-5ubuntu1
* Merge from Debian unstable. (LP: #1275572) Remaining changes:
  - debian/control:
    + Build-depend on libtiff-dev rather than libtiff4-dev.
  - debian/control, debian/patches/06_fix_udev_rule.patch:
    + Fix udev rules to actually work; ENV{ACL_MANAGE} has
      stopped working ages ago, and with logind it's now the
      "uaccess" tag. Dropping also consolekit from Recommends.
  - debian/patches/drop-usb-db.patch:
    + Use hwdb builtin, instead of the obsolete usb-db
      in the udev rules.
* debian/patches/05_ftbfs-underlinkage.diff:
  - Dropped change, no needed anymore.
* Refresh the patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Autoconf macros used by libusb
2
 
dnl
3
 
dnl Copyright (C) 2003 Brad Hards <bradh@frogmouth.net
4
 
dnl Qt tests based on pinentry code Copyright (C) 2002 g10 Code GmbH
5
 
dnl
6
 
dnl This program is free software; you can redistribute it and/or modify
7
 
dnl it under the terms of the GNU General Public License as published by
8
 
dnl the Free Software Foundation; either version 2, or (at your option)
9
 
dnl any later version.
10
 
dnl
11
 
dnl This program is distributed in the hope that it will be useful,
12
 
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
dnl GNU General Public License for more details.
15
 
dnl
16
 
dnl You should have received a copy of the GNU General Public License
17
 
dnl along with this program; if not, write to the Free Software
18
 
dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
 
dnl
20
 
 
21
 
dnl LIBUSB_FIND_PATH(program-name, variable-name, list of directories, if-not-found, test-parameter)
22
 
AC_DEFUN([LIBUSB_FIND_PATH],
23
 
[
24
 
   AC_MSG_CHECKING([for $1])
25
 
   if test -n "$$2"; then
26
 
        libusb_cv_path="$$2";
27
 
   else
28
 
        libusb_cache=`echo $1 | sed 'y%./+-%__p_%'`
29
 
 
30
 
        AC_CACHE_VAL(libusb_cv_path_$libusb_cache,
31
 
        [
32
 
        libusb_cv_path="NONE"
33
 
        dirs="$3"
34
 
        libusb_save_IFS=$IFS
35
 
        IFS=':'
36
 
        for dir in $PATH; do
37
 
          dirs="$dirs $dir"
38
 
        done
39
 
        IFS=$libusb_save_IFS
40
 
 
41
 
        for dir in $dirs; do
42
 
          if test -x "$dir/$1"; then
43
 
            if test -n "$5"
44
 
            then
45
 
              evalstr="$dir/$1 $5 2>&1 "
46
 
              if eval $evalstr; then
47
 
                libusb_cv_path="$dir/$1"
48
 
                break
49
 
              fi
50
 
            else
51
 
                libusb_cv_path="$dir/$1"
52
 
                break
53
 
            fi
54
 
          fi
55
 
        done
56
 
 
57
 
        eval "libusb_cv_path_$libusb_cache=$libusb_cv_path"
58
 
 
59
 
        ])
60
 
 
61
 
      eval "libusb_cv_path=\"`echo '$libusb_cv_path_'$libusb_cache`\""
62
 
 
63
 
   fi
64
 
 
65
 
   if test -z "$libusb_cv_path" || test "$libusb_cv_path" = NONE; then
66
 
      AC_MSG_RESULT(not found)
67
 
      $4
68
 
   else
69
 
      AC_MSG_RESULT($libusb_cv_path)
70
 
      $2=$libusb_cv_path
71
 
 
72
 
   fi
73
 
])
74
 
 
75
 
AC_DEFUN([LIBUSB_INIT_DOXYGEN],
76
 
[
77
 
AC_MSG_CHECKING([for Doxygen tools])
78
 
 
79
 
LIBUSB_FIND_PATH(dot, DOT, [], [])
80
 
if test -n "$DOT"; then
81
 
  LIBUSB_HAVE_DOT="YES"
82
 
else
83
 
  LIBUSB_HAVE_DOT="NO"
84
 
fi
85
 
AC_SUBST(LIBUSB_HAVE_DOT)
86
 
 
87
 
LIBUSB_FIND_PATH(doxygen, DOXYGEN, [], [])
88
 
AC_SUBST(DOXYGEN)
89
 
 
90
 
DOXYGEN_PROJECT_NAME="$1"
91
 
DOXYGEN_PROJECT_NUMBER="$2"
92
 
AC_SUBST(DOXYGEN_PROJECT_NAME)
93
 
AC_SUBST(DOXYGEN_PROJECT_NUMBER)
94
 
 
95
 
LIBUSB_HAS_DOXYGEN=no
96
 
if test -n "$DOXYGEN" && test -x "$DOXYGEN"; then
97
 
  LIBUSB_HAS_DOXYGEN=yes
98
 
fi
99
 
AC_SUBST(LIBUSB_HAS_DOXYGEN)
100
 
 
101
 
])