Fossil

Diff
Login

Diff

Differences From Artifact [054fa8df6e]:

To Artifact [53280db78b]:


91
92
93
94
95
96
97
98
99
100
101
102
103
104
105

106
107
108
109
110
111
112
113
if {$tclpath ne ""} {
    if {$tclpath ne "1"} {
        cc-with [list -cflags [list -I$tclpath/include -L$tclpath/lib]]
    }
    if {![cc-check-includes tcl.h]} {
        user-error "Cannot find tcl.h"
    }
    foreach tlib {tcl8.6 tcl8.5 tcl notfound} {
        if {$tlib=="notfound"} {
            user-error "Cannot find a usable libtcl"
        }
        if {[cc-check-function-in-lib Tcl_CreateInterp $tlib]} {
            define-append LIBS -l$tlib
            break
        }

    }
    define FOSSIL_ENABLE_TCL
    if {$tclpath ne "1"} {
        define-append EXTRA_CFLAGS -I$tclpath/include
        define-append EXTRA_LDFLAGS -L$tclpath/lib
    }
}








<
<
<
<
|
|
<
|
>
|







91
92
93
94
95
96
97




98
99

100
101
102
103
104
105
106
107
108
109
if {$tclpath ne ""} {
    if {$tclpath ne "1"} {
        cc-with [list -cflags [list -I$tclpath/include -L$tclpath/lib]]
    }
    if {![cc-check-includes tcl.h]} {
        user-error "Cannot find tcl.h"
    }




	if {[cc-check-function-in-lib Tcl_CreateInterp {tcl8.6 tcl8.5 tcl}]} {
		define-append LIBS [get-define lib_Tcl_CreateInterp]

	} else {
		user-error "Cannot find a usable libtcl"
	}
    define FOSSIL_ENABLE_TCL
    if {$tclpath ne "1"} {
        define-append EXTRA_CFLAGS -I$tclpath/include
        define-append EXTRA_LDFLAGS -L$tclpath/lib
    }
}