Artifact 1249f626fd8b0f89dcf4ce7576411b497c279cd4:
- File aclocal/dc_versionscript.m4 — part of check-in [3dee1a5953] at 2010-05-17 14:44:38 on branch trunk — Updated version-script detection macro (user: rkeene, size: 502) [annotate] [blame] [check-ins using]
AC_DEFUN(DC_SETVERSIONSCRIPT, [ VERSIONSCRIPT="$1" SAVE_LDFLAGS="${LDFLAGS}" AC_MSG_CHECKING([for how to set version script]) for tryaddldflags in "-Wl,--version-script -Wl,${VERSIONSCRIPT}"; do LDFLAGS="${SAVE_LDFLAGS} ${tryaddldflags}" AC_TRY_LINK([], [], [ addldflags="${tryaddldflags}" 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 ])