syntax error while configuring pango-1.2.1



hi,

while running ./configure I get the following error message:

....
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default commands
./configure[12635]: syntax error at line 12635 : `then' unmatched


the relevant line in configure is:

echo "configuration:
	backends: `if $have_freetype && $have_fontconfig; then echo " FreeType"; fi \
	``if $have_x ; then echo " X"; fi \
	``if $have_xft ; then echo " Xft"; fi \
	``if $have_win32 ; then echo " Win32"; fi`"



after experimenting for a while I've found out, that it's probably a
bug in /bin/sh of Solaris 2.7 because:

$ echo "foo `if $bar; then echo "baz baz"; fi `"
syntax error: `end of file' unexpected

breaks, while:

$ echo "foo `if $bar; then echo "bazbaz"; fi `"
foo bazbaz

and 

$ echo "foo `if $bar; then echo 'baz baz'; fi `"
foo baz baz

work like expected (at least from me ;-) 

So what's the right way to fix this problem? Use single quotes as a
workaround in the ./configure script or ask Sun if that's a bug they
could fix? They probably will tell me to install a newer version (and
I'll probably install Linux sooner or later...)

bye, Werner Augustin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]