forked from Imagelibrary/binutils-gdb
Compare commits
1 Commits
gdb-12.1-r
...
users/palv
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cd2a21626 |
@@ -1,7 +1,7 @@
|
|||||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
|
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
# Copyright (C) 2019 Free Software Foundation, Inc.
|
# Copyright (C) 2019-2020 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This file is part of GDB.
|
# This file is part of GDB.
|
||||||
|
|
||||||
@@ -172,7 +172,6 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
|||||||
$(top_srcdir)/import/m4/inttypes.m4 \
|
$(top_srcdir)/import/m4/inttypes.m4 \
|
||||||
$(top_srcdir)/import/m4/isnand.m4 \
|
$(top_srcdir)/import/m4/isnand.m4 \
|
||||||
$(top_srcdir)/import/m4/isnanl.m4 \
|
$(top_srcdir)/import/m4/isnanl.m4 \
|
||||||
$(top_srcdir)/import/m4/largefile.m4 \
|
|
||||||
$(top_srcdir)/import/m4/limits-h.m4 \
|
$(top_srcdir)/import/m4/limits-h.m4 \
|
||||||
$(top_srcdir)/import/m4/localcharset.m4 \
|
$(top_srcdir)/import/m4/localcharset.m4 \
|
||||||
$(top_srcdir)/import/m4/locale-fr.m4 \
|
$(top_srcdir)/import/m4/locale-fr.m4 \
|
||||||
|
|||||||
455
gnulib/aclocal.m4
vendored
455
gnulib/aclocal.m4
vendored
@@ -20,6 +20,460 @@ You have another version of autoconf. It may work, but is not guaranteed to.
|
|||||||
If you have problems, you may need to regenerate the build system entirely.
|
If you have problems, you may need to regenerate the build system entirely.
|
||||||
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
||||||
|
|
||||||
|
# po.m4 serial 24 (gettext-0.19)
|
||||||
|
dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
|
||||||
|
dnl This file is free software; the Free Software Foundation
|
||||||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
|
dnl
|
||||||
|
dnl This file can be used in projects which are not available under
|
||||||
|
dnl the GNU General Public License or the GNU Library General Public
|
||||||
|
dnl License but which still want to provide support for the GNU gettext
|
||||||
|
dnl functionality.
|
||||||
|
dnl Please note that the actual code of the GNU gettext library is covered
|
||||||
|
dnl by the GNU Library General Public License, and the rest of the GNU
|
||||||
|
dnl gettext package is covered by the GNU General Public License.
|
||||||
|
dnl They are *not* in the public domain.
|
||||||
|
|
||||||
|
dnl Authors:
|
||||||
|
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
||||||
|
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
||||||
|
|
||||||
|
AC_PREREQ([2.60])
|
||||||
|
|
||||||
|
dnl Checks for all prerequisites of the po subdirectory.
|
||||||
|
AC_DEFUN([AM_PO_SUBDIRS],
|
||||||
|
[
|
||||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_SED])dnl
|
||||||
|
AC_REQUIRE([AM_NLS])dnl
|
||||||
|
|
||||||
|
dnl Release version of the gettext macros. This is used to ensure that
|
||||||
|
dnl the gettext macros and po/Makefile.in.in are in sync.
|
||||||
|
AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
|
||||||
|
|
||||||
|
dnl Perform the following tests also if --disable-nls has been given,
|
||||||
|
dnl because they are needed for "make dist" to work.
|
||||||
|
|
||||||
|
dnl Search for GNU msgfmt in the PATH.
|
||||||
|
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
|
||||||
|
dnl The second test excludes FreeBSD msgfmt.
|
||||||
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
|
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
||||||
|
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
|
||||||
|
:)
|
||||||
|
AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
|
||||||
|
|
||||||
|
dnl Test whether it is GNU msgfmt >= 0.15.
|
||||||
|
changequote(,)dnl
|
||||||
|
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
||||||
|
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
|
||||||
|
*) MSGFMT_015=$MSGFMT ;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST([MSGFMT_015])
|
||||||
|
changequote(,)dnl
|
||||||
|
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
||||||
|
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
|
||||||
|
*) GMSGFMT_015=$GMSGFMT ;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST([GMSGFMT_015])
|
||||||
|
|
||||||
|
dnl Search for GNU xgettext 0.12 or newer in the PATH.
|
||||||
|
dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
|
||||||
|
dnl The second test excludes FreeBSD xgettext.
|
||||||
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
|
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
||||||
|
(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)],
|
||||||
|
:)
|
||||||
|
dnl Remove leftover from FreeBSD xgettext call.
|
||||||
|
rm -f messages.po
|
||||||
|
|
||||||
|
dnl Test whether it is GNU xgettext >= 0.15.
|
||||||
|
changequote(,)dnl
|
||||||
|
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
||||||
|
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
|
||||||
|
*) XGETTEXT_015=$XGETTEXT ;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST([XGETTEXT_015])
|
||||||
|
|
||||||
|
dnl Search for GNU msgmerge 0.11 or newer in the PATH.
|
||||||
|
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
|
||||||
|
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
|
||||||
|
|
||||||
|
dnl Installation directories.
|
||||||
|
dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
|
||||||
|
dnl have to define it here, so that it can be used in po/Makefile.
|
||||||
|
test -n "$localedir" || localedir='${datadir}/locale'
|
||||||
|
AC_SUBST([localedir])
|
||||||
|
|
||||||
|
dnl Support for AM_XGETTEXT_OPTION.
|
||||||
|
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
|
||||||
|
AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
|
||||||
|
|
||||||
|
AC_CONFIG_COMMANDS([po-directories], [[
|
||||||
|
for ac_file in $CONFIG_FILES; do
|
||||||
|
# Support "outfile[:infile[:infile...]]"
|
||||||
|
case "$ac_file" in
|
||||||
|
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
||||||
|
esac
|
||||||
|
# PO directories have a Makefile.in generated from Makefile.in.in.
|
||||||
|
case "$ac_file" in */Makefile.in)
|
||||||
|
# Adjust a relative srcdir.
|
||||||
|
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
||||||
|
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
|
||||||
|
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
||||||
|
# In autoconf-2.13 it is called $ac_given_srcdir.
|
||||||
|
# In autoconf-2.50 it is called $srcdir.
|
||||||
|
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
||||||
|
case "$ac_given_srcdir" in
|
||||||
|
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
||||||
|
/*) top_srcdir="$ac_given_srcdir" ;;
|
||||||
|
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
||||||
|
esac
|
||||||
|
# Treat a directory as a PO directory if and only if it has a
|
||||||
|
# POTFILES.in file. This allows packages to have multiple PO
|
||||||
|
# directories under different names or in different locations.
|
||||||
|
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
||||||
|
rm -f "$ac_dir/POTFILES"
|
||||||
|
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
||||||
|
gt_tab=`printf '\t'`
|
||||||
|
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
|
||||||
|
POMAKEFILEDEPS="POTFILES.in"
|
||||||
|
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
|
||||||
|
# on $ac_dir but don't depend on user-specified configuration
|
||||||
|
# parameters.
|
||||||
|
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
||||||
|
# The LINGUAS file contains the set of available languages.
|
||||||
|
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
||||||
|
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
||||||
|
fi
|
||||||
|
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
||||||
|
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
||||||
|
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
||||||
|
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
||||||
|
else
|
||||||
|
# The set of available languages was given in configure.in.
|
||||||
|
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
||||||
|
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
|
||||||
|
fi
|
||||||
|
# Compute POFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
||||||
|
# Compute UPDATEPOFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
||||||
|
# Compute DUMMYPOFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
||||||
|
# Compute GMOFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
||||||
|
case "$ac_given_srcdir" in
|
||||||
|
.) srcdirpre= ;;
|
||||||
|
*) srcdirpre='$(srcdir)/' ;;
|
||||||
|
esac
|
||||||
|
POFILES=
|
||||||
|
UPDATEPOFILES=
|
||||||
|
DUMMYPOFILES=
|
||||||
|
GMOFILES=
|
||||||
|
for lang in $ALL_LINGUAS; do
|
||||||
|
POFILES="$POFILES $srcdirpre$lang.po"
|
||||||
|
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
||||||
|
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
||||||
|
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
||||||
|
done
|
||||||
|
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
||||||
|
# environment variable.
|
||||||
|
INST_LINGUAS=
|
||||||
|
if test -n "$ALL_LINGUAS"; then
|
||||||
|
for presentlang in $ALL_LINGUAS; do
|
||||||
|
useit=no
|
||||||
|
if test "%UNSET%" != "$LINGUAS"; then
|
||||||
|
desiredlanguages="$LINGUAS"
|
||||||
|
else
|
||||||
|
desiredlanguages="$ALL_LINGUAS"
|
||||||
|
fi
|
||||||
|
for desiredlang in $desiredlanguages; do
|
||||||
|
# Use the presentlang catalog if desiredlang is
|
||||||
|
# a. equal to presentlang, or
|
||||||
|
# b. a variant of presentlang (because in this case,
|
||||||
|
# presentlang can be used as a fallback for messages
|
||||||
|
# which are not translated in the desiredlang catalog).
|
||||||
|
case "$desiredlang" in
|
||||||
|
"$presentlang"*) useit=yes;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if test $useit = yes; then
|
||||||
|
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
CATALOGS=
|
||||||
|
if test -n "$INST_LINGUAS"; then
|
||||||
|
for lang in $INST_LINGUAS; do
|
||||||
|
CATALOGS="$CATALOGS $lang.gmo"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
||||||
|
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
||||||
|
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
|
||||||
|
if test -f "$f"; then
|
||||||
|
case "$f" in
|
||||||
|
*.orig | *.bak | *~) ;;
|
||||||
|
*) cat "$f" >> "$ac_dir/Makefile" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done]],
|
||||||
|
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute
|
||||||
|
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
|
||||||
|
# from automake < 1.5.
|
||||||
|
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
|
||||||
|
# Capture the value of LINGUAS because we need it to compute CATALOGS.
|
||||||
|
LINGUAS="${LINGUAS-%UNSET%}"
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Postprocesses a Makefile in a directory containing PO files.
|
||||||
|
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
|
||||||
|
[
|
||||||
|
# When this code is run, in config.status, two variables have already been
|
||||||
|
# set:
|
||||||
|
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
|
||||||
|
# - LINGUAS is the value of the environment variable LINGUAS at configure
|
||||||
|
# time.
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
|
# Adjust a relative srcdir.
|
||||||
|
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
||||||
|
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
|
||||||
|
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
||||||
|
# In autoconf-2.13 it is called $ac_given_srcdir.
|
||||||
|
# In autoconf-2.50 it is called $srcdir.
|
||||||
|
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
||||||
|
case "$ac_given_srcdir" in
|
||||||
|
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
||||||
|
/*) top_srcdir="$ac_given_srcdir" ;;
|
||||||
|
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Find a way to echo strings without interpreting backslash.
|
||||||
|
if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
|
||||||
|
gt_echo='echo'
|
||||||
|
else
|
||||||
|
if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
|
||||||
|
gt_echo='printf %s\n'
|
||||||
|
else
|
||||||
|
echo_func () {
|
||||||
|
cat <<EOT
|
||||||
|
$*
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
gt_echo='echo_func'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# A sed script that extracts the value of VARIABLE from a Makefile.
|
||||||
|
tab=`printf '\t'`
|
||||||
|
sed_x_variable='
|
||||||
|
# Test if the hold space is empty.
|
||||||
|
x
|
||||||
|
s/P/P/
|
||||||
|
x
|
||||||
|
ta
|
||||||
|
# Yes it was empty. Look if we have the expected variable definition.
|
||||||
|
/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
|
||||||
|
# Seen the first line of the variable definition.
|
||||||
|
s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
|
||||||
|
ba
|
||||||
|
}
|
||||||
|
bd
|
||||||
|
:a
|
||||||
|
# Here we are processing a line from the variable definition.
|
||||||
|
# Remove comment, more precisely replace it with a space.
|
||||||
|
s/#.*$/ /
|
||||||
|
# See if the line ends in a backslash.
|
||||||
|
tb
|
||||||
|
:b
|
||||||
|
s/\\$//
|
||||||
|
# Print the line, without the trailing backslash.
|
||||||
|
p
|
||||||
|
tc
|
||||||
|
# There was no trailing backslash. The end of the variable definition is
|
||||||
|
# reached. Clear the hold space.
|
||||||
|
s/^.*$//
|
||||||
|
x
|
||||||
|
bd
|
||||||
|
:c
|
||||||
|
# A trailing backslash means that the variable definition continues in the
|
||||||
|
# next line. Put a nonempty string into the hold space to indicate this.
|
||||||
|
s/^.*$/P/
|
||||||
|
x
|
||||||
|
:d
|
||||||
|
'
|
||||||
|
changequote([,])dnl
|
||||||
|
|
||||||
|
# Set POTFILES to the value of the Makefile variable POTFILES.
|
||||||
|
sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
|
||||||
|
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
|
||||||
|
# Compute POTFILES_DEPS as
|
||||||
|
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
|
||||||
|
POTFILES_DEPS=
|
||||||
|
for file in $POTFILES; do
|
||||||
|
POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
|
||||||
|
done
|
||||||
|
POMAKEFILEDEPS=""
|
||||||
|
|
||||||
|
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
||||||
|
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
||||||
|
fi
|
||||||
|
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
||||||
|
# The LINGUAS file contains the set of available languages.
|
||||||
|
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
||||||
|
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
||||||
|
else
|
||||||
|
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
|
||||||
|
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
|
||||||
|
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
|
||||||
|
fi
|
||||||
|
# Hide the ALL_LINGUAS assignment from automake < 1.5.
|
||||||
|
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
||||||
|
# Compute POFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
||||||
|
# Compute UPDATEPOFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
||||||
|
# Compute DUMMYPOFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
||||||
|
# Compute GMOFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
||||||
|
# Compute PROPERTIESFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
|
||||||
|
# Compute CLASSFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
|
||||||
|
# Compute QMFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
|
||||||
|
# Compute MSGFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
|
||||||
|
# Compute RESOURCESDLLFILES
|
||||||
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
|
||||||
|
case "$ac_given_srcdir" in
|
||||||
|
.) srcdirpre= ;;
|
||||||
|
*) srcdirpre='$(srcdir)/' ;;
|
||||||
|
esac
|
||||||
|
POFILES=
|
||||||
|
UPDATEPOFILES=
|
||||||
|
DUMMYPOFILES=
|
||||||
|
GMOFILES=
|
||||||
|
PROPERTIESFILES=
|
||||||
|
CLASSFILES=
|
||||||
|
QMFILES=
|
||||||
|
MSGFILES=
|
||||||
|
RESOURCESDLLFILES=
|
||||||
|
for lang in $ALL_LINGUAS; do
|
||||||
|
POFILES="$POFILES $srcdirpre$lang.po"
|
||||||
|
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
||||||
|
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
||||||
|
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
||||||
|
PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
|
||||||
|
CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
|
||||||
|
QMFILES="$QMFILES $srcdirpre$lang.qm"
|
||||||
|
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
||||||
|
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
|
||||||
|
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/'`
|
||||||
|
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
|
||||||
|
done
|
||||||
|
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
||||||
|
# environment variable.
|
||||||
|
INST_LINGUAS=
|
||||||
|
if test -n "$ALL_LINGUAS"; then
|
||||||
|
for presentlang in $ALL_LINGUAS; do
|
||||||
|
useit=no
|
||||||
|
if test "%UNSET%" != "$LINGUAS"; then
|
||||||
|
desiredlanguages="$LINGUAS"
|
||||||
|
else
|
||||||
|
desiredlanguages="$ALL_LINGUAS"
|
||||||
|
fi
|
||||||
|
for desiredlang in $desiredlanguages; do
|
||||||
|
# Use the presentlang catalog if desiredlang is
|
||||||
|
# a. equal to presentlang, or
|
||||||
|
# b. a variant of presentlang (because in this case,
|
||||||
|
# presentlang can be used as a fallback for messages
|
||||||
|
# which are not translated in the desiredlang catalog).
|
||||||
|
case "$desiredlang" in
|
||||||
|
"$presentlang"*) useit=yes;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if test $useit = yes; then
|
||||||
|
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
CATALOGS=
|
||||||
|
JAVACATALOGS=
|
||||||
|
QTCATALOGS=
|
||||||
|
TCLCATALOGS=
|
||||||
|
CSHARPCATALOGS=
|
||||||
|
if test -n "$INST_LINGUAS"; then
|
||||||
|
for lang in $INST_LINGUAS; do
|
||||||
|
CATALOGS="$CATALOGS $lang.gmo"
|
||||||
|
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
|
||||||
|
QTCATALOGS="$QTCATALOGS $lang.qm"
|
||||||
|
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
||||||
|
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
|
||||||
|
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/'`
|
||||||
|
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
|
||||||
|
tab=`printf '\t'`
|
||||||
|
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
|
||||||
|
# Add dependencies that cannot be formulated as a simple suffix rule.
|
||||||
|
for lang in $ALL_LINGUAS; do
|
||||||
|
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
||||||
|
cat >> "$ac_file.tmp" <<EOF
|
||||||
|
$frobbedlang.msg: $lang.po
|
||||||
|
${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
|
||||||
|
${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
||||||
|
EOF
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
|
||||||
|
# Add dependencies that cannot be formulated as a simple suffix rule.
|
||||||
|
for lang in $ALL_LINGUAS; do
|
||||||
|
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/'`
|
||||||
|
cat >> "$ac_file.tmp" <<EOF
|
||||||
|
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
|
||||||
|
${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
|
||||||
|
${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
||||||
|
EOF
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if test -n "$POMAKEFILEDEPS"; then
|
||||||
|
cat >> "$ac_file.tmp" <<EOF
|
||||||
|
Makefile: $POMAKEFILEDEPS
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
mv "$ac_file.tmp" "$ac_file"
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
|
||||||
|
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
|
||||||
|
[
|
||||||
|
XGETTEXT_EXTRA_OPTIONS=
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Registers an option to be passed to xgettext in the po subdirectory.
|
||||||
|
AC_DEFUN([AM_XGETTEXT_OPTION],
|
||||||
|
[
|
||||||
|
AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
|
||||||
|
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
|
||||||
|
])
|
||||||
|
|
||||||
# Copyright (C) 2002-2017 Free Software Foundation, Inc.
|
# Copyright (C) 2002-2017 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -1245,7 +1699,6 @@ m4_include([import/m4/inttypes-pri.m4])
|
|||||||
m4_include([import/m4/inttypes.m4])
|
m4_include([import/m4/inttypes.m4])
|
||||||
m4_include([import/m4/isnand.m4])
|
m4_include([import/m4/isnand.m4])
|
||||||
m4_include([import/m4/isnanl.m4])
|
m4_include([import/m4/isnanl.m4])
|
||||||
m4_include([import/m4/largefile.m4])
|
|
||||||
m4_include([import/m4/limits-h.m4])
|
m4_include([import/m4/limits-h.m4])
|
||||||
m4_include([import/m4/localcharset.m4])
|
m4_include([import/m4/localcharset.m4])
|
||||||
m4_include([import/m4/locale-fr.m4])
|
m4_include([import/m4/locale-fr.m4])
|
||||||
|
|||||||
@@ -1107,8 +1107,10 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||||
#undef _DARWIN_USE_64_BIT_INODE
|
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||||
|
# define _DARWIN_USE_64_BIT_INODE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||||
#undef _FILE_OFFSET_BITS
|
#undef _FILE_OFFSET_BITS
|
||||||
|
|||||||
339
gnulib/configure
vendored
339
gnulib/configure
vendored
@@ -1855,9 +1855,9 @@ ac_subst_files=''
|
|||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_maintainer_mode
|
enable_maintainer_mode
|
||||||
enable_largefile
|
|
||||||
enable_threads
|
enable_threads
|
||||||
enable_plugins
|
enable_plugins
|
||||||
|
enable_largefile
|
||||||
enable_cross_guesses
|
enable_cross_guesses
|
||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
enable_silent_rules
|
enable_silent_rules
|
||||||
@@ -2493,11 +2493,11 @@ Optional Features:
|
|||||||
--enable-maintainer-mode
|
--enable-maintainer-mode
|
||||||
enable make rules and dependencies not useful (and
|
enable make rules and dependencies not useful (and
|
||||||
sometimes confusing) to the casual installer
|
sometimes confusing) to the casual installer
|
||||||
--disable-largefile omit support for large files
|
|
||||||
--enable-threads={isoc|posix|isoc+posix|windows}
|
--enable-threads={isoc|posix|isoc+posix|windows}
|
||||||
specify multithreading API
|
specify multithreading API
|
||||||
--disable-threads build without multithread safety
|
--disable-threads build without multithread safety
|
||||||
--enable-plugins Enable support for plugins
|
--enable-plugins Enable support for plugins
|
||||||
|
--disable-largefile omit support for large files
|
||||||
--enable-cross-guesses={conservative|risky}
|
--enable-cross-guesses={conservative|risky}
|
||||||
specify policy for cross-compilation guesses
|
specify policy for cross-compilation guesses
|
||||||
--enable-dependency-tracking
|
--enable-dependency-tracking
|
||||||
@@ -5946,208 +5946,6 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check whether --enable-largefile was given.
|
|
||||||
if test "${enable_largefile+set}" = set; then :
|
|
||||||
enableval=$enable_largefile;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$enable_largefile" != no; then
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
|
||||||
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
|
||||||
if ${ac_cv_sys_largefile_CC+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_cv_sys_largefile_CC=no
|
|
||||||
if test "$GCC" != yes; then
|
|
||||||
ac_save_CC=$CC
|
|
||||||
while :; do
|
|
||||||
# IRIX 6.2 and later do not support large files by default,
|
|
||||||
# so use the C compiler's -n32 option if that helps.
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <sys/types.h>
|
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
||||||
since some C++ compilers masquerading as C compilers
|
|
||||||
incorrectly reject 9223372036854775807. */
|
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
|
||||||
? 1 : -1];
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext
|
|
||||||
CC="$CC -n32"
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
ac_cv_sys_largefile_CC=' -n32'; break
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext
|
|
||||||
break
|
|
||||||
done
|
|
||||||
CC=$ac_save_CC
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
|
||||||
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
|
||||||
if test "$ac_cv_sys_largefile_CC" != no; then
|
|
||||||
CC=$CC$ac_cv_sys_largefile_CC
|
|
||||||
fi
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
|
||||||
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
|
||||||
if ${ac_cv_sys_file_offset_bits+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
while :; do
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <sys/types.h>
|
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
||||||
since some C++ compilers masquerading as C compilers
|
|
||||||
incorrectly reject 9223372036854775807. */
|
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
|
||||||
? 1 : -1];
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
ac_cv_sys_file_offset_bits=no; break
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
#include <sys/types.h>
|
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
||||||
since some C++ compilers masquerading as C compilers
|
|
||||||
incorrectly reject 9223372036854775807. */
|
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
|
||||||
? 1 : -1];
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
ac_cv_sys_file_offset_bits=64; break
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
ac_cv_sys_file_offset_bits=unknown
|
|
||||||
break
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
|
||||||
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
|
||||||
case $ac_cv_sys_file_offset_bits in #(
|
|
||||||
no | unknown) ;;
|
|
||||||
*)
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
|
||||||
_ACEOF
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
rm -rf conftest*
|
|
||||||
if test $ac_cv_sys_file_offset_bits = unknown; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
|
||||||
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
|
||||||
if ${ac_cv_sys_large_files+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
while :; do
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <sys/types.h>
|
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
||||||
since some C++ compilers masquerading as C compilers
|
|
||||||
incorrectly reject 9223372036854775807. */
|
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
|
||||||
? 1 : -1];
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
ac_cv_sys_large_files=no; break
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#define _LARGE_FILES 1
|
|
||||||
#include <sys/types.h>
|
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
||||||
since some C++ compilers masquerading as C compilers
|
|
||||||
incorrectly reject 9223372036854775807. */
|
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
|
||||||
? 1 : -1];
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
ac_cv_sys_large_files=1; break
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
ac_cv_sys_large_files=unknown
|
|
||||||
break
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
|
||||||
$as_echo "$ac_cv_sys_large_files" >&6; }
|
|
||||||
case $ac_cv_sys_large_files in #(
|
|
||||||
no | unknown) ;;
|
|
||||||
*)
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define _LARGE_FILES $ac_cv_sys_large_files
|
|
||||||
_ACEOF
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
rm -rf conftest*
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -6287,8 +6085,6 @@ fi
|
|||||||
# Code from module inttypes-incomplete:
|
# Code from module inttypes-incomplete:
|
||||||
# Code from module isnand-nolibm:
|
# Code from module isnand-nolibm:
|
||||||
# Code from module isnanl-nolibm:
|
# Code from module isnanl-nolibm:
|
||||||
# Code from module largefile:
|
|
||||||
|
|
||||||
# Code from module libc-config:
|
# Code from module libc-config:
|
||||||
# Code from module limits-h:
|
# Code from module limits-h:
|
||||||
# Code from module localcharset:
|
# Code from module localcharset:
|
||||||
@@ -6567,9 +6363,9 @@ else
|
|||||||
if test "$GCC" != yes; then
|
if test "$GCC" != yes; then
|
||||||
ac_save_CC=$CC
|
ac_save_CC=$CC
|
||||||
while :; do
|
while :; do
|
||||||
# IRIX 6.2 and later do not support large files by default,
|
# IRIX 6.2 and later do not support large files by default,
|
||||||
# so use the C compiler's -n32 option if that helps.
|
# so use the C compiler's -n32 option if that helps.
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
/* Check that off_t can represent 2**63 - 1 correctly.
|
||||||
@@ -6578,8 +6374,8 @@ else
|
|||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -6588,16 +6384,16 @@ main ()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext
|
rm -f core conftest.err conftest.$ac_objext
|
||||||
CC="$CC -n32"
|
CC="$CC -n32"
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
ac_cv_sys_largefile_CC=' -n32'; break
|
ac_cv_sys_largefile_CC=' -n32'; break
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext
|
rm -f core conftest.err conftest.$ac_objext
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
CC=$ac_save_CC
|
CC=$ac_save_CC
|
||||||
rm -f conftest.$ac_ext
|
rm -f conftest.$ac_ext
|
||||||
@@ -6624,8 +6420,8 @@ else
|
|||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -6648,8 +6444,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -6693,8 +6489,8 @@ else
|
|||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -6717,8 +6513,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|||||||
incorrectly reject 9223372036854775807. */
|
incorrectly reject 9223372036854775807. */
|
||||||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
||||||
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
&& LARGE_OFF_T % 2147483647 == 1)
|
||||||
? 1 : -1];
|
? 1 : -1];
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -6749,8 +6545,6 @@ rm -rf conftest*
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -8298,6 +8092,9 @@ $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
XGETTEXT_EXTRA_OPTIONS=
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
|
ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
|
||||||
@@ -9544,84 +9341,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
case "$host_os" in
|
|
||||||
mingw*)
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
|
|
||||||
$as_echo_n "checking for 64-bit off_t... " >&6; }
|
|
||||||
if ${gl_cv_type_off_t_64+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <sys/types.h>
|
|
||||||
int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
gl_cv_type_off_t_64=yes
|
|
||||||
else
|
|
||||||
gl_cv_type_off_t_64=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
|
|
||||||
$as_echo "$gl_cv_type_off_t_64" >&6; }
|
|
||||||
if test $gl_cv_type_off_t_64 = no; then
|
|
||||||
WINDOWS_64_BIT_OFF_T=1
|
|
||||||
else
|
|
||||||
WINDOWS_64_BIT_OFF_T=0
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
|
|
||||||
$as_echo_n "checking for 64-bit st_size... " >&6; }
|
|
||||||
if ${gl_cv_member_st_size_64+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <sys/types.h>
|
|
||||||
struct stat buf;
|
|
||||||
int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
|
|
||||||
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
|
||||||
gl_cv_member_st_size_64=yes
|
|
||||||
else
|
|
||||||
gl_cv_member_st_size_64=no
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
|
|
||||||
fi
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
|
|
||||||
$as_echo "$gl_cv_member_st_size_64" >&6; }
|
|
||||||
if test $gl_cv_member_st_size_64 = no; then
|
|
||||||
WINDOWS_64_BIT_ST_SIZE=1
|
|
||||||
else
|
|
||||||
WINDOWS_64_BIT_ST_SIZE=0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
WINDOWS_64_BIT_OFF_T=0
|
|
||||||
WINDOWS_64_BIT_ST_SIZE=0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -9712,7 +9431,7 @@ $as_echo "$gl_cv_next_sys_stat_h" >&6; }
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
WINDOWS_64_BIT_ST_SIZE=0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15304,7 +15023,7 @@ _ACEOF
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
WINDOWS_64_BIT_OFF_T=0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -16998,6 +16717,13 @@ $as_echo "$ac_cv_lib_error_at_line" >&6; }
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -20369,7 +20095,6 @@ _ACEOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
|
||||||
$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
|
$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
|
||||||
if ${gl_cv_c___inline+:} false; then :
|
if ${gl_cv_c___inline+:} false; then :
|
||||||
@@ -25943,7 +25668,7 @@ $as_echo "$gl_cv_next_sys_stat_h" >&6; }
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
WINDOWS_64_BIT_ST_SIZE=0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
# --no-libtool \
|
# --no-libtool \
|
||||||
# --macro-prefix=gl \
|
# --macro-prefix=gl \
|
||||||
# --no-vc-files \
|
# --no-vc-files \
|
||||||
|
# --avoid=largefile \
|
||||||
# alloca \
|
# alloca \
|
||||||
# canonicalize-lgpl \
|
# canonicalize-lgpl \
|
||||||
# dirent \
|
# dirent \
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
# --no-libtool \
|
# --no-libtool \
|
||||||
# --macro-prefix=gl \
|
# --macro-prefix=gl \
|
||||||
# --no-vc-files \
|
# --no-vc-files \
|
||||||
|
# --avoid=largefile \
|
||||||
# alloca \
|
# alloca \
|
||||||
# canonicalize-lgpl \
|
# canonicalize-lgpl \
|
||||||
# dirent \
|
# dirent \
|
||||||
@@ -227,7 +228,6 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
|||||||
$(top_srcdir)/import/m4/inttypes.m4 \
|
$(top_srcdir)/import/m4/inttypes.m4 \
|
||||||
$(top_srcdir)/import/m4/isnand.m4 \
|
$(top_srcdir)/import/m4/isnand.m4 \
|
||||||
$(top_srcdir)/import/m4/isnanl.m4 \
|
$(top_srcdir)/import/m4/isnanl.m4 \
|
||||||
$(top_srcdir)/import/m4/largefile.m4 \
|
|
||||||
$(top_srcdir)/import/m4/limits-h.m4 \
|
$(top_srcdir)/import/m4/limits-h.m4 \
|
||||||
$(top_srcdir)/import/m4/localcharset.m4 \
|
$(top_srcdir)/import/m4/localcharset.m4 \
|
||||||
$(top_srcdir)/import/m4/locale-fr.m4 \
|
$(top_srcdir)/import/m4/locale-fr.m4 \
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
# --no-libtool \
|
# --no-libtool \
|
||||||
# --macro-prefix=gl \
|
# --macro-prefix=gl \
|
||||||
# --no-vc-files \
|
# --no-vc-files \
|
||||||
|
# --avoid=largefile \
|
||||||
# alloca \
|
# alloca \
|
||||||
# canonicalize-lgpl \
|
# canonicalize-lgpl \
|
||||||
# dirent \
|
# dirent \
|
||||||
@@ -113,7 +114,7 @@ gl_MODULES([
|
|||||||
wchar
|
wchar
|
||||||
wctype-h
|
wctype-h
|
||||||
])
|
])
|
||||||
gl_AVOID([])
|
gl_AVOID([ largefile])
|
||||||
gl_SOURCE_BASE([import])
|
gl_SOURCE_BASE([import])
|
||||||
gl_M4_BASE([import/m4])
|
gl_M4_BASE([import/m4])
|
||||||
gl_PO_BASE([])
|
gl_PO_BASE([])
|
||||||
|
|||||||
@@ -110,8 +110,6 @@ AC_DEFUN([gl_EARLY],
|
|||||||
# Code from module inttypes-incomplete:
|
# Code from module inttypes-incomplete:
|
||||||
# Code from module isnand-nolibm:
|
# Code from module isnand-nolibm:
|
||||||
# Code from module isnanl-nolibm:
|
# Code from module isnanl-nolibm:
|
||||||
# Code from module largefile:
|
|
||||||
AC_REQUIRE([AC_SYS_LARGEFILE])
|
|
||||||
# Code from module libc-config:
|
# Code from module libc-config:
|
||||||
# Code from module limits-h:
|
# Code from module limits-h:
|
||||||
# Code from module localcharset:
|
# Code from module localcharset:
|
||||||
@@ -412,7 +410,6 @@ AC_DEFUN([gl_INIT],
|
|||||||
AC_LIBOBJ([isnanl])
|
AC_LIBOBJ([isnanl])
|
||||||
gl_PREREQ_ISNANL
|
gl_PREREQ_ISNANL
|
||||||
fi
|
fi
|
||||||
AC_REQUIRE([gl_LARGEFILE])
|
|
||||||
gl___INLINE
|
gl___INLINE
|
||||||
gl_LIMITS_H
|
gl_LIMITS_H
|
||||||
gl_LOCALCHARSET
|
gl_LOCALCHARSET
|
||||||
@@ -1095,7 +1092,6 @@ AC_DEFUN([gl_FILE_LIST], [
|
|||||||
m4/inttypes.m4
|
m4/inttypes.m4
|
||||||
m4/isnand.m4
|
m4/isnand.m4
|
||||||
m4/isnanl.m4
|
m4/isnanl.m4
|
||||||
m4/largefile.m4
|
|
||||||
m4/lib-ld.m4
|
m4/lib-ld.m4
|
||||||
m4/lib-link.m4
|
m4/lib-link.m4
|
||||||
m4/lib-prefix.m4
|
m4/lib-prefix.m4
|
||||||
|
|||||||
@@ -1,177 +0,0 @@
|
|||||||
# Enable large files on systems where this is not the default.
|
|
||||||
|
|
||||||
# Copyright 1992-1996, 1998-2019 Free Software Foundation, Inc.
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# The following macro works around a problem in Autoconf's AC_FUNC_FSEEKO:
|
|
||||||
# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this
|
|
||||||
# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko
|
|
||||||
# and ftello in C++ mode as well.
|
|
||||||
AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
||||||
AC_FUNC_FSEEKO
|
|
||||||
case "$host_os" in
|
|
||||||
hpux*)
|
|
||||||
AC_DEFINE([_LARGEFILE_SOURCE], [1],
|
|
||||||
[Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
|
|
||||||
# The following implementation works around a problem in autoconf <= 2.69;
|
|
||||||
# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
|
|
||||||
# or configures them incorrectly in some cases.
|
|
||||||
m4_version_prereq([2.70], [] ,[
|
|
||||||
|
|
||||||
# _AC_SYS_LARGEFILE_TEST_INCLUDES
|
|
||||||
# -------------------------------
|
|
||||||
m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
|
|
||||||
[@%:@include <sys/types.h>
|
|
||||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
||||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
||||||
since some C++ compilers masquerading as C compilers
|
|
||||||
incorrectly reject 9223372036854775807. */
|
|
||||||
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
||||||
int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721
|
|
||||||
&& LARGE_OFF_T % 2147483647 == 1)
|
|
||||||
? 1 : -1]];[]dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
|
|
||||||
# CACHE-VAR,
|
|
||||||
# DESCRIPTION,
|
|
||||||
# PROLOGUE, [FUNCTION-BODY])
|
|
||||||
# --------------------------------------------------------
|
|
||||||
m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
|
|
||||||
[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
|
|
||||||
[while :; do
|
|
||||||
m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
|
|
||||||
[AC_LANG_PROGRAM([$5], [$6])],
|
|
||||||
[$3=no; break])
|
|
||||||
m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
|
|
||||||
[AC_LANG_PROGRAM([@%:@define $1 $2
|
|
||||||
$5], [$6])],
|
|
||||||
[$3=$2; break])
|
|
||||||
$3=unknown
|
|
||||||
break
|
|
||||||
done])
|
|
||||||
case $$3 in #(
|
|
||||||
no | unknown) ;;
|
|
||||||
*) AC_DEFINE_UNQUOTED([$1], [$$3], [$4]);;
|
|
||||||
esac
|
|
||||||
rm -rf conftest*[]dnl
|
|
||||||
])# _AC_SYS_LARGEFILE_MACRO_VALUE
|
|
||||||
|
|
||||||
|
|
||||||
# AC_SYS_LARGEFILE
|
|
||||||
# ----------------
|
|
||||||
# By default, many hosts won't let programs access large files;
|
|
||||||
# one must use special compiler options to get large-file access to work.
|
|
||||||
# For more details about this brain damage please see:
|
|
||||||
# http://www.unix.org/version2/whatsnew/lfs20mar.html
|
|
||||||
AC_DEFUN([AC_SYS_LARGEFILE],
|
|
||||||
[AC_ARG_ENABLE(largefile,
|
|
||||||
[ --disable-largefile omit support for large files])
|
|
||||||
if test "$enable_largefile" != no; then
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([for special C compiler options needed for large files],
|
|
||||||
ac_cv_sys_largefile_CC,
|
|
||||||
[ac_cv_sys_largefile_CC=no
|
|
||||||
if test "$GCC" != yes; then
|
|
||||||
ac_save_CC=$CC
|
|
||||||
while :; do
|
|
||||||
# IRIX 6.2 and later do not support large files by default,
|
|
||||||
# so use the C compiler's -n32 option if that helps.
|
|
||||||
AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])])
|
|
||||||
AC_COMPILE_IFELSE([], [break])
|
|
||||||
CC="$CC -n32"
|
|
||||||
AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
|
|
||||||
break
|
|
||||||
done
|
|
||||||
CC=$ac_save_CC
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
fi])
|
|
||||||
if test "$ac_cv_sys_largefile_CC" != no; then
|
|
||||||
CC=$CC$ac_cv_sys_largefile_CC
|
|
||||||
fi
|
|
||||||
|
|
||||||
_AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
|
|
||||||
ac_cv_sys_file_offset_bits,
|
|
||||||
[Number of bits in a file offset, on hosts where this is settable.],
|
|
||||||
[_AC_SYS_LARGEFILE_TEST_INCLUDES])
|
|
||||||
if test $ac_cv_sys_file_offset_bits = unknown; then
|
|
||||||
_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
|
|
||||||
ac_cv_sys_large_files,
|
|
||||||
[Define for large files, on AIX-style hosts.],
|
|
||||||
[_AC_SYS_LARGEFILE_TEST_INCLUDES])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1],
|
|
||||||
[Enable large inode numbers on Mac OS X 10.5.])
|
|
||||||
fi
|
|
||||||
])# AC_SYS_LARGEFILE
|
|
||||||
])# m4_version_prereq 2.70
|
|
||||||
|
|
||||||
# Enable large files on systems where this is implemented by Gnulib, not by the
|
|
||||||
# system headers.
|
|
||||||
# Set the variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE if Gnulib
|
|
||||||
# overrides ensure that off_t or 'struct size.st_size' are 64-bit, respectively.
|
|
||||||
AC_DEFUN([gl_LARGEFILE],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
||||||
case "$host_os" in
|
|
||||||
mingw*)
|
|
||||||
dnl Native Windows.
|
|
||||||
dnl mingw64 defines off_t to a 64-bit type already, if
|
|
||||||
dnl _FILE_OFFSET_BITS=64, which is ensured by AC_SYS_LARGEFILE.
|
|
||||||
AC_CACHE_CHECK([for 64-bit off_t], [gl_cv_type_off_t_64],
|
|
||||||
[AC_COMPILE_IFELSE(
|
|
||||||
[AC_LANG_PROGRAM(
|
|
||||||
[[#include <sys/types.h>
|
|
||||||
int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
|
|
||||||
]],
|
|
||||||
[[]])],
|
|
||||||
[gl_cv_type_off_t_64=yes], [gl_cv_type_off_t_64=no])
|
|
||||||
])
|
|
||||||
if test $gl_cv_type_off_t_64 = no; then
|
|
||||||
WINDOWS_64_BIT_OFF_T=1
|
|
||||||
else
|
|
||||||
WINDOWS_64_BIT_OFF_T=0
|
|
||||||
fi
|
|
||||||
dnl Some mingw versions define, if _FILE_OFFSET_BITS=64, 'struct stat'
|
|
||||||
dnl to 'struct _stat32i64' or 'struct _stat64' (depending on
|
|
||||||
dnl _USE_32BIT_TIME_T), which has a 32-bit st_size member.
|
|
||||||
AC_CACHE_CHECK([for 64-bit st_size], [gl_cv_member_st_size_64],
|
|
||||||
[AC_COMPILE_IFELSE(
|
|
||||||
[AC_LANG_PROGRAM(
|
|
||||||
[[#include <sys/types.h>
|
|
||||||
struct stat buf;
|
|
||||||
int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
|
|
||||||
]],
|
|
||||||
[[]])],
|
|
||||||
[gl_cv_member_st_size_64=yes], [gl_cv_member_st_size_64=no])
|
|
||||||
])
|
|
||||||
if test $gl_cv_member_st_size_64 = no; then
|
|
||||||
WINDOWS_64_BIT_ST_SIZE=1
|
|
||||||
else
|
|
||||||
WINDOWS_64_BIT_ST_SIZE=0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
dnl Nothing to do on gnulib's side.
|
|
||||||
dnl A 64-bit off_t is
|
|
||||||
dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX,
|
|
||||||
dnl OSF/1, Cygwin,
|
|
||||||
dnl - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on
|
|
||||||
dnl glibc, HP-UX, Solaris,
|
|
||||||
dnl - enabled by _LARGE_FILES=1 (ensured by AC_SYS_LARGEFILE) on AIX,
|
|
||||||
dnl - impossible to achieve on Minix 3.1.8.
|
|
||||||
WINDOWS_64_BIT_OFF_T=0
|
|
||||||
WINDOWS_64_BIT_ST_SIZE=0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
@@ -155,6 +155,7 @@ $gnulib_prefix/gnulib-tool --import --dir=. --lib=libgnu \
|
|||||||
--tests-base=tests --aux-dir=import/extra \
|
--tests-base=tests --aux-dir=import/extra \
|
||||||
--no-conditional-dependencies --no-libtool --macro-prefix=gl \
|
--no-conditional-dependencies --no-libtool --macro-prefix=gl \
|
||||||
--no-vc-files \
|
--no-vc-files \
|
||||||
|
--avoid=largefile \
|
||||||
$IMPORTED_GNULIB_MODULES
|
$IMPORTED_GNULIB_MODULES
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error: gnulib import failed. Aborting."
|
echo "Error: gnulib import failed. Aborting."
|
||||||
|
|||||||
Reference in New Issue
Block a user