Closed mcooperman closed 1 month ago
correction: the formatting is wrong as confirmed by shellcheck tool on configure
i am using Xcode command line tools ONLY. rest of the stuff not installed. interesting that trying to run the build from scratch seems to keep popping up an install prompt for m4 tool, even though i already did this.
That's weird. The configure
file is actually generated by autoconf depending on your system's configuration. You can try deleting the configure
file and running ./bootstrap.sh
and then ./configure
again.
after multiple attempts to fix this to work with XCode command line tools only... I gave up and re-installed the full XCode, 15.3, bc there is no CLT installer for 15.4 for some reason. This fixed the problem which was that there was some sort of non-functional stub for m4 - it was effectively missing, which busted the execution of the configure script - leaving some improper/incomplete syntax in it. With full XCode installed, license accepted, it builds fine through configure with no errors.
Great!
running on M1 silicon
syntax error near unexpected token `newline'
$ ./configure checking whether make supports nested variables... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 2 checking whether build environment is sane... yes checking for a race-free mkdir -p... mkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking xargs -n works... yes checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 ./configure: line 5996: syntax error near unexpected token
newline' ./configure: line 5996:
yes:'the formatting is clearly wrong as confirmed by shellcheck tool on configure.ac
autoconf and automake installed, most recent available versions using Apple XCode command line tools