Feature #186 ยป 0031-Updated-lib-.m4.patch
| m4/lib-ld.m4 | ||
|---|---|---|
|
# lib-ld.m4 serial 12
|
||
|
dnl Copyright (C) 1996-2003, 2009-2023 Free Software Foundation, Inc.
|
||
|
# lib-ld.m4 serial 13
|
||
|
dnl Copyright (C) 1996-2003, 2009-2024 Free Software Foundation, Inc.
|
||
|
dnl This file is free software; the Free Software Foundation
|
||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||
|
dnl with or without modifications, as long as this notice is preserved.
|
||
| ... | ... | |
|
fi
|
||
|
if test -n "$ac_prog"; then
|
||
|
# Search for $ac_prog in $PATH.
|
||
|
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
||
|
acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
|
||
|
for ac_dir in $PATH; do
|
||
|
IFS="$acl_save_ifs"
|
||
|
IFS="$acl_saved_IFS"
|
||
|
test -z "$ac_dir" && ac_dir=.
|
||
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
||
|
acl_cv_path_LD="$ac_dir/$ac_prog"
|
||
| ... | ... | |
|
esac
|
||
|
fi
|
||
|
done
|
||
|
IFS="$acl_save_ifs"
|
||
|
IFS="$acl_saved_IFS"
|
||
|
fi
|
||
|
case $host in
|
||
|
*-*-aix*)
|
||
| m4/lib-link.m4 | ||
|---|---|---|
|
# lib-link.m4 serial 33
|
||
|
dnl Copyright (C) 2001-2023 Free Software Foundation, Inc.
|
||
|
# lib-link.m4 serial 34
|
||
|
dnl Copyright (C) 2001-2024 Free Software Foundation, Inc.
|
||
|
dnl This file is free software; the Free Software Foundation
|
||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||
|
dnl with or without modifications, as long as this notice is preserved.
|
||
| ... | ... | |
|
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
|
||
|
dnl because if the user has installed lib[]Name and not disabled its use
|
||
|
dnl via --without-lib[]Name-prefix, he wants to use it.
|
||
|
ac_save_CPPFLAGS="$CPPFLAGS"
|
||
|
acl_saved_CPPFLAGS="$CPPFLAGS"
|
||
|
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
||
|
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
|
||
|
ac_save_LIBS="$LIBS"
|
||
|
acl_saved_LIBS="$LIBS"
|
||
|
dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
|
||
|
dnl because these -l options might require -L options that are present in
|
||
|
dnl LIBS. -l options benefit only from the -L options listed before it.
|
||
| ... | ... | |
|
[AC_LANG_PROGRAM([[$3]], [[$4]])],
|
||
|
[ac_cv_lib[]Name=yes],
|
||
|
[ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
|
||
|
LIBS="$ac_save_LIBS"
|
||
|
LIBS="$acl_saved_LIBS"
|
||
|
])
|
||
|
if test "$ac_cv_lib[]Name" = yes; then
|
||
|
HAVE_LIB[]NAME=yes
|
||
| ... | ... | |
|
HAVE_LIB[]NAME=no
|
||
|
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
|
||
|
dnl $INC[]NAME either.
|
||
|
CPPFLAGS="$ac_save_CPPFLAGS"
|
||
|
CPPFLAGS="$acl_saved_CPPFLAGS"
|
||
|
LIB[]NAME=
|
||
|
LTLIB[]NAME=
|
||
|
LIB[]NAME[]_PREFIX=
|
||
| ... | ... | |
|
dnl Read the .la file. It defines the variables
|
||
|
dnl dlname, library_names, old_library, dependency_libs, current,
|
||
|
dnl age, revision, installed, dlopen, dlpreopen, libdir.
|
||
|
save_libdir="$libdir"
|
||
|
saved_libdir="$libdir"
|
||
|
case "$found_la" in
|
||
|
*/* | *\\*) . "$found_la" ;;
|
||
|
*) . "./$found_la" ;;
|
||
|
esac
|
||
|
libdir="$save_libdir"
|
||
|
libdir="$saved_libdir"
|
||
|
dnl We use only dependency_libs.
|
||
|
for dep in $dependency_libs; do
|
||
|
case "$dep" in
|
||
| ... | ... | |
|
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
|
||
|
done
|
||
|
dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
|
||
|
acl_save_libdir="$libdir"
|
||
|
acl_saved_libdir="$libdir"
|
||
|
libdir="$alldirs"
|
||
|
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
||
|
libdir="$acl_save_libdir"
|
||
|
libdir="$acl_saved_libdir"
|
||
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
||
|
else
|
||
|
dnl The -rpath options are cumulative.
|
||
|
for found_dir in $rpathdirs; do
|
||
|
acl_save_libdir="$libdir"
|
||
|
acl_saved_libdir="$libdir"
|
||
|
libdir="$found_dir"
|
||
|
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
||
|
libdir="$acl_save_libdir"
|
||
|
libdir="$acl_saved_libdir"
|
||
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
||
|
done
|
||
|
fi
|
||
| ... | ... | |
|
for dir in $rpathdirs; do
|
||
|
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
|
||
|
done
|
||
|
acl_save_libdir="$libdir"
|
||
|
acl_saved_libdir="$libdir"
|
||
|
libdir="$alldirs"
|
||
|
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
||
|
libdir="$acl_save_libdir"
|
||
|
libdir="$acl_saved_libdir"
|
||
|
$1="$flag"
|
||
|
else
|
||
|
dnl The -rpath options are cumulative.
|
||
|
for dir in $rpathdirs; do
|
||
|
acl_save_libdir="$libdir"
|
||
|
acl_saved_libdir="$libdir"
|
||
|
libdir="$dir"
|
||
|
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
||
|
libdir="$acl_save_libdir"
|
||
|
libdir="$acl_saved_libdir"
|
||
|
$1="${$1}${$1:+ }$flag"
|
||
|
done
|
||
|
fi
|
||
| m4/lib-prefix.m4 | ||
|---|---|---|
|
# lib-prefix.m4 serial 20
|
||
|
dnl Copyright (C) 2001-2005, 2008-2022 Free Software Foundation, Inc.
|
||
|
# lib-prefix.m4 serial 21
|
||
|
dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc.
|
||
|
dnl This file is free software; the Free Software Foundation
|
||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||
|
dnl with or without modifications, as long as this notice is preserved.
|
||
| ... | ... | |
|
else
|
||
|
acl_final_exec_prefix="$exec_prefix"
|
||
|
fi
|
||
|
acl_save_prefix="$prefix"
|
||
|
acl_saved_prefix="$prefix"
|
||
|
prefix="$acl_final_prefix"
|
||
|
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
||
|
prefix="$acl_save_prefix"
|
||
|
prefix="$acl_saved_prefix"
|
||
|
])
|
||
|
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
|
||
| ... | ... | |
|
dnl at the end of the configure script.
|
||
|
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
|
||
|
[
|
||
|
acl_save_prefix="$prefix"
|
||
|
acl_saved_prefix="$prefix"
|
||
|
prefix="$acl_final_prefix"
|
||
|
acl_save_exec_prefix="$exec_prefix"
|
||
|
acl_saved_exec_prefix="$exec_prefix"
|
||
|
exec_prefix="$acl_final_exec_prefix"
|
||
|
$1
|
||
|
exec_prefix="$acl_save_exec_prefix"
|
||
|
prefix="$acl_save_prefix"
|
||
|
exec_prefix="$acl_saved_exec_prefix"
|
||
|
prefix="$acl_saved_prefix"
|
||
|
])
|
||
|
dnl AC_LIB_PREPARE_MULTILIB creates
|
||
| ... | ... | |
|
fi
|
||
|
fi
|
||
|
if test -n "$searchpath"; then
|
||
|
acl_save_IFS="${IFS= }"; IFS=":"
|
||
|
acl_saved_IFS="${IFS= }"; IFS=":"
|
||
|
for searchdir in $searchpath; do
|
||
|
if test -d "$searchdir"; then
|
||
|
case "$searchdir" in
|
||
| ... | ... | |
|
esac
|
||
|
fi
|
||
|
done
|
||
|
IFS="$acl_save_IFS"
|
||
|
IFS="$acl_saved_IFS"
|
||
|
if test $HOST_CPU_C_ABI_32BIT = yes; then
|
||
|
# 32-bit ABI.
|
||
|
acl_libdirstem3=
|
||