Randy McMurchy wrote:

>>>>>ac_add_options \
>>>>>      --with-default-mozilla-five-home=/usr/lib/firefox-1.5 # 
>>>>> MOZILLA_FIVE_HOME
>>
>>Google MOZILLA_FIVE_HOME.  I can't decide if it's actually needed or
>>not.

I grepped the source.  :)

One place to look is modules/oji/tests/build/README:

==========================
I. Build OJI API test:
==========================

 Pre-Requisite: You must have built mozilla browser and have
                have Perl (version >= 5) installed.

 1. set MOZILLA_HOME (top of Mozilla's tree) and JAVAHOME variables
 2. set MOZILLA_FIVE_HOME to <MOZILLA_HOME>/dist/bin
    where mozilla-bin is located
 3. set CC to point to gcc
       setenv CC gcc
 4. goto build directory and say
          gmake

 Libraries created are located in 'build/bin' dir. and
 MOZILLA_FIVE_HOME/components directory.


In xpcom/glue/standalone/nsGREDirServiceProvider.cpp there is:

// In the absence of a good way to get the executable directory let
// us try this for unix:
//  - if MOZILLA_FIVE_HOME is defined, that is it
//  - else give the current directory

// The MOZ_DEFAULT_MOZILLA_FIVE_HOME variable can be set at configure
time with
// a --with-default-mozilla-five-home=foo autoconf flag.
//
// The idea here is to allow for builds that have a default
MOZILLA_FIVE_HOME
// regardless of the environment.  This makes it easier to write apps that
// embed mozilla without having to worry about setting up the environment

Also, when you run mozilla (and I think FireFox) it is a shell script.
Looking at my /usr/bin/mozilla file, it sets MOZILLA_FIVE_HOME to the
default.  The default is set in the build.

Does this help?

  -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to