Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
In a configure file (#!/bin/sh/) generated by autoconf, there is a paragraph inside like the following:
if ac_fn_cxx_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
succeeded=yes
found_system=yes
And when I execute ./configure it tells me "syntax error near unexpected token `fi'" at that line. It is not the end of the file.
–
–
if ac_fn_cxx_try_compile "$LINENO"; then
$as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6;
succeeded=yes
found_system=yes
## look nothing here !!
## at least put a ':'
## or delete else altogether
I ran into this error when compiling libtorrent with minGW.
The problem was a m4 macro saved as a DOS file. Converting "ax_boost_base.m4" to linux file endings did the trick.
I am almost sure I have misconfigured GIT on my windows: It converts all files to DOS which is no good idea.
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.