OSDN Git Service

build: use gettext-0.17
[android-x86/external-parted.git] / bootstrap.conf
1 # Bootstrap configuration.
2
3 # Copyright (C) 2006-2010 Free Software Foundation, Inc.
4
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # We don't need these modules.
20 avoided_gnulib_modules='
21         --avoid=dummy
22         --avoid=lock
23 '
24
25 # gnulib modules used by this package.
26 gnulib_modules="
27         $avoided_gnulib_modules
28         alloca announce-gen assert
29         argmatch
30         calloc config-h configmake
31         canonicalize-lgpl
32         close
33         closeout
34         dirname
35         fdl
36         fsync
37         gettext-h
38         git-version-gen
39         gitlog-to-changelog
40         gnu-web-doc-update
41         gnumakefile
42         gnupload
43         inttypes
44         lib-ignore
45         long-options
46         lseek
47         malloc
48         maintainer-makefile
49         manywarnings
50         mkstemp
51         mktempd
52         realloc
53         rpmatch
54         progname
55         safe-read
56         stdbool
57         strdup-posix
58         unlink
59         update-copyright
60         useless-if-before-free
61         usleep
62         vc-list-files
63         version-etc-fsf
64         warnings
65         xstrtol
66 "
67
68 # Additional xgettext options to use.  Use "\\\newline" to break lines.
69 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
70  --from-code=UTF-8\\\
71  --flag=asprintf:2:c-format\\\
72  --flag=asnprintf:3:c-format\\\
73  --flag=error:3:c-format\\\
74  --flag=error_at_line:5:c-format\\\
75  --flag=vasprintf:2:c-format\\\
76  --flag=vasnprintf:3:c-format\\\
77  --flag=wrapf:1:c-format\\\
78  --flag=xasprintf:1:c-format\\\
79  --flag=xfprintf:2:c-format\\\
80  --flag=xprintf:1:c-format\\\
81 '
82
83 # Append these, since we use the propername module.
84 see_manual='"This is a proper name. See the gettext manual, section Names."'
85 see_manual=\'"$see_manual"\'
86 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
87  --keyword=proper_name:1,'"$see_manual"'\\\
88  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
89 '
90
91 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
92 # appears in configure.ac, exclude some unnecessary files.
93 # Without grep's -E option (not portable enough, pre-configure),
94 # the following test is ugly.  Also, this depends on the existence
95 # of configure.ac, not the obsolescent-named configure.in.  But if
96 # you're using this infrastructure, you should care about such things.
97
98 gettext_external=0
99 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
100   gettext_external=1
101 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
102   gettext_external=1
103
104 if test $gettext_external = 1; then
105   # Gettext supplies these files, but we don't need them since
106   # we don't have an intl subdirectory.
107   excluded_files='
108       m4/glibc2.m4
109       m4/intdiv0.m4
110       m4/lcmessage.m4
111       m4/lock.m4
112       m4/uintmax_t.m4
113       m4/ulonglong.m4
114       m4/visibility.m4
115   '
116 fi
117
118 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
119 mkdir -p gnulib-tests
120
121 # Build prerequisites
122 buildreq="\
123 autoconf   2.61
124 automake   1.11
125 autopoint  -
126 gettext    -
127 git        1.4.4
128 gperf      3.0.3
129 gzip       -
130 makeinfo   -
131 perl       5.5
132 rsync      -
133 tar        -
134 "
135
136 # If there is no ChangeLog file, create it.
137 if test -d .git; then
138   test -e ChangeLog ||
139     git log --pretty=medium | fold -s > ChangeLog
140 fi
141
142 gnulib_name=libgnulib