AC_PROG_CC with absolute path

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

 



-----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-----


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

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux