diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-01-27 16:26:18 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-01-27 16:26:18 (GMT) |
commit | c61430660f5c657a7ef2344cf3541687abfc1e67 (patch) | |
tree | da8b88758f1c705b06d615e742706190e4e1158e /ds9/unix | |
parent | f374041570ddc22b4901a6fa6705efb9edf39a7e (diff) | |
download | blt-c61430660f5c657a7ef2344cf3541687abfc1e67.zip blt-c61430660f5c657a7ef2344cf3541687abfc1e67.tar.gz blt-c61430660f5c657a7ef2344cf3541687abfc1e67.tar.bz2 |
simplify build
Diffstat (limited to 'ds9/unix')
-rw-r--r-- | ds9/unix/Makefile.in | 16 | ||||
-rwxr-xr-x | ds9/unix/configure | 69 | ||||
-rw-r--r-- | ds9/unix/configure.ac | 2 |
3 files changed, 75 insertions, 12 deletions
diff --git a/ds9/unix/Makefile.in b/ds9/unix/Makefile.in index c25c3f8..4b93160 100644 --- a/ds9/unix/Makefile.in +++ b/ds9/unix/Makefile.in @@ -9,6 +9,8 @@ datarootdir = @datarootdir@ datadir = @datadir@ mandir = @mandir@ +TCLSH_PROG = @TCLSH_PROG@ + TCL_VERSION = @TCL_VERSION@ TCL_LIB_SPEC = @TCL_LIB_SPEC@ TCL_STUB_LIB_SPEC= @TCL_STUB_LIB_SPEC@ @@ -66,11 +68,10 @@ system = @system@ .C.@OBJEXT@: $(COMPILE) -c `@CYGPATH@ $<` -o $@ -include ../make.include - #--------------------------defines APPDIR = zvfsmntpt +TKSAORES= $(APPDIR) ID = $(shell finger $(shell whoami) | egrep -o 'Name: [a-zA-Z0-9 ]{1,}' | cut -d ':' -f 2 | xargs echo) @@ -176,17 +177,12 @@ tkAppInit.o : tkAppInit.c tkAppInit.c : $(prefix)/tk$(TCL_VERSION)/unix/tkAppInit.c cp $(prefix)/tk$(TCL_VERSION)/unix/tkAppInit.c . -$(APPDIR) : +include ../make.include + +$(APPDIR) : rm -rf $(APPDIR) mkdir $@ -framework : - cp -r ../library $(APPDIR)/. - cp -r ../msgs $(APPDIR)/. - cp -r ../doc $(APPDIR)/. - cp -r ../cmaps $(APPDIR)/. - cp -r ../template $(APPDIR)/. - $(APPDIR)/tcl$(TCL_VERSION) : $(prefix)/lib/tcl$(TCL_VERSION) cp -r $(prefix)/lib/tcl$(TCL_VERSION) $(APPDIR)/. diff --git a/ds9/unix/configure b/ds9/unix/configure index b932b28..ac97db0 100755 --- a/ds9/unix/configure +++ b/ds9/unix/configure @@ -620,6 +620,7 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +TCLSH_PROG PRACTCL_NAME_LIBRARY PRACTCL_VC_MANIFEST_EMBED_EXE PRACTCL_VC_MANIFEST_EMBED_DLL @@ -946,6 +947,7 @@ enable_rpath enable_wince with_celib enable_symbols +with_tclsh ' ac_precious_vars='build_alias host_alias @@ -1607,6 +1609,7 @@ Optional Packages: --with-tkinclude directory containing the public Tk header files --with-x use the X Window System --with-celib=DIR use Windows/CE support library from DIR + --with-tclsh Specify a local tcl shell to use for dynamic code Some influential environment variables: CC C compiler command @@ -14813,7 +14816,71 @@ rm -f conftest* # a pkgIndex.tcl file or anything else at extension build time. #-------------------------------------------------------------------- -#TEA_PROG_TCLSH + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 +$as_echo_n "checking for tclsh... " >&6; } + + +# Check whether --with-tclsh was given. +if test "${with_tclsh+set}" = set; then : + withval=$with_tclsh; with_tclsh=${withval} +fi + + # Use the value from --with-tclsh, if it was given + TCLSH_PROG=0 + if test x"${with_tclsh}" != x ; then + if test -f "${with_tclsh}" ; then + TCLSH_PROG=${with_tclsh} + else + if test -f "${with_tclsh}/tcl8.6" ; then + TCLSH_PROG="${with_tclsh}/tcl8.6" + else + if test -f "${with_tclsh}/tclsh86.exe" ; then + TCLSH_PROG="${with_tclsh}/tclsh86.exe" + else + as_fn_error $? "${with_tclsh} does not point to a valid Tcl executable" "$LINENO" 5 + fi + fi + fi + else + if test -f "${TCL_BIN_DIR}/Makefile" ; then + # tclConfig.sh is in Tcl build directory + if test "${TEA_PLATFORM}" = "windows"; then + if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" ; then + TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" + elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}s${EXEEXT}" ; then + TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}s${EXEEXT}" + elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}t${EXEEXT}" ; then + TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}t${EXEEXT}" + elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}st${EXEEXT}" ; then + TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}st${EXEEXT}" + fi + else + TCLSH_PROG="${TCL_BIN_DIR}/tclsh" + fi + else + # tclConfig.sh is in install location + if test "${TEA_PLATFORM}" = "windows"; then + TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" + else + TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" + fi + list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ + `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ + `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" + for i in $list ; do + if test -f "$i/${TCLSH_PROG}" ; then + REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" + break + fi + done + TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 +$as_echo "${TCLSH_PROG}" >&6; } + + #TEA_PROG_WISH #-------------------------------------------------------------------- diff --git a/ds9/unix/configure.ac b/ds9/unix/configure.ac index 3a1486c..93b9243 100644 --- a/ds9/unix/configure.ac +++ b/ds9/unix/configure.ac @@ -240,7 +240,7 @@ TEA_MAKE_LIB # a pkgIndex.tcl file or anything else at extension build time. #-------------------------------------------------------------------- -#TEA_PROG_TCLSH +TEA_PROG_TCLSH #TEA_PROG_WISH #-------------------------------------------------------------------- |