diff --git a/aclocal.m4 b/aclocal.m4 index 04a3894208..ea01ba9fa1 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.17 -*- Autoconf -*- +# generated automatically by aclocal 1.18.1 -*- Autoconf -*- -# Copyright (C) 1996-2024 Free Software Foundation, Inc. +# Copyright (C) 1996-2025 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff --git a/configure b/configure index d1dbfb61c5..13e189bb80 100755 --- a/configure +++ b/configure @@ -1687,7 +1687,7 @@ Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [/etc] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] @@ -14100,8 +14100,6 @@ printf %s "checking whether the $compiler linker ($LD) supports shared libraries hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported - fix_hardcoded_libdir_flag_spec= - fix_hardcoded_libdir_flag_spec_ld= inherit_rpath=no link_all_deplibs=unknown module_cmds= @@ -14942,14 +14940,12 @@ fi hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - module_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' - module_cmds='$LD -b -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir $fix_hardcoded_libdir_flag' + hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes @@ -14957,47 +14953,6 @@ fi # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes - # gcc-3.0.1 (collect2) breaks on -Wl,+cdp. - # HP-cc ignores -Wl,+cdp, and we test the linker for +cdp support. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if +cdp linker flag works" >&5 -printf %s "checking if +cdp linker flag works... " >&6; } -if test ${lt_cv_ldflag_cdp_works+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_ldflag_cdp_works=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - lt_cv_ldflag_cdp_works=yes -else case e in #( - e) lt_cv_ldflag_cdp_works=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ldflag_cdp_works" >&5 -printf "%s\n" "$lt_cv_ldflag_cdp_works" >&6; } - if test "$lt_cv_ldflag_cdp_works" = yes; then - fix_hardcoded_libdir_flag_spec='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}' - fix_hardcoded_libdir_flag_spec_ld='+cdp ${linkdir}/${dlname}:${libdir}/${dlname}' - fi fi ;; @@ -15006,26 +14961,21 @@ printf "%s\n" "$lt_cv_ldflag_cdp_works" >&6; } case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - module_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - module_cmds='$CC -shared $pic_flag $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - module_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - module_cmds='$CC -b -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - module_cmds='$CC -b $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) @@ -15065,22 +15015,16 @@ fi printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then - - archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - module_cmds='$CC -b -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - + archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else - - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' - module_cmds='$LD -b -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' - + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir $fix_hardcoded_libdir_flag' + hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in @@ -15096,47 +15040,6 @@ fi # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes - # gcc-3.0.1 (collect2) breaks on -Wl,+cdp. - # HP-cc ignores -Wl,+cdp, and we test the linker for +cdp support. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if +cdp linker flag works" >&5 -printf %s "checking if +cdp linker flag works... " >&6; } -if test ${lt_cv_ldflag_cdp_works+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_ldflag_cdp_works=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - lt_cv_ldflag_cdp_works=yes -else case e in #( - e) lt_cv_ldflag_cdp_works=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ldflag_cdp_works" >&5 -printf "%s\n" "$lt_cv_ldflag_cdp_works" >&6; } - if test "$lt_cv_ldflag_cdp_works" = yes; then - fix_hardcoded_libdir_flag_spec='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}' - fix_hardcoded_libdir_flag_spec_ld='+cdp ${linkdir}/${dlname}:${libdir}/${dlname}' - fi ;; esac fi @@ -15693,16 +15596,6 @@ esac - - - - - - - - - - @@ -17233,7 +17126,6 @@ if test -n "$hardcode_libdir_flag_spec" || # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && - test -z "$fix_hardcoded_libdir_flag_spec" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink @@ -26114,7 +26006,7 @@ fi libssl="`$PKG_CONFIG --libs-only-l $pkg_openssl | sed 's/^ *-l//'`" libssl_extra="`echo $libssl | sed 's/^[^ ]* *//'`" libssl="`echo $libssl | sed 's/ .*//'`" - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libssl""_SSL_new$libssl_extra" | sed "$as_sed_sh"` + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libssl""_SSL_new" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -l$libssl" >&5 printf %s "checking for SSL_new in -l$libssl... " >&6; } if eval test \${$as_ac_Lib+y} @@ -26306,7 +26198,7 @@ fi ;; esac done - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libcrypto""_EVP_MD_CTX_new$libcrypto_extra" | sed "$as_sed_sh"` + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libcrypto""_EVP_MD_CTX_new" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -l$libcrypto" >&5 printf %s "checking for EVP_MD_CTX_new in -l$libcrypto... " >&6; } if eval test \${$as_ac_Lib+y} @@ -26594,7 +26486,7 @@ fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 printf %s "checking for SSL_new in -lssl... " >&6; } -if test ${ac_cv_lib_ssl_SSL_new_lcrypto+y} +if test ${ac_cv_lib_ssl_SSL_new+y} then : printf %s "(cached) " >&6 else case e in #( @@ -26623,9 +26515,9 @@ return SSL_new (); _ACEOF if ac_fn_c_try_link "$LINENO" then : - ac_cv_lib_ssl_SSL_new_lcrypto=yes + ac_cv_lib_ssl_SSL_new=yes else case e in #( - e) ac_cv_lib_ssl_SSL_new_lcrypto=no ;; + e) ac_cv_lib_ssl_SSL_new=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ @@ -26633,9 +26525,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ LIBS=$ac_check_lib_save_LIBS ;; esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new_lcrypto" >&5 -printf "%s\n" "$ac_cv_lib_ssl_SSL_new_lcrypto" >&6; } -if test "x$ac_cv_lib_ssl_SSL_new_lcrypto" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 +printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; } +if test "x$ac_cv_lib_ssl_SSL_new" = xyes then : # Check OPENSSL_VERSION_NUMBER in headers @@ -27045,7 +26937,7 @@ fi libssl="`$PKG_CONFIG --libs-only-l wolfssl | sed 's/^ *-l//'`" libssl_extra=`echo $libssl | sed 's/^[^ ]* *//'` libssl=`echo $libssl | sed 's/ .*//'` - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libssl""_wolfSSL_new$libssl_extra" | sed "$as_sed_sh"` + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$libssl""_wolfSSL_new" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_new in -l$libssl" >&5 printf %s "checking for wolfSSL_new in -l$libssl... " >&6; } if eval test \${$as_ac_Lib+y} @@ -30047,10 +29939,9 @@ then : # Check for pam_start() in libpam first, then for pam_appl.h. # found_pam_lib=no - as_ac_Lib=`printf "%s\n" "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 printf %s "checking for pam_start in -lpam... " >&6; } -if eval test \${$as_ac_Lib+y} +if test ${ac_cv_lib_pam_pam_start+y} then : printf %s "(cached) " >&6 else case e in #( @@ -30079,9 +29970,9 @@ return pam_start (); _ACEOF if ac_fn_c_try_link "$LINENO" then : - eval "$as_ac_Lib=yes" + ac_cv_lib_pam_pam_start=yes else case e in #( - e) eval "$as_ac_Lib=no" ;; + e) ac_cv_lib_pam_pam_start=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ @@ -30089,10 +29980,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ LIBS=$ac_check_lib_save_LIBS ;; esac fi -eval ac_res=\$$as_ac_Lib - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 +printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; } +if test "x$ac_cv_lib_pam_pam_start" = xyes then : found_pam_lib=yes fi @@ -38973,8 +38863,6 @@ hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_sing hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' -fix_hardcoded_libdir_flag_spec='`$ECHO "$fix_hardcoded_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' -fix_hardcoded_libdir_flag_spec_ld='`$ECHO "$fix_hardcoded_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' @@ -39080,8 +38968,6 @@ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ -fix_hardcoded_libdir_flag_spec \ -fix_hardcoded_libdir_flag_spec_ld \ exclude_expsyms \ include_expsyms \ file_list_spec \ @@ -40172,12 +40058,6 @@ hardcode_shlibpath_var=$hardcode_shlibpath_var # against it. hardcode_automatic=$hardcode_automatic -# Flag to modify a path being hardcoded into the resulting binary. -fix_hardcoded_libdir_flag_spec=$lt_fix_hardcoded_libdir_flag_spec - -# If ld is used when linking,flag to modify a path being hardcoded into the resulting binary. -fix_hardcoded_libdir_flag_spec_ld=$lt_fix_hardcoded_libdir_flag_spec_ld - # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath diff --git a/m4/libtool.m4 b/m4/libtool.m4 index acdc588a4b..8d323b3ee4 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2212,7 +2212,6 @@ if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && - test -z "$_LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink @@ -5114,8 +5113,6 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)= - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec_ld, $1)= _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= @@ -5839,14 +5836,12 @@ _LT_EOF hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - _LT_TAGVAR(module_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' - _LT_TAGVAR(module_cmds, $1)='$LD -b -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir $fix_hardcoded_libdir_flag' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes @@ -5854,22 +5849,6 @@ _LT_EOF # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes - # gcc-3.0.1 (collect2) breaks on -Wl,+cdp. - # HP-cc ignores -Wl,+cdp, and we test the linker for +cdp support. - AC_CACHE_CHECK([if +cdp linker flag works], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=yes], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=no]) - LDFLAGS="$save_LDFLAGS" - ]) - if test "$_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)" = yes; then - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}' - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec_ld, $1)='+cdp ${linkdir}/${dlname}:${libdir}/${dlname}' - fi fi ;; @@ -5878,26 +5857,21 @@ _LT_EOF case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(module_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(module_cmds, $1)='$CC -shared $pic_flag $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - _LT_TAGVAR(module_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(module_cmds, $1)='$CC -b -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(module_cmds, $1)='$CC -b $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ @@ -5905,22 +5879,14 @@ _LT_EOF # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], - [ - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - _LT_TAGVAR(module_cmds, $1)='$CC -b -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - ], [ - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' - _LT_TAGVAR(module_cmds, $1)='$LD -b -o $lib $libobjs $deplibs $linker_flags $fix_hardcoded_libdir_flag_ld' - ])], - [ - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - _LT_TAGVAR(module_cmds, $1)='$CC -b -o $lib $libobjs $deplibs $compiler_flags $fix_hardcoded_libdir_flag' - ]) + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir $fix_hardcoded_libdir_flag' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in @@ -5936,22 +5902,6 @@ _LT_EOF # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes - # gcc-3.0.1 (collect2) breaks on -Wl,+cdp. - # HP-cc ignores -Wl,+cdp, and we test the linker for +cdp support. - AC_CACHE_CHECK([if +cdp linker flag works], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=yes], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=no]) - LDFLAGS="$save_LDFLAGS" - ]) - if test "$_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)" = yes; then - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}' - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec_ld, $1)='+cdp ${linkdir}/${dlname}:${libdir}/${dlname}' - fi ;; esac fi @@ -6383,10 +6333,6 @@ _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) -_LT_TAGDECL([], [fix_hardcoded_libdir_flag_spec], [1], - [Flag to modify a path being hardcoded into the resulting binary]) -_LT_TAGDECL([], [fix_hardcoded_libdir_flag_spec_ld], [1], - [If ld is used when linking, flag to modify a path being hardcoded into the resulting binary]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) @@ -6532,8 +6478,6 @@ _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)= -_LT_TAGVAR(fix_hardcoded_libdir_flag_spec_ld, $1)= _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= @@ -7036,7 +6980,7 @@ if test yes != "$_lt_caught_CXX_error"; then hpux10*|hpux11*) if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir $fix_hardcoded_libdir_flag' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in @@ -7058,21 +7002,6 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. - # gcc-3.0.1 (collect2) breaks on -Wl,+cdp. - # HP-aCC ignores -Wl,+cdp, and we test the linker for +cdp support. - AC_CACHE_CHECK([if +cdp linker flag works], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -Wl,+cdp -Wl,/usr/lib/libc.1:/nonexistent -Wl,+cdp -Wl,/lib/libc.1:/nonexistent" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=yes], - [_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)=no]) - LDFLAGS="$save_LDFLAGS" - ]) - if test "$_LT_TAGVAR(lt_cv_ldflag_cdp_works, $1)" = yes; then - _LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)='${wl}+cdp ${wl}${linkdir}/${dlname}:${libdir}/${dlname}' - fi ;; esac @@ -7090,7 +7019,7 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $fix_hardcoded_libdir_flag' + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists @@ -7114,7 +7043,7 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $fix_hardcoded_libdir_flag' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi @@ -7919,10 +7848,6 @@ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)= -_LT_TAGVAR(fix_hardcoded_libdir_flag_spec_ld, $1)= -_LT_TAGVAR(fix_hardcoded_libdir_flag_spec, $1)= -_LT_TAGVAR(fix_hardcoded_libdir_flag_spec_ld, $1)= _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= diff --git a/scripts/ltmain.sh b/scripts/ltmain.sh index 99839e8787..3e6a3db3a5 100644 --- a/scripts/ltmain.sh +++ b/scripts/ltmain.sh @@ -6935,8 +6935,6 @@ func_mode_link () lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= - fix_hardcoded_libdir_flag= - fix_hardcoded_libdir_flag_ld= avoid_version=no bindir= @@ -8753,15 +8751,6 @@ func_mode_link () elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name - elif test -n "$fix_hardcoded_libdir_flag_spec"; then - add_dir="-L${absdir}" - add="-l$name" - if test "${linkmode}" = prog && test "X${absdir}" != "X${libdir}"; then - linkdir=$absdir - eval "fix_hardcoded_libdir_flag=\"\${fix_hardcoded_libdir_flag} ${fix_hardcoded_libdir_flag_spec}\"" - # fix_hardcoded_libdir_flag_ld not needed, programs are linked with $CC - $lt_unset linkdir - fi else lib_linked=no fi @@ -8829,15 +8818,6 @@ func_mode_link () elif test yes = "$hardcode_minus_L"; then add_dir=-L$lt_sysroot$libdir add=-l$name - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib" && - test -n "${fix_hardcoded_libdir_flag_spec}"; then - linkdir="$inst_prefix_dir$libdir" - add_dir="-L$linkdir" - eval "fix_hardcoded_libdir_flag=\"\${fix_hardcoded_libdir_flag} ${fix_hardcoded_libdir_flag_spec}\"" - eval "fix_hardcoded_libdir_flag_ld=\"\${fix_hardcoded_libdir_flag_ld} ${fix_hardcoded_libdir_flag_spec_ld}\"" - $lt_unset linkdir - fi elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; @@ -9220,6 +9200,9 @@ func_mode_link () eval libname=\"$libname_spec\" ;; *) + test no = "$module" \ + && func_fatal_help "libtool library '$output' must begin with 'lib'" + if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname"