Blame project/config/cfgdefs.sh

5443b5
# in projects where [ $mb_use_custom_cfgdefs = yes ],
5443b5
# cfgdefs.sh is invoked from within ./configure via
5443b5
# . $mb_project_dir/project/cfgdefs.sh
5443b5
5443b5
# a successful return from cfgdefs.sh will be followed
5443b5
# by a second invocation of the config_copy() function,
5443b5
# reflecting any changes to common config variables
5443b5
# made by cfgdefs.sh.
5443b5
5443b5
# finally, cfgdefs.sh may update the contents of the
5443b5
# config-time generated cfgdefs.mk.
5443b5
5443b5
5443b5
ltdl_drop_in_replacement='no'
5443b5
5443b5
for arg ; do
5443b5
	case "$arg" in
5443b5
		--as-ltdl-drop-in-replacement )
5443b5
			ltdl_drop_in_replacement='yes' ;;
5443b5
5443b5
		*)
5443b5
			error_msg ${arg#}: "unsupported config argument."
5443b5
			exit 2
5443b5
	esac
5443b5
done
5443b5
5443b5
5443b5
cfgdefs_output_custom_defs()
5443b5
{
5443b5
	sed \
5443b5
		-e 's/@ltdl_drop_in_replacement@/'"$ltdl_drop_in_replacement"'/g' \
5443b5
		"$mb_project_dir/project/config/cfgdefs.in"                       \
5443b5
	| sed -e 's/[ \t]*$//g'                                                   \
5443b5
			>> "$mb_pwd/cfgdefs.mk"
5443b5
}
5443b5
5443b5
5443b5
# cfgdefs.in --> cfgdefs.mk
5443b5
cfgdefs_output_custom_defs
5443b5
5443b5
# all done
5443b5
return 0