diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-07 08:53:26 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-11 03:50:35 +0300 |
commit | 7f8fa1de4fd35c96b61d2f80155bc1aa09367e3d (patch) | |
tree | d8c8561110289afe1b5cc5b43de5d893874613f4 /libgloss/aarch64 | |
parent | cf8aa432844d912d0a0d2d6bebe2c3de22be0914 (diff) |
libgloss: hardcode AC_CONFIG_AUX_DIR path
In order to transition to automake, we have to use hardcoded paths in
the AC_CONFIG_AUX_DIR macro call (since automake evaluates the path
itself, and doesn't expand vars), so simplify all the calls here.
Diffstat (limited to 'libgloss/aarch64')
-rwxr-xr-x | libgloss/aarch64/configure | 16 | ||||
-rw-r--r-- | libgloss/aarch64/configure.ac | 14 | ||||
-rwxr-xr-x | libgloss/aarch64/cpu-init/configure | 16 | ||||
-rw-r--r-- | libgloss/aarch64/cpu-init/configure.ac | 14 |
4 files changed, 10 insertions, 50 deletions
diff --git a/libgloss/aarch64/configure b/libgloss/aarch64/configure index bb91e6665..b660ebd9a 100755 --- a/libgloss/aarch64/configure +++ b/libgloss/aarch64/configure @@ -1765,17 +1765,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi ac_aux_dir= -for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do +for ac_dir in ../.. "$srcdir"/../..; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -1791,7 +1782,7 @@ for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do fi done if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" "$LINENO" 5 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -3288,7 +3279,6 @@ target=${target} with_multisubdir=${with_multisubdir} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} _ACEOF @@ -3856,7 +3846,7 @@ $as_echo X"$file" | done } ;; - "Makefile":F) . ${libgloss_topdir}/config-ml.in ;; + "Makefile":F) . ${srcdir}/../../config-ml.in ;; esac done # for ac_tag diff --git a/libgloss/aarch64/configure.ac b/libgloss/aarch64/configure.ac index 88acc0f4d..da932e51a 100644 --- a/libgloss/aarch64/configure.ac +++ b/libgloss/aarch64/configure.ac @@ -2,16 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.69)dnl AC_INIT(crt0.S) -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) +AC_CONFIG_AUX_DIR(../..) AC_CANONICAL_SYSTEM AC_ARG_PROGRAM @@ -54,12 +45,11 @@ if test -d "${srcdir}/cpu-init"; then fi AC_CONFIG_FILES(Makefile, -. ${libgloss_topdir}/config-ml.in, +. ${srcdir}/../../config-ml.in, srcdir=${srcdir} target=${target} with_multisubdir=${with_multisubdir} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} ) AC_OUTPUT diff --git a/libgloss/aarch64/cpu-init/configure b/libgloss/aarch64/cpu-init/configure index 2a1f602b1..bc5df10cd 100755 --- a/libgloss/aarch64/cpu-init/configure +++ b/libgloss/aarch64/cpu-init/configure @@ -1762,17 +1762,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../../.." -fi ac_aux_dir= -for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do +for ac_dir in ../../.. "$srcdir"/../../..; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -1788,7 +1779,7 @@ for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do fi done if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" "$LINENO" 5 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../.. \"$srcdir\"/../../.." "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -3267,7 +3258,6 @@ target=${target} with_multisubdir=${with_multisubdir} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} _ACEOF @@ -3835,7 +3825,7 @@ $as_echo X"$file" | done } ;; - "Makefile":F) . ${libgloss_topdir}/config-ml.in ;; + "Makefile":F) . ${srcdir}/../../../config-ml.in ;; esac done # for ac_tag diff --git a/libgloss/aarch64/cpu-init/configure.ac b/libgloss/aarch64/cpu-init/configure.ac index e93b8234f..40a33c055 100644 --- a/libgloss/aarch64/cpu-init/configure.ac +++ b/libgloss/aarch64/cpu-init/configure.ac @@ -2,16 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.69)dnl AC_INIT(Makefile.in) -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) +AC_CONFIG_AUX_DIR(../../..) AC_CANONICAL_SYSTEM AC_ARG_PROGRAM @@ -39,12 +30,11 @@ AC_SUBST(host_makefile_frag_path) AC_SUBST_FILE(host_makefile_frag) AC_CONFIG_FILES(Makefile, -. ${libgloss_topdir}/config-ml.in, +. ${srcdir}/../../../config-ml.in, srcdir=${srcdir} target=${target} with_multisubdir=${with_multisubdir} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} ) AC_OUTPUT |