You configure.ac contains a lot of small errors.
For example, you should not define CXXFLAGS in your configure script,
the user should have a chance to define them before running ./configure
AFAIK, you should only append to them. 
Next, having 
CXXFLAGS="-O3 -ffast-math"
AS_IF([test "$debug" != "no"],
[
        CXXFLAGS="$CXXFLAGS -g"
])
is not smart, since you typically want -O0 when debugging.
I suggest using
AS_IF([test "$debug" != "no"],
      [CXXFLAGS="$CXXFLAGS -g -O0"],
      [CXXFLAGS="$CXXFLAGS -O3"])

And also having the closing '])' on the new line can cause troubles...
There is an excellent tutorial here:
http://www.freesoftwaremagazine.com/books/agaal/gnu_coding_standards_applied_to_autotools

I wish you good luck and patience :-),
Matej

On Thu, 2009-04-02 at 10:44 -0700, Evan Klinger wrote:
> Hello,
> I've been trying to get my configure.ac script working for several days and
> I'm stuck. It actually compiles fine into the configure script but when I
> run the configure script it errors out with a parse error:
> 
> Found CImg.h in current directory.
> ./configure: line 17860: syntax error near unexpected token `('
> ./configure: line 17860: `  $as_echo_n "(cached) " >&6'
> 
> I've attached my configure.ac.
> Any help would be greatly appreciated.
> 
> Thanks
> Evan
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> http://lists.gnu.org/mailman/listinfo/autoconf



_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to