%% Paul Hurley <hurleyp_at_aston.ac.uk> writes:
  ph> Heres the full reply from ./configure
  ph> checking for gcc... gcc
  ph> checking whether the C compiler (gcc  ) works... yes
  ph> checking whether the C compiler (gcc  ) is a cross-compiler... yes
Yep, right here, just as I said: configure decides that GCC is a
cross-compiler.  This is quite obviously The Wrong Thing To Do.
  ph> Okay, I think this is the affected parts from config.log
  ph> configure:1231: checking for gcc
  ph> configure:1344: checking whether the C compiler (gcc  ) works
  ph> configure:1360: gcc -o conftest    conftest.c  1>&5
  ph> configure:1386: checking whether the C compiler (gcc  ) is a cross-compiler
Hmm.  It doesn't, though, seem to give any error messages which might
help us understand the problem :(
We'll just have do it ourselves.  Go to about line 1360 in your
configure script, and change the if-statement from this:
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
> if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
To this:
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
> if (./conftest; exit); then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
The ">" shouldn't really go in the code, of course.  E.g., remove the
2>/dev/null from the if-statement.
Now delete config.cache and re-run the configure.  It should then show
some kind of error message when it checks to see if the compiler is a
cross-compiler.  Send that error message.
  ph> Sorry about the extreme length but can't really understand
  ph> it. (never did like C, much prefer VB !)
Ah.  Okay... :)
-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith_at_baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat May 22 1999 - 01:12:36 BST