configure: Detect linking style for HP aCC on HP-UX

HP aCC does not accept any of the previously tested CC_LD_DYNPATH formats, but only its own[1] "-Wl,+b" format. Add it to configure.ac. 1. http://nixdoc.net/man-pages/hp-ux/man1/ld_pa.1.html Signed-off-by: Michael Osipov <michael.osipov@siemens.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Osipov committed May 16, 2019 at 11:34 UTC 9a1699c88eceaba695603511566727a4629284a1
1 file changed +12 -2
configure.ac
+12 -2
@@ -475,8 +475,18 @@ else
475 if test "$git_cv_ld_rpath" = "yes"; then
476 CC_LD_DYNPATH=-rpath
477 else
478 - CC_LD_DYNPATH=
479 - AC_MSG_WARN([linker does not support runtime path to dynamic libraries])
478 + AC_CACHE_CHECK([if linker supports -Wl,+b,], git_cv_ld_wl_b, [
479 + SAVE_LDFLAGS="${LDFLAGS}"
480 + LDFLAGS="${SAVE_LDFLAGS} -Wl,+b,/"
481 + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [git_cv_ld_wl_b=yes], [git_cv_ld_wl_b=no])
482 + LDFLAGS="${SAVE_LDFLAGS}"
483 + ])
484 + if test "$git_cv_ld_wl_b" = "yes"; then
485 + CC_LD_DYNPATH=-Wl,+b,
486 + else
487 + CC_LD_DYNPATH=
488 + AC_MSG_WARN([linker does not support runtime path to dynamic libraries])
489 + fi
490 fi
491 fi
492 fi