X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fautoconf.html;h=df243c2c325dad97d50b5ff8e4d215c562bbe714;hb=6335652899de57aacef2da50b93752cd99705b65;hp=d0f91558b7df82a84b13f59ff137ee905d8951f8;hpb=3e0797f3b702a1363bf238eb4826385860346137;p=mesa.git diff --git a/docs/autoconf.html b/docs/autoconf.html index d0f91558b7d..df243c2c325 100644 --- a/docs/autoconf.html +++ b/docs/autoconf.html @@ -1,34 +1,33 @@ - - -Compilation and Installation using Autoconf - - - + + + + + Compilation and Installation using Autoconf + + +
+

The Mesa 3D Graphics Library

+
+ + +

Compilation and Installation using Autoconf

    -
  1. Basic Usage
  2. -
  3. Driver Options
  4. +
  5. Basic Usage

  6. +
  7. Driver Options

    -
  8. Library Options
  9. - -
  10. Demo Program Options
- -

1. Basic Usage

+

1. Basic Usage

The autoconf generated configure script can be used to guess your @@ -56,234 +55,203 @@ to your preference, type:

-This will produce libGL.so and several other libraries depending on the +This will produce libGL.so and/or several other libraries depending on the options you have chosen. Later, if you want to rebuild for a different configuration run make realclean before rebuilding.

Some of the generic autoconf options are used with Mesa: - -

-

+directories.

+ +

There are also a few general options for altering the Mesa build: -

-

+assembly will not be used.

+ + +
--build=
+
--host=
+

By default, the build will compile code for the architecture that +it's running on. In order to build cross-compile Mesa on a x86-64 machine +that is to run on a i686, one would need to set the options to:

+ +

--build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu

+Note that these can vary from distribution to distribution. For more +information check with the + +autoconf manual. +Note that you will need to correctly set PKG_CONFIG_PATH as well. - -

2. Driver Options

+ +

In some cases a single compiler is capable of handling both architectures +(multilib) in that case one would need to set the CC,CXX variables +appending the correct machine options. Seek your compiler documentation for +further information - + gcc +machine dependent options

+ +

In addition to specifying correct PKG_CONFIG_PATH for the target +architecture, the following should be sufficient to configure multilib Mesa

+ +./configure CC="gcc -m32" CXX="g++ -m32" --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu ... +
+ + + +

2. GL Driver Options

There are several different driver modes that Mesa can use. These are described in more detail in the basic installation instructions. The Mesa driver is controlled through the -configure option --with-driver. There are currently three supported -options in the configure script. +configure options --enable-glx and --enable-osmesa

- + - -

3. Library Options

+

3. Library Options

-The configure script provides more fine grained control over the GL -libraries that will be built. More details on the specific GL libraries -can be found in the basic installation -instructions. - -

-

- - -
-

4. Demo Program Options

- -

-There are many demonstration programs in the MesaDemos tarball. If the -programs are available when ./configure is run, a subset of -the programs will be built depending on the driver and library options -chosen. See the directory progs for the full set of demos. - -

-

+The configure script provides more fine grained control over the libraries +that will be built. +