This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/5688: cross compiler build fails in libjava
On Tue, Jun 04, 2002 at 04:03:56PM -0300, Alexandre Oliva wrote:
> On Jun 3, 2002, "H . J . Lu" <hjl@lucon.org> wrote:
>
> > + if test x$build = x$host && test x$host = x$target; then
> > + AC_CHECK_FILES(/proc/self/exe, [
> > + AC_DEFINE(HAVE_PROC_SELF_EXE)])
> > + else
> > + case $target in
> > + *-linux*)
> > + AC_DEFINE(HAVE_PROC_SELF_EXE)
> > + ;;
> > + esac
>
> One more nit: I wonder if, in the `else' branch, if $target doesn't
> match, we should assume HAVE_PROC_SELF_EXE is not present, or bail out
> asking the user to let us know by setting some environment variable.
If $target doesn't match, I don't think HAVE_PROC_SELF_EXE will be
define. It should be the same as assuming HAVE_PROC_SELF_EXE is not
present. I agree there should be some environment variable. I will
leave it to others to decide.
H.J.