[Top][All Lists]

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

Re: Bug in AC_LIBOBJ, and autoconf 2.59

From: Alexandre Duret-Lutz
Subject: Re: Bug in AC_LIBOBJ, and autoconf 2.59
Date: Fri, 30 Jan 2004 09:04:59 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

| Hi,
| There is a small problem with the AC_LIBOBJ function in autoconf, take
| the following snippet, and give it to autoconf.
| ,----[ configure.ac ]
| | AC_LIBOBJ(qux)
| `----
| ,----
| | ./configure: line 1221: syntax error near unexpected token `"*'
| | ./configure: line 1221: `  *" qux.$ac_objext "*'
| `----
| What is the point of the spaces? They don't seem to serve any useful
| purpose; and infact seem to be invalid shell script code.

Which shell and system are you using?

The spaces ensure that the code matches a full filename in
$LIBOBJS, not part of another one (without them AC_LIBOBJ(qux)
would not add qux.o to LIBOBJS if it already contained ztqux.o
or qux.out.o).

I've also noted that $ac_objext is undefined in your example.
What happens if you call AC_PROG_CC before AC_LIBOBJ?
Alexandre Duret-Lutz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]