~veger/ubuntu/precise/samba/fix-for-902339

« back to all changes in this revision

Viewing changes to source4/heimdal/cf/find-func-no-libs2.m4

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl $Id$
2
 
dnl
3
 
dnl
4
 
dnl Look for function in any of the specified libraries
5
 
dnl
6
 
 
7
 
dnl AC_FIND_FUNC_NO_LIBS2(func, libraries, includes, arguments, extra libs, extra args)
8
 
AC_DEFUN([AC_FIND_FUNC_NO_LIBS2], [
9
 
 
10
 
AC_MSG_CHECKING([for $1])
11
 
AC_CACHE_VAL(ac_cv_funclib_$1,
12
 
[
13
 
if eval "test \"\$ac_cv_func_$1\" != yes" ; then
14
 
        ac_save_LIBS="$LIBS"
15
 
        for ac_lib in $2; do
16
 
                case "$ac_lib" in
17
 
                "") ;;
18
 
                yes) ac_lib="" ;;
19
 
                no) continue ;;
20
 
                -l*) ;;
21
 
                *) ac_lib="-l$ac_lib" ;;
22
 
                esac
23
 
                LIBS="$6 $ac_lib $5 $ac_save_LIBS"
24
 
                AC_LINK_IFELSE([AC_LANG_PROGRAM([[$3]],[[$1($4)]])],[eval "if test -n \"$ac_lib\";then ac_cv_funclib_$1=$ac_lib; else ac_cv_funclib_$1=yes; fi";break])
25
 
        done
26
 
        eval "ac_cv_funclib_$1=\${ac_cv_funclib_$1-no}"
27
 
        LIBS="$ac_save_LIBS"
28
 
fi
29
 
])
30
 
 
31
 
eval "ac_res=\$ac_cv_funclib_$1"
32
 
 
33
 
if false; then
34
 
        AC_CHECK_FUNCS($1)
35
 
dnl     AC_CHECK_LIBS($2, foo)
36
 
fi
37
 
# $1
38
 
eval "ac_tr_func=HAVE_[]upcase($1)"
39
 
eval "ac_tr_lib=HAVE_LIB[]upcase($ac_res | sed -e 's/-l//')"
40
 
eval "LIB_$1=$ac_res"
41
 
 
42
 
case "$ac_res" in
43
 
        yes)
44
 
        eval "ac_cv_func_$1=yes"
45
 
        eval "LIB_$1="
46
 
        AC_DEFINE_UNQUOTED($ac_tr_func)
47
 
        AC_MSG_RESULT([yes])
48
 
        ;;
49
 
        no)
50
 
        eval "ac_cv_func_$1=no"
51
 
        eval "LIB_$1="
52
 
        AC_MSG_RESULT([no])
53
 
        ;;
54
 
        *)
55
 
        eval "ac_cv_func_$1=yes"
56
 
        eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
57
 
        AC_DEFINE_UNQUOTED($ac_tr_func)
58
 
        AC_DEFINE_UNQUOTED($ac_tr_lib)
59
 
        AC_MSG_RESULT([yes, in $ac_res])
60
 
        ;;
61
 
esac
62
 
AC_SUBST(LIB_$1)
63
 
])