dc_versionscript.m4 at [70222fd9bf]

File aclocal/dc_versionscript.m4 artifact c4a310ce3f part of check-in 70222fd9bf


AC_DEFUN(DC_SETVERSIONSCRIPT, [
	VERSIONSCRIPT="$1"

	SAVE_LDFLAGS="${LDFLAGS}"

	AC_MSG_CHECKING([for how to set version script])

	for addldflags in "-Wl,--version-script -Wl,${VERSIONSCRIPT}"; do
		LDFLAGS="${SAVE_LDFLAGS} ${addldflags}"
		AC_TRY_LINK([], [], [
			AC_MSG_RESULT($addldflags)
		], [
			AC_MSG_RESULT([don't know])

			LDFLAGS="${SAVE_LDFLAGS}"
		])
	done
])