elif [ "$_name" = "optional_libs" ]; then
optional_libs_parameters="${optional_libs_parameters:+$optional_libs_parameters }$arg"
else
- # These are unattached args and signify an error
- input_parameters="${input_parameters:+$input_parameters }$arg"
+ # normally anything here are unattached arguments and signify an
+ # error but for compatibility with the 2.8 wx-config and,
+ # especially, configure scripts generated using 2.8 wxwin.m4 and
+ # hence doing `wx-config --version base,std`, we ignore anything
+ # following this option, just as 2.8 version used to do
+ if [ "$_name" != "version" ]; then
+ input_parameters="${input_parameters:+$input_parameters }$arg"
+ fi
fi
continue
;;
decho "--> $prefix/bin/$_last_chance $_legacy_args"
fi
- export WXCONFIG_DELEGATED=yes
+ WXCONFIG_DELEGATED=yes
+ export WXCONFIG_DELEGATED
$prefix/bin/$_last_chance $_legacy_args
exit
decho "--> $wxconfdir/$best_delegate $*"
fi
- export WXCONFIG_DELEGATED=yes
+ WXCONFIG_DELEGATED=yes
+ export WXCONFIG_DELEGATED
$wxconfdir/$best_delegate $*
exit
fi
decho "--> $wxconfdir/`find_eligible_delegates $configmask` $*"
fi
- export WXCONFIG_DELEGATED=yes
+ WXCONFIG_DELEGATED=yes
+ export WXCONFIG_DELEGATED
$wxconfdir/`find_eligible_delegates $configmask` $*
exit
fi