aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in2
-rw-r--r--auto.def6
2 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 29c226b..2fba1c0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -118,7 +118,9 @@ install: all @TCL_EXTS@ install-exec install-docs
@srcdir@/jim-subcmd.h @srcdir@/jim-win32compat.h $(DESTDIR)@includedir@
$(INSTALL_DATA) jim-config.h $(DESTDIR)@includedir@
$(INSTALL_DATA_DIR) $(DESTDIR)@bindir@
+@if BUILD_JIM_EXT
$(INSTALL_DATA) build-jim-ext $(DESTDIR)@bindir@
+@endif
$(INSTALL_DATA_DIR) $(DESTDIR)@libdir@/pkgconfig
$(INSTALL_DATA) jimtcl.pc $(DESTDIR)@libdir@/pkgconfig
diff --git a/auto.def b/auto.def
index b4704d0..81ee889 100644
--- a/auto.def
+++ b/auto.def
@@ -549,7 +549,7 @@ if {$withinfo(without) eq "default"} {
# Now go check everything - see autosetup/local.tcl
array set extinfo [check-extensions [opt-bool allextmod]]
-set buildjimext 1
+define BUILD_JIM_EXT 1
# Now special checks
if {[have-feature windows]} {
@@ -560,7 +560,7 @@ if {[have-feature windows]} {
user-error "cygwin/mingw require --shared for dynamic modules"
} else {
user-notice "Building static library, so build-jim-ext will not work on cygwin/mingw"
- set buildjimext 0
+ define BUILD_JIM_EXT 0
}
}
} else {
@@ -668,7 +668,7 @@ make-config-header jimautoconf.h -auto {jim_ext_* TCL_PLATFORM_* TCL_LIBRARY USE
make-template Makefile.in
make-template tests/Makefile.in
make-template examples.api/Makefile.in
-if {$buildjimext} {
+if {[get-define BUILD_JIM_EXT]} {
make-template build-jim-ext.in
catch {exec chmod +x build-jim-ext}
}