[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_PROG_CC with absolute path
From: |
Harald Servat |
Subject: |
AC_PROG_CC with absolute path |
Date: |
Tue, 03 Apr 2007 17:32:40 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20061027) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I'm trying to provide a compiler to this macro (using it's name and
the full path name) when some special conditions occur but as it isn't
on the default $PATH, AC_PROG_CC skips it.
Right now, I can only find two solutions. Just add the the directory
that contains this compiler to the $PATH or set CC (in the configure.ac)
with this compiler when those conditions happen.
First approach isn't quite user-friendly because each time I want to
run configure I have to touch the PATH variable. The latter would skip a
new compiler given by the user through CC environment variable when
invoking configure.
Of course, CC could be set when calling configure, but it's not as
automatic as I wanted.
So, is there any way to provide a full path of a C compiler in the
AC_PROG_CC macro? Is there any other alternative that I should have in mind?
Thank you,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQFGEnOXwMPeuqUCg9wRAqjtAJwO7JYKOli8VW78OJZgYA8Ztq5KdACeLjLb
5fk85/d2xe3Aw3OygoMx9AQ=
=A68S
-----END PGP SIGNATURE-----