fixed some warnings
[d2dvcd.git] / Jamrules.configure
blob9bae210d96664f2801d6ca88e16171fdbd77d2b7
1 rule -configure-options-help- {
2   Echo "jam configure supports:" ;
3   Echo "  --prefix=dir           [/usr/local]" ;
4   Echo "  --disable-imlib2" ;
5   Exit "" ;
9 _CFG_IJIM_MSG = ;
11 rule -configure-jim-not-found- {
12   #-configure-fatal- ;
13   #Echo "you need Jim Tcl ( http://jim.tcl.tk/ ) to compile ZXEmuT!" ;
14   if $(_CFG_IJIM_MSG) {
15     Echo "MSG: using internal Jim" ;
16   }
17   -configure-add-line- "# use internal jim-tcl" ;
18   -configure-add-line- "JIM_INTERNAL = tan ;" ;
19   -configure-add-line- "DEFINES += JIM_INTERNAL ;" ;
20   if ! $(WINDOZE) {
21     -configure-add-line- "LINKLIBS.all += -ldl -lm ;" ;
22   }
26 rule -configure-options-disable-sound- {
27   NOSOUND = tan ;
30 rule -configure-options-enable-sound- {
31   Echo "MESSAGE: forcing sound support" ;
32   NOSOUND = forced ;
35 rule -configure-options-windoze- {
36   WINDOZE = tan ;
40 rule -configure-options-disable-imlib2- {
41   IMLIB2 = 0 ;
45 rule -configure-options-enable-imlib2- {
46   IMLIB2 = ;
50 rule -configure-options-disable-libpng- {
51   TRY_LIBPNG = ;
55 rule -configure- {
56   if ! $(WINDOZE) {
57     -configure-pkg-config- "SDL" : sdl : : : "you need SDL to compile this!" ;
58   } else {
59     NOSOUND = "forced" ;
60     -configure-add-line- "LINKLIBS.all += -lws2_32 -lwinmm ;" ;
61   }
62   if $(NOSOUND) = "forced" {
63     -configure-add-line- "NOSOUND = ;" ;
64     -configure-add-line- "LINKLIBS.all += -lSDL_mixer ;" ;
65   } else if ! $(NOSOUND) {
66     -configure-pkg-config- "SDL_mixer" : SDL_mixer : "NOSOUND = ;" : "NOSOUND = tan ;" ;
67   } else {
68     -configure-add-line- "NOSOUND = tan ;" ;
69   }
70   #
71   -configure-add-line- "WINDOZE =" "$(WINDOZE)" ";" ;
72   #
73   if ! $(WINDOZE) {
74     if $(IMLIB2) = "0" || $(WINDOZE) {
75       -configure-add-line- "# imlib2 disabled" ;
76       #-configure-add-line- "DISABLE_IMLIB2 = 1 ;" ;
77     } else {
78       -configure-pkg-config- "imlib2" : imlib2 : "HAVE_IMLIB2 = 1 ;\nDEFINES += HAVE_IMLIB2 ;" ;
79     }
80     if $(TRY_LIBPNG) {
81       -configure-pkg-config- "libpng" : libpng : "HAVE_LIBPNG = 1 ;\nDEFINES += HAVE_LIBPNG ;" ;
82     }
83   }
84   #
85   if $(JIM) = "1" {
86     _CFG_IJIM_MSG = tan ;
87     -configure-detect-library- "jim-tcl" : libjim.a : jim.h : /opt/jim /opt/jim/jim-tcl : -configure-jim-found- : -configure-jim-not-found- ;
88   } else {
89     -configure-jim-not-found- ;
90   }
94 rule -configure-preinit- {
95   NOSOUND = ;
96   WINDOZE = ;
97   TRY_LIBPNG = 1 ;
101 configure ;