]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Don't build readline/libreadline.a, when --with-system-readline is supplied
authorДилян Палаузов <dilyan.palauzov@aegee.org>
Thu, 20 Oct 2022 15:05:04 +0000 (17:05 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 21 Oct 2022 06:51:16 +0000 (08:51 +0200)
https://sourceware.org/bugzilla/show_bug.cgi?id=18632

The bundled libreadline is always built, even if the system is
./configure'd --with-system-readline and the build libreadline.a is not
used.

Proposed patch:

Fix ./configure.ac not to proceed readline/, when --with-system-
readline is provided

* configure.ac: Don't configure readline if --with-system-readline is
used.
* configure: Re-generate.

configure
configure.ac

index d9aa84c6138ad867c21f55232b1db4c9ce24a0c4..007a77a5f6c9988832c38a6792e196493d635a17 100755 (executable)
--- a/configure
+++ b/configure
@@ -2946,6 +2946,12 @@ if test x$with_system_zlib = xyes ; then
   noconfigdirs="$noconfigdirs zlib"
 fi
 
+# Don't compile the bundled readline/libreadline.a if --with-system-readline
+# is provided.
+if test x$with_system_readline = xyes ; then
+  noconfigdirs="$noconfigdirs readline"
+fi
+
 # some tools are so dependent upon X11 that if we're not building with X,
 # it's not even worth trying to configure, much less build, that tool.
 
index 2cff32e300ea251d1794d3cd86a85245773d576c..1df410bba1f822701b87929e82c3826897874ebb 100644 (file)
@@ -247,6 +247,12 @@ if test x$with_system_zlib = xyes ; then
   noconfigdirs="$noconfigdirs zlib"
 fi
 
+# Don't compile the bundled readline/libreadline.a if --with-system-readline
+# is provided.
+if test x$with_system_readline = xyes ; then
+  noconfigdirs="$noconfigdirs readline"
+fi
+
 # some tools are so dependent upon X11 that if we're not building with X, 
 # it's not even worth trying to configure, much less build, that tool.