made libcanberra (whatever shit is that) optional, and off by default; use "jam confi...
[k8sterm.git] / Jamrules.configure
blobfcaa2deb28e79605f953ec95a6ff1d2c747a153e
1 PROJECT_NAME = k8sterm ;
3 # "auto": check with pkg-config or so, show '--disable-xxx'
4 # "": disabled by default, show '--enable-xxx'
5 # non-empty string: enabled by default, show '--disable-xxx'
6 -configure-enable-disable-vars- +=
7   "crapberra"  USE_CRAPBERRA    ""   "use libcanberra crap (whatever it is)"
11 rule -configure- {
12   local githere = ona ;
13   #
14   -configure-pkg-config-necessary-
15     "X11"     "x11"
16   ;
17   if $(OS) == "MACOSX" {
18     -configure-add-line- "CFLAGS.all += -D__MACOSX__ ;" ;
19     -configure-add-line- "LINKLIBS.all += -liconv ;" ;
20   } else {
21     -configure-add-line- "LINKLIBS.all += -lrt -ldl ;" ;
22     if $(USE_CRAPBERRA) { -configure-add-line- "DEFINES += USE_CRAPBERRA ;" ; }
23   }
24   -configure-add-line- "LINKLIBS.all += -lutil ;" ; # openpty()
25   #
26   Echo "checking for git and repo ... " : -n ;
27   if [ sys-has-command git ] {
28     if ! [ Command test -d $(TOP)/.git ] {
29       githere = tan ;
30     }
31   }
32   Echo $(githere) ;
33   -configure-add-line- "_USE_GIT_VERSION = $(githere) ;" ;
37 configure ;