[Up] [Previous] [Next] [Index]

# 3.4 Configuring and Compiling the C part

You have to change your current working directory to the ``xgap'' subdirectory. You do this by

    # cd xgap

if your current working directory is the one, where you used unzoo. There you invoke the configure script by:

    # ./configure
    creating cache ./config.cache
    checking for make... make
    checking host system type... i686-unknown-linux2.0.34
    checking target system type... i686-unknown-linux2.0.34
    checking build system type... i686-unknown-linux2.0.34
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    ...
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating xgap.sh

... indicate omissions. This script tries to determine, which kind of operating system and libraries you have installed and configures the source accordingly. Normally this should produce some output but no error messages. The last step of the script produces some makefiles which are used to compile the code. You do this by typing

    # make
    if test ! -d bin;  then mkdir bin;  fi
    if test ! -d bin/i686-unknown-linux2.0.34-gcc; \ # line broken for this manual!
                    then mkdir bin/i686-unknown-linux2.0.34-gcc;  fi
    cp cnf/configure.out bin/i686-unknown-linux2.0.34-gcc/configure
    ( cd bin/i686-unknown-linux2.0.34-gcc ; CC=gcc \ # line broken for this manual!
                    ./configure --target=i686-unknown-linux2.0.34  )
    creating cache ./config.cache
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    ...
    creating ./config.status
    creating Makefile
    creating config.h
    make[1]: Entering directory \                   # line broken for this manual!
         `/usr/local/lib/gap4/pkg/xgap/bin/i686-unknown-linux2.0.34-gcc'
    gcc -I. -g -O2 -I/usr/X11R6/include  -o xcmds.o -c ../../src.x11/xcmds.c
    gcc -I. -g -O2 -I/usr/X11R6/include  -o utils.o -c ../../src.x11/utils.c
    ...
    make[1]: Leaving directory \                    # line broken for this manual!
         `/usr/local/lib/gap4/pkg/xgap/bin/i686-unknown-linux2.0.34-gcc'

(a few lines were broken for typesetting purposes in this manual, the position is marked by a backslash)

Now all C sources are compiled and a binary executable is built. It is stored in a subdirectory of the ``bin'' subdirectory in your ``xgap'' directory. The name of this location has something to do with your installation. It could for example be

    bin/i686-unknown-linux2.0.34-gcc/xgap

if you compile on a Linux system using the GNU-C-Compiler.

[Up] [Previous] [Next] [Index]