jam builds now uses git version info too
[k8sterm.git] / Jamrules.configure
blobfd90e2f9a431acdb2600c279c3db61a028a1d64d
1 rule -configure- {
2   local githere = ona ;
3   #
4   -configure-pkg-config- "X11" : x11 : : : "you need X11 to compile k8sterm!" ;
5   -configure-add-line- "LINKLIBS.all += -lrt ;" ;
6   -configure-add-line- "LINKLIBS.all += -lutil ;" ; # openpty()
7   #
8   Echo-n "checking for git and repo ..." ;
9   if [ Command which git : no-output exit-code ] == 0 {
10     if [ Command test -d $(TOP)/.git : no-output exit-code ] == 0 {
11       githere = tan ;
12     }
13   }
14   Echo "$(githere)" ;
15   -configure-add-line- "_USE_GIT_VERSION = $(githere) ;" ;
19 configure ;