~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-updates

« back to all changes in this revision

Viewing changes to m4/estream.m4

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Autoconf macros for libestream
 
2
dnl       Copyright (C) 2007 g10 Code GmbH
 
3
dnl
 
4
dnl This file is free software; as a special exception the author gives
 
5
dnl unlimited permission to copy and/or distribute it, with or without
 
6
dnl modifications, as long as this notice is preserved.
 
7
dnl
 
8
dnl This file is distributed in the hope that it will be useful, but
 
9
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
 
10
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
11
 
 
12
 
 
13
dnl estream_PRINTF_INIT
 
14
dnl Prepare build of source included estream-printf.c
 
15
dnl
 
16
AC_DEFUN([estream_PRINTF_INIT],
 
17
 
18
  AC_MSG_NOTICE([checking system features for estream-printf])
 
19
  AC_TYPE_LONG_LONG_INT  
 
20
  AC_TYPE_LONG_DOUBLE  
 
21
  AC_TYPE_INTMAX_T
 
22
  AC_TYPE_UINTMAX_T
 
23
  AC_CHECK_TYPES([ptrdiff_t])
 
24
  AC_CHECK_SIZEOF([unsigned long])
 
25
  AC_CHECK_SIZEOF([void *])
 
26
  AC_CACHE_CHECK([for nl_langinfo and THOUSANDS_SEP],
 
27
                  estream_cv_langinfo_thousands_sep,
 
28
      [AC_TRY_LINK([#include <langinfo.h>],
 
29
        [char* cs = nl_langinfo(THOUSANDS_SEP); return !cs;],
 
30
        estream_cv_langinfo_thousands_sep=yes,
 
31
        estream_cv_langinfo_thousands_sep=no)
 
32
      ])
 
33
  if test $estream_cv_langinfo_thousands_sep = yes; then
 
34
    AC_DEFINE(HAVE_LANGINFO_THOUSANDS_SEP, 1,
 
35
      [Define if you have <langinfo.h> and nl_langinfo(THOUSANDS_SEP).])
 
36
  fi
 
37
])
 
38
 
 
39
 
 
40
dnl estream_INIT
 
41
dnl Prepare build of source included estream.c
 
42
dnl
 
43
AC_DEFUN([estream_INIT],
 
44
 
45
  AC_REQUIRE([estream_PRINTF_INIT])
 
46
  AC_MSG_NOTICE([checking system features for estream])
 
47
 
 
48
])