diff mbox series

[committed] libcc1: Fix up libcc1 configure [PR98330]

Message ID 20201218192853.GG3788@tucnak
State New
Headers show
Series [committed] libcc1: Fix up libcc1 configure [PR98330] | expand

Commit Message

Jakub Jelinek Dec. 18, 2020, 7:28 p.m. UTC
On Wed, Dec 02, 2020 at 04:11:24PM +0000, Iain Sandoe wrote:
> > > --- a/libcc1/configure.ac
> > > +++ b/libcc1/configure.ac
> > > @@ -104,6 +104,12 @@ AC_CACHE_CHECK([for socket libraries],
> > > libcc1_cv_lib_sockets,
> > > ])
> > > LIBS="$LIBS $libcc1_cv_lib_sockets"
> > > 
> > > +case "$host" in
> > > +  *-*-darwin*) darwin_dynamic_lookup=yes ;;
> > > +  *) darwin_dynamic_lookup= ;;
> > > +esac
> > > +AM_CONDITIONAL(DARWIN_DYNAMIC_LOOKUP, test $darwin_dynamic_lookup = yes)

Either we should write test x$darwin_dynamic_lookup = xyes
or we should make sure the variable is always defined to non-empty string.

The following patch does the latter, committed to trunk as obvious.

2020-12-18  Jakub Jelinek  <jakub@redhat.com>

	PR bootstrap/98380
	* configure.ac: Set darwin_dynamic_lookup=no instead to empty
	string.
	* configure: Regenerated.


	Jakub
diff mbox series

Patch

--- libcc1/configure.ac.jj	2020-12-06 10:51:32.555577671 +0100
+++ libcc1/configure.ac	2020-12-18 20:18:22.615201701 +0100
@@ -106,7 +106,7 @@  LIBS="$LIBS $libcc1_cv_lib_sockets"
 
 case "$host" in
   *-*-darwin*) darwin_dynamic_lookup=yes ;;
-  *) darwin_dynamic_lookup= ;;
+  *) darwin_dynamic_lookup=no ;;
 esac
 AM_CONDITIONAL(DARWIN_DYNAMIC_LOOKUP, test $darwin_dynamic_lookup = yes)
 
--- libcc1/configure.jj	2020-12-06 10:51:32.555577671 +0100
+++ libcc1/configure	2020-12-18 20:18:30.373121348 +0100
@@ -14976,7 +14976,7 @@  LIBS="$LIBS $libcc1_cv_lib_sockets"
 
 case "$host" in
   *-*-darwin*) darwin_dynamic_lookup=yes ;;
-  *) darwin_dynamic_lookup= ;;
+  *) darwin_dynamic_lookup=no ;;
 esac
  if test $darwin_dynamic_lookup = yes; then
   DARWIN_DYNAMIC_LOOKUP_TRUE=