dc_versionscript.m4 at [26acceb6f2]

File aclocal/dc_versionscript.m4 artifact c4a310ce3f part of check-in 26acceb6f2


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
])