2 # Source file to generate "./configure" to prepare package for compilation
3 # Copyright (C) 2002-2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 AC_INIT(src/libcaptive/Makefile-libcaptive.am)
20 dnl 2.53 for AM_GLIB_GNU_GETTEXT:
22 AM_INIT_AUTOMAKE(captive,0.9.6cvs)
23 AM_CONFIG_HEADER(config.h)
25 dnl Call AC_PROG_CC before AC_ISC_POSIX.
26 AC_PROG_CC(gcc3 gcc-3.0 gcc cc)
30 #error "GCC version 3.0+ required at least for ReactOS anonymous unions"
32 ],,[AC_MSG_ERROR([Captive requires GCC version 3.0+.])])
33 dnl Prevent "AC_TRY_COMPILE was called before AC_ISC_POSIX":
41 dnl gettext localization.
42 dnl Use simpler AM_GLIB_GNU_GETTEXT instead of AM_GNU_GETTEXT
43 dnl as we depend on glib and glib requires system installed gettext anyway.
44 dnl http://lists.gnome.org/archives/gtk-devel-list/2003-April/msg00066.html
45 dnl Special 'GETTEXT_PACKAGE' is required by glib gettext.
47 GETTEXT_PACKAGE="$PACKAGE"
48 AC_SUBST(GETTEXT_PACKAGE)
52 dnl AM_CONDITIONAL needs to be here explicitely for doc/apiref/Makefile rebuild
53 AM_CONDITIONAL(ENABLE_GTK_DOC,[test x$enable_gtk_doc = xyes])
54 AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL,[test -n "$LIBTOOL"])
56 dnl Do not discard 'CFLAGS' settings as they may have been passed us by rpmbuild(8)
58 dnl Define MAINTAINER_MODE in config.h.
59 if test "$USE_MAINTAINER_MODE" = "yes";then
60 AC_DEFINE(MAINTAINER_MODE,,[Turn even some software behaviour according to MAINTAINER_MODE.])
61 CFLAGS="$CFLAGS -ggdb3 -Wall -Wstrict-prototypes -Wsign-compare" ## FIXME: fix all sources: -Wsign-compare
63 dnl Some Makefiles use additional tests etc.
64 AM_CONDITIONAL(MAINTAINER_MODE,[test "$USE_MAINTAINER_MODE" = "yes"])
67 AC_ARG_ENABLE(man-pages,
68 [ --enable-man-pages=no/yes/auto pod2man(1) required for man pages (def.=yes)],,enable_man_pages=yes)
69 AC_ARG_ENABLE(sbin-mountdir,
70 [ --enable-sbin-mountdir=DIR mount(8) 'mount.captive' directory (def.=/sbin)],,
71 [ enable_sbin_mountdir="/sbin" ])
72 AC_ARG_ENABLE(sbin-mount-fs,
73 [ --enable-sbin-mount-fs=FS1:FS2 sbin-mount pre-installed symlinks (def.=ntfs:fastfat:cdfs:ext2fsd)],,
74 [ enable_sbin_mount_fs="ntfs:fastfat:cdfs:ext2fsd" ])
75 AC_ARG_ENABLE(sandbox-setuid,
76 [ --enable-sandbox-setuid=USER non-privileged user for captive-sandbox-server (def.=captive)],
77 [ CAPTIVE_SANDBOX_SETUID="$enableval" ],[ CAPTIVE_SANDBOX_SETUID="captive" ])
78 AC_ARG_ENABLE(sandbox-setgid,
79 [ --enable-sandbox-setgid=GROUP non-privileged group for captive-sandbox-server (def.=captive)],
80 [ CAPTIVE_SANDBOX_SETGID="$enableval" ],[ CAPTIVE_SANDBOX_SETGID="captive" ])
81 AC_ARG_ENABLE(sandbox-chroot,
82 [ --enable-sandbox-chroot=DIR root-owned directory for captive-sandbox-server (def.=/var/lib/captive)],
83 [ CAPTIVE_SANDBOX_CHROOT="$enableval" ],[ CAPTIVE_SANDBOX_CHROOT="/var/lib/captive" ])
84 AC_ARG_ENABLE(bug-replay,
85 [ --enable-bug-replay=no/yes/auto compile debugging tool (def.=auto)],,enable_bug_replay=auto)
87 [ --enable-lufs=no/yes/auto compile LUFS filesystem module (def.=auto)],,enable_lufs=auto)
88 AC_ARG_ENABLE(install-pkg,
89 [ --enable-install-pkg=no/yes/auto compile installation utils (def.=auto)],,enable_install_pkg=auto)
92 # AC_ARG_ENABLE(sbin-mountdir,[--enable-sbin-mountdir=DIR],,[enable_sbin_mountdir="/sbin"])
93 AM_CONDITIONAL(ENABLE_SBIN_MOUNT,[test "$enable_sbin_mount" != "no"])
94 AC_SUBST(enable_sbin_mountdir)
96 # AC_ARG_ENABLE(sbin-mount-fs,[--enable-sbin-mount-fs=FS1:FS2],,[enable_sbin_mount_fs="ntfs:fastfat:cdfs:ext2fsd"])
97 AC_SUBST(enable_sbin_mount_fs)
99 # AC_ARG_ENABLE(sandbox-setuid,[--enable-sandbox-setuid=USER],,[CAPTIVE_SANDBOX_SETUID="captive"])
100 AC_DEFINE_UNQUOTED(CAPTIVE_SANDBOX_SETUID,"$CAPTIVE_SANDBOX_SETUID",
101 [non-privileged user for captive-sandbox-server])
103 # AC_ARG_ENABLE(sandbox-setgid,[--enable-sandbox-setgid=GROUP],,[CAPTIVE_SANDBOX_SETGID="captive"])
104 AC_DEFINE_UNQUOTED(CAPTIVE_SANDBOX_SETGID,"$CAPTIVE_SANDBOX_SETGID",
105 [non-privileged group for captive-sandbox-server])
107 # AC_ARG_ENABLE(sandbox-chroot,[--enable-sandbox-chroot=DIR],,[CAPTIVE_SANDBOX_CHROOT="/var/lib/captive"])
108 AC_DEFINE_UNQUOTED(CAPTIVE_SANDBOX_CHROOT,"$CAPTIVE_SANDBOX_CHROOT",
109 [root-owned directory for captive-sandbox-server])
110 AC_SUBST(CAPTIVE_SANDBOX_CHROOT)
112 dnl Permit 'if NEVER' for Makefile.am-s; symbol 'FALSE' forbidden by automake
113 AM_CONDITIONAL(NEVER,false)
116 AC_PATH_PROGS(PERL,perl5 perl)
117 if test '!' -f ./src/libcaptive/ke/exports.c -a -z "$PERL";then
118 AC_MSG_ERROR([perl(1) required as './src/libcaptive/ke/exports.c' is not found.])
120 AM_CONDITIONAL(HAVE_PERL,test -n "$PERL")
123 AC_PATH_PROGS(POD2MAN,pod2man)
124 AM_CONDITIONAL(HAVE_POD2MAN,[ test -n "$POD2MAN" ])
125 if test x$enable_man_pages = xyes;then
126 if test -z "$POD2MAN";then
127 AC_MSG_ERROR([captive requires pod2man(1) for man pages; try --disable-man-pages.])
129 if test -z "$PERL";then
130 AC_MSG_ERROR([captive requires perl(1) for man pages; try --disable-man-pages.])
132 elif test x$enable_man_pages != xno;then
133 if test -z "$POD2MAN";then
134 AC_MSG_WARN([captive requires pod2man(1) for man pages by --enable-man-pages; mans will not be installed.])
136 if test -z "$PERL";then
137 AC_MSG_WARN([captive requires perl(1) for man pages by --enable-man-pages; mans will not be installed.])
140 AM_CONDITIONAL(ENABLE_MAN_PAGES,[ test x$enable_man_pages != xno -a -n "$POD2MAN" -a -n "$PERL" ])
142 dnl Separate 'acconfig.h' is no longer recommended by autoconf
144 #ifndef _CAPTIVE_CONFIG_H
145 #define _CAPTIVE_CONFIG_H 1
148 /* Do not place any stuff to AH_TOP as some of its includes
149 * would discard the effect of _FILE_OFFSET_BITS by AC_SYS_LARGEFILE.
153 /* <libintl.h> is taken from "$(top_srcdir)/intl" if system doesn't provide intl */
154 # include <libintl.h>
156 # define _(String) dgettext (PACKAGE,String)
158 # define _(String) gettext (String)
159 #endif /* LIBCAPTIVE */
161 # define N_(String) gettext_noop (String)
163 # define N_(String) (String)
165 #else /* !ENABLE_NLS */
166 /* Stubs that do something close enough. */
167 # define textdomain(String) (String)
168 # define gettext(String) (String)
169 # define dgettext(Domain,Message) (Message)
170 # define dcgettext(Domain,Message,Type) (Message)
171 # define bindtextdomain(Domain,Directory) (Domain)
172 # define _(String) (String)
173 # define N_(String) (String)
174 #endif /* !ENABLE_NLS */
176 #include <glib/gtypes.h> /* for 'gchar' */
177 #define G_LOG_DOMAIN ((const gchar *)"Captive")
179 /* Ensure we have proper -I options: */
180 #if defined(CAPTIVE_USE_GNOME_VFS_MODULE) || defined(CAPTIVE_USE_GNOME_VFS)
181 #ifndef HAVE_GNOME_VFS_READ_ENTIRE_FILE
182 #include <libgnomevfs/gnome-vfs-result.h>
183 GnomeVFSResult gnome_vfs_read_entire_file(const char *uri,int *file_size,char **file_contents);
187 /* Supplemental definitions not possible in this file. */
189 #include "captive/config2.h"
192 #endif /* !_CAPTIVE_CONFIG_H */
195 AM_PATH_GLIB_2_0(,,[AC_MSG_ERROR([Captive requires glib-2.0 library.])],[gmodule gobject])
196 dnl Force glib for the whole package
197 CFLAGS="$CFLAGS $GLIB_CFLAGS"
198 LIBS="$LIBS $GLIB_LIBS"
201 AC_CHECK_LIB(popt,poptParseArgvString,[POPT_LIBS="-lpopt"],[AC_MSG_ERROR([Captive requires popt library.])])
204 AC_ARG_WITH(readline,[ --with-readline=[no/yes/auto] clients with line editing (def.=auto)],,with_readline=auto)
205 AC_CHECK_HEADERS(readline/history.h)
206 dnl Check for libraries, if needed by configuration options.
207 if test "$with_readline" != "no"
209 if test -d "/usr/lib/termcap"
211 READLINE_LDFLAGS="$READLINE_LDFLAGS -L/usr/lib/termcap"
213 have_libreadline=false
215 for need in "" termcap ncurses; do
216 if test "x$need" != "x"
218 captive_save_LIBS="$LIBS"
219 AC_CHECK_LIB($need,main,,
220 [ need_failed="$need_failed $need"
223 LIBS="$captive_save_LIBS"
228 dnl Prevent AC_CHECK_LIB() here as it would _cache_ the value ignoring
229 dnl our ever-changing "additiona libraries" parameter
230 captive_save_LIBS="$LIBS"
231 LIBS="-lreadline $lneed $READLINE_LIBS"
232 AC_TRY_LINK(,[ main() ],
233 [ have_libreadline=true
234 READLINE_LIBS="$LIBS" ])
235 LIBS="$captive_save_LIBS"
243 AC_DEFINE(HAVE_LIBREADLINE,,[Use functions from libreadline?])
244 AC_CHECK_LIB(readline,add_history,
245 AC_DEFINE(HAVE_ADD_HISTORY,,[Use 'history' extension of libreadline?]),,
248 for need in $need_failed; do
249 AC_MSG_WARN(captive recommends $need library as your readline library
252 if test "$with_readline" = "yes"
254 AC_MSG_ERROR([captive did not find the requested readline library for its client line editing capability.])
256 AC_MSG_WARN([captive recommends readline library for its client line editing capability.])
260 AC_SUBST(READLINE_LIBS)
261 AC_SUBST(READLINE_LDFLAGS)
263 PKG_CHECK_MODULES(GNOME_VFS_MODULE,gnome-vfs-module-2.0)
264 GNOME_VFS_MODULE_CFLAGS="$GNOME_VFS_MODULE_CFLAGS -DCAPTIVE_USE_GNOME_VFS_MODULE=1"
265 AC_SUBST(GNOME_VFS_MODULE_CFLAGS)
266 AC_SUBST(GNOME_VFS_MODULE_LIBS)
267 PKG_CHECK_MODULES(GNOME_VFS,gnome-vfs-2.0)
268 GNOME_VFS_CFLAGS="$GNOME_VFS_CFLAGS -DCAPTIVE_USE_GNOME_VFS=1"
269 AC_SUBST(GNOME_VFS_CFLAGS)
270 AC_SUBST(GNOME_VFS_LIBS)
272 # AC_ARG_ENABLE(bug-replay,[--enable-bug-replay=[no/yes/auto]],,enable_bug_replay=auto)
273 dnl Check for 2.5.9 for: http://bugzilla.gnome.org/show_bug.cgi?id=117702
274 dnl Check the version - impossible to reliably check the missing feature.
275 PKG_CHECK_MODULES(LIBXML,libxml-2.0 >= 2.5.9,[ have_libxml_buffering=true ],[
276 dnl Disable bug-replay(1) build if not met; --bug-pathname would be still OK.
277 PKG_CHECK_MODULES(LIBXML,libxml-2.0,[ have_libxml_buffering=false ])
279 dnl We also condition 'HAVE_LIBXML_XMLREADER_H' by 'HAVE_LIBXML_BUFFERING'
280 dnl as we have no use for xmlreader without working libxml buffering of 2.5.9.
281 AM_CONDITIONAL(ENABLE_BUG_REPLAY,[$have_libxml_buffering && test x$enable_bug_replay != xno])
282 if $have_libxml_buffering;then
283 AC_DEFINE(HAVE_LIBXML_BUFFERING,,[libxml2 correctly reads textnodes by its xmlTextReader.])
285 if test x$enable_bug_replay = xyes;then
286 AC_MSG_ERROR([captive require libxml2 at least 2.5.9 for --enable-bug-replay feature.])
287 elif test x$enable_bug_replay != xno;then
288 AC_MSG_WARN([libxml2 at least 2.5.9 required --enable-bug-replay feature; disabled now.])
291 AC_SUBST(LIBXML_CFLAGS)
292 AC_SUBST(LIBXML_LIBS)
294 PKG_CHECK_MODULES(OPENSSL,openssl,,[
295 dnl At least Debian-3.0r1 has openssl but without its .pc module.
296 AC_CHECK_LIB(crypto,MD5,[
298 OPENSSL_LIBS="-lcrypto"
299 ],[AC_MSG_ERROR([Captive requires crypto library (of openssl).])])
301 AC_SUBST(OPENSSL_CFLAGS)
302 AC_SUBST(OPENSSL_LIBS)
304 # AC_ARG_ENABLE(lufs,[--enable-lufs=[no/yes/auto]],,enable_lufs=auto)
305 if test x$enable_lufs != no;then
306 have_lufs_includes=true
307 dnl If ACTION-IF-NOT-FOUND is given, it is executed when one of the header
308 dnl files is not found.
309 AC_CHECK_HEADERS(lufs/fs.h lufs/proto.h,,[ have_lufs_includes=false ])
310 if test x$have_lufs_includes = xfalse;then
311 if test x$enable_lufs = xyes;then
312 AC_MSG_ERROR([LUFS client was requested (--enable-lufs) but no LUFS include files were found. Install 'lufs-*-*captive*' package.])
314 AC_MSG_WARN([LUFS client not being compiled as no LUFS include files were found. Install 'lufs-*-*captive*' package.])
317 AC_CHECK_TYPES([struct lufs_sbattr],,[
318 dnl FIXME: Include 'lufs' version when 'lufs_sbattr' gets integrated:
319 if $have_lufs_includes && test x$enable_lufs = xyes;then
320 AC_MSG_ERROR([Although LUFS include files were found they are too old. You may also use --enable-lufs=auto.])
322 AC_MSG_WARN([Although LUFS include files were found they are too old. df(1) will not show available NTFS disk space.])
324 ],[#include <lufs/proto.h>])
326 AM_CONDITIONAL(ENABLE_LUFS,[ $have_lufs_includes && test x$enable_lufs != no ])
328 dnl for $(top_srcdir)/src/libcaptive/sandbox/split-sandbox.c
329 AM_PATH_LINC(,,[AC_MSG_ERROR([Captive requires linc library used by ORBit.])])
331 dnl for $(top_srcdir)/src/libcaptive/client/
332 dnl Do not use '[client server]' as $4 to prevent: configure: test: too many arguments
333 dnl - currently this argument is not used by 'orbit2-config' in any way anyway
334 AM_PATH_ORBIT2(,,[AC_MSG_ERROR([Captive requires ORBit library.])])
336 # AC_ARG_ENABLE(install-pkg,[--enable-install-pkg=[no/yes/auto]],,enable_install_pkg=auto)
338 ./src/install/acquire/ui-gnome-interface.c
339 ./src/install/acquire/ui-gnome-interface.h
340 ./src/install/acquire/ui-gnome-callbacks.h
341 ./src/install/acquire/ui-gnome-support.c
342 ./src/install/acquire/ui-gnome-support.h
343 ],[$enable_install_pkg],[
344 AC_CHECK_LIB(ntfs,ntfs_mount,[
345 LIBNTFS_LIBS="-lntfs"
347 captive_save_CPPFLAGS="$CPPFLAGS"
348 CPPFLAGS="$CPPFLAGS $LIBXML_CFLAGS"
349 AC_CHECK_HEADERS(libxml/xmlreader.h,
351 [ AC_MSG_WARN([Captive requires libxml >= 2.4.29 for --enable-install-pkg.]) ])
352 CPPFLAGS="$captive_save_CPPFLAGS"
355 AC_SUBST(GNOMEUI_CFLAGS)
356 AC_SUBST(GNOMEUI_LIBS)
357 AC_SUBST(LIBNTFS_LIBS)
358 dnl Do not: AM_CONDITIONAL(HAVE_LIBNTFS,[ test -n "$LIBNTFS_LIBS" ])
359 dnl as we do not need it as we are conditioned by ENABLE_INSTALL_PKG
360 AM_CONDITIONAL(HAVE_GLADE_WRITESOURCE,[ test "x$PATH_GLADE" != "x" ])
361 dnl Do not: AM_CONDITIONAL(BUILD_GLADESRC,[ test "xyes" = "x$BUILD_GLADESRC" ])
362 dnl as we do not need it as we are conditioned by ENABLE_INSTALL_PKG
364 if test "x$BUILD_GLADESRC_TRUE" = "x"
366 AC_CHECK_LIB(Xi,XOpenDevice,GNOME_ADDON_LIBS="$GNOME_ADDON_LIBS -lXi")
368 AC_SUBST(GNOME_ADDON_LIBS)
369 dnl $BUILD_GLADESRC is already conditioned by $enable_install_pkg by GLADE_W_INIT()
370 AM_CONDITIONAL(ENABLE_INSTALL_PKG,[ test "xyes" = "x$BUILD_GLADESRC" ])
372 dnl Do not use AC_REPLACE_FUNCS() as we need to link it selectively:
373 GNOME_VFS_READ_ENTIRE_FILE_O=""
374 captive_save_CFLAGS="$CFLAGS"
375 captive_save_LIBS="$LIBS"
376 CFLAGS="$CFLAGS $GNOME_VFS_MODULE_CFLAGS"
377 LIBS="$LIBS $GNOME_VFS_MODULE_LIBS"
378 AC_CHECK_FUNCS(gnome_vfs_read_entire_file,,
379 [ GNOME_VFS_READ_ENTIRE_FILE_O='gnome_vfs_read_entire_file.$(OBJEXT)' ])
380 CFLAGS="$captive_save_CFLAGS"
381 LIBS="$captive_save_LIBS"
382 AC_SUBST(GNOME_VFS_READ_ENTIRE_FILE_O)
387 dnl "Makefile" output files MUST have pathnames incl./excl. "./" prefix as specified!
388 dnl FIXME: Why the rule above was written here?
391 ./src/libcaptive/captive.pod.pl
392 ./src/libcaptive/client/options.pod.pl
393 ./src/client/cmdline/captive-cmdline.pod.pl
394 ./src/client/lufs/lufs-captivefs.pod.pl
395 ./src/client/lufs/mount.captive.pod.pl
396 ./src/client/lufs/mount.captive
397 ./src/client/sandbox-server/captive-sandbox-server.pod.pl
398 ./src/install/fstab/captive-install-fstab.pod.pl
399 ./src/install/acquire/captive-install-acquire.pod.pl
400 ./src/client/gnomevfs/captive.conf
407 ./src/libcaptive/Makefile
408 ./src/libcaptive/include/Makefile
409 ./src/libcaptive/include/captive/Makefile
410 ./src/libcaptive/include/reactos/Makefile
411 ./src/libcaptive/include/reactos/ddk/Makefile
412 ./src/libcaptive/include/reactos/ddk/i386/Makefile
413 ./src/libcaptive/include/reactos/internal/Makefile
414 ./src/libcaptive/include/reactos/internal/i386/Makefile
415 ./src/libcaptive/include/reactos/napi/Makefile
416 ./src/libcaptive/include/reactos/ntos/Makefile
417 ./src/libcaptive/reactos/Makefile
418 ./src/libcaptive/reactos/include/Makefile
419 ./src/libcaptive/reactos/hal/Makefile
420 ./src/libcaptive/reactos/hal/halx86/Makefile
421 ./src/libcaptive/reactos/ntoskrnl/Makefile
422 ./src/libcaptive/reactos/ntoskrnl/dbg/Makefile
423 ./src/libcaptive/reactos/ntoskrnl/ex/Makefile
424 ./src/libcaptive/reactos/ntoskrnl/fs/Makefile
425 ./src/libcaptive/reactos/ntoskrnl/io/Makefile
426 ./src/libcaptive/reactos/ntoskrnl/ke/Makefile
427 ./src/libcaptive/reactos/ntoskrnl/ldr/Makefile
428 ./src/libcaptive/reactos/ntoskrnl/mm/Makefile
429 ./src/libcaptive/reactos/ntoskrnl/nt/Makefile
430 ./src/libcaptive/reactos/ntoskrnl/ob/Makefile
431 ./src/libcaptive/reactos/ntoskrnl/ps/Makefile
432 ./src/libcaptive/reactos/ntoskrnl/rtl/Makefile
433 ./src/libcaptive/reactos/ntoskrnl/rtl/i386/Makefile
434 ./src/libcaptive/reactos/ntoskrnl/se/Makefile
435 ./src/libcaptive/halcaptive/Makefile
436 ./src/libcaptive/cc/Makefile
437 ./src/libcaptive/cm/Makefile
438 ./src/libcaptive/ex/Makefile
439 ./src/libcaptive/fs/Makefile
440 ./src/libcaptive/io/Makefile
441 ./src/libcaptive/kd/Makefile
442 ./src/libcaptive/ke/Makefile
443 ./src/libcaptive/ldr/Makefile
444 ./src/libcaptive/mm/Makefile
445 ./src/libcaptive/nt/Makefile
446 ./src/libcaptive/ob/Makefile
447 ./src/libcaptive/po/Makefile
448 ./src/libcaptive/ps/Makefile
449 ./src/libcaptive/rtl/Makefile
450 ./src/libcaptive/se/Makefile
451 ./src/libcaptive/storage/Makefile
452 ./src/libcaptive/sandbox/Makefile
453 ./src/libcaptive/client/Makefile
454 ./src/client/Makefile
455 ./src/client/bug-replay/Makefile
456 ./src/client/cmdline/Makefile
457 ./src/client/gnomevfs/Makefile
458 ./src/client/lufs/Makefile
459 ./src/client/sandbox-server/Makefile
460 ./src/install/Makefile
461 ./src/install/libcaptive-install/Makefile
462 ./src/install/fstab/Makefile
463 ./src/install/acquire/Makefile
464 ./src/TraceFS/Makefile
465 ./src/w32-mod/Makefile
467 ./doc/apiref/Makefile
470 dnl FIXME: Why is "po/POTFILES" being substituted?
471 make -C src distfiles DISTFILES_PRINT=1 \
472 |sed -n 's/^:DISTFILES: *\(.*\)$/\1/p'|tr ' ' '\n'|grep . >po/POTFILES.in