Node:Configure Make and Install, Next:, Previous:Output, Up:Installing Glucas



SourceForgeLogo
 

Configure, Make and Install Glucas.

The Glucas package includes GNU tools from automake and autoconf and scripts to make the build and install tasks as easy as possible. As usual, the steps are

  1. configure

    The configure script checks your system to see how to compile Glucas. You can see a list of the options available for configure by using

    ./configure --help
    

    Most of these options are generic for GNU-autoconf configure scripts. Others are specific for Glucas.

    1. --enable-static This allows to build static binaries. Enter this option if you want to use statically linked binary.
    2. --enable-pthread[=n] This option enables Glucas to use POSIX threads. The default for n is 2. Glucas will use n threads. You should not use this feature unless you have a multiprocessor system.
    3. --enable-openmp[=n] This option enables Glucas to use OpenMP threads. The default for n is 2. Glucas will use n threads. You should not use this feature unless you have a multiprocessor system.
    4. --enable-sunmp[=n] This option enable Glucas to use SunMP threads. The default for n is 2. Glucas will use n threads. You should not use this feature unless you have a multiprocessor system.
    5. --enable-ytarget[=n] This option overwrites the value of Y_TARGET. The default for n is 0. This will change the default value for your system by Y_TARGET=n (See Glucas compiler options.)
    6. --enable-yaval[=n] This option overwrites the value of Y_AVAL. The default for n is 3. This will change the default value for your system to Y_AVAL=n (See Glucas compiler options.)
    7. --ymem_threshold[=n] This option overwrites the value of Y_MEM_THRESHOLD. The default for n is 2048. This will change the default value for your system to Y_MEM_THRESHOLD=n (See Glucas compiler options.)
    8. --enable-yblocksize[=n] This option overwrites the value of Y_BLOCKSIZE. The default for n is 512. This will change the default value for your system to Y_BLOCKSIZE=n (See Glucas compiler options.)
    9. --enable-yshift[=n] This option overwrites the value of Y_SHIFT. The default for n is 8. This will change the default value for your system to Y_SHIFT=n (See Glucas compiler options.)
    10. --enable-ycache_line[=n] This option overwrites the value of Y_CACHE_LINE. The default for n is 4. This will change the default value for your system to Y_CACHE_LINE=n (See Glucas compiler options.)
    11. --enable-ysecure This option enables Y_SECURE. By default this is disabled. (See Glucas compiler options.)
    12. --enable-yminimum This option enables Y_MINIMUM. By default this is disabled. (See Glucas compiler options.)
    13. --enable-ykill_branches This option enables Y_KILL_BRANCHES. By default this is disabled. (See Glucas compiler options.)
    14. --enable-ymany_registers This option enables Y_MANY_REGISTERS. By default this is disabled. (See Glucas compiler options.)
    15. --enable-yvectorize This option enables Y_VECTORIZE. By default this is disabled. (See Glucas compiler options.)
    16. --enable-yvectorize2 This option enables Y_VECTORIZE2. By default this is disabled. (See Glucas compiler options.)
    17. --enable-ylong_macros This option enables Y_LONG_MACROS. By default this is disabled. (See Glucas compiler options.)

    Among the generic configure options one very important is the compiler being used. You can select your favorite compiler for your platform with

    CC=your_compiler.
    

    As example, if you want to use Intel © C++ compiler instead of GNU-gcc in your x86 machine

    ./configure CC=icc
    

  2. make

    Once the configure step has checked your system successfully, it generates the Makefile

    Then you only need to invoke the make utility to generate a binary

    make
    

    It will create the binary. Usually named Glucas on Unix systems.

  3. install

    To install the binary you should invoke again make utility

    make install
    

    this will install the binary in your local binary directory. See INSTALL file in the source directory to know more about install options.