Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: gdb/gnulib/import/m4/onceonly.m4

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/gnulib/import/m4/multiarch.m4 ('k') | gdb/gnulib/import/m4/stdbool.m4 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # onceonly.m4 serial 6 1 # onceonly.m4 serial 9
2 dnl Copyright (C) 2002-2003, 2005-2006, 2008-2010 Free Software Foundation, 2 dnl Copyright (C) 2002-2003, 2005-2006, 2008-2012 Free Software Foundation,
3 dnl Inc. 3 dnl Inc.
4 dnl This file is free software, distributed under the terms of the GNU 4 dnl
5 dnl General Public License. As a special exception to the GNU General 5 dnl This file is free software; you can redistribute it and/or modify
6 dnl Public License, this file may be distributed as part of a program 6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3 of the License, or
8 dnl (at your option) any later version.
9 dnl
10 dnl This file is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this file. If not, see <http://www.gnu.org/licenses/>.
17 dnl
18 dnl As a special exception to the GNU General Public License,
19 dnl this file may be distributed as part of a program
7 dnl that contains a configuration script generated by Autoconf, under 20 dnl that contains a configuration script generated by Autoconf, under
8 dnl the same distribution terms as the rest of that program. 21 dnl the same distribution terms as the rest of that program.
9 22
10 dnl This file defines some "once only" variants of standard autoconf macros. 23 dnl This file defines some "once only" variants of standard autoconf macros.
11 dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS 24 dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS
12 dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS 25 dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS
13 dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS 26 dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS
14 dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL 27 dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL
15 dnl The advantage is that the check for each of the headers/functions/decls 28 dnl The advantage is that the check for each of the headers/functions/decls
16 dnl will be put only once into the 'configure' file. It keeps the size of 29 dnl will be put only once into the 'configure' file. It keeps the size of
(...skipping 15 matching lines...) Expand all
32 dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of 45 dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of
33 dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first 46 dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first
34 dnl argument! 47 dnl argument!
35 AC_PREREQ([2.59]) 48 AC_PREREQ([2.59])
36 49
37 # AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of 50 # AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of
38 # AC_CHECK_HEADERS(HEADER1 HEADER2 ...). 51 # AC_CHECK_HEADERS(HEADER1 HEADER2 ...).
39 AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ 52 AC_DEFUN([AC_CHECK_HEADERS_ONCE], [
40 : 53 :
41 m4_foreach_w([gl_HEADER_NAME], [$1], [ 54 m4_foreach_w([gl_HEADER_NAME], [$1], [
42 AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, 55 AC_DEFUN([gl_CHECK_HEADER_]m4_quote(m4_translit(gl_HEADER_NAME,
43 [./-], [___])), [ 56 [./-], [___])), [
44 m4_divert_text([INIT_PREPARE], 57 m4_divert_text([INIT_PREPARE],
45 [gl_header_list="$gl_header_list gl_HEADER_NAME"]) 58 [gl_header_list="$gl_header_list gl_HEADER_NAME"])
46 gl_HEADERS_EXPANSION 59 gl_HEADERS_EXPANSION
47 AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])), 60 AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])),
48 [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.] ) 61 [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.] )
49 ]) 62 ])
50 AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, 63 AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(m4_translit(gl_HEADER_NAME,
51 [./-], [___]))) 64 [./-], [___])))
52 ]) 65 ])
53 ]) 66 ])
54 m4_define([gl_HEADERS_EXPANSION], [ 67 m4_define([gl_HEADERS_EXPANSION], [
55 m4_divert_text([DEFAULTS], [gl_header_list=]) 68 m4_divert_text([DEFAULTS], [gl_header_list=])
56 AC_CHECK_HEADERS([$gl_header_list]) 69 AC_CHECK_HEADERS([$gl_header_list])
57 m4_define([gl_HEADERS_EXPANSION], []) 70 m4_define([gl_HEADERS_EXPANSION], [])
58 ]) 71 ])
59 72
60 # AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of 73 # AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of
61 # AC_CHECK_FUNCS(FUNC1 FUNC2 ...). 74 # AC_CHECK_FUNCS(FUNC1 FUNC2 ...).
62 AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ 75 AC_DEFUN([AC_CHECK_FUNCS_ONCE], [
63 : 76 :
64 m4_foreach_w([gl_FUNC_NAME], [$1], [ 77 m4_foreach_w([gl_FUNC_NAME], [$1], [
65 AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ 78 AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [
66 m4_divert_text([INIT_PREPARE], 79 m4_divert_text([INIT_PREPARE],
67 [gl_func_list="$gl_func_list gl_FUNC_NAME"]) 80 [gl_func_list="$gl_func_list gl_FUNC_NAME"])
68 gl_FUNCS_EXPANSION 81 gl_FUNCS_EXPANSION
69 AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])), 82 AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])),
70 [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.]) 83 [Define to 1 if you have the ']m4_defn([gl_FUNC_NAME])[' function.])
71 ]) 84 ])
72 AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) 85 AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]))
73 ]) 86 ])
74 ]) 87 ])
75 m4_define([gl_FUNCS_EXPANSION], [ 88 m4_define([gl_FUNCS_EXPANSION], [
76 m4_divert_text([DEFAULTS], [gl_func_list=]) 89 m4_divert_text([DEFAULTS], [gl_func_list=])
77 AC_CHECK_FUNCS([$gl_func_list]) 90 AC_CHECK_FUNCS([$gl_func_list])
78 m4_define([gl_FUNCS_EXPANSION], []) 91 m4_define([gl_FUNCS_EXPANSION], [])
79 ]) 92 ])
80 93
81 # AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of 94 # AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of
82 # AC_CHECK_DECLS(DECL1, DECL2, ...). 95 # AC_CHECK_DECLS(DECL1, DECL2, ...).
83 AC_DEFUN([AC_CHECK_DECLS_ONCE], [ 96 AC_DEFUN([AC_CHECK_DECLS_ONCE], [
84 : 97 :
85 m4_foreach_w([gl_DECL_NAME], [$1], [ 98 m4_foreach_w([gl_DECL_NAME], [$1], [
86 AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ 99 AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [
87 AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) 100 AC_CHECK_DECLS(m4_defn([gl_DECL_NAME]))
88 ]) 101 ])
89 AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) 102 AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]))
90 ]) 103 ])
91 ]) 104 ])
OLDNEW
« no previous file with comments | « gdb/gnulib/import/m4/multiarch.m4 ('k') | gdb/gnulib/import/m4/stdbool.m4 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698