Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure.ac: fix for upcoming autoconf-2.70 #3773

Merged
merged 1 commit into from Nov 17, 2020
Merged

configure.ac: fix for upcoming autoconf-2.70 #3773

merged 1 commit into from Nov 17, 2020

Conversation

trofi
Copy link
Contributor

@trofi trofi commented Nov 16, 2020

The failure initially noticed on autoconf-2.69d (soon to
become 2.70):

$ ./configure
./configure: line 8720: syntax error near unexpected token `fi'
./configure: line 8720: `fi'

Before the change generated ./configure snippet looked like:

    if ! $CC -E -xc - <<SRC >/dev/null
then :

	#if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
	#error premature clang
	#endif
SRC
	as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5
fi

Note the newline that breaks here-document syntax.

After the change the snippet does not use here-document.

configure.ac Outdated Show resolved Hide resolved
The failure initially noticed on `autoconf-2.69d` (soon to become 2.70):

```
$ ./configure
./configure: line 8720: syntax error near unexpected token `fi'
./configure: line 8720: `fi'
```

Before the change generated `./configure ` snippet looked like:

```
    if ! $CC -E -xc - <<SRC >/dev/null
then :

	#if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
	#error premature clang
	#endif
SRC
	as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5
fi
```

Note the newline that breaks here-document syntax.

After the change the snippet does not use here-document.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
@nobu nobu merged commit fcc88da into ruby:master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants