File: estream.m4

package info (click to toggle)
gnupg 1.4.18-7%2Bdeb8u5
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 34,476 kB
  • sloc: ansic: 127,074; sh: 7,535; asm: 4,610; makefile: 1,186; yacc: 291; perl: 196; pascal: 72; sed: 16
file content (49 lines) | stat: -rw-r--r-- 1,592 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
dnl Autoconf macros for libestream
dnl       Copyright (C) 2007 g10 Code GmbH
dnl
dnl This file is free software; as a special exception the author gives
dnl unlimited permission to copy and/or distribute it, with or without
dnl modifications, as long as this notice is preserved.
dnl
dnl This file is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


dnl estream_PRINTF_INIT
dnl Prepare build of source included estream-printf.c
dnl
AC_DEFUN([estream_PRINTF_INIT],
[ 
  AC_MSG_NOTICE([checking system features for estream-printf])
  AC_CHECK_HEADERS(stdint.h)
  AC_TYPE_LONG_LONG_INT  
  AC_TYPE_LONG_DOUBLE  
  AC_TYPE_INTMAX_T
  AC_TYPE_UINTMAX_T
  AC_CHECK_TYPES([ptrdiff_t])
  AC_CHECK_SIZEOF([unsigned long])
  AC_CHECK_SIZEOF([void *])
  AC_CACHE_CHECK([for nl_langinfo and THOUSANDS_SEP],
                  estream_cv_langinfo_thousands_sep,
      [AC_TRY_LINK([#include <langinfo.h>],
        [char* cs = nl_langinfo(THOUSANDS_SEP); return !cs;],
        estream_cv_langinfo_thousands_sep=yes,
        estream_cv_langinfo_thousands_sep=no)
      ])
  if test $estream_cv_langinfo_thousands_sep = yes; then
    AC_DEFINE(HAVE_LANGINFO_THOUSANDS_SEP, 1,
      [Define if you have <langinfo.h> and nl_langinfo(THOUSANDS_SEP).])
  fi
])


dnl estream_INIT
dnl Prepare build of source included estream.c
dnl
AC_DEFUN([estream_INIT],
[ 
  AC_REQUIRE([estream_PRINTF_INIT])
  AC_MSG_NOTICE([checking system features for estream])

])