| commit 85: | c4ff1526cc1d |
| parent 84: | 5fd1a35eb590 |
| branch: | default |
14 months ago
Changed (Δ45.4 KB):
ABOUT-NLS (880 lines added, 580 lines removed)
ChangeLog (8 lines added, 0 lines removed)
Makefile.am (2 lines added, 2 lines removed)
NEWS (13 lines added, 0 lines removed)
TODO (1 lines added, 1 lines removed)
autogen.sh (4 lines added, 4 lines removed)
autotools/config.rpath (204 lines added, 86 lines removed)
configure.ac (2 lines added, 2 lines removed)
doc/Makefile.am (2 lines added, 0 lines removed)
m4/ChangeLog (11 lines added, 0 lines removed)
m4/gettext.m4 (85 lines added, 191 lines removed)
m4/iconv.m4 (86 lines added, 9 lines removed)
m4/lib-ld.m4 (3 lines added, 5 lines removed)
m4/lib-link.m4 (216 lines added, 58 lines removed)
m4/lib-prefix.m4 (41 lines added, 11 lines removed)
m4/nls.m4 (7 lines added, 25 lines removed)
m4/po.m4 (77 lines added, 54 lines removed)
m4/progtest.m4 (8 lines added, 7 lines removed)
po/ChangeLog (5 lines added, 0 lines removed)
po/Makefile.in.in (94 lines added, 31 lines removed)
scripts/tarball_upload.sh (2 lines added, 2 lines removed)
- |
Diff size exceeds threshold (22.1 KB) — view raw? |
1 |
2009-01-28 gettextize <bug-gnu-gettext@gnu.org> |
|
2 |
||
3 |
* configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17. |
|
4 |
||
5 |
01/11/2009 Christian <mail.kristian@yahoo.it> |
|
6 |
||
7 |
* GNU fdisk 1.2 Released |
|
8 |
||
1 |
9 |
12/29/2008 Christian <mail.kristian@yahoo.it> |
2 |
10 |
|
3 |
11 |
* ui.c: Bug fixed |
| … | … | @@ -8,8 +8,8 @@ if MAKE_TESTS |
8 |
8 |
SUBDIRS += tests |
9 |
9 |
endif MAKE_TESTS |
10 |
10 |
|
11 |
EXTRA_DIST = autotools/config.rpath autotools/mkinstalldirs\ |
|
12 |
autotools/config.rpath autotools/mkinstalldirs \ |
|
11 |
EXTRA_DIST = autotools/config.rpath \ |
|
12 |
autotools/config.rpath \ |
|
13 |
13 |
ABOUT-NLS AUTHORS THANKS ChangeLog NEWS README fdisk.spec |
14 |
14 |
|
15 |
15 |
ACLOCAL_AMFLAGS = -I m4 |
1 |
1.2.1 (28 Jan 2009) |
|
2 |
================== |
|
3 |
* Fix gettext and mkinstalldirs |
|
4 |
||
5 |
1.2 (11 Jan 2009) |
|
6 |
================ |
|
7 |
* GNU Readline support |
|
8 |
* Fix to build documentation with makeinfo. |
|
9 |
* 3 bug fixed. |
|
10 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445304 |
|
11 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504747 |
|
12 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463720 |
|
13 |
||
1 |
14 |
1.0 (6 Jul 2007) |
2 |
15 |
================ |
3 |
16 |
* GPLv3 |
| … | … | @@ -11,7 +11,7 @@ fdisk, while leaving util-linux tools in |
11 |
11 |
- print error message when a disk label that Linux fdisk doesn't support |
12 |
12 |
is encountered (?) |
13 |
13 |
- See the source code for others little things |
14 |
- Adjust change partition system id, typing l or L should work |
|
14 |
- Adjust change partition system id, typing l or L should work [ DONE ] |
|
15 |
15 |
|
16 |
16 |
----------------------------------------------------------------------------- |
17 |
17 |
1 |
1 |
#!/bin/sh |
2 |
2 |
|
3 |
aclocal |
|
3 |
aclocal -I m4 |
|
4 |
autoheader |
|
5 |
gettextize -c |
|
6 |
automake -a -c |
|
4 |
7 |
autoconf -f |
5 |
autoheader |
|
6 |
autopoint |
|
7 |
automake --gnu -a -c |
Up to file-list autotools/config.rpath:
2 |
2 |
# Output a system dependent set of variables, describing how to set the |
3 |
3 |
# run time search path of shared libraries in an executable. |
4 |
4 |
# |
5 |
# Copyright 1996-200 |
|
5 |
# Copyright 1996-2007 Free Software Foundation, Inc. |
|
6 |
6 |
# Taken from GNU libtool, 2001 |
7 |
7 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
8 |
8 |
# |
9 |
# This program is free software; you can redistribute it and/or modify |
|
10 |
# it under the terms of the GNU General Public License as published by |
|
11 |
# the Free Software Foundation; either version 2 of the License, or |
|
12 |
# (at your option) any later version. |
|
13 |
# |
|
14 |
# This program is distributed in the hope that it will be useful, but |
|
15 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
17 |
# General Public License for more details. |
|
18 |
# |
|
19 |
# You should have received a copy of the GNU General Public License |
|
20 |
# along with this program; if not, write to the Free Software |
|
21 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
22 |
# |
|
23 |
# As a special exception to the GNU General Public License, if you |
|
24 |
# distribute this file as part of a program that contains a |
|
25 |
# configuration script generated by Autoconf, you may include it under |
|
26 |
# the same distribution terms that you use for the rest of that program. |
|
9 |
# This file is free software; the Free Software Foundation gives |
|
10 |
# unlimited permission to copy and/or distribute it, with or without |
|
11 |
# modifications, as long as this notice is preserved. |
|
27 |
12 |
# |
28 |
13 |
# The first argument passed to this file is the canonical host specification, |
29 |
14 |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
40 |
25 |
# known workaround is to choose shorter directory names for the build |
41 |
26 |
# directory and/or the installation directory. |
42 |
27 |
|
43 |
# All known linkers require a `.a' archive for static linking (except M |
|
28 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
|
44 |
29 |
# which needs '.lib'). |
45 |
30 |
libext=a |
46 |
31 |
shrext=.so |
| … | … | @@ -50,6 +35,18 @@ host_cpu=`echo "$host" | sed 's/^\([^-]* |
50 |
35 |
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
51 |
36 |
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
52 |
37 |
|
38 |
# Code taken from libtool.m4's _LT_CC_BASENAME. |
|
39 |
||
40 |
for cc_temp in $CC""; do |
|
41 |
case $cc_temp in |
|
42 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
43 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
44 |
\-*) ;; |
|
45 |
*) break;; |
|
46 |
esac |
|
47 |
done |
|
48 |
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` |
|
49 |
||
53 |
50 |
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. |
54 |
51 |
|
55 |
52 |
wl= |
| … | … | @@ -60,7 +57,14 @@ else |
60 |
57 |
aix*) |
61 |
58 |
wl='-Wl,' |
62 |
59 |
;; |
63 |
|
|
60 |
darwin*) |
|
61 |
case $cc_basename in |
|
62 |
xlc*) |
|
63 |
wl='-Wl,' |
|
64 |
;; |
|
65 |
esac |
|
66 |
;; |
|
67 |
mingw* | cygwin* | pw32* | os2*) |
|
64 |
68 |
;; |
65 |
69 |
hpux9* | hpux10* | hpux11*) |
66 |
70 |
wl='-Wl,' |
| … | … | @@ -70,20 +74,33 @@ else |
70 |
74 |
;; |
71 |
75 |
newsos6) |
72 |
76 |
;; |
73 |
linux*) |
|
74 |
case $CC in |
|
75 |
|
|
77 |
linux* | k*bsd*-gnu) |
|
78 |
case $cc_basename in |
|
79 |
icc* | ecc*) |
|
76 |
80 |
wl='-Wl,' |
77 |
81 |
;; |
78 |
|
|
82 |
pgcc | pgf77 | pgf90) |
|
79 |
83 |
wl='-Wl,' |
80 |
84 |
;; |
85 |
ccc*) |
|
86 |
wl='-Wl,' |
|
87 |
;; |
|
88 |
como) |
|
89 |
wl='-lopt=' |
|
90 |
;; |
|
91 |
*) |
|
92 |
case `$CC -V 2>&1 | sed 5q` in |
|
93 |
*Sun\ C*) |
|
94 |
wl='-Wl,' |
|
95 |
;; |
|
96 |
esac |
|
97 |
;; |
|
81 |
98 |
esac |
82 |
99 |
;; |
83 |
100 |
osf3* | osf4* | osf5*) |
84 |
101 |
wl='-Wl,' |
85 |
102 |
;; |
86 |
|
|
103 |
rdos*) |
|
87 |
104 |
;; |
88 |
105 |
solaris*) |
89 |
106 |
wl='-Wl,' |
| … | … | @@ -91,11 +108,17 @@ else |
91 |
108 |
sunos4*) |
92 |
109 |
wl='-Qoption ld ' |
93 |
110 |
;; |
94 |
sysv4 | sysv4.2uw2* | sysv4.3* |
|
111 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
|
95 |
112 |
wl='-Wl,' |
96 |
113 |
;; |
97 |
114 |
sysv4*MP*) |
98 |
115 |
;; |
116 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
117 |
wl='-Wl,' |
|
118 |
;; |
|
119 |
unicos*) |
|
120 |
wl='-Wl,' |
|
121 |
;; |
|
99 |
122 |
uts4*) |
100 |
123 |
;; |
101 |
124 |
esac |
| … | … | @@ -117,6 +140,10 @@ case "$host_os" in |
117 |
140 |
with_gnu_ld=no |
118 |
141 |
fi |
119 |
142 |
;; |
143 |
interix*) |
|
144 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|
145 |
with_gnu_ld=yes |
|
146 |
;; |
|
120 |
147 |
openbsd*) |
121 |
148 |
with_gnu_ld=no |
122 |
149 |
;; |
| … | … | @@ -124,6 +151,12 @@ esac |
124 |
151 |
|
125 |
152 |
ld_shlibs=yes |
126 |
153 |
if test "$with_gnu_ld" = yes; then |
154 |
# Set some defaults for GNU ld with shared library support. These |
|
155 |
# are reset later if shared libraries are not supported. Putting them |
|
156 |
# here allows them to be overridden if necessary. |
|
157 |
# Unlike libtool, we use -rpath here, not --rpath, since the documented |
|
158 |
# option of GNU ld is called -rpath, not --rpath. |
|
159 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
127 |
160 |
case "$host_os" in |
128 |
161 |
aix3* | aix4* | aix5*) |
129 |
162 |
# On AIX/PPC, the GNU linker is very broken |
| … | … | @@ -138,12 +171,12 @@ if test "$with_gnu_ld" = yes; then |
138 |
171 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
139 |
172 |
# to version 4, is to share data among multiple programs linked |
140 |
173 |
# with the same dynamic library. Since this doesn't match the |
141 |
# behavior of shared libraries on other platforms, we can |
|
174 |
# behavior of shared libraries on other platforms, we cannot use |
|
142 |
175 |
# them. |
143 |
176 |
ld_shlibs=no |
144 |
177 |
;; |
145 |
178 |
beos*) |
146 |
if $LD --help 2>&1 | |
|
179 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
147 |
180 |
: |
148 |
181 |
else |
149 |
182 |
ld_shlibs=no |
| … | … | @@ -159,32 +192,55 @@ if test "$with_gnu_ld" = yes; then |
159 |
192 |
ld_shlibs=no |
160 |
193 |
fi |
161 |
194 |
;; |
162 |
|
|
195 |
interix[3-9]*) |
|
196 |
hardcode_direct=no |
|
197 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
163 |
198 |
;; |
164 |
solaris* | sysv5*) |
|
165 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
166 |
ld_shlibs=no |
|
167 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
199 |
gnu* | linux* | k*bsd*-gnu) |
|
200 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
168 |
201 |
: |
169 |
202 |
else |
170 |
203 |
ld_shlibs=no |
171 |
204 |
fi |
172 |
205 |
;; |
206 |
netbsd*) |
|
207 |
;; |
|
208 |
solaris*) |
|
209 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
210 |
ld_shlibs=no |
|
211 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
212 |
: |
|
213 |
else |
|
214 |
ld_shlibs=no |
|
215 |
fi |
|
216 |
;; |
|
217 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
218 |
case `$LD -v 2>&1` in |
|
219 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
220 |
ld_shlibs=no |
|
221 |
;; |
|
222 |
*) |
|
223 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
224 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
225 |
else |
|
226 |
ld_shlibs=no |
|
227 |
fi |
|
228 |
;; |
|
229 |
esac |
|
230 |
;; |
|
173 |
231 |
sunos4*) |
174 |
232 |
hardcode_direct=yes |
175 |
233 |
;; |
176 |
234 |
*) |
177 |
if $LD --help 2>&1 | |
|
235 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
178 |
236 |
: |
179 |
237 |
else |
180 |
238 |
ld_shlibs=no |
181 |
239 |
fi |
182 |
240 |
;; |
183 |
241 |
esac |
184 |
if test "$ld_shlibs" = yes; then |
|
185 |
# Unlike libtool, we use -rpath here, not --rpath, since the documented |
|
186 |
# option of GNU ld is called -rpath, not --rpath. |
|
187 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
242 |
if test "$ld_shlibs" = no; then |
|
243 |
hardcode_libdir_flag_spec= |
|
188 |
244 |
fi |
189 |
245 |
else |
190 |
246 |
case "$host_os" in |
| … | … | @@ -215,6 +271,7 @@ else |
215 |
271 |
break |
216 |
272 |
fi |
217 |
273 |
done |
274 |
;; |
|
218 |
275 |
esac |
219 |
276 |
fi |
220 |
277 |
hardcode_direct=yes |
| … | … | @@ -226,7 +283,7 @@ else |
226 |
283 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
227 |
284 |
then |
228 |
285 |
# We have reworked collect2 |
229 |
|
|
286 |
: |
|
230 |
287 |
else |
231 |
288 |
# We have old collect2 |
232 |
289 |
hardcode_direct=unsupported |
| … | … | @@ -234,6 +291,7 @@ else |
234 |
291 |
hardcode_libdir_flag_spec='-L$libdir' |
235 |
292 |
hardcode_libdir_separator= |
236 |
293 |
fi |
294 |
;; |
|
237 |
295 |
esac |
238 |
296 |
fi |
239 |
297 |
# Begin _LT_AC_SYS_LIBPATH_AIX. |
| … | … | @@ -266,7 +324,7 @@ else |
266 |
324 |
# see comment about different semantics on the GNU ld section |
267 |
325 |
ld_shlibs=no |
268 |
326 |
;; |
269 |
bsdi |
|
327 |
bsdi[45]*) |
|
270 |
328 |
;; |
271 |
329 |
cygwin* | mingw* | pw32*) |
272 |
330 |
# When not using gcc, we currently assume that we are using |
| … | … | @@ -277,8 +335,17 @@ else |
277 |
335 |
libext=lib |
278 |
336 |
;; |
279 |
337 |
darwin* | rhapsody*) |
280 |
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
281 |
hardcode_direct=no |
|
338 |
hardcode_direct=no |
|
339 |
if test "$GCC" = yes ; then |
|
340 |
: |
|
341 |
else |
|
342 |
case $cc_basename in |
|
343 |
xlc*) |
|
344 |
;; |
|
345 |
*) |
|
346 |
ld_shlibs=no |
|
347 |
;; |
|
348 |
esac |
|
282 |
349 |
fi |
283 |
350 |
;; |
284 |
351 |
dgux*) |
| … | … | @@ -295,7 +362,7 @@ else |
295 |
362 |
hardcode_direct=yes |
296 |
363 |
hardcode_minus_L=yes |
297 |
364 |
;; |
298 |
freebsd* |
|
365 |
freebsd* | dragonfly*) |
|
299 |
366 |
hardcode_libdir_flag_spec='-R$libdir' |
300 |
367 |
hardcode_direct=yes |
301 |
368 |
;; |
| … | … | @@ -307,24 +374,25 @@ else |
307 |
374 |
# but as the default location of the library. |
308 |
375 |
hardcode_minus_L=yes |
309 |
376 |
;; |
310 |
hpux10* |
|
377 |
hpux10*) |
|
311 |
378 |
if test "$with_gnu_ld" = no; then |
312 |
case "$host_cpu" in |
|
313 |
hppa*64*) |
|
314 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
315 |
hardcode_libdir_separator=: |
|
379 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
380 |
hardcode_libdir_separator=: |
|
381 |
hardcode_direct=yes |
|
382 |
# hardcode_minus_L: Not really in the search PATH, |
|
383 |
# but as the default location of the library. |
|
384 |
hardcode_minus_L=yes |
|
385 |
fi |
|
386 |
;; |
|
387 |
hpux11*) |
|
388 |
if test "$with_gnu_ld" = no; then |
|
389 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
390 |
hardcode_libdir_separator=: |
|
391 |
case $host_cpu in |
|
392 |
hppa*64*|ia64*) |
|
316 |
393 |
hardcode_direct=no |
317 |
394 |
;; |
318 |
ia64*) |
|
319 |
hardcode_libdir_flag_spec='-L$libdir' |
|
320 |
hardcode_direct=no |
|
321 |
# hardcode_minus_L: Not really in the search PATH, |
|
322 |
# but as the default location of the library. |
|
323 |
hardcode_minus_L=yes |
|
324 |
;; |
|
325 |
395 |
*) |
326 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
327 |
hardcode_libdir_separator=: |
|
328 |
396 |
hardcode_direct=yes |
329 |
397 |
# hardcode_minus_L: Not really in the search PATH, |
330 |
398 |
# but as the default location of the library. |
| … | … | @@ -347,18 +415,22 @@ else |
347 |
415 |
hardcode_libdir_separator=: |
348 |
416 |
;; |
349 |
417 |
openbsd*) |
350 |
hardcode_direct=yes |
|
351 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
352 |
|
|
418 |
if test -f /usr/libexec/ld.so; then |
|
419 |
hardcode_direct=yes |
|
420 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
421 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
422 |
else |
|
423 |
case "$host_os" in |
|
424 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
425 |
hardcode_libdir_flag_spec='-R$libdir' |
|
426 |
;; |
|
427 |
*) |
|
428 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
429 |
;; |
|
430 |
esac |
|
431 |
fi |
|
353 |
432 |
else |
354 |
case "$host_os" in |
|
355 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
356 |
hardcode_libdir_flag_spec='-R$libdir' |
|
357 |
;; |
|
358 |
*) |
|
359 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
360 |
;; |
|
361 |
esac |
|
433 |
ld_shlibs=no |
|
362 |
434 |
fi |
363 |
435 |
;; |
364 |
436 |
os2*) |
| … | … | @@ -378,8 +450,6 @@ else |
378 |
450 |
fi |
379 |
451 |
hardcode_libdir_separator=: |
380 |
452 |
;; |
381 |
sco3.2v5*) |
|
382 |
;; |
|
383 |
453 |
solaris*) |
384 |
454 |
hardcode_libdir_flag_spec='-R$libdir' |
385 |
455 |
;; |
| … | … | @@ -408,14 +478,11 @@ else |
408 |
478 |
ld_shlibs=yes |
409 |
479 |
fi |
410 |
480 |
;; |
411 |
sysv4.2uw2*) |
|
412 |
hardcode_direct=yes |
|
413 |
|
|
481 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
414 |
482 |
;; |
415 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
416 |
;; |
|
417 |
sysv5*) |
|
418 |
hardcode_libdir_flag_spec= |
|
483 |
sysv5* | sco3.2v5* | sco5v6*) |
|
484 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
485 |
hardcode_libdir_separator=':' |
|
419 |
486 |
;; |
420 |
487 |
uts4*) |
421 |
488 |
hardcode_libdir_flag_spec='-L$libdir' |
| … | … | @@ -428,34 +495,54 @@ fi |
428 |
495 |
|
429 |
496 |
# Check dynamic linker characteristics |
430 |
497 |
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. |
498 |
# Unlike libtool.m4, here we don't care about _all_ names of the library, but |
|
499 |
# only about the one the linker finds when passed -lNAME. This is the last |
|
500 |
# element of library_names_spec in libtool.m4, or possibly two of them if the |
|
501 |
# linker has special search rules. |
|
502 |
library_names_spec= # the last element of library_names_spec in libtool.m4 |
|
431 |
503 |
libname_spec='lib$name' |
432 |
504 |
case "$host_os" in |
433 |
505 |
aix3*) |
506 |
library_names_spec='$libname.a' |
|
434 |
507 |
;; |
435 |
508 |
aix4* | aix5*) |
509 |
library_names_spec='$libname$shrext' |
|
436 |
510 |
;; |
437 |
511 |
amigaos*) |
512 |
library_names_spec='$libname.a' |
|
438 |
513 |
;; |
439 |
514 |
beos*) |
515 |
library_names_spec='$libname$shrext' |
|
440 |
516 |
;; |
441 |
bsdi |
|
517 |
bsdi[45]*) |
|
518 |
library_names_spec='$libname$shrext' |
|
442 |
519 |
;; |
443 |
520 |
cygwin* | mingw* | pw32*) |
444 |
521 |
shrext=.dll |
522 |
library_names_spec='$libname.dll.a $libname.lib' |
|
445 |
523 |
;; |
446 |
524 |
darwin* | rhapsody*) |
447 |
525 |
shrext=.dylib |
526 |
library_names_spec='$libname$shrext' |
|
448 |
527 |
;; |
449 |
528 |
dgux*) |
529 |
library_names_spec='$libname$shrext' |
|
450 |
530 |
;; |
451 |
531 |
freebsd1*) |
452 |
532 |
;; |
453 |
freebsd* |
|
533 |
freebsd* | dragonfly*) |
|
534 |
case "$host_os" in |
|
535 |
freebsd[123]*) |
|
536 |
library_names_spec='$libname$shrext$versuffix' ;; |
|
537 |
*) |
|
538 |
library_names_spec='$libname$shrext' ;; |
|
539 |
esac |
|
454 |
540 |
;; |
455 |
541 |
gnu*) |
542 |
library_names_spec='$libname$shrext' |
|
456 |
543 |
;; |
457 |
544 |
hpux9* | hpux10* | hpux11*) |
458 |
case |
|
545 |
case $host_cpu in |
|
459 |
546 |
ia64*) |
460 |
547 |
shrext=.so |
461 |
548 |
;; |
| … | … | @@ -466,8 +553,13 @@ case "$host_os" in |
466 |
553 |
shrext=.sl |
467 |
554 |
;; |
468 |
555 |
esac |
556 |
library_names_spec='$libname$shrext' |
|
557 |
;; |
|
558 |
interix[3-9]*) |
|
559 |
library_names_spec='$libname$shrext' |
|
469 |
560 |
;; |
470 |
561 |
irix5* | irix6* | nonstopux*) |
562 |
library_names_spec='$libname$shrext' |
|
471 |
563 |
case "$host_os" in |
472 |
564 |
irix5* | nonstopux*) |
473 |
565 |
libsuff= shlibsuff= |
| … | … | @@ -484,42 +576,62 @@ case "$host_os" in |
484 |
576 |
;; |
485 |
577 |
linux*oldld* | linux*aout* | linux*coff*) |
486 |
578 |
;; |
487 |
linux* |
|
579 |
linux* | k*bsd*-gnu) |
|
580 |
library_names_spec='$libname$shrext' |
|
581 |
;; |
|
582 |
knetbsd*-gnu) |
|
583 |
library_names_spec='$libname$shrext' |
|
488 |
584 |
;; |
489 |
585 |
netbsd*) |
586 |
library_names_spec='$libname$shrext' |
|
490 |
587 |
;; |
491 |
588 |
newsos6) |
589 |
library_names_spec='$libname$shrext' |
|
492 |
590 |
;; |
493 |
nto-qnx |
|
591 |
nto-qnx*) |
|
592 |
library_names_spec='$libname$shrext' |
|
494 |
593 |
;; |
495 |
594 |
openbsd*) |
595 |
library_names_spec='$libname$shrext$versuffix' |
|
496 |
596 |
;; |
497 |
597 |
os2*) |
498 |
598 |
libname_spec='$name' |
499 |
599 |
shrext=.dll |
600 |
library_names_spec='$libname.a' |
|
500 |
601 |
;; |
501 |
602 |
osf3* | osf4* | osf5*) |
603 |
library_names_spec='$libname$shrext' |
|
502 |
604 |
;; |
503 |
|
|
605 |
rdos*) |
|
504 |
606 |
;; |
505 |
607 |
solaris*) |
608 |
library_names_spec='$libname$shrext' |
|
506 |
609 |
;; |
507 |
610 |
sunos4*) |
611 |
library_names_spec='$libname$shrext$versuffix' |
|
508 |
612 |
;; |
509 |
sysv4 | sysv4. |
|
613 |
sysv4 | sysv4.3*) |
|
614 |
library_names_spec='$libname$shrext' |
|
510 |
615 |
;; |
511 |
616 |
sysv4*MP*) |
617 |
library_names_spec='$libname$shrext' |
|
618 |
;; |
|
619 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
620 |
library_names_spec='$libname$shrext' |
|
512 |
621 |
;; |
513 |
622 |
uts4*) |
623 |
library_names_spec='$libname$shrext' |
|
514 |
624 |
;; |
515 |
625 |
esac |
516 |
626 |
|
517 |
627 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
518 |
628 |
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` |
519 |
629 |
shlibext=`echo "$shrext" | sed -e 's,^\.,,'` |
630 |
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
|
631 |
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
|
520 |
632 |
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` |
521 |
633 |
|
522 |
|
|
634 |
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF |
|
523 |
635 |
|
524 |
636 |
# How to pass a linker flag through the compiler. |
525 |
637 |
wl="$escaped_wl" |
| … | … | @@ -530,6 +642,12 @@ libext="$libext" |
530 |
642 |
# Shared library suffix (normally "so"). |
531 |
643 |
shlibext="$shlibext" |
532 |
644 |
|
645 |
# Format of library name prefix. |
|
646 |
libname_spec="$escaped_libname_spec" |
|
647 |
||
648 |
# Library names that the linker finds when passed -lNAME. |
|
649 |
library_names_spec="$escaped_library_names_spec" |
|
650 |
||
533 |
651 |
# Flag to hardcode \$libdir into a binary during linking. |
534 |
652 |
# This must work even if \$libdir does not exist. |
535 |
653 |
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" |
1 |
1 |
# 2.59 is needed by GNULib modules |
2 |
2 |
AC_PREREQ([2.59]) |
3 |
AC_INIT(fdisk, 1. |
|
3 |
AC_INIT(fdisk, 1.2.1, [bug-fdisk@gnu.org]) |
|
4 |
4 |
AC_CONFIG_AUX_DIR(autotools) |
5 |
5 |
|
6 |
6 |
AM_INIT_AUTOMAKE |
7 |
7 |
AM_CONFIG_HEADER(config.h) |
8 |
AM_GNU_GETTEXT_VERSION( |
|
8 |
AM_GNU_GETTEXT_VERSION([0.17]) |
|
9 |
9 |
AM_GNU_GETTEXT([external]) |
10 |
10 |
|
11 |
11 |
AM_MAINTAINER_MODE |
Up to file-list doc/Makefile.am:
1 |
1 |
info_TEXINFOS = cfdisk.texi fdisk.texi |
2 |
cfdisk_TEXINFOS = fdl.texi |
|
3 |
fdisk_TEXINFOS = fdl.texi |
|
2 |
4 |
dist_man_MANS = cfdisk.8 fdisk.8 |
1 |
2009-01-28 gettextize <bug-gnu-gettext@gnu.org> |
|
2 |
||
3 |
* gettext.m4: Upgrade to gettext-0.17. |
|
4 |
* iconv.m4: Upgrade to gettext-0.17. |
|
5 |
* lib-ld.m4: Upgrade to gettext-0.17. |
|
6 |
* lib-link.m4: Upgrade to gettext-0.17. |
|
7 |
* lib-prefix.m4: Upgrade to gettext-0.17. |
|
8 |
* nls.m4: Upgrade to gettext-0.17. |
|
9 |
* po.m4: Upgrade to gettext-0.17. |
|
10 |
* progtest.m4: Upgrade to gettext-0.17. |
|
11 |
||
1 |
12 |
2008-10-23 Christian <mail.kristian@yahoo.it> |
2 |
13 |
|
3 |
14 |
* check.m4: New file, part of ../acinclude.m4. |
Up to file-list m4/gettext.m4:
1 |
# gettext.m4 serial 28 (gettext-0.13) |
|
2 |
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# gettext.m4 serial 60 (gettext-0.17) |
|
2 |
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
dnl |
9 |
7 |
dnl This file can can be used in projects which are not available under |
10 |
8 |
dnl the GNU General Public License or the GNU Library General Public |
| … | … | @@ -17,7 +15,7 @@ dnl They are *not* in the public domain. |
17 |
15 |
|
18 |
16 |
dnl Authors: |
19 |
17 |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
20 |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-200 |
|
18 |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006. |
|
21 |
19 |
|
22 |
20 |
dnl Macro to add for using GNU gettext. |
23 |
21 |
|
| … | … | @@ -65,8 +63,13 @@ AC_DEFUN([AM_GNU_GETTEXT], |
65 |
63 |
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , |
66 |
64 |
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT |
67 |
65 |
])])])]) |
68 |
define(gt_included_intl, ifelse([$1], [external], [no], [yes])) |
|
69 |
define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], [])) |
|
66 |
define([gt_included_intl], |
|
67 |
ifelse([$1], [external], |
|
68 |
ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), |
|
69 |
[yes])) |
|
70 |
define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) |
|
71 |
gt_NEEDS_INIT |
|
72 |
AM_GNU_GETTEXT_NEED([$2]) |
|
70 |
73 |
|
71 |
74 |
AC_REQUIRE([AM_PO_SUBDIRS])dnl |
72 |
75 |
ifelse(gt_included_intl, yes, [ |
| … | … | @@ -80,7 +83,7 @@ AC_DEFUN([AM_GNU_GETTEXT], |
80 |
83 |
dnl Sometimes libintl requires libiconv, so first search for libiconv. |
81 |
84 |
dnl Ideally we would do this search only after the |
82 |
85 |
dnl if test "$USE_NLS" = "yes"; then |
83 |
dnl if |
|
86 |
dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
|
84 |
87 |
dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT |
85 |
88 |
dnl the configure script would need to contain the same shell code |
86 |
89 |
dnl again, outside any 'if'. There are two solutions: |
| … | … | @@ -92,8 +95,11 @@ AC_DEFUN([AM_GNU_GETTEXT], |
92 |
95 |
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
93 |
96 |
]) |
94 |
97 |
|
98 |
dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. |
|
99 |
gt_INTL_MACOSX |
|
100 |
||
95 |
101 |
dnl Set USE_NLS. |
96 |
A |
|
102 |
AC_REQUIRE([AM_NLS]) |
|
97 |
103 |
|
98 |
104 |
ifelse(gt_included_intl, yes, [ |
99 |
105 |
BUILD_INCLUDED_LIBINTL=no |
| … | … | @@ -103,6 +109,15 @@ AC_DEFUN([AM_GNU_GETTEXT], |
103 |
109 |
LTLIBINTL= |
104 |
110 |
POSUB= |
105 |
111 |
|
112 |
dnl Add a version number to the cache macros. |
|
113 |
case " $gt_needs " in |
|
114 |
*" need-formatstring-macros "*) gt_api_version=3 ;; |
|
115 |
*" need-ngettext "*) gt_api_version=2 ;; |
|
116 |
*) gt_api_version=1 ;; |
|
117 |
esac |
|
118 |
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
|
119 |
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
|
120 |
||
106 |
121 |
dnl If we use NLS figure out what method |
107 |
122 |
if test "$USE_NLS" = "yes"; then |
108 |
123 |
gt_use_preinstalled_gnugettext=no |
| … | … | @@ -121,28 +136,35 @@ AC_DEFUN([AM_GNU_GETTEXT], |
121 |
136 |
dnl to use. If GNU gettext is available we use this. Else we have |
122 |
137 |
dnl to fall back to GNU NLS library. |
123 |
138 |
|
124 |
dnl Add a version number to the cache macros. |
|
125 |
define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) |
|
126 |
define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) |
|
127 |
define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) |
|
128 |
||
129 |
AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, |
|
130 |
[AC_TRY_LINK([#include <libintl.h> |
|
131 |
]ifelse([$2], [need-formatstring-macros], |
|
132 |
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
|
139 |
if test $gt_api_version -ge 3; then |
|
140 |
gt_revision_test_code=' |
|
141 |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
|
133 |
142 |
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
134 |
143 |
#endif |
135 |
144 |
changequote(,)dnl |
136 |
145 |
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
137 |
146 |
changequote([,])dnl |
138 |
], [])[extern int _nl_msg_cat_cntr; |
|
147 |
' |
|
148 |
else |
|
149 |
gt_revision_test_code= |
|
150 |
fi |
|
151 |
if test $gt_api_version -ge 2; then |
|
152 |
gt_expression_test_code=' + * ngettext ("", "", 0)' |
|
153 |
else |
|
154 |
gt_expression_test_code= |
|
155 |
fi |
|
156 |
||
157 |
AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], |
|
158 |
[AC_TRY_LINK([#include <libintl.h> |
|
159 |
$gt_revision_test_code |
|
160 |
extern int _nl_msg_cat_cntr; |
|
139 |
161 |
extern int *_nl_domain_bindings;], |
140 |
162 |
[bindtextdomain ("", ""); |
141 |
return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], |
|
142 |
gt_cv_func_gnugettext_libc=yes, |
|
143 |
gt_cv_func_gnugettext_libc=no)]) |
|
163 |
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], |
|
164 |
[eval "$gt_func_gnugettext_libc=yes"], |
|
165 |
[eval "$gt_func_gnugettext_libc=no"])]) |
|
144 |
166 |
|
145 |
if |
|
167 |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
|
146 |
168 |
dnl Sometimes libintl requires libiconv, so first search for libiconv. |
147 |
169 |
ifelse(gt_included_intl, yes, , [ |
148 |
170 |
AM_ICONV_LINK |
| … | … | @@ -153,52 +175,40 @@ return (int) gettext ("")]ifelse([$2], [ |
153 |
175 |
dnl even if libiconv doesn't exist. |
154 |
176 |
AC_LIB_LINKFLAGS_BODY([intl]) |
155 |
177 |
AC_CACHE_CHECK([for GNU gettext in libintl], |
156 |
|
|
178 |
[$gt_func_gnugettext_libintl], |
|
157 |
179 |
[gt_save_CPPFLAGS="$CPPFLAGS" |
158 |
180 |
CPPFLAGS="$CPPFLAGS $INCINTL" |
159 |
181 |
gt_save_LIBS="$LIBS" |
160 |
182 |
LIBS="$LIBS $LIBINTL" |
161 |
183 |
dnl Now see whether libintl exists and does not depend on libiconv. |
162 |
184 |
AC_TRY_LINK([#include <libintl.h> |
163 |
]ifelse([$2], [need-formatstring-macros], |
|
164 |
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
|
165 |
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
|
166 |
#endif |
|
167 |
changequote(,)dnl |
|
168 |
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
|
169 |
changequote([,])dnl |
|
170 |
], [])[extern int _nl_msg_cat_cntr; |
|
185 |
$gt_revision_test_code |
|
186 |
extern int _nl_msg_cat_cntr; |
|
171 |
187 |
extern |
172 |
188 |
#ifdef __cplusplus |
173 |
189 |
"C" |
174 |
190 |
#endif |
175 |
const char *_nl_expand_alias ( |
|
191 |
const char *_nl_expand_alias (const char *);], |
|
176 |
192 |
[bindtextdomain ("", ""); |
177 |
return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], |
|
178 |
gt_cv_func_gnugettext_libintl=yes, |
|
179 |
gt_cv_func_gnugettext_libintl=no) |
|
193 |
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], |
|
194 |
[eval "$gt_func_gnugettext_libintl=yes"], |
|
195 |
[eval "$gt_func_gnugettext_libintl=no"]) |
|
180 |
196 |
dnl Now see whether libintl exists and depends on libiconv. |
181 |
if |
|
197 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
|
182 |
198 |
LIBS="$LIBS $LIBICONV" |
183 |
199 |
AC_TRY_LINK([#include <libintl.h> |
184 |
]ifelse([$2], [need-formatstring-macros], |
|
185 |
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
|
186 |
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
|
187 |
#endif |
|
188 |
changequote(,)dnl |
|
189 |
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
|
190 |
changequote([,])dnl |
|
191 |
], [])[extern int _nl_msg_cat_cntr; |
|
200 |
$gt_revision_test_code |
|
201 |
extern int _nl_msg_cat_cntr; |
|
192 |
202 |
extern |
193 |
203 |
#ifdef __cplusplus |
194 |
204 |
"C" |
195 |
205 |
#endif |
196 |
const char *_nl_expand_alias ( |
|
206 |
const char *_nl_expand_alias (const char *);], |
|
197 |
207 |
[bindtextdomain ("", ""); |
198 |
return |
|
208 |
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], |
|
199 |
209 |
[LIBINTL="$LIBINTL $LIBICONV" |
200 |
210 |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
201 |
|
|
211 |
eval "$gt_func_gnugettext_libintl=yes" |
|
202 |
212 |
]) |
203 |
213 |
fi |
204 |
214 |
CPPFLAGS="$gt_save_CPPFLAGS" |
| … | … | @@ -209,8 +219,8 @@ return (int) gettext ("")]ifelse([$2], [ |
209 |
219 |
dnl use it. But if this macro is used in GNU gettext, and GNU |
210 |
220 |
dnl gettext is already preinstalled in libintl, we update this |
211 |
221 |
dnl libintl. (Cf. the install rule in intl/Makefile.in.) |
212 |
if test "$gt_cv_func_gnugettext_libc" = "yes" \ |
|
213 |
|| { test "$gt_cv_func_gnugettext_libintl" = "yes" \ |
|
222 |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
|
223 |
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
|
214 |
224 |
&& test "$PACKAGE" != gettext-runtime \ |
215 |
225 |
&& test "$PACKAGE" != gettext-tools; }; then |
216 |
226 |
gt_use_preinstalled_gnugettext=yes |
| … | … | @@ -233,11 +243,12 @@ return (int) gettext ("")]ifelse([$2], [ |
233 |
243 |
dnl Mark actions used to generate GNU NLS library. |
234 |
244 |
BUILD_INCLUDED_LIBINTL=yes |
235 |
245 |
USE_INCLUDED_LIBINTL=yes |
236 |
LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" |
|
237 |
LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" |
|
246 |
LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" |
|
247 |
LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" |
|
238 |
248 |
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
239 |
249 |
fi |
240 |
250 |
|
251 |
CATOBJEXT= |
|
241 |
252 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
242 |
253 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
243 |
254 |
dnl Mark actions to use GNU gettext tools. |
| … | … | @@ -245,6 +256,15 @@ return (int) gettext ("")]ifelse([$2], [ |
245 |
256 |
fi |
246 |
257 |
]) |
247 |
258 |
|
259 |
if test -n "$INTL_MACOSX_LIBS"; then |
|
260 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
|
261 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
|
262 |
dnl Some extra flags are needed during linking. |
|
263 |
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
|
264 |
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
|
265 |
fi |
|
266 |
fi |
|
267 |
||
248 |
268 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
249 |
269 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
250 |
270 |
AC_DEFINE(ENABLE_NLS, 1, |
| … | … | @@ -260,7 +280,7 @@ return (int) gettext ("")]ifelse([$2], [ |
260 |
280 |
if test "$USE_NLS" = "yes"; then |
261 |
281 |
AC_MSG_CHECKING([where the gettext function comes from]) |
262 |
282 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
263 |
if |
|
283 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
|
264 |
284 |
gt_source="external libintl" |
265 |
285 |
else |
266 |
286 |
gt_source="libc" |
| … | … | @@ -274,7 +294,7 @@ return (int) gettext ("")]ifelse([$2], [ |
274 |
294 |
if test "$USE_NLS" = "yes"; then |
275 |
295 |
|
276 |
296 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
277 |
if |
|
297 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
|
278 |
298 |
AC_MSG_CHECKING([how to link with libintl]) |
279 |
299 |
AC_MSG_RESULT([$LIBINTL]) |
280 |
300 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) |
| … | … | @@ -320,6 +340,7 @@ return (int) gettext ("")]ifelse([$2], [ |
320 |
340 |
AC_SUBST(GENCAT) |
321 |
341 |
|
322 |
342 |
dnl For backward compatibility. Some Makefiles may be using this. |
343 |
INTLOBJS= |
|
323 |
344 |
if test "$USE_INCLUDED_LIBINTL" = yes; then |
324 |
345 |
INTLOBJS="\$(GETTOBJS)" |
325 |
346 |
fi |
| … | … | @@ -341,145 +362,18 @@ return (int) gettext ("")]ifelse([$2], [ |
341 |
362 |
]) |
342 |
363 |
|
343 |
364 |
|
344 |
dnl Checks for all prerequisites of the intl subdirectory, |
|
345 |
dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, |
|
346 |
dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. |
|
347 |
AC_DEFUN([AM_INTL_SUBDIR], |
|
365 |
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. |
|
366 |
m4_define([gt_NEEDS_INIT], |
|
348 |
367 |
[ |
349 |
AC_REQUIRE([AC_PROG_INSTALL])dnl |
|
350 |
AC_REQUIRE([AM_MKINSTALLDIRS])dnl |
|
351 |
AC_REQUIRE([AC_PROG_CC])dnl |
|
352 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
|
353 |
AC_REQUIRE([AC_PROG_RANLIB])dnl |
|
354 |
AC_REQUIRE([AC_ISC_POSIX])dnl |
|
355 |
AC_REQUIRE([AC_HEADER_STDC])dnl |
|
356 |
AC_REQUIRE([AC_C_CONST])dnl |
|
357 |
AC_REQUIRE([bh_C_SIGNED])dnl |
|
358 |
AC_REQUIRE([AC_C_INLINE])dnl |
|
359 |
AC_REQUIRE([AC_TYPE_OFF_T])dnl |
|
360 |
AC_REQUIRE([AC_TYPE_SIZE_T])dnl |
|
361 |
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl |
|
362 |
AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl |
|
363 |
AC_REQUIRE([gt_TYPE_WCHAR_T])dnl |
|
364 |
AC_REQUIRE([gt_TYPE_WINT_T])dnl |
|
365 |
AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) |
|
366 |
AC_REQUIRE([jm_AC_HEADER_STDINT_H]) |
|
367 |
AC_REQUIRE([gt_TYPE_INTMAX_T]) |
|
368 |
AC_REQUIRE([gt_PRINTF_POSIX]) |
|
369 |
AC_REQUIRE([AC_FUNC_ALLOCA])dnl |
|
370 |
AC_REQUIRE([AC_FUNC_MMAP])dnl |
|
371 |
AC_REQUIRE([jm_GLIBC21])dnl |
|
372 |
AC_REQUIRE([gt_INTDIV0])dnl |
|
373 |
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl |
|
374 |
AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl |
|
375 |
AC_REQUIRE([gt_INTTYPES_PRI])dnl |
|
376 |
AC_REQUIRE([gl_XSIZE])dnl |
|
377 |
||
378 |
AC_CHECK_TYPE([ptrdiff_t], , |
|
379 |
[AC_DEFINE([ptrdiff_t], [long], |
|
380 |
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) |
|
381 |
]) |
|
382 |
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
|
383 |
stdlib.h string.h unistd.h sys/param.h]) |
|
384 |
AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
|
385 |
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
|
386 |
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
|
387 |
__fsetlocking]) |
|
388 |
||
389 |
dnl Use the _snprintf function only if it is declared (because on NetBSD it |
|
390 |
dnl is defined as a weak alias of snprintf; we prefer to use the latter). |
|
391 |
gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) |
|
392 |
gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) |
|
393 |
||
394 |
dnl Use the *_unlocked functions only if they are declared. |
|
395 |
dnl (because some of them were defined without being declared in Solaris |
|
396 |
dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built |
|
397 |
dnl on Solaris 2.5.1 to run on Solaris 2.6). |
|
398 |
dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. |
|
399 |
gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) |
|
400 |
gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) |
|
401 |
gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) |
|
402 |
||
403 |
case $gt_cv_func_printf_posix in |
|
404 |
*yes) HAVE_POSIX_PRINTF=1 ;; |
|
405 |
*) HAVE_POSIX_PRINTF=0 ;; |
|
406 |
esac |
|
407 |
AC_SUBST([HAVE_POSIX_PRINTF]) |
|
408 |
if test "$ac_cv_func_asprintf" = yes; then |
|
409 |
HAVE_ASPRINTF=1 |
|
410 |
else |
|
411 |
HAVE_ASPRINTF=0 |
|
412 |
fi |
|
413 |
AC_SUBST([HAVE_ASPRINTF]) |
|
414 |
if test "$ac_cv_func_snprintf" = yes; then |
|
415 |
HAVE_SNPRINTF=1 |
|
416 |
else |
|
417 |
HAVE_SNPRINTF=0 |
|
418 |
fi |
|
419 |
AC_SUBST([HAVE_SNPRINTF]) |
|
420 |
if test "$ac_cv_func_wprintf" = yes; then |
|
421 |
HAVE_WPRINTF=1 |
|
422 |
else |
|
423 |
HAVE_WPRINTF=0 |
|
424 |
fi |
|
425 |
AC_SUBST([HAVE_WPRINTF]) |
|
426 |
||
427 |
AM_ICONV |
|
428 |
AM_LANGINFO_CODESET |
|
429 |
if test $ac_cv_header_locale_h = yes; then |
|
430 |
AM_LC_MESSAGES |
|
431 |
fi |
|
432 |
||
433 |
dnl intl/plural.c is generated from intl/plural.y. It requires bison, |
|
434 |
dnl because plural.y uses bison specific features. It requires at least |
|
435 |
dnl bison-1.26 because earlier versions generate a plural.c that doesn't |
|
436 |
dnl compile. |
|
437 |
dnl bison is only needed for the maintainer (who touches plural.y). But in |
|
438 |
dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put |
|
439 |
dnl the rule in general Makefile. Now, some people carelessly touch the |
|
440 |
dnl files or have a broken "make" program, hence the plural.c rule will |
|
441 |
dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not |
|
442 |
dnl present or too old. |
|
443 |
AC_CHECK_PROGS([INTLBISON], [bison]) |
|
444 |
if test -z "$INTLBISON"; then |
|
445 |
ac_verc_fail=yes |
|
446 |
else |
|
447 |
dnl Found it, now check the version. |
|
448 |
AC_MSG_CHECKING([version of bison]) |
|
449 |
changequote(<<,>>)dnl |
|
450 |
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
|
451 |
case $ac_prog_version in |
|
452 |
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
|
453 |
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
|
454 |
changequote([,])dnl |
|
455 |
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
|
456 |
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
|
457 |
esac |
|
458 |
AC_MSG_RESULT([$ac_prog_version]) |
|
459 |
fi |
|
460 |
if test $ac_verc_fail = yes; then |
|
461 |
INTLBISON=: |
|
462 |
fi |
|
368 |
m4_divert_text([DEFAULTS], [gt_needs=]) |
|
369 |
m4_define([gt_NEEDS_INIT], []) |
|
463 |
370 |
]) |
464 |
371 |
|
465 |
372 |
|
466 |
dnl gt_CHECK_DECL(FUNC, INCLUDES) |
|
467 |
dnl Check whether a function is declared. |
|
468 |
AC_DEFUN([gt_CHECK_DECL], |
|
373 |
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) |
|
374 |
AC_DEFUN([AM_GNU_GETTEXT_NEED], |
|
469 |
375 |
[ |
470 |
AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, |
|
471 |
[AC_TRY_COMPILE([$2], [ |
|
472 |
#ifndef $1 |
|
473 |
char *p = (char *) $1; |
|
474 |
#endif |
|
475 |
], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) |
|
476 |
if test $ac_cv_have_decl_$1 = yes; then |
|
477 |
gt_value=1 |
|
478 |
else |
|
479 |
gt_value=0 |
|
480 |
fi |
|
481 |
AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], |
|
482 |
|
|
376 |
m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) |
|
483 |
377 |
]) |
484 |
378 |
|
485 |
379 |
1 |
# iconv.m4 serial AM4 (gettext-0.11.3) |
|
2 |
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# iconv.m4 serial AM6 (gettext-0.17) |
|
2 |
dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
|
9 |
7 |
dnl From Bruno Haible. |
10 |
8 |
|
| … | … | @@ -23,6 +21,7 @@ AC_DEFUN([AM_ICONV_LINK], |
23 |
21 |
[ |
24 |
22 |
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and |
25 |
23 |
dnl those with the standalone portable GNU libiconv installed). |
24 |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles |
|
26 |
25 |
|
27 |
26 |
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV |
28 |
27 |
dnl accordingly. |
| … | … | @@ -35,7 +34,7 @@ AC_DEFUN([AM_ICONV_LINK], |
35 |
34 |
am_save_CPPFLAGS="$CPPFLAGS" |
36 |
35 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) |
37 |
36 |
|
38 |
AC_CACHE_CHECK( |
|
37 |
AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [ |
|
39 |
38 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
40 |
39 |
am_cv_lib_iconv=no |
41 |
40 |
AC_TRY_LINK([#include <stdlib.h> |
| … | … | @@ -58,7 +57,85 @@ AC_DEFUN([AM_ICONV_LINK], |
58 |
57 |
fi |
59 |
58 |
]) |
60 |
59 |
if test "$am_cv_func_iconv" = yes; then |
61 |
AC_ |
|
60 |
AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [ |
|
61 |
dnl This tests against bugs in AIX 5.1 and HP-UX 11.11. |
|
62 |
am_save_LIBS="$LIBS" |
|
63 |
if test $am_cv_lib_iconv = yes; then |
|
64 |
LIBS="$LIBS $LIBICONV" |
|
65 |
fi |
|
66 |
AC_TRY_RUN([ |
|
67 |
#include <iconv.h> |
|
68 |
#include <string.h> |
|
69 |
int main () |
|
70 |
{ |
|
71 |
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
|
72 |
returns. */ |
|
73 |
{ |
|
74 |
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
|
75 |
if (cd_utf8_to_88591 != (iconv_t)(-1)) |
|
76 |
{ |
|
77 |
static const char input[] = "\342\202\254"; /* EURO SIGN */ |
|
78 |
char buf[10]; |
|
79 |
const char *inptr = input; |
|
80 |
size_t inbytesleft = strlen (input); |
|
81 |
char *outptr = buf; |
|
82 |
size_t outbytesleft = sizeof (buf); |
|
83 |
size_t res = iconv (cd_utf8_to_88591, |
|
84 |
(char **) &inptr, &inbytesleft, |
|
85 |
&outptr, &outbytesleft); |
|
86 |
if (res == 0) |
|
87 |
return 1; |
|
88 |
} |
|
89 |
} |
|
90 |
#if 0 /* This bug could be worked around by the caller. */ |
|
91 |
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
|
92 |
{ |
|
93 |
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
|
94 |
if (cd_88591_to_utf8 != (iconv_t)(-1)) |
|
95 |
{ |
|
96 |
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
|
97 |
char buf[50]; |
|
98 |
const char *inptr = input; |
|
99 |
size_t inbytesleft = strlen (input); |
|
100 |
char *outptr = buf; |
|
101 |
size_t outbytesleft = sizeof (buf); |
|
102 |
size_t res = iconv (cd_88591_to_utf8, |
|
103 |
(char **) &inptr, &inbytesleft, |
|
104 |
&outptr, &outbytesleft); |
|
105 |
if ((int)res > 0) |
|
106 |
return 1; |
|
107 |
} |
|
108 |
} |
|
109 |
#endif |
|
110 |
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
|
111 |
provided. */ |
|
112 |
if (/* Try standardized names. */ |
|
113 |
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
|
114 |
/* Try IRIX, OSF/1 names. */ |
|
115 |
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
|
116 |
/* Try AIX names. */ |
|
117 |
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
|
118 |
/* Try HP-UX names. */ |
|
119 |
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
|
120 |
return 1; |
|
121 |
return 0; |
|
122 |
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], |
|
123 |
[case "$host_os" in |
|
124 |
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
|
125 |
*) am_cv_func_iconv_works="guessing yes" ;; |
|
126 |
esac]) |
|
127 |
LIBS="$am_save_LIBS" |
|
128 |
]) |
|
129 |
case "$am_cv_func_iconv_works" in |
|
130 |
*no) am_func_iconv=no am_cv_lib_iconv=no ;; |
|
131 |
*) am_func_iconv=yes ;; |
|
132 |
esac |
|
133 |
else |
|
134 |
am_func_iconv=no am_cv_lib_iconv=no |
|
135 |
fi |
|
136 |
if test "$am_func_iconv" = yes; then |
|
137 |
AC_DEFINE(HAVE_ICONV, 1, |
|
138 |
[Define if you have the iconv() function and it works.]) |
|
62 |
139 |
fi |
63 |
140 |
if test "$am_cv_lib_iconv" = yes; then |
64 |
141 |
AC_MSG_CHECKING([how to link with libiconv]) |
1 |
1 |
# lib-ld.m4 serial 3 (gettext-0.13) |
2 |
2 |
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
|
9 |
7 |
dnl Subroutines of libtool.m4, |
10 |
8 |
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision |
Up to file-list m4/lib-link.m4:
1 |
# lib-link.m4 serial 4 (gettext-0.12) |
|
2 |
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# lib-link.m4 serial 13 (gettext-0.17) |
|
2 |
dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
|
9 |
7 |
dnl From Bruno Haible. |
10 |
8 |
|
9 |
AC_PREREQ(2.54) |
|
10 |
||
11 |
11 |
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and |
12 |
12 |
dnl the libraries corresponding to explicit and implicit dependencies. |
13 |
13 |
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and |
14 |
14 |
dnl augments the CPPFLAGS variable. |
15 |
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname |
|
16 |
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. |
|
15 |
17 |
AC_DEFUN([AC_LIB_LINKFLAGS], |
16 |
18 |
[ |
17 |
19 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
| … | … | @@ -24,13 +26,16 @@ AC_DEFUN([AC_LIB_LINKFLAGS], |
24 |
26 |
ac_cv_lib[]Name[]_libs="$LIB[]NAME" |
25 |
27 |
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" |
26 |
28 |
ac_cv_lib[]Name[]_cppflags="$INC[]NAME" |
29 |
ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" |
|
27 |
30 |
]) |
28 |
31 |
LIB[]NAME="$ac_cv_lib[]Name[]_libs" |
29 |
32 |
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" |
30 |
33 |
INC[]NAME="$ac_cv_lib[]Name[]_cppflags" |
34 |
LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" |
|
31 |
35 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) |
32 |
36 |
AC_SUBST([LIB]NAME) |
33 |
37 |
AC_SUBST([LTLIB]NAME) |
38 |
AC_SUBST([LIB]NAME[_PREFIX]) |
|
34 |
39 |
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the |
35 |
40 |
dnl results of this search when this library appears as a dependency. |
36 |
41 |
HAVE_LIB[]NAME=yes |
| … | … | @@ -46,6 +51,8 @@ dnl sets and AC_SUBSTs HAVE_LIB${NAME}=y |
46 |
51 |
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and |
47 |
52 |
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs |
48 |
53 |
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. |
54 |
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname |
|
55 |
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. |
|
49 |
56 |
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], |
50 |
57 |
[ |
51 |
58 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
| … | … | @@ -82,19 +89,27 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], |
82 |
89 |
CPPFLAGS="$ac_save_CPPFLAGS" |
83 |
90 |
LIB[]NAME= |
84 |
91 |
LTLIB[]NAME= |
92 |
LIB[]NAME[]_PREFIX= |
|
85 |
93 |
fi |
86 |
94 |
AC_SUBST([HAVE_LIB]NAME) |
87 |
95 |
AC_SUBST([LIB]NAME) |
88 |
96 |
AC_SUBST([LTLIB]NAME) |
97 |
AC_SUBST([LIB]NAME[_PREFIX]) |
|
89 |
98 |
undefine([Name]) |
90 |
99 |
undefine([NAME]) |
91 |
100 |
]) |
92 |
101 |
|
93 |
102 |
dnl Determine the platform dependent parameters needed to use rpath: |
94 |
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, |
|
95 |
dnl hardcode_direct, hardcode_minus_L. |
|
103 |
dnl acl_libext, |
|
104 |
dnl acl_shlibext, |
|
105 |
dnl acl_hardcode_libdir_flag_spec, |
|
106 |
dnl acl_hardcode_libdir_separator, |
|
107 |
dnl acl_hardcode_direct, |
|
108 |
dnl acl_hardcode_minus_L. |
|
96 |
109 |
AC_DEFUN([AC_LIB_RPATH], |
97 |
110 |
[ |
111 |
dnl Tell automake >= 1.10 to complain if config.rpath is missing. |
|
112 |
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) |
|
98 |
113 |
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS |
99 |
114 |
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld |
100 |
115 |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host |
| … | … | @@ -107,12 +122,14 @@ AC_DEFUN([AC_LIB_RPATH], |
107 |
122 |
acl_cv_rpath=done |
108 |
123 |
]) |
109 |
124 |
wl="$acl_cv_wl" |
110 |
libext="$acl_cv_libext" |
|
111 |
shlibext="$acl_cv_shlibext" |
|
112 |
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
|
113 |
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
|
114 |
hardcode_direct="$acl_cv_hardcode_direct" |
|
115 |
hardcode_minus_L="$acl_cv_hardcode_minus_L" |
|
125 |
acl_libext="$acl_cv_libext" |
|
126 |
acl_shlibext="$acl_cv_shlibext" |
|
127 |
acl_libname_spec="$acl_cv_libname_spec" |
|
128 |
acl_library_names_spec="$acl_cv_library_names_spec" |
|
129 |
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
|
130 |
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
|
131 |
acl_hardcode_direct="$acl_cv_hardcode_direct" |
|
132 |
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
|
116 |
133 |
dnl Determine whether the user wants rpath handling at all. |
117 |
134 |
AC_ARG_ENABLE(rpath, |
118 |
135 |
[ --disable-rpath do not hardcode runtime library paths], |
| … | … | @@ -122,19 +139,24 @@ AC_DEFUN([AC_LIB_RPATH], |
122 |
139 |
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and |
123 |
140 |
dnl the libraries corresponding to explicit and implicit dependencies. |
124 |
141 |
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. |
142 |
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found |
|
143 |
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. |
|
125 |
144 |
AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
126 |
145 |
[ |
146 |
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) |
|
127 |
147 |
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
128 |
148 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
149 |
dnl Autoconf >= 2.61 supports dots in --with options. |
|
150 |
define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) |
|
129 |
151 |
dnl By default, look in $includedir and $libdir. |
130 |
152 |
use_additional=yes |
131 |
153 |
AC_LIB_WITH_FINAL_PREFIX([ |
132 |
154 |
eval additional_includedir=\"$includedir\" |
133 |
155 |
eval additional_libdir=\"$libdir\" |
134 |
156 |
]) |
135 |
AC_LIB_ARG_WITH([lib$1-prefix], |
|
136 |
[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib |
|
137 |
|
|
157 |
AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], |
|
158 |
[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib |
|
159 |
--without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], |
|
138 |
160 |
[ |
139 |
161 |
if test "X$withval" = "Xno"; then |
140 |
162 |
use_additional=no |
| … | … | @@ -146,7 +168,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
146 |
168 |
]) |
147 |
169 |
else |
148 |
170 |
additional_includedir="$withval/include" |
149 |
additional_libdir="$withval/ |
|
171 |
additional_libdir="$withval/$acl_libdirstem" |
|
150 |
172 |
fi |
151 |
173 |
fi |
152 |
174 |
]) |
| … | … | @@ -155,6 +177,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
155 |
177 |
LIB[]NAME= |
156 |
178 |
LTLIB[]NAME= |
157 |
179 |
INC[]NAME= |
180 |
LIB[]NAME[]_PREFIX= |
|
158 |
181 |
rpathdirs= |
159 |
182 |
ltrpathdirs= |
160 |
183 |
names_already_handled= |
| … | … | @@ -194,20 +217,53 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
194 |
217 |
found_la= |
195 |
218 |
found_so= |
196 |
219 |
found_a= |
220 |
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
|
221 |
if test -n "$acl_shlibext"; then |
|
222 |
shrext=".$acl_shlibext" # typically: shrext=.so |
|
223 |
else |
|
224 |
shrext= |
|
225 |
fi |
|
197 |
226 |
if test $use_additional = yes; then |
198 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
|
199 |
found_dir="$additional_libdir" |
|
200 |
found_so="$additional_libdir/lib$name.$shlibext" |
|
201 |
if test -f "$additional_libdir/lib$name.la"; then |
|
202 |
|
|
227 |
dir="$additional_libdir" |
|
228 |
dnl The same code as in the loop below: |
|
229 |
dnl First look for a shared library. |
|
230 |
if test -n "$acl_shlibext"; then |
|
231 |
if test -f "$dir/$libname$shrext"; then |
|
232 |
found_dir="$dir" |
|
233 |
found_so="$dir/$libname$shrext" |
|
234 |
else |
|
235 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
|
236 |
ver=`(cd "$dir" && \ |
|
237 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
|
238 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
|
239 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
|
240 |
| sed 1q ) 2>/dev/null` |
|
241 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
|
242 |
found_dir="$dir" |
|
243 |
found_so="$dir/$libname$shrext.$ver" |
|
244 |
fi |
|
245 |
else |
|
246 |
eval library_names=\"$acl_library_names_spec\" |
|
247 |
for f in $library_names; do |
|
248 |
if test -f "$dir/$f"; then |
|
249 |
found_dir="$dir" |
|
250 |
found_so="$dir/$f" |
|
251 |
break |
|
252 |
fi |
|
253 |
done |
|
254 |
fi |
|
203 |
255 |
fi |
204 |
else |
|
205 |
if test -f "$additional_libdir/lib$name.$libext"; then |
|
206 |
found_dir="$additional_libdir" |
|
207 |
found_a="$additional_libdir/lib$name.$libext" |
|
208 |
if test -f "$additional_libdir/lib$name.la"; then |
|
209 |
found_la="$additional_libdir/lib$name.la" |
|
210 |
|
|
256 |
fi |
|
257 |
dnl Then look for a static library. |
|
258 |
if test "X$found_dir" = "X"; then |
|
259 |
if test -f "$dir/$libname.$acl_libext"; then |
|
260 |
found_dir="$dir" |
|
261 |
found_a="$dir/$libname.$acl_libext" |
|
262 |
fi |
|
263 |
fi |
|
264 |
if test "X$found_dir" != "X"; then |
|
265 |
if test -f "$dir/$libname.la"; then |
|
266 |
found_la="$dir/$libname.la" |
|
211 |
267 |
fi |
212 |
268 |
fi |
213 |
269 |
fi |
| … | … | @@ -217,19 +273,44 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
217 |
273 |
case "$x" in |
218 |
274 |
-L*) |
219 |
275 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
220 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
|
221 |
found_dir="$dir" |
|
222 |
found_so="$dir/lib$name.$shlibext" |
|
223 |
if test -f "$dir/lib$name.la"; then |
|
224 |
|
|
276 |
dnl First look for a shared library. |
|
277 |
if test -n "$acl_shlibext"; then |
|
278 |
if test -f "$dir/$libname$shrext"; then |
|
279 |
found_dir="$dir" |
|
280 |
found_so="$dir/$libname$shrext" |
|
281 |
else |
|
282 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
|
283 |
ver=`(cd "$dir" && \ |
|
284 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
|
285 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
|
286 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
|
287 |
| sed 1q ) 2>/dev/null` |
|
288 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
|
289 |
found_dir="$dir" |
|
290 |
found_so="$dir/$libname$shrext.$ver" |
|
291 |
fi |
|
292 |
else |
|
293 |
eval library_names=\"$acl_library_names_spec\" |
|
294 |
for f in $library_names; do |
|
295 |
if test -f "$dir/$f"; then |
|
296 |
found_dir="$dir" |
|
297 |
found_so="$dir/$f" |
|
298 |
break |
|
299 |
fi |
|
300 |
done |
|
301 |
fi |
|
225 |
302 |
fi |
226 |
else |
|
227 |
if test -f "$dir/lib$name.$libext"; then |
|
303 |
fi |
|
304 |
dnl Then look for a static library. |
|
305 |
if test "X$found_dir" = "X"; then |
|
306 |
if test -f "$dir/$libname.$acl_libext"; then |
|
228 |
307 |
found_dir="$dir" |
229 |
found_a="$dir/lib$name.$libext" |
|
230 |
if test -f "$dir/lib$name.la"; then |
|
231 |
found_la="$dir/lib$name.la" |
|
232 |
fi |
|
308 |
found_a="$dir/$libname.$acl_libext" |
|
309 |
fi |
|
310 |
fi |
|
311 |
if test "X$found_dir" != "X"; then |
|
312 |
if test -f "$dir/$libname.la"; then |
|
313 |
found_la="$dir/$libname.la" |
|
233 |
314 |
fi |
234 |
315 |
fi |
235 |
316 |
;; |
| … | … | @@ -246,7 +327,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
246 |
327 |
dnl Linking with a shared library. We attempt to hardcode its |
247 |
328 |
dnl directory into the executable's runpath, unless it's the |
248 |
329 |
dnl standard /usr/lib. |
249 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/ |
|
330 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
|
250 |
331 |
dnl No hardcoding is needed. |
251 |
332 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
252 |
333 |
else |
| … | … | @@ -265,12 +346,12 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
265 |
346 |
ltrpathdirs="$ltrpathdirs $found_dir" |
266 |
347 |
fi |
267 |
348 |
dnl The hardcoding into $LIBNAME is system dependent. |
268 |
if test "$ |
|
349 |
if test "$acl_hardcode_direct" = yes; then |
|
269 |
350 |
dnl Using DIR/libNAME.so during linking hardcodes DIR into the |
270 |
351 |
dnl resulting binary. |
271 |
352 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
272 |
353 |
else |
273 |
if test -n "$ |
|
354 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
|
274 |
355 |
dnl Use an explicit option to hardcode DIR into the resulting |
275 |
356 |
dnl binary. |
276 |
357 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
| … | … | @@ -301,13 +382,13 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
301 |
382 |
if test -z "$haveit"; then |
302 |
383 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" |
303 |
384 |
fi |
304 |
if test "$ |
|
385 |
if test "$acl_hardcode_minus_L" != no; then |
|
305 |
386 |
dnl FIXME: Not sure whether we should use |
306 |
387 |
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" |
307 |
388 |
dnl here. |
308 |
389 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
309 |
390 |
else |
310 |
dnl We cannot use $ |
|
391 |
dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH |
|
311 |
392 |
dnl here, because this doesn't fit in flags passed to the |
312 |
393 |
dnl compiler. So give up. No hardcoding. This affects only |
313 |
394 |
dnl very old systems. |
| … | … | @@ -332,8 +413,9 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
332 |
413 |
dnl Assume the include files are nearby. |
333 |
414 |
additional_includedir= |
334 |
415 |
case "$found_dir" in |
335 |
*/lib | */lib/) |
|
336 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
|
416 |
*/$acl_libdirstem | */$acl_libdirstem/) |
|
417 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
|
418 |
LIB[]NAME[]_PREFIX="$basedir" |
|
337 |
419 |
additional_includedir="$basedir/include" |
338 |
420 |
;; |
339 |
421 |
esac |
| … | … | @@ -350,7 +432,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
350 |
432 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
351 |
433 |
if test -n "$GCC"; then |
352 |
434 |
case $host_os in |
353 |
linux* |
|
435 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
|
354 |
436 |
esac |
355 |
437 |
fi |
356 |
438 |
fi |
| … | … | @@ -394,12 +476,12 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
394 |
476 |
dnl 3. if it's already present in $LDFLAGS or the already |
395 |
477 |
dnl constructed $LIBNAME, |
396 |
478 |
dnl 4. if it doesn't exist as a directory. |
397 |
if test "X$additional_libdir" != "X/usr/ |
|
479 |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
|
398 |
480 |
haveit= |
399 |
if test "X$additional_libdir" = "X/usr/local/ |
|
481 |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
|
400 |
482 |
if test -n "$GCC"; then |
401 |
483 |
case $host_os in |
402 |
linux* |
|
484 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
|
403 |
485 |
esac |
404 |
486 |
fi |
405 |
487 |
fi |
| … | … | @@ -495,18 +577,18 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
495 |
577 |
done |
496 |
578 |
done |
497 |
579 |
if test "X$rpathdirs" != "X"; then |
498 |
if test -n "$ |
|
580 |
if test -n "$acl_hardcode_libdir_separator"; then |
|
499 |
581 |
dnl Weird platform: only the last -rpath option counts, the user must |
500 |
582 |
dnl pass all path elements in one option. We can arrange that for a |
501 |
583 |
dnl single library, but not when more than one $LIBNAMEs are used. |
502 |
584 |
alldirs= |
503 |
585 |
for found_dir in $rpathdirs; do |
504 |
alldirs="${alldirs}${alldirs:+$ |
|
586 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
|
505 |
587 |
done |
506 |
dnl Note: |
|
588 |
dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. |
|
507 |
589 |
acl_save_libdir="$libdir" |
508 |
590 |
libdir="$alldirs" |
509 |
eval flag=\"$ |
|
591 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
|
510 |
592 |
libdir="$acl_save_libdir" |
511 |
593 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
512 |
594 |
else |
| … | … | @@ -514,7 +596,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
514 |
596 |
for found_dir in $rpathdirs; do |
515 |
597 |
acl_save_libdir="$libdir" |
516 |
598 |
libdir="$found_dir" |
517 |
eval flag=\"$ |
|
599 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
|
518 |
600 |
libdir="$acl_save_libdir" |
519 |
601 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
520 |
602 |
done |
| … | … | @@ -549,3 +631,79 @@ AC_DEFUN([AC_LIB_APPENDTOVAR], |
549 |
631 |
fi |
550 |
632 |
done |
551 |
633 |
]) |
634 |
||
635 |
dnl For those cases where a variable contains several -L and -l options |
|
636 |
dnl referring to unknown libraries and directories, this macro determines the |
|
637 |
dnl necessary additional linker options for the runtime path. |
|
638 |
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) |
|
639 |
dnl sets LDADDVAR to linker options needed together with LIBSVALUE. |
|
640 |
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, |
|
641 |
dnl otherwise linking without libtool is assumed. |
|
642 |
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], |
|
643 |
[ |
|
644 |
AC_REQUIRE([AC_LIB_RPATH]) |
|
645 |
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) |
|
646 |
$1= |
|
647 |
if test "$enable_rpath" != no; then |
|
648 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
|
649 |
dnl Use an explicit option to hardcode directories into the resulting |
|
650 |
dnl binary. |
|
651 |
rpathdirs= |
|
652 |
next= |
|
653 |
for opt in $2; do |
|
654 |
if test -n "$next"; then |
|
655 |
dir="$next" |
|
656 |
dnl No need to hardcode the standard /usr/lib. |
|
657 |
if test "X$dir" != "X/usr/$acl_libdirstem"; then |
|
658 |
rpathdirs="$rpathdirs $dir" |
|
659 |
fi |
|
660 |
next= |
|
661 |
else |
|
662 |
case $opt in |
|
663 |
-L) next=yes ;; |
|
664 |
-L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` |
|
665 |
dnl No need to hardcode the standard /usr/lib. |
|
666 |
if test "X$dir" != "X/usr/$acl_libdirstem"; then |
|
667 |
rpathdirs="$rpathdirs $dir" |
|
668 |
fi |
|
669 |
next= ;; |
|
670 |
*) next= ;; |
|
671 |
esac |
|
672 |
fi |
|
673 |
done |
|
674 |
if test "X$rpathdirs" != "X"; then |
|
675 |
if test -n ""$3""; then |
|
676 |
dnl libtool is used for linking. Use -R options. |
|
677 |
for dir in $rpathdirs; do |
|
678 |
$1="${$1}${$1:+ }-R$dir" |
|
679 |
done |
|
680 |
else |
|
681 |
dnl The linker is used for linking directly. |
|
682 |
if test -n "$acl_hardcode_libdir_separator"; then |
|
683 |
dnl Weird platform: only the last -rpath option counts, the user |
|
684 |
dnl must pass all path elements in one option. |
|
685 |
alldirs= |
|
686 |
for dir in $rpathdirs; do |
|
687 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" |
|
688 |
done |
|
689 |
acl_save_libdir="$libdir" |
|
690 |
libdir="$alldirs" |
|
691 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
|
692 |
libdir="$acl_save_libdir" |
|
693 |
$1="$flag" |
|
694 |
else |
|
695 |
dnl The -rpath options are cumulative. |
|
696 |
for dir in $rpathdirs; do |
|
697 |
acl_save_libdir="$libdir" |
|
698 |
libdir="$dir" |
|
699 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
|
700 |
libdir="$acl_save_libdir" |
|
701 |
$1="${$1}${$1:+ }$flag" |
|
702 |
done |
|
703 |
fi |
|
704 |
fi |
|
705 |
fi |
|
706 |
fi |
|
707 |
fi |
|
708 |
AC_SUBST([$1]) |
|
709 |
]) |
Up to file-list m4/lib-prefix.m4:
1 |
# lib-prefix.m4 serial 3 (gettext-0.13) |
|
2 |
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# lib-prefix.m4 serial 5 (gettext-0.15) |
|
2 |
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
|
9 |
7 |
dnl From Bruno Haible. |
10 |
8 |
|
| … | … | @@ -26,6 +24,7 @@ AC_DEFUN([AC_LIB_PREFIX], |
26 |
24 |
AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) |
27 |
25 |
AC_REQUIRE([AC_PROG_CC]) |
28 |
26 |
AC_REQUIRE([AC_CANONICAL_HOST]) |
27 |
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) |
|
29 |
28 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
30 |
29 |
dnl By default, look in $includedir and $libdir. |
31 |
30 |
use_additional=yes |
| … | … | @@ -47,7 +46,7 @@ AC_DEFUN([AC_LIB_PREFIX], |
47 |
46 |
]) |
48 |
47 |
else |
49 |
48 |
additional_includedir="$withval/include" |
50 |
additional_libdir="$withval/ |
|
49 |
additional_libdir="$withval/$acl_libdirstem" |
|
51 |
50 |
fi |
52 |
51 |
fi |
53 |
52 |
]) |
| … | … | @@ -71,7 +70,7 @@ AC_DEFUN([AC_LIB_PREFIX], |
71 |
70 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
72 |
71 |
if test -n "$GCC"; then |
73 |
72 |
case $host_os in |
74 |
linux* |
|
73 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
|
75 |
74 |
esac |
76 |
75 |
fi |
77 |
76 |
fi |
| … | … | @@ -89,7 +88,7 @@ AC_DEFUN([AC_LIB_PREFIX], |
89 |
88 |
dnl 2. if it's already present in $LDFLAGS, |
90 |
89 |
dnl 3. if it's /usr/local/lib and we are using GCC on Linux, |
91 |
90 |
dnl 4. if it doesn't exist as a directory. |
92 |
if test "X$additional_libdir" != "X/usr/ |
|
91 |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
|
93 |
92 |
haveit= |
94 |
93 |
for x in $LDFLAGS; do |
95 |
94 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
| … | … | @@ -99,7 +98,7 @@ AC_DEFUN([AC_LIB_PREFIX], |
99 |
98 |
fi |
100 |
99 |
done |
101 |
100 |
if test -z "$haveit"; then |
102 |
if test "X$additional_libdir" = "X/usr/local/ |
|
101 |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
|
103 |
102 |
if test -n "$GCC"; then |
104 |
103 |
case $host_os in |
105 |
104 |
linux*) haveit=yes;; |
| … | … | @@ -153,3 +152,34 @@ AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], |
153 |
152 |
exec_prefix="$acl_save_exec_prefix" |
154 |
153 |
prefix="$acl_save_prefix" |
155 |
154 |
]) |
155 |
||
156 |
dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing |
|
157 |
dnl the basename of the libdir, either "lib" or "lib64". |
|
158 |
AC_DEFUN([AC_LIB_PREPARE_MULTILIB], |
|
159 |
[ |
|
160 |
dnl There is no formal standard regarding lib and lib64. The current |
|
161 |
dnl practice is that on a system supporting 32-bit and 64-bit instruction |
|
162 |
dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit |
|
163 |
dnl libraries go under $prefix/lib. We determine the compiler's default |
|
164 |
dnl mode by looking at the compiler's library search path. If at least |
|
165 |
dnl of its elements ends in /lib64 or points to a directory whose absolute |
|
166 |
dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the |
|
167 |
dnl default, namely "lib". |
|
168 |
acl_libdirstem=lib |
|
169 |
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
|
170 |
if test -n "$searchpath"; then |
|
171 |
acl_save_IFS="${IFS= }"; IFS=":" |
|
172 |
for searchdir in $searchpath; do |
|
173 |
if test -d "$searchdir"; then |
|
174 |
case "$searchdir" in |
|
175 |
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
|
176 |
*) searchdir=`cd "$searchdir" && pwd` |
|
177 |
case "$searchdir" in |
|
178 |
*/lib64 ) acl_libdirstem=lib64 ;; |
|
179 |
esac ;; |
|
180 |
esac |
|
181 |
fi |
|
182 |
done |
|
183 |
IFS="$acl_save_IFS" |
|
184 |
fi |
|
185 |
]) |
1 |
# nls.m4 serial 1 (gettext-0.12) |
|
2 |
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# nls.m4 serial 3 (gettext-0.15) |
|
2 |
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
dnl |
9 |
7 |
dnl This file can can be used in projects which are not available under |
10 |
8 |
dnl the GNU General Public License or the GNU Library General Public |
| … | … | @@ -19,6 +17,8 @@ dnl Authors: |
19 |
17 |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
20 |
18 |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
21 |
19 |
|
20 |
AC_PREREQ(2.50) |
|
21 |
||
22 |
22 |
AC_DEFUN([AM_NLS], |
23 |
23 |
[ |
24 |
24 |
AC_MSG_CHECKING([whether NLS is requested]) |
| … | … | @@ -29,21 +29,3 @@ AC_DEFUN([AM_NLS], |
29 |
29 |
AC_MSG_RESULT($USE_NLS) |
30 |
30 |
AC_SUBST(USE_NLS) |
31 |
31 |
]) |
32 |
||
33 |
AC_DEFUN([AM_MKINSTALLDIRS], |
|
34 |
[ |
|
35 |
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
|
36 |
dnl find the mkinstalldirs script in another subdir but $(top_srcdir). |
|
37 |
dnl Try to locate it. |
|
38 |
MKINSTALLDIRS= |
|
39 |
if test -n "$ac_aux_dir"; then |
|
40 |
case "$ac_aux_dir" in |
|
41 |
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
|
42 |
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
|
43 |
esac |
|
44 |
fi |
|
45 |
if test -z "$MKINSTALLDIRS"; then |
|
46 |
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
|
47 |
fi |
|
48 |
AC_SUBST(MKINSTALLDIRS) |
|
49 |
]) |
1 |
# po.m4 serial 3 (gettext-0.14) |
|
2 |
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# po.m4 serial 15 (gettext-0.17) |
|
2 |
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
dnl |
9 |
7 |
dnl This file can can be used in projects which are not available under |
10 |
8 |
dnl the GNU General Public License or the GNU Library General Public |
| … | … | @@ -19,14 +17,20 @@ dnl Authors: |
19 |
17 |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
20 |
18 |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
21 |
19 |
|
20 |
AC_PREREQ(2.50) |
|
21 |
||
22 |
22 |
dnl Checks for all prerequisites of the po subdirectory. |
23 |
23 |
AC_DEFUN([AM_PO_SUBDIRS], |
24 |
24 |
[ |
25 |
25 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
26 |
26 |
AC_REQUIRE([AC_PROG_INSTALL])dnl |
27 |
AC_REQUIRE([AM_ |
|
27 |
AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake |
|
28 |
28 |
AC_REQUIRE([AM_NLS])dnl |
29 |
29 |
|
30 |
dnl Release version of the gettext macros. This is used to ensure that |
|
31 |
dnl the gettext macros and po/Makefile.in.in are in sync. |
|
32 |
AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) |
|
33 |
||
30 |
34 |
dnl Perform the following tests also if --disable-nls has been given, |
31 |
35 |
dnl because they are needed for "make dist" to work. |
32 |
36 |
|
| … | … | @@ -34,59 +38,61 @@ AC_DEFUN([AM_PO_SUBDIRS], |
34 |
38 |
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. |
35 |
39 |
dnl The second test excludes FreeBSD msgfmt. |
36 |
40 |
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
37 |
[$ac_dir/$ac_word --statistics /dev/null > |
|
41 |
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && |
|
38 |
42 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
39 |
43 |
:) |
40 |
44 |
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
41 |
45 |
|
46 |
dnl Test whether it is GNU msgfmt >= 0.15. |
|
47 |
changequote(,)dnl |
|
48 |
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
|
49 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
|
50 |
*) MSGFMT_015=$MSGFMT ;; |
|
51 |
esac |
|
52 |
changequote([,])dnl |
|
53 |
AC_SUBST([MSGFMT_015]) |
|
54 |
changequote(,)dnl |
|
55 |
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
|
56 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
|
57 |
*) GMSGFMT_015=$GMSGFMT ;; |
|
58 |
esac |
|
59 |
changequote([,])dnl |
|
60 |
AC_SUBST([GMSGFMT_015]) |
|
61 |
||
42 |
62 |
dnl Search for GNU xgettext 0.12 or newer in the PATH. |
43 |
63 |
dnl The first test excludes Solaris xgettext and early GNU xgettext versions. |
44 |
64 |
dnl The second test excludes FreeBSD xgettext. |
45 |
65 |
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
46 |
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null > |
|
66 |
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && |
|
47 |
67 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
48 |
68 |
:) |
49 |
69 |
dnl Remove leftover from FreeBSD xgettext call. |
50 |
70 |
rm -f messages.po |
51 |
71 |
|
72 |
dnl Test whether it is GNU xgettext >= 0.15. |
|
73 |
changequote(,)dnl |
|
74 |
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
|
75 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
|
76 |
*) XGETTEXT_015=$XGETTEXT ;; |
|
77 |
esac |
|
78 |
changequote([,])dnl |
|
79 |
AC_SUBST([XGETTEXT_015]) |
|
80 |
||
52 |
81 |
dnl Search for GNU msgmerge 0.11 or newer in the PATH. |
53 |
82 |
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, |
54 |
[$ac_dir/$ac_word --update -q /dev/null /dev/null > |
|
83 |
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) |
|
55 |
84 |
|
56 |
dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. |
|
57 |
dnl Test whether we really found GNU msgfmt. |
|
58 |
if test "$GMSGFMT" != ":"; then |
|
59 |
dnl If it is no GNU msgfmt we define it as : so that the |
|
60 |
dnl Makefiles still can work. |
|
61 |
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
|
62 |
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
|
63 |
: ; |
|
64 |
else |
|
65 |
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
|
66 |
AC_MSG_RESULT( |
|
67 |
[found $GMSGFMT program is not GNU msgfmt; ignore it]) |
|
68 |
GMSGFMT=":" |
|
69 |
fi |
|
70 |
|
|
85 |
dnl Installation directories. |
|
86 |
dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we |
|
87 |
dnl have to define it here, so that it can be used in po/Makefile. |
|
88 |
test -n "$localedir" || localedir='${datadir}/locale' |
|
89 |
AC_SUBST([localedir]) |
|
71 |
90 |
|
72 |
dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. |
|
73 |
dnl Test whether we really found GNU xgettext. |
|
74 |
if test "$XGETTEXT" != ":"; then |
|
75 |
dnl If it is no GNU xgettext we define it as : so that the |
|
76 |
dnl Makefiles still can work. |
|
77 |
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
|
78 |
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
|
79 |
: ; |
|
80 |
else |
|
81 |
AC_MSG_RESULT( |
|
82 |
[found xgettext program is not GNU xgettext; ignore it]) |
|
83 |
XGETTEXT=":" |
|
84 |
fi |
|
85 |
dnl Remove leftover from FreeBSD xgettext call. |
|
86 |
rm -f messages.po |
|
87 |
fi |
|
91 |
dnl Support for AM_XGETTEXT_OPTION. |
|
92 |
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
|
93 |
AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) |
|
88 |
94 |
|
89 |
AC_ |
|
95 |
AC_CONFIG_COMMANDS([po-directories], [[ |
|
90 |
96 |
for ac_file in $CONFIG_FILES; do |
91 |
97 |
# Support "outfile[:infile[:infile...]]" |
92 |
98 |
case "$ac_file" in |
| … | … | @@ -106,6 +112,9 @@ AC_DEFUN([AM_PO_SUBDIRS], |
106 |
112 |
/*) top_srcdir="$ac_given_srcdir" ;; |
107 |
113 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
108 |
114 |
esac |
115 |
# Treat a directory as a PO directory if and only if it has a |
|
116 |
# POTFILES.in file. This allows packages to have multiple PO |
|
117 |
# directories under different names or in different locations. |
|
109 |
118 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
110 |
119 |
rm -f "$ac_dir/POTFILES" |
111 |
120 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| … | … | @@ -119,12 +128,13 @@ AC_DEFUN([AM_PO_SUBDIRS], |
119 |
128 |
if test -n "$OBSOLETE_ALL_LINGUAS"; then |
120 |
129 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
121 |
130 |
fi |
122 |
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
|
123 |
# Hide the ALL_LINGUAS assigment from automake. |
|
131 |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
|
132 |
# Hide the ALL_LINGUAS assigment from automake < 1.5. |
|
124 |
133 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
125 |
134 |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
126 |
135 |
else |
127 |
136 |
# The set of available languages was given in configure.in. |
137 |
# Hide the ALL_LINGUAS assigment from automake < 1.5. |
|
128 |
138 |
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
129 |
139 |
fi |
130 |
140 |
# Compute POFILES |
| … | … | @@ -194,10 +204,10 @@ AC_DEFUN([AM_PO_SUBDIRS], |
194 |
204 |
fi |
195 |
205 |
;; |
196 |
206 |
esac |
197 |
done] |
|
207 |
done]], |
|
198 |
208 |
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
199 |
209 |
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
200 |
# from automake |
|
210 |
# from automake < 1.5. |
|
201 |
211 |
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
202 |
212 |
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
203 |
213 |
LINGUAS="${LINGUAS-%UNSET%}" |
| … | … | @@ -283,7 +293,7 @@ x |
283 |
293 |
changequote([,])dnl |
284 |
294 |
|
285 |
295 |
# Set POTFILES to the value of the Makefile variable POTFILES. |
286 |
sed_x_POTFILES= |
|
296 |
sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` |
|
287 |
297 |
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` |
288 |
298 |
# Compute POTFILES_DEPS as |
289 |
299 |
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) |
| … | … | @@ -298,14 +308,14 @@ changequote([,])dnl |
298 |
308 |
fi |
299 |
309 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
300 |
310 |
# The LINGUAS file contains the set of available languages. |
301 |
ALL_LINGUAS_=`sed -e "/^#/d" |
|
311 |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
|
302 |
312 |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
303 |
313 |
else |
304 |
314 |
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. |
305 |
sed_x_LINGUAS= |
|
315 |
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` |
|
306 |
316 |
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` |
307 |
317 |
fi |
308 |
# Hide the ALL_LINGUAS assigment from automake |
|
318 |
# Hide the ALL_LINGUAS assigment from automake < 1.5. |
|
309 |
319 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
310 |
320 |
# Compute POFILES |
311 |
321 |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| … | … | @@ -348,7 +358,7 @@ changequote([,])dnl |
348 |
358 |
QMFILES="$QMFILES $srcdirpre$lang.qm" |
349 |
359 |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
350 |
360 |
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" |
351 |
frobbedlang=`echo $lang | sed -e 's/_/-/g' |
|
361 |
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` |
|
352 |
362 |
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" |
353 |
363 |
done |
354 |
364 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
| … | … | @@ -389,7 +399,7 @@ changequote([,])dnl |
389 |
399 |
QTCATALOGS="$QTCATALOGS $lang.qm" |
390 |
400 |
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
391 |
401 |
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" |
392 |
frobbedlang=`echo $lang | sed -e 's/_/-/g' |
|
402 |
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` |
|
393 |
403 |
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" |
394 |
404 |
done |
395 |
405 |
fi |
| … | … | @@ -409,7 +419,7 @@ EOF |
409 |
419 |
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then |
410 |
420 |
# Add dependencies that cannot be formulated as a simple suffix rule. |
411 |
421 |
for lang in $ALL_LINGUAS; do |
412 |
frobbedlang=`echo $lang | sed -e 's/_/-/g' |
|
422 |
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` |
|
413 |
423 |
cat >> "$ac_file.tmp" <<EOF |
414 |
424 |
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po |
415 |
425 |
@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ |
| … | … | @@ -424,3 +434,16 @@ EOF |
424 |
434 |
fi |
425 |
435 |
mv "$ac_file.tmp" "$ac_file" |
426 |
436 |
]) |
437 |
||
438 |
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. |
|
439 |
AC_DEFUN([AM_XGETTEXT_OPTION_INIT], |
|
440 |
[ |
|
441 |
XGETTEXT_EXTRA_OPTIONS= |
|
442 |
]) |
|
443 |
||
444 |
dnl Registers an option to be passed to xgettext in the po subdirectory. |
|
445 |
AC_DEFUN([AM_XGETTEXT_OPTION], |
|
446 |
[ |
|
447 |
AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) |
|
448 |
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" |
|
449 |
]) |
Up to file-list m4/progtest.m4:
1 |
# progtest.m4 serial 3 (gettext-0.12) |
|
2 |
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software, distributed under the terms of the GNU |
|
4 |
dnl General Public License. As a special exception to the GNU General |
|
5 |
dnl Public License, this file may be distributed as part of a program |
|
6 |
dnl that contains a configuration script generated by Autoconf, under |
|
7 |
dnl the same distribution terms as the rest of that program. |
|
1 |
# progtest.m4 serial 4 (gettext-0.14.2) |
|
2 |
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. |
|
3 |
dnl This file is free software; the Free Software Foundation |
|
4 |
dnl gives unlimited permission to copy and/or distribute it, |
|
5 |
dnl with or without modifications, as long as this notice is preserved. |
|
8 |
6 |
dnl |
9 |
7 |
dnl This file can can be used in projects which are not available under |
10 |
8 |
dnl the GNU General Public License or the GNU Library General Public |
| … | … | @@ -18,6 +16,8 @@ dnl They are *not* in the public domain. |
18 |
16 |
dnl Authors: |
19 |
17 |
dnl Ulrich Drepper <drepper@cygnus.com>, 1996. |
20 |
18 |
|
19 |
AC_PREREQ(2.50) |
|
20 |
||
21 |
21 |
# Search path for a program which passes the given test. |
22 |
22 |
|
23 |
23 |
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
| … | … | @@ -67,6 +67,7 @@ AC_CACHE_VAL(ac_cv_path_$1, |
67 |
67 |
test -z "$ac_dir" && ac_dir=. |
68 |
68 |
for ac_exec_ext in '' $ac_executable_extensions; do |
69 |
69 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
70 |
echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD |
|
70 |
71 |
if [$3]; then |
71 |
72 |
ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" |
72 |
73 |
break 2 |
1 |
2009-01-28 gettextize <bug-gnu-gettext@gnu.org> |
|
2 |
||
3 |
* Makefile.in.in: Upgrade to gettext-0.17. |
|
4 |
* Rules-quot: New file, from gettext-0.17. |
|
5 |
||
1 |
6 |
2008-09-23 gettextize <bug-gnu-gettext@gnu.org> |
2 |
7 |
|
3 |
8 |
* Makefile.in.in: New file, from gettext-0.14.1. |
Up to file-list po/Makefile.in.in:
1 |
1 |
# Makefile for PO directory in any package using GNU gettext. |
2 |
# Copyright (C) 1995-1997, 2000-200 |
|
2 |
# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu> |
|
3 |
3 |
# |
4 |
4 |
# This file can be copied and used freely without restrictions. It can |
5 |
5 |
# be used in projects which are not available under the GNU General Public |
8 |
8 |
# Please note that the actual code of GNU gettext is covered by the GNU |
9 |
9 |
# General Public License and is *not* in the public domain. |
10 |
10 |
# |
11 |
# Origin: gettext-0.1 |
|
11 |
# Origin: gettext-0.17 |
|
12 |
GETTEXT_MACRO_VERSION = 0.17 |
|
12 |
13 |
|
13 |
14 |
PACKAGE = @PACKAGE@ |
14 |
15 |
VERSION = @VERSION@ |
16 |
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
|
15 |
17 |
|
16 |
18 |
SHELL = /bin/sh |
17 |
19 |
@SET_MAKE@ |
| … | … | @@ -22,18 +24,38 @@ VPATH = @srcdir@ |
22 |
24 |
|
23 |
25 |
prefix = @prefix@ |
24 |
26 |
exec_prefix = @exec_prefix@ |
27 |
datarootdir = @datarootdir@ |
|
25 |
28 |
datadir = @datadir@ |
26 |
localedir = |
|
29 |
localedir = @localedir@ |
|
27 |
30 |
gettextsrcdir = $(datadir)/gettext/po |
28 |
31 |
|
29 |
32 |
INSTALL = @INSTALL@ |
30 |
33 |
INSTALL_DATA = @INSTALL_DATA@ |
31 |
MKINSTALLDIRS = @MKINSTALLDIRS@ |
|
32 |
mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) |
|
33 |
34 |
|
34 |
GMSGFMT = @GMSGFMT@ |
|
35 |
MSGFMT = @MSGFMT@ |
|
36 |
XGETTEXT = @XGETTEXT@ |
|
35 |
# We use $(mkdir_p). |
|
36 |
# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as |
|
37 |
# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, |
|
38 |
# @install_sh@ does not start with $(SHELL), so we add it. |
|
39 |
# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined |
|
40 |
# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake |
|
41 |
# versions, $(mkinstalldirs) and $(install_sh) are unused. |
|
42 |
mkinstalldirs = $(SHELL) @install_sh@ -d |
|
43 |
install_sh = $(SHELL) @install_sh@ |
|
44 |
MKDIR_P = @MKDIR_P@ |
|
45 |
mkdir_p = @mkdir_p@ |
|
46 |
||
47 |
GMSGFMT_ = @GMSGFMT@ |
|
48 |
GMSGFMT_no = @GMSGFMT@ |
|
49 |
GMSGFMT_yes = @GMSGFMT_015@ |
|
50 |
GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) |
|
51 |
MSGFMT_ = @MSGFMT@ |
|
52 |
MSGFMT_no = @MSGFMT@ |
|
53 |
MSGFMT_yes = @MSGFMT_015@ |
|
54 |
MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) |
|
55 |
XGETTEXT_ = @XGETTEXT@ |
|
56 |
XGETTEXT_no = @XGETTEXT@ |
|
57 |
XGETTEXT_yes = @XGETTEXT_015@ |
|
58 |
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) |
|
37 |
59 |
MSGMERGE = msgmerge |
38 |
60 |
MSGMERGE_UPDATE = @MSGMERGE@ --update |
39 |
61 |
MSGINIT = msginit |
| … | … | @@ -46,7 +68,7 @@ UPDATEPOFILES = @UPDATEPOFILES@ |
46 |
68 |
DUMMYPOFILES = @DUMMYPOFILES@ |
47 |
69 |
DISTFILES.common = Makefile.in.in remove-potcdate.sin \ |
48 |
70 |
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) |
49 |
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in |
|
71 |
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ |
|
50 |
72 |
$(POFILES) $(GMOFILES) \ |
51 |
73 |
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) |
52 |
74 |
|
| … | … | @@ -74,11 +96,24 @@ CATALOGS = @CATALOGS@ |
74 |
96 |
mv t-$@ $@ |
75 |
97 |
|
76 |
98 |
|
77 |
all: |
|
99 |
all: check-macro-version all-@USE_NLS@ |
|
78 |
100 |
|
79 |
101 |
all-yes: stamp-po |
80 |
102 |
all-no: |
81 |
103 |
|
104 |
# Ensure that the gettext macros and this Makefile.in.in are in sync. |
|
105 |
check-macro-version: |
|
106 |
@test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ |
|
107 |
|| { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ |
|
108 |
exit 1; \ |
|
109 |
} |
|
110 |
||
111 |
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no |
|
112 |
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because |
|
113 |
# we don't want to bother translators with empty POT files). We assume that |
|
114 |
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. |
|
115 |
# In this case, stamp-po is a nop (i.e. a phony target). |
|
116 |
||
82 |
117 |
# stamp-po is a timestamp denoting the last time at which the CATALOGS have |
83 |
118 |
# been loosely updated. Its purpose is that when a developer or translator |
84 |
119 |
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, |
| … | … | @@ -88,10 +123,13 @@ all-no: |
88 |
123 |
# $(POFILES) has been designed to not touch files that don't need to be |
89 |
124 |
# changed. |
90 |
125 |
stamp-po: $(srcdir)/$(DOMAIN).pot |
91 |
test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) |
|
92 |
@echo "touch stamp-po" |
|
93 |
@echo timestamp > stamp-poT |
|
94 |
@mv stamp-poT stamp-po |
|
126 |
test ! -f $(srcdir)/$(DOMAIN).pot || \ |
|
127 |
test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) |
|
128 |
@test ! -f $(srcdir)/$(DOMAIN).pot || { \ |
|
129 |
echo "touch stamp-po" && \ |
|
130 |
echo timestamp > stamp-poT && \ |
|
131 |
mv stamp-poT stamp-po; \ |
|
132 |
} |
|
95 |
133 |
|
96 |
134 |
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', |
97 |
135 |
# otherwise packages like GCC can not be built if only parts of the source |
| … | … | @@ -100,11 +138,34 @@ stamp-po: $(srcdir)/$(DOMAIN).pot |
100 |
138 |
# This target rebuilds $(DOMAIN).pot; it is an expensive operation. |
101 |
139 |
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. |
102 |
140 |
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed |
103 |
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ |
|
104 |
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ |
|
105 |
--files-from=$(srcdir)/POTFILES.in \ |
|
106 |
--copyright-holder='$(COPYRIGHT_HOLDER)' \ |
|
107 |
|
|
141 |
if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ |
|
142 |
package_gnu='GNU '; \ |
|
143 |
else \ |
|
144 |
package_gnu=''; \ |
|
145 |
fi; \ |
|
146 |
if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ |
|
147 |
msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ |
|
148 |
else \ |
|
149 |
msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ |
|
150 |
fi; \ |
|
151 |
case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ |
|
152 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ |
|
153 |
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ |
|
154 |
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ |
|
155 |
--files-from=$(srcdir)/POTFILES.in \ |
|
156 |
--copyright-holder='$(COPYRIGHT_HOLDER)' \ |
|
157 |
--msgid-bugs-address="$$msgid_bugs_address" \ |
|
158 |
;; \ |
|
159 |
*) \ |
|
160 |
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ |
|
161 |
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ |
|
162 |
--files-from=$(srcdir)/POTFILES.in \ |
|
163 |
--copyright-holder='$(COPYRIGHT_HOLDER)' \ |
|
164 |
--package-name="$${package_gnu}@PACKAGE@" \ |
|
165 |
--package-version='@VERSION@' \ |
|
166 |
--msgid-bugs-address="$$msgid_bugs_address" \ |
|
167 |
;; \ |
|
168 |
esac |
|
108 |
169 |
test ! -f $(DOMAIN).po || { \ |
109 |
170 |
if test -f $(srcdir)/$(DOMAIN).pot; then \ |
110 |
171 |
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ |
| … | … | @@ -143,7 +204,7 @@ install: install-exec install-data |
143 |
204 |
install-exec: |
144 |
205 |
install-data: install-data-@USE_NLS@ |
145 |
206 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
146 |
$(mk |
|
207 |
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ |
|
147 |
208 |
for file in $(DISTFILES.common) Makevars.template; do \ |
148 |
209 |
$(INSTALL_DATA) $(srcdir)/$$file \ |
149 |
210 |
$(DESTDIR)$(gettextsrcdir)/$$file; \ |
| … | … | @@ -156,13 +217,13 @@ install-data: install-data-@USE_NLS@ |
156 |
217 |
fi |
157 |
218 |
install-data-no: all |
158 |
219 |
install-data-yes: all |
159 |
$(mk |
|
220 |
$(mkdir_p) $(DESTDIR)$(datadir) |
|
160 |
221 |
@catalogs='$(CATALOGS)'; \ |
161 |
222 |
for cat in $$catalogs; do \ |
162 |
223 |
cat=`basename $$cat`; \ |
163 |
224 |
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
164 |
225 |
dir=$(localedir)/$$lang/LC_MESSAGES; \ |
165 |
$(mk |
|
226 |
$(mkdir_p) $(DESTDIR)$$dir; \ |
|
166 |
227 |
if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ |
167 |
228 |
$(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ |
168 |
229 |
echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ |
| … | … | @@ -202,19 +263,19 @@ installdirs: installdirs-exec installdir |
202 |
263 |
installdirs-exec: |
203 |
264 |
installdirs-data: installdirs-data-@USE_NLS@ |
204 |
265 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
205 |
$(mk |
|
266 |
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ |
|
206 |
267 |
else \ |
207 |
268 |
: ; \ |
208 |
269 |
fi |
209 |
270 |
installdirs-data-no: |
210 |
271 |
installdirs-data-yes: |
211 |
$(mk |
|
272 |
$(mkdir_p) $(DESTDIR)$(datadir) |
|
212 |
273 |
@catalogs='$(CATALOGS)'; \ |
213 |
274 |
for cat in $$catalogs; do \ |
214 |
275 |
cat=`basename $$cat`; \ |
215 |
276 |
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
216 |
277 |
dir=$(localedir)/$$lang/LC_MESSAGES; \ |
217 |
$(mk |
|
278 |
$(mkdir_p) $(DESTDIR)$$dir; \ |
|
218 |
279 |
for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ |
219 |
280 |
if test -n "$$lc"; then \ |
220 |
281 |
if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ |
| … | … | @@ -289,11 +350,14 @@ dist distdir: |
289 |
350 |
$(MAKE) update-po |
290 |
351 |
@$(MAKE) dist2 |
291 |
352 |
# This is a separate target because 'update-po' must be executed before. |
292 |
dist2: |
|
353 |
dist2: stamp-po $(DISTFILES) |
|
293 |
354 |
dists="$(DISTFILES)"; \ |
294 |
355 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
295 |
356 |
dists="$$dists Makevars.template"; \ |
296 |
357 |
fi; \ |
358 |
if test -f $(srcdir)/$(DOMAIN).pot; then \ |
|
359 |
dists="$$dists $(DOMAIN).pot stamp-po"; \ |
|
360 |
fi; \ |
|
297 |
361 |
if test -f $(srcdir)/ChangeLog; then \ |
298 |
362 |
dists="$$dists ChangeLog"; \ |
299 |
363 |
fi; \ |
| … | … | @@ -305,9 +369,9 @@ dist2: $(DISTFILES) |
305 |
369 |
if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ |
306 |
370 |
for file in $$dists; do \ |
307 |
371 |
if test -f $$file; then \ |
308 |
cp -p $$file $(distdir) |
|
372 |
cp -p $$file $(distdir) || exit 1; \ |
|
309 |
373 |
else \ |
310 |
cp -p $(srcdir)/$$file $(distdir) |
|
374 |
cp -p $(srcdir)/$$file $(distdir) || exit 1; \ |
|
311 |
375 |
fi; \ |
312 |
376 |
done |
313 |
377 |
|
| … | … | @@ -354,10 +418,9 @@ update-po: Makefile |
354 |
418 |
update-gmo: Makefile $(GMOFILES) |
355 |
419 |
@: |
356 |
420 |
|
357 |
Makefile: Makefile.in.in |
|
421 |
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ |
|
358 |
422 |
cd $(top_builddir) \ |
359 |
&& CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ |
|
360 |
$(SHELL) ./config.status |
|
423 |
&& $(SHELL) ./config.status $(subdir)/$@.in po-directories |
|
361 |
424 |
|
362 |
425 |
force: |
363 |
426 |
