Hello list, I am currently trying to compile the EFL on my NetBSD system (and making a pkgsrc package of the libs). In evas' configure I got an error about the keyword `function' in configure.in, line 549 (latest CVS version)
The keyword `function' is not legal in POSIX /bin/sh. Please have a look at http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_04 (section 2.4) and http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_05 (section 2.9.5) This last section contains the correct form of a function definition in POSIX shells. This ought to work in BASH as well, so I would like to suggest this gets updated in configure.in. The current function definition appears to work on systems where BASH is installed as /bin/sh. BASH, if called as `sh', tries to emulate /bin/sh, but doesn't do a very good job. This causes mistakes like this to slip into shell scripts. A quick grep turns out that evas, emotion and evoak have this function keyword. Attached is an diff example of what I mean, for the evas configure.in. Please, please CC me when you reply. I am not subscribed to the list. Regards, Peter -- http://www.student.kun.nl/peter.bex -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth
--- configure.in.orig 2004-08-31 05:19:27.000000000 +0200
+++ configure.in 2004-09-16 16:03:08.000000000 +0200
@@ -546,7 +546,7 @@
)
fi
-function vser
+vser ()
{
v=$1
VSTART=`echo $v | awk -F_ '{printf("%s", $1);}'`
pgpTWK0kcDfNe.pgp
Description: PGP signature
