From 243a1011e5a72740b506868e4e4796d8a8b3fe35 Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Sat, 20 Jan 2024 21:25:36 -0600 Subject: [PATCH] Quote the default pkgconfigdir The second argument to AC_SUBST is placed on the right-hand-side of a shell variable assignment. Without the single quotes, ${libdir} is expanded when that variable assignment is executed, which is earlier than we want. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b64f2a00..452af68c 100644 --- a/configure.ac +++ b/configure.ac @@ -342,7 +342,7 @@ AM_CONDITIONAL([BLACS], [false]) AM_CONDITIONAL([ICB], [test x"$enable_icb" != x"no"]) AM_CONDITIONAL([EIGEN], [test x"$enable_eigen" != x"no"]) -m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_SUBST([pkgconfigdir], [${libdir}/pkgconfig])]) +m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_SUBST([pkgconfigdir], ['${libdir}/pkgconfig'])]) AC_SUBST([ARPACK_PC_LIBS_PRIVATE], ["$LAPACK_LIBS $BLAS_LIBS"]) AC_SUBST([PARPACK_PC_LIBS_PRIVATE], ["$LAPACK_LIBS $BLAS_LIBS $MPI_Fortran_LIBS"])