From f6cb5c72bc6d8dc4d57948294f6a38e3d95afcc7 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 5 Sep 2020 15:38:33 -0600 Subject: [PATCH] Prefer dlopen() over shl_load() on HP-UX 11.11 and higher. --- configure | 8 ++++++++ configure.ac | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/configure b/configure index e6a60f9af..a8f8e39cc 100755 --- a/configure +++ b/configure @@ -7263,6 +7263,14 @@ fi ;; esac +case "$host_os" in +hiuxmpp*|hpux11.1[1-9]|hpux11.[2-9][0-9]|hpux1[2-9].*) + # Prefer dlopen() over shl_load() + : ${ac_cv_func_shl_load='no'} + : ${ac_cv_lib_dld_shl_load='no'} + ;; +esac + case `pwd` in *\ * | *\ *) diff --git a/configure.ac b/configure.ac index fb96f051f..58b3fd9d1 100644 --- a/configure.ac +++ b/configure.ac @@ -1716,6 +1716,19 @@ aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) ;; esac +dnl +dnl On HP-UX 11.11 and higher (and hiuxmpp) we prefer dlopen() +dnl over shl_load(). Libtool defaults to shl_load() so we need +dnl to prime the cache to override that default. +dnl +case "$host_os" in +hiuxmpp*|hpux11.1[[1-9]]|hpux11.[[2-9]][[0-9]]|hpux1[[2-9]].*) + # Prefer dlopen() over shl_load() + : ${ac_cv_func_shl_load='no'} + : ${ac_cv_lib_dld_shl_load='no'} + ;; +esac + dnl dnl Libtool init, we require libtool 2.2.6b or higher dnl