Skip to content

Commit 0c11fb1

Browse files
Add --[no-]force-autogen option
This is to tackle issues of automake version mismatch with aclocal.m4, etc. Adding --force-autogen forces './autogen.sh' to be run, which should resolve the aforementioned issue.
1 parent a7bcae6 commit 0c11fb1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

install_gpg_component.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ OPTIONS
8585
8686
By default this option is off.
8787
88+
--[no-]force-autogen
89+
Whether to do './autogen.sh', regardless of whether 'configure' exists.
90+
91+
By default this option is off.
92+
8893
--[no-]sudo
8994
Whether to do 'sudo make install', or just 'make install', and whether
9095
to update ldconfig configuration. Note that the ldconfig update is
@@ -133,6 +138,7 @@ set_default_options()
133138
_arg_sudo="off"
134139
_arg_verify="off"
135140
_arg_verbose=()
141+
_arg_force_autogen="off"
136142
_arg_git="off"
137143
_arg_color="off"
138144
_arg_folding_style="none"
@@ -170,6 +176,14 @@ parse_cli_arguments()
170176
shift
171177
shift
172178
;;
179+
--force-autogen)
180+
_arg_force_autogen="on"
181+
shift
182+
;;
183+
--no-force-autogen)
184+
_arg_force_autogen="off"
185+
shift
186+
;;
173187
--ldconfig)
174188
_arg_ldconfig="on"
175189
shift
@@ -390,7 +404,7 @@ build_and_install()
390404

391405
patch_sources
392406

393-
if [[ ! -f configure ]]; then
407+
if [[ ! -f configure ]] || [[ "${_arg_force_autogen}" = "on" ]]; then
394408
fold_start "component.${_arg_component}.autogen"
395409
./autogen.sh
396410
fold_end "component.${_arg_component}.autogen"

0 commit comments

Comments
 (0)