OSDN Git Service

build: use gnulib's vc-list-files module
[android-x86/external-parted.git] / bootstrap.conf
1 # Bootstrap configuration.
2
3 # Copyright (C) 2006-2009 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=canonicalize-lgpl
22         --avoid=dummy
23         --avoid=lock
24 '
25
26 # gnulib modules used by this package.
27 gnulib_modules="
28         $avoided_gnulib_modules
29         alloca announce-gen assert
30         calloc config-h configmake
31         closeout
32         dirname
33         fdl
34         gettext
35         git-version-gen
36         gitlog-to-changelog
37         gnumakefile
38         gnupload
39         inttypes
40         lib-ignore
41         long-options
42         malloc
43         maintainer-makefile
44         mktempd
45         realloc
46         rpmatch
47         progname
48         safe-read
49         stdbool
50         useless-if-before-free
51         vc-list-files
52         version-etc-fsf
53         xstrtol
54 "
55
56 # Additional xgettext options to use.  Use "\\\newline" to break lines.
57 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
58  --from-code=UTF-8\\\
59  --flag=asprintf:2:c-format\\\
60  --flag=asnprintf:3:c-format\\\
61  --flag=error:3:c-format\\\
62  --flag=error_at_line:5:c-format\\\
63  --flag=vasprintf:2:c-format\\\
64  --flag=vasnprintf:3:c-format\\\
65  --flag=wrapf:1:c-format\\\
66  --flag=xasprintf:1:c-format\\\
67  --flag=xfprintf:2:c-format\\\
68  --flag=xprintf:1:c-format\\\
69 '
70
71 # Append these, since we use the propername module.
72 see_manual='"This is a proper name. See the gettext manual, section Names."'
73 see_manual=\'"$see_manual"\'
74 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
75  --keyword=proper_name:1,'"$see_manual"'\\\
76  --keyword=proper_name_utf8:1,'"$see_manual"'\\\
77 '
78
79 # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
80 # appears in configure.ac, exclude some unnecessary files.
81 # Without grep's -E option (not portable enough, pre-configure),
82 # the following test is ugly.  Also, this depends on the existence
83 # of configure.ac, not the obsolescent-named configure.in.  But if
84 # you're using this infrastructure, you should care about such things.
85
86 gettext_external=0
87 grep '^[         ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
88   gettext_external=1
89 grep '^[         ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
90   gettext_external=1
91
92 if test $gettext_external = 1; then
93   # Gettext supplies these files, but we don't need them since
94   # we don't have an intl subdirectory.
95   excluded_files='
96       m4/glibc2.m4
97       m4/intdiv0.m4
98       m4/lcmessage.m4
99       m4/lock.m4
100       m4/uintmax_t.m4
101       m4/ulonglong.m4
102       m4/visibility.m4
103   '
104 fi
105
106 gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
107 mkdir -p gnulib-tests
108
109 # Build prerequisites
110 buildreq="\
111 autoconf   2.61
112 automake   1.10b
113 autopoint  -
114 gettext    -
115 git        1.4.4
116 gperf      -
117 gzip       -
118 makeinfo   -
119 perl       5.5
120 rsync      -
121 tar        -
122 "
123
124 # If there is no ChangeLog file, create it.
125 if test -d .git; then
126   test -e ChangeLog ||
127     git log --pretty=medium | fold -s > ChangeLog
128 fi