1 rule -configure-options-help- {
2 Echo "jam configure supports:" ;
3 Echo " --prefix=dir [/usr/local]" ;
4 #Echo " --disable-libxml don't use LibXML2" ;
5 Echo " --disable-sqlite don't use sqlite" ;
6 Echo " --disable-gtkspell don't use GTKSpell" ;
7 Echo " --disable-gtkhtml don't use GTKHTML" ;
8 Echo " --disable-svg don't use librsvg" ;
9 Echo " --disable-soup don't use libsoup" ;
10 Echo " --disable-curl don't use libcurl" ;
11 Echo " --disable-dock disable dock icon" ;
12 Echo " --disable-timegm don't use timegm()" ;
17 #rule -configure-options-disable-libxml- { NO_LIBXML = tan ; }
18 #rule -configure-options-enable-libxml- { NO_LIBXML = ; }
20 rule -configure-options-disable-sqlite- { NO_SQLITE = tan ; }
21 rule -configure-options-enable-sqlite- { NO_SQLITE = ; }
23 rule -configure-options-disable-gtkspell- { NO_GTKSPELL = tan ; }
24 rule -configure-options-enable-gtkspell- { NO_GTKSPELL = ; }
26 rule -configure-options-disable-gtkhtml- { NO_GTKHTML = tan ; }
27 rule -configure-options-enable-gtkhtml- { NO_GTKHTML = ; }
29 rule -configure-options-disable-svg- { NO_RSVG = tan ; }
30 rule -configure-options-enable-svg- { NO_RSVG = ; }
32 rule -configure-options-disable-soup- { NO_SOUP = tan ; }
33 rule -configure-options-enable-soup- { NO_SOUP = ; }
35 rule -configure-options-disable-curl- { NO_CURL = tan ; }
36 rule -configure-options-enable-curl- { NO_CURL = ; }
38 rule -configure-options-disable-dock- { NO_DOCK = tan ; }
39 rule -configure-options-enable-dock- { NO_DOCK = ; }
41 rule -configure-options-disable-timegm- { NO_TIMEGM = tan ; }
42 rule -configure-options-enable-timegm- { NO_TIMEGM = ; }
46 -configure-pkg-config- "X11" : "x11" : : : "you need libX11" ;
47 -configure-pkg-config- "GTK+2" : "gtk+-2.0" : : : "you need GTK+2" ;
48 -configure-add-line- "DEFINES += HAVE_GTK ;" ;
49 -configure-pkg-config- "GLib" : "glib-2.0 >= 2.30.0" : : : "you need GLib at least 2.30.0" ;
50 -configure-pkg-config- "GObject" : "gobject-2.0 >= 2.30.0" : : : "you need GLib at least 2.30.0" ;
51 -configure-pkg-config- "GThread" : "gthread-2.0 >= 2.30.0" : : : "you need GThread at least 2.30.0" ;
52 -configure-pkg-config- "LibXML2" : "libxml-2.0 >= 2.9" : "DEFINES += HAVE_LIBXML ;" : : "you need LibXML2 at least 2.9" ;
54 if ! $(NO_SQLITE) { -configure-pkg-config- "SQLite3" : "sqlite3" : "DEFINES += HAVE_SQLITE3 ;" ; }
55 if ! $(NO_GTKSPELL) { -configure-pkg-config- "GTKSpell" : "gtkspell-2.0" : "DEFINES += HAVE_GTKSPELL ;" ; }
56 if ! $(NO_GTKHTML) { -configure-pkg-config- "libgtkhtml3.30" : "libgtkhtml-3.30" : "DEFINES += HAVE_GTKHTML330 ;" ; }
58 -configure-pkg-config- "librsvg" : "librsvg-2.0 > 2.2.3" : "DEFINES += HAVE_LIBRSVG ;" ;
59 if ! [ pkg-config-exists "librsvg-2.0 > 2.2.3" ] { NO_RSVG = tan ; }
62 -configure-add-line- "NO_RSVG = tan ;" ;
64 -configure-add-line- "NO_RSVG = ;" ;
68 -configure-pkg-config- "libsoup" : "libsoup-2.2" : "DEFINES += HAVE_LIBSOUP ;" ;
69 if ! [ pkg-config-exists "libsoup-2.2" ] { NO_SOUP = tan ; }
73 -configure-pkg-config- "libcurl" : "libcurl >= 7.30" : "DEFINES += HAVE_CURL ;" ;
74 if ! [ pkg-config-exists "libcurl >= 7.30" ] { NO_CURL = tan ; }
77 if $(NO_SOUP) && $(NO_CURL) {
78 Echo "FATAL: neither libsoup nor libcurl was found!" ;
83 -configure-add-line- "# dock" ;
85 Echo "CFG: dock icon disabled" ;
86 -configure-add-line- "# dock disabled" ;
88 Echo "CFG: dock icon enabled" ;
89 -configure-add-line- "DEFINES += USE_DOCK ;" ;
92 -configure-add-line- "# timegm()" ;
94 Echo "CFG: timegm() disabled" ;
95 -configure-add-line- "# timegm() disabled" ;
97 Echo "CFG: timegm() enabled" ;
98 -configure-add-line- "DEFINES += HAVE_TIMEGM ;" ;
101 -configure-add-line- "# other autocrap shit" ;
102 -configure-add-line- "DEFINES += HAVE_REGEX_H ;" ;
103 -configure-add-line- "DEFINES += HAVE_UNISTD_H ;" ;
104 #-configure-add-line- "DEFINES += HAVE_GTK_MULTIHEAD ;" ;
108 rule -configure-preinit- {