~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to gl/m4/warnings.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# warnings.m4 serial 2
2
 
dnl Copyright (C) 2008 Free Software Foundation, Inc.
 
2
dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
6
6
 
7
7
dnl From Simon Josefsson
8
8
 
9
 
# gl_AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH])
10
 
# ----------------------------------------------------
11
 
# Provide the functionality of AS_VAR_IF if Autoconf does not have it.
12
 
m4_ifdef([AS_VAR_IF],
13
 
[m4_copy([AS_VAR_IF], [gl_AS_VAR_IF])],
14
 
[m4_define([gl_AS_VAR_IF],
15
 
[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])])
16
 
 
17
9
# gl_AS_VAR_APPEND(VAR, VALUE)
18
10
# ----------------------------
19
11
# Provide the functionality of AS_VAR_APPEND if Autoconf does not have it.
33
25
  CPPFLAGS="${CPPFLAGS} $1"
34
26
  AC_PREPROC_IFELSE([AC_LANG_PROGRAM([])],
35
27
                    [AS_VAR_SET([gl_Warn], [yes])],
36
 
                    [AS_VAR_SET([gl_Warn], [no])])
 
28
                    [AS_VAR_SET([gl_Warn], [no])])
37
29
  CPPFLAGS="$save_CPPFLAGS"
38
30
])
39
31
AS_VAR_PUSHDEF([gl_Flags], m4_if([$2], [], [[WARN_CFLAGS]], [[$2]]))dnl
40
 
gl_AS_VAR_IF([gl_Warn], [yes], [gl_AS_VAR_APPEND([gl_Flags], [" $1"])])
 
32
AS_VAR_IF([gl_Warn], [yes], [gl_AS_VAR_APPEND([gl_Flags], [" $1"])])
41
33
AS_VAR_POPDEF([gl_Flags])dnl
42
34
AS_VAR_POPDEF([gl_Warn])dnl
43
35
m4_ifval([$2], [AS_LITERAL_IF([$2], [AC_SUBST([$2])], [])])dnl