GNOME Bugzilla – Bug 314593
Firefox can not be selected to build the mozilla-plugin
Last modified: 2005-10-02 14:50:57 UTC
Version details: 2.11.0 Distribution/Version: YDL-4.0.1 The configure file is hard-wired to use mozilla as the gecko engine to build the mozilla-plugin. Looking at the configuration file, there appears to be some initial work in place to allow the user to override the default choice by using an environment variable, MOZILLA_CONFIG. The work is not [yet] complete. Package configuration file names, * mozilla-config * mozilla-plugin are hard-wired into the code. For now, the simple work-around is to configure librsvg and then hack the moz-plugin Makefile, modifying MOZILLA_CFLAGS.
*** Bug 314711 has been marked as a duplicate of this bug. ***
*** Bug 317250 has been marked as a duplicate of this bug. ***
should be fixed.
Not quite... the autodection code for (mozilla|firefox)-config is broken. (1) configure fails to detect firefox-config when firefox-config is in the search path [mozilla-config is not in the search path] (2) if the user sets the environment variable, MOZILLA_CONFIG=firefox-config which short-circuits auto detection, all is well. If you do not have firefox-config within your search path but do have mozilla-config, you can see the problem with the autodetect code, by swapping the order of mozilla-config and firefox-config tests in configure.in. -Joseph
I puzzled over configure.in for a while and came up with something that works: --- configure.in- 2005-10-01 14:50:53.000000000 -0400 +++ configure.in 2005-10-02 00:05:26.000000000 -0400 @@ -377,11 +377,7 @@ if test "x$test_mozilla_plugin" != "xno"; then if test -z "$MOZILLA_CONFIG"; then - AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no) - fi - - if test "x$MOZILLA_CONFIG" = "xno"; then - AC_PATH_PROG(MOZILLA_CONFIG, firefox-config, no) + AC_PATH_PROGS(MOZILLA_CONFIG, mozilla-config firefox-config, no) fi if test "x$MOZILLA_CONFIG" != "xno"; then -Joseph
thanks.
you are welcome... You may wish to give some consideration to making MOZILLA_CONFIG a configuration option rather than an environment variable by giving the user the option to select the gecko engine with which to build the plugin: --with-gecko = firefox or mozilla -Joseph