multilib fixes for libjava

Jack Howarth howarth@bromo.msbb.uc.edu
Tue Nov 7 00:49:00 GMT 2006


Andrew,
   I think a working set of patches for building multilib 
libjava on Darwin PPC with a G4. However I have one issue
that we need to solve. Currently...

   if test x"$build" = x"$host"; then
     AC_CHECK_FILES(/proc/self/exe, [
       AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])])
   else
     case $host in
     *-linux*)
       AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])
       ;;
     esac
   fi

in configure.ac fails on a G4 with the error...

checking for /proc/self/exe... configure: error: cannot check for file existence when cross compiling

Mike Stump suggests we try...

  if test x"$cross_compiling" = x"no"; then
     AC_CHECK_FILES(/proc/self/exe, [
       AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])])
   else
     case $host in
     *-linux*)
       AC_DEFINE(HAVE_PROC_SELF_EXE, 1, [Define if you have /proc/self/exe])
       ;;
     esac
   fi

...instead. Do you have any opinions on that?
              Jack



More information about the Java mailing list