~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to doc/autoconfig.txt

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
A little guide to autoconf/automake
2
 
 
3
 
If you want to play with the new autoconf environment you need to do the
4
 
following, inside your root blender dir:
5
 
./bootstrap
6
 
mkdir ../newdir
7
 
cd ../newdir
8
 
../blender/configure
9
 
 
10
 
(If you get errors on bootstrap about undefined AC_PROG_LIBTOOL
11
 
copy acinclude.m4 from /usr/local/share/libtool/libltdl/  into your blender dir)
12
 
 
13
 
Take a look at INSTALL for options you can give to configure.
14
 
 
15
 
Ok the way things are setup for blender to make changes to the build system
16
 
you want to edit Makefile.am's and configure.ac  (configure.ac is the
17
 
new name for configure.in)  After that you need to run
18
 
./bootstrap to generate configure and the Makefile.in's.
19
 
(Makefile.am's are input to automake to generate Makefile.in's
20
 
configure.ac and the Makefile.in's are input to autoconf to generate 
21
 
a configure script useable by other people.)
22
 
 
23
 
 
24
 
I've been using autoconf 2.56 and automake 1.7 so if your using and older
25
 
version and are having problems you might try upgrading.
26
 
 
27
 
Here is a neat little tree I dug up somewhere on how you would get
28
 
started on a system:
29
 
your source files --> [autoscan*] --> [configure.scan] --> configure.ac
30
 
 
31
 
configure.ac --.
32
 
               |   .------> autoconf* -----> configure
33
 
[aclocal.m4] --+---+
34
 
               |   `-----> [autoheader*] --> [config.h.in]
35
 
[acsite.m4] ---'
36
 
 
37
 
Makefile.in -------------------------------> Makefile.in
38
 
 
39
 
 
40
 
Files used in configuring a software package:
41
 
 
42
 
                       .-------------> [config.cache]
43
 
configure* ------------+-------------> config.log
44
 
                       |
45
 
[config.h.in] -.       v            .-> [config.h] -.
46
 
               +--> config.status* -+               +--> make*
47
 
Makefile.in ---'                    `-> Makefile ---'
48
 
 
49
 
Some links I've found handy:
50
 
http://www.linuxselfhelp.com/gnu/autoconf/html_chapter/autoconf_12.html
51
 
http://nis-www.lanl.gov/~rosalia/mydocs/autoconf_tutorial_3.html
52
 
http://sources.redhat.com/autobook/autobook/autobook_toc.html
53
 
http://www.gnu.org/manual/automake/html_mono/automake.html
54
 
http://murrayc.com/learning/linux/building_libraries/building_libraries.shtml
55
 
http://www.murrayc.com/learning/linux/automake/automake.shtml
56
 
 
57
 
TODO:
58
 
 
59
 
 Square away how ghost works.
60
 
(i.e. would be nice if under windows you could choose X11 or normal windows
61
 
libs, same with macos.. right now its a cludge and it doesn't do one explicitly
62
 
probably involves changing the way configure.ac picks stuff)
63
 
 
64
 
Get intern/python figured out.
65
 
fix the following in configure.ac
66
 
        --with-mozilla=dir      (get it so nspr is autodetected here)
67
 
        --with-nspr=dir         (incase in different dir)