mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-22 19:58:29 +01:00
build: Update autogen.sh to the current version.
-- This is a general maintenance update
This commit is contained in:
parent
bec71fdbe5
commit
75667050dc
35
autogen.sh
35
autogen.sh
@ -15,7 +15,7 @@
|
|||||||
# configure it for the respective package. It is maintained as part of
|
# configure it for the respective package. It is maintained as part of
|
||||||
# GnuPG and source copied by other packages.
|
# GnuPG and source copied by other packages.
|
||||||
#
|
#
|
||||||
# Version: 2024-07-04
|
# Version: 2025-02-21
|
||||||
|
|
||||||
configure_ac="configure.ac"
|
configure_ac="configure.ac"
|
||||||
|
|
||||||
@ -72,6 +72,7 @@ FORCE=
|
|||||||
SILENT=
|
SILENT=
|
||||||
PRINT_HOST=no
|
PRINT_HOST=no
|
||||||
PRINT_BUILD=no
|
PRINT_BUILD=no
|
||||||
|
PRINT_TSDIR=no
|
||||||
tmp=$(dirname "$0")
|
tmp=$(dirname "$0")
|
||||||
tsdir=$(cd "${tmp}"; pwd)
|
tsdir=$(cd "${tmp}"; pwd)
|
||||||
|
|
||||||
@ -87,6 +88,7 @@ if test x"$1" = x"--help"; then
|
|||||||
echo " --git-build Run all commands to build from a Git"
|
echo " --git-build Run all commands to build from a Git"
|
||||||
echo " --print-host Print only the host triplet"
|
echo " --print-host Print only the host triplet"
|
||||||
echo " --print-build Print only the build platform triplet"
|
echo " --print-build Print only the build platform triplet"
|
||||||
|
echo " --print-tsdir Print only the dir of this script"
|
||||||
echo " --build-TYPE Configure to cross build for TYPE"
|
echo " --build-TYPE Configure to cross build for TYPE"
|
||||||
echo ""
|
echo ""
|
||||||
echo " ARGS are passed to configure in --build-TYPE mode."
|
echo " ARGS are passed to configure in --build-TYPE mode."
|
||||||
@ -135,6 +137,7 @@ die_p
|
|||||||
configure_opts=
|
configure_opts=
|
||||||
extraoptions=
|
extraoptions=
|
||||||
# List of optional variables sourced from autogen.rc and ~/.gnupg-autogen.rc
|
# List of optional variables sourced from autogen.rc and ~/.gnupg-autogen.rc
|
||||||
|
maintainer_mode_option=
|
||||||
w32_toolprefixes=
|
w32_toolprefixes=
|
||||||
w32_extraoptions=
|
w32_extraoptions=
|
||||||
w64_toolprefixes=
|
w64_toolprefixes=
|
||||||
@ -157,6 +160,11 @@ case "$1" in
|
|||||||
SILENT=" --silent"
|
SILENT=" --silent"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--print-tsdir)
|
||||||
|
myhost="print-tsdir"
|
||||||
|
SILENT=" --silent"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--git-build)
|
--git-build)
|
||||||
myhost="git-build"
|
myhost="git-build"
|
||||||
shift
|
shift
|
||||||
@ -214,6 +222,12 @@ if [ -f "$HOME/.gnupg-autogen.rc" ]; then
|
|||||||
. "$HOME/.gnupg-autogen.rc"
|
. "$HOME/.gnupg-autogen.rc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Disable the --enable-maintainer_mode option.
|
||||||
|
if [ "${maintainer_mode_option}" = off ]; then
|
||||||
|
maintainer_mode_option=
|
||||||
|
elif [ -z "${maintainer_mode_option}" ]; then
|
||||||
|
maintainer_mode_option=--enable-maintainer-mode
|
||||||
|
fi
|
||||||
|
|
||||||
# **** FIND VERSION ****
|
# **** FIND VERSION ****
|
||||||
# This is a helper for the configure.ac M4 magic
|
# This is a helper for the configure.ac M4 magic
|
||||||
@ -250,13 +264,15 @@ if [ "$myhost" = "find-version" ]; then
|
|||||||
if [ -n "$tmp" ]; then
|
if [ -n "$tmp" ]; then
|
||||||
tmp=$(echo "$tmp" | sed s/^"$package"// \
|
tmp=$(echo "$tmp" | sed s/^"$package"// \
|
||||||
| awk -F- '$3!=0 && $3 !~ /^beta/ {print"-beta"$3}')
|
| awk -F- '$3!=0 && $3 !~ /^beta/ {print"-beta"$3}')
|
||||||
else
|
fi
|
||||||
|
if [ -z "$tmp" ]; then
|
||||||
# (due tof "-base" in the tag we need to take the 4th field)
|
# (due tof "-base" in the tag we need to take the 4th field)
|
||||||
tmp=$(git describe --match "${matchstr2}" --long 2>/dev/null)
|
tmp=$(git describe --match "${matchstr2}" --long 2>/dev/null)
|
||||||
if [ -n "$tmp" ]; then
|
if [ -n "$tmp" ]; then
|
||||||
tmp=$(echo "$tmp" | sed s/^"$package"// \
|
tmp=$(echo "$tmp" | sed s/^"$package"// \
|
||||||
| awk -F- '$4!=0 && $4 !~ /^beta/ {print"-beta"$4}')
|
| awk -F- '$4!=0 && $4 !~ /^beta/ {print"-beta"$4}')
|
||||||
elif [ -n "${matchstr3}" ]; then
|
fi
|
||||||
|
if [ -z "$tmp" -a -n "${matchstr3}" ]; then
|
||||||
tmp=$(git describe --match "${matchstr3}" --long 2>/dev/null)
|
tmp=$(git describe --match "${matchstr3}" --long 2>/dev/null)
|
||||||
if [ -n "$tmp" ]; then
|
if [ -n "$tmp" ]; then
|
||||||
tmp=$(echo "$tmp" | sed s/^"$package"// \
|
tmp=$(echo "$tmp" | sed s/^"$package"// \
|
||||||
@ -282,6 +298,14 @@ if [ "$myhost" = "find-version" ]; then
|
|||||||
fi
|
fi
|
||||||
# **** end FIND VERSION ****
|
# **** end FIND VERSION ****
|
||||||
|
|
||||||
|
# **** PRINT TSDIR VERSION ****
|
||||||
|
# This is a helper used by some configure.ac M4 magic
|
||||||
|
if [ "$myhost" = "print-tsdir" ]; then
|
||||||
|
echo "$tsdir"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
# **** end PRINT TSDIR ****
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f "$tsdir/build-aux/config.guess" ]; then
|
if [ ! -f "$tsdir/build-aux/config.guess" ]; then
|
||||||
fatal "$tsdir/build-aux/config.guess not found"
|
fatal "$tsdir/build-aux/config.guess not found"
|
||||||
@ -313,6 +337,7 @@ if [ "$myhost" = "w32" ]; then
|
|||||||
extraoptions="$extraoptions $w32_extraoptions"
|
extraoptions="$extraoptions $w32_extraoptions"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
w32root=$(echo "$w32root" | sed s,^//,/,)
|
||||||
info "Using $w32root as standard install directory"
|
info "Using $w32root as standard install directory"
|
||||||
replace_sysroot
|
replace_sysroot
|
||||||
|
|
||||||
@ -345,7 +370,7 @@ if [ "$myhost" = "w32" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$tsdir/configure --enable-maintainer-mode ${SILENT} \
|
$tsdir/configure "${maintainer_mode_option}" ${SILENT} \
|
||||||
--prefix=${w32root} \
|
--prefix=${w32root} \
|
||||||
--host=${host} --build=${build} SYSROOT=${w32root} \
|
--host=${host} --build=${build} SYSROOT=${w32root} \
|
||||||
PKG_CONFIG_LIBDIR=${w32root}/lib/pkgconfig \
|
PKG_CONFIG_LIBDIR=${w32root}/lib/pkgconfig \
|
||||||
@ -390,7 +415,7 @@ if [ "$myhost" = "amd64" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$tsdir/configure --enable-maintainer-mode ${SILENT} \
|
$tsdir/configure "${maintainer_mode_option}" ${SILENT} \
|
||||||
--prefix=${amd64root} \
|
--prefix=${amd64root} \
|
||||||
--host=${host} --build=${build} \
|
--host=${host} --build=${build} \
|
||||||
${configure_opts} ${extraoptions} "$@"
|
${configure_opts} ${extraoptions} "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user