1# Bootstrap configuration. 2 3# Copyright (C) 2006-2012 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, even though gnulib-tool mistakenly 20# includes them because of gettext and fchdir dependencies. 21avoided_gnulib_modules=' 22 --avoid=canonicalize-lgpl 23 --avoid=get-rusage-as-tests 24' 25 26gnulib_name=libgnu 27 28# gnulib modules used by this package. 29gnulib_modules=" 30 $avoided_gnulib_modules 31 alloca 32 alloca-opt 33 announce-gen 34 argv-iter 35 autobuild 36 calloc 37 closeout 38 dirname 39 do-release-commit-and-tag 40 error 41 exclude 42 exitfail 43 extensions 44 fflush 45 fnmatch 46 fnmatch-gnu 47 fopen 48 freopen 49 fpending 50 fprintf-posix 51 getcwd 52 getopt-gnu 53 gettext-h 54 git-version-gen 55 gitlog-to-changelog 56 gnu-make 57 gnu-web-doc-update 58 gnumakefile 59 gnupload 60 havelib 61 ignore-value 62 inttostr 63 lstat 64 malloc 65 maintainer-makefile 66 manywarnings 67 mbchar 68 mbuiter 69 mempcpy 70 obstack 71 pathmax 72 perl 73 posix-shell 74 printf-posix 75 progname 76 quote 77 quotearg 78 readme-release 79 realloc 80 regex 81 stat-macros 82 stdbool 83 sprintf-posix 84 strcase 85 strcasestr 86 strsep 87 strnlen1 88 strsep 89 sys_ioctl 90 update-copyright 91 useless-if-before-free 92 vc-list-files 93 warnings 94 xalloc 95 xalloc-die 96 xgetcwd 97" 98 99# Other locale categories that need message catalogs. 100EXTRA_LOCALE_CATEGORIES= 101 102# Additional xgettext options to use. Use "\\\newline" to break lines. 103XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\ 104 --from-code=UTF-8\\\ 105 --flag=asprintf:2:c-format --flag=vasprintf:2:c-format\\\ 106 --flag=asnprintf:3:c-format --flag=vasnprintf:3:c-format\\\ 107 --flag=wrapf:1:c-format\\\ 108' 109 110# If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]" 111# appears in configure.ac, exclude some unnecessary files. 112# Without grep's -E option (not portable enough, pre-configure), 113# the following test is ugly. Also, this depends on the existence 114# of configure.ac, not the obsolescent-named configure.in. But if 115# you're using this infrastructure, you should care about such things. 116 117gettext_external=0 118grep '^[ ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null && 119 gettext_external=1 120grep '^[ ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null && 121 gettext_external=1 122 123if test $gettext_external = 1; then 124 # Gettext supplies these files, but we don't need them since 125 # we don't have an intl subdirectory. 126 excluded_files=' 127 m4/glibc2.m4 128 m4/intdiv0.m4 129 m4/lcmessage.m4 130 m4/uintmax_t.m4 131 m4/ulonglong.m4 132 m4/visibility.m4 133 ' 134fi 135 136gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\ 137 --makefile-name=gnulib.mk 138" 139 140# Build prerequisites 141buildreq="\ 142autoconf 2.61 143automake 1.11 144autopoint - 145bison - 146gettext 0.18 147git 1.4.4 148gperf - 149gzip - 150makeinfo - 151perl 5.5 152rsync - 153tar - 154" 155 156# Automake requires that ChangeLog exist. 157touch ChangeLog || exit 1 158 159bootstrap_epilogue() 160{ 161 perl -pi -e "s/\@PACKAGE\@/$package/g" README-release 162} 163