File: README.autoconf

package info (click to toggle)
flightgear 0.7.9-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,352 kB
  • ctags: 11,046
  • sloc: cpp: 56,617; ansic: 4,298; sh: 2,717; makefile: 730; perl: 36
file content (35 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Flight Gear uses the Gnu autoconf and automake tools for managing
Makefiles.  Key input files for this system are:

    configure.in - Top level directory
    Makefile.am - One in each subdirectory
    Include/config.in - input file for building config.h

If you need to modify any of these files, you will need to install the
following packages.  If you don't have a prebuilt package for your OS,
you can fetch them from the locations listed below:

    - GNU autoconf (available from ftp://prep.ai.mit.edu/pub/gnu)
    - GNU automake (available from ftp://ftp.cygnus.com/pub/tromey)

After making a change to configure.in you will need to run:

    aclocal ; autoheader ; automake -a ; autoconf

Then follow the regular build procedure:

    ./configure; make; make install

For debuging purposes you might want to try something like:

    CFLAGS=-Wall CXXFLAGS=-Wall ./configure; make; make install

For full optimization using the EGCS compiler on an Intel processor you 
could try something like:

    MACH="-mpentium"   # -m486 -mpentiumpro etc.
    export CC=egcc     # for Linux
    export CFLAGS="-Wall -O5 -fomit-frame-pointer -ffast-math -funroll-loops $MACH"
    export CXXFLAGS="-Wall -O5 -fomit-frame-pointer -ffast-math -funroll-loops $MACH"
    ./configure