updated README
[k8sterm.git] / Jamrules.configure
blob0b90326a6e4820ee26fdc61b8787a80a88b0a6c9
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 ;" ;
22     if $(USE_CRAPBERRA) {
23       -configure-add-line- "LINKLIBS.all += -ldl ;" ;
24       -configure-add-line- "DEFINES += USE_CRAPBERRA ;" ;
25     }
26   }
27   -configure-add-line- "LINKLIBS.all += -lutil ;" ; # openpty()
28   #
29   Echo "checking for git and repo ... " : -n ;
30   if [ sys-has-command git ] {
31     if ! [ Command test -d $(TOP)/.git ] {
32       githere = tan ;
33     }
34   }
35   Echo $(githere) ;
36   -configure-add-line- "_USE_GIT_VERSION = $(githere) ;" ;
40 configure ;