OSDN Git Service

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