Diff

Differences From Artifact [c4a310ce3f]:

To Artifact [1249f626fd]:


1
2
3
4
5
6
7
8
9


10
11

12
13
14
15

16
17








18
1
2
3
4
5
6
7


8
9
10

11


12

13
14
15
16
17
18
19
20
21
22
23
24







-
-
+
+

-
+
-
-

-
+


+
+
+
+
+
+
+
+

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}"
	for tryaddldflags in "-Wl,--version-script -Wl,${VERSIONSCRIPT}"; do
		LDFLAGS="${SAVE_LDFLAGS} ${tryaddldflags}"
		AC_TRY_LINK([], [], [
			AC_MSG_RESULT($addldflags)
			addldflags="${tryaddldflags}"
		], [
			AC_MSG_RESULT([don't know])

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

	if test -n "${addldflags}"; then
		LDFLAGS="${SAVE_LDFLAGS} ${addldflags}"
		AC_MSG_RESULT($addldflags)
	else
		LDFLAGS="${SAVE_LDFLAGS}"
		AC_MSG_RESULT([don't know])
	fi
])