trouble compiling under solaris

tom wible
  • tom wible
    tom wible

    i was able to compile under irix(after  adding
    #include <sys/types.h>
    #include <unistd.h>
    to random.c and copying nlist.h locally)

    but moving on to solaris, i get the following error from configure:

    checking whether getpgrp takes no argument... configure: error: cannot check getpgrp if cross compiling

    i don't understand why configure thinks this:

    checking whether the C++ compiler (c++  ) is a cross-compiler... yes
    checking whether we are using GNU C++... yes
    checking whether c++ accepts -g... yes

    because we have a std gnu environment

    tomw@marvin 5% c++ --version
    tomw@marvin 6% uname -a
    SunOS marvin 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-2

    any clues?