summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ds9/macosx/Makefile.in5
-rwxr-xr-xds9/macosx/configure277
-rw-r--r--ds9/macosx/configure.ac5
-rw-r--r--ds9/macosx/ds9.C7
-rw-r--r--ds9/make.include5
-rw-r--r--macosx/Makefile.in3
-rwxr-xr-xmacosx/configure4
-rwxr-xr-xmacosx/configure.ac3
8 files changed, 305 insertions, 4 deletions
diff --git a/ds9/macosx/Makefile.in b/ds9/macosx/Makefile.in
index 5e33e50..ef29324 100644
--- a/ds9/macosx/Makefile.in
+++ b/ds9/macosx/Makefile.in
@@ -34,6 +34,7 @@ tclcheckdns_LIB_SPEC= @tclcheckdns_LIB_SPEC@
tcliis_LIB_SPEC = @tcliis_LIB_SPEC@
tclsignal_LIB_SPEC= @tclsignal_LIB_SPEC@
tclxml_LIB_SPEC = @tclxml_LIB_SPEC@
+tls_LIB_SPEC=@tls_LIB_SPEC@
tkblt_LIB_SPEC = @tkblt_LIB_SPEC@
tkhtml1_LIB_SPEC= @tkhtml1_LIB_SPEC@
@@ -54,7 +55,7 @@ PKG_CFLAGS = @PKG_CFLAGS@
DEFS = @DEFS@ $(PKG_CFLAGS)
CPPFLAGS = @CPPFLAGS@
-LIBS = @PKG_LIBS@ @LIBS@
+LIBS = @PKG_LIBS@ @LIBS@ @SSLLIBS@
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
@@ -95,6 +96,7 @@ SPECS = \
$(tclsignal_LIB_SPEC) \
$(tclxml_LIB_SPEC) \
$(tclzvfs_LIB_SPEC) \
+ $(tls_LIB_SPEC) \
$(tkblt_LIB_SPEC) \
$(tkhtml1_LIB_SPEC) \
$(tkimg_LIB_SPEC) \
@@ -129,6 +131,7 @@ PREQS = \
$(LIBDIR)/doc \
$(LIBDIR)/cmaps \
$(LIBDIR)/template \
+ $(LIBDIR)/tls \
$(LIBDIR)/tkblt \
$(LIBDIR)/tkcon \
$(LIBDIR)/base64 \
diff --git a/ds9/macosx/configure b/ds9/macosx/configure
index 50a4ffa..9d09835 100755
--- a/ds9/macosx/configure
+++ b/ds9/macosx/configure
@@ -657,6 +657,7 @@ TCL_THREADS
XMKMF
TK_INCLUDES
TCL_INCLUDES
+SSLLIBS
MATH_LIBS
EGREP
GREP
@@ -765,6 +766,14 @@ tkblt_LIB_FILE
tkblt_SRC_DIR
tkblt_BIN_DIR
tkblt_VERSION
+tls_STUB_LIB_PATH
+tls_STUB_LIB_SPEC
+tls_STUB_LIB_FILE
+tls_LIB_SPEC
+tls_LIB_FILE
+tls_SRC_DIR
+tls_BIN_DIR
+tls_VERSION
tclxml_STUB_LIB_PATH
tclxml_STUB_LIB_SPEC
tclxml_STUB_LIB_FILE
@@ -926,6 +935,7 @@ with_tclcheckdns
with_tcliis
with_tclsignal
with_tclxml
+with_tls
with_tkblt
with_tkhtml1
with_tkimg
@@ -1599,6 +1609,7 @@ Optional Packages:
--with-tcliis directory containing tcliis configuration (tcliisConfig.sh)
--with-tclsignal directory containing tclsignal configuration (tclsignalConfig.sh)
--with-tclxml directory containing tclxml configuration (tclxmlConfig.sh)
+ --with-tls directory containing tls configuration (tlsConfig.sh)
--with-tkblt directory containing tkblt configuration (tkbltConfig.sh)
--with-tkhtml1 directory containing tkhtml1 configuration (tkhtml1Config.sh)
--with-tkimg directory containing tkimg configuration (tkimgConfig.sh)
@@ -6054,6 +6065,270 @@ fi
#
+ # Ok, lets find the tls configuration
+ # First, look for one uninstalled.
+ # the alternative search directory is invoked by --with-tls
+ #
+
+ if test x"${no_tls}" = x ; then
+ # we reset no_tls in case something fails here
+ no_tls=true
+
+# Check whether --with-tls was given.
+if test "${with_tls+set}" = set; then :
+ withval=$with_tls; with_tlsconfig=${withval}
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls configuration" >&5
+$as_echo_n "checking for tls configuration... " >&6; }
+ if ${ac_cv_c_tlsconfig+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+
+ # First check to see if --with-tls was specified.
+ if test x"${with_tlsconfig}" != x ; then
+ case ${with_tlsconfig} in
+ */tlsConfig.sh )
+ if test -f ${with_tlsconfig}; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tls argument should refer to directory containing tlsConfig.sh, not to tlsConfig.sh itself" >&5
+$as_echo "$as_me: WARNING: --with-tls argument should refer to directory containing tlsConfig.sh, not to tlsConfig.sh itself" >&2;}
+ with_tlsconfig=`echo ${with_tlsconfig} | sed 's!/tlsConfig\.sh$!!'`
+ fi;;
+ esac
+ if test -f "${with_tlsconfig}/tlsConfig.sh" ; then
+ ac_cv_c_tlsconfig=`(cd ${with_tlsconfig}; pwd)`
+ else
+ as_fn_error $? "${with_tlsconfig} directory doesn't contain tlsConfig.sh" "$LINENO" 5
+ fi
+ fi
+
+ # then check for a private tls installation
+ if test x"${ac_cv_c_tlsconfig}" = x ; then
+ for i in \
+ ../tls \
+ `ls -dr ../tls*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ../tls*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ../tls*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ../tls*[0-9].[0-9]* 2>/dev/null` \
+ ../../tls \
+ `ls -dr ../../tls*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ../../tls*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ../../tls*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ../../tls*[0-9].[0-9]* 2>/dev/null` \
+ ../../../tls \
+ `ls -dr ../../../tls*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ../../../tls*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ../../../tls*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ../../../tls*[0-9].[0-9]* 2>/dev/null` \
+ ${srcdir}/../tls \
+ `ls -dr ${srcdir}/../tls*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ${srcdir}/../tls*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ${srcdir}/../tls*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ${srcdir}/../tls*[0-9].[0-9]* 2>/dev/null` \
+ ; do
+ if test -f "$i/tlsConfig.sh" ; then
+ ac_cv_c_tlsconfig=`(cd $i; pwd)`
+ break
+ fi
+ if test -f "$i/unix/tlsConfig.sh" ; then
+ ac_cv_c_tlsconfig=`(cd $i/unix; pwd)`
+ break
+ fi
+ done
+ fi
+
+ # check in a few common install locations
+ if test x"${ac_cv_c_tlsconfig}" = x ; then
+ for i in `ls -d ${libdir} 2>/dev/null` \
+ `ls -d ${exec_prefix}/lib 2>/dev/null` \
+ `ls -d ${prefix}/lib 2>/dev/null` \
+ `ls -d /usr/local/lib 2>/dev/null` \
+ `ls -d /usr/contrib/lib 2>/dev/null` \
+ `ls -d /usr/lib 2>/dev/null` \
+ `ls -d /usr/lib64 2>/dev/null` \
+ ; do
+ if test -f "$i/tlsConfig.sh" ; then
+ ac_cv_c_tlsconfig=`(cd $i; pwd)`
+ break
+ fi
+ done
+ fi
+
+fi
+
+
+ if test x"${ac_cv_c_tlsconfig}" = x ; then
+ tls_BIN_DIR="# no tls configs found"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tls configuration definitions" >&5
+$as_echo "$as_me: WARNING: Cannot find tls configuration definitions" >&2;}
+ exit 0
+ else
+ no_tls=
+ tls_BIN_DIR=${ac_cv_c_tlsconfig}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $tls_BIN_DIR/tlsConfig.sh" >&5
+$as_echo "found $tls_BIN_DIR/tlsConfig.sh" >&6; }
+ fi
+ fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${tls_BIN_DIR}/tlsConfig.sh" >&5
+$as_echo_n "checking for existence of ${tls_BIN_DIR}/tlsConfig.sh... " >&6; }
+
+ if test -f "${tls_BIN_DIR}/tlsConfig.sh" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
+$as_echo "loading" >&6; }
+ . "${tls_BIN_DIR}/tlsConfig.sh"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
+$as_echo "file not found" >&6; }
+ fi
+
+ #
+ # If the tls_BIN_DIR is the build directory (not the install directory),
+ # then set the common variable name to the value of the build variables.
+ # For example, the variable tls_LIB_SPEC will be set to the value
+ # of tls_BUILD_LIB_SPEC. An extension should make use of tls_LIB_SPEC
+ # instead of tls_BUILD_LIB_SPEC since it will work with both an
+ # installed and uninstalled version of Tcl.
+ #
+
+ if test -f "${tls_BIN_DIR}/Makefile" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tls" >&5
+$as_echo "$as_me: WARNING: Found Makefile - using build library specs for tls" >&2;}
+ tls_LIB_SPEC=${tls_BUILD_LIB_SPEC}
+ tls_STUB_LIB_SPEC=${tls_BUILD_STUB_LIB_SPEC}
+ tls_STUB_LIB_PATH=${tls_BUILD_STUB_LIB_PATH}
+ tls_INCLUDE_SPEC=${tls_BUILD_INCLUDE_SPEC}
+ tls_LIBRARY_PATH=${tls_LIBRARY_PATH}
+ fi
+
+
+
+
+
+
+
+
+
+
+
+
+ # Allow the caller to prevent this auto-check by specifying any 2nd arg
+ if test "x" = x; then :
+
+ # Check both upper and lower-case variants
+ # If a dev wanted non-stubs libs, this function could take an option
+ # to not use _STUB in the paths below
+ if test "x${tls_STUB_LIB_SPEC}" = x; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking For TLS_STUB library for LIBS" >&5
+$as_echo_n "checking For TLS_STUB library for LIBS... " >&6; }
+ # This simplifies the use of stub libraries by automatically adding
+ # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
+ # but this is called before CONFIG_CFLAGS. More importantly, this adds
+ # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
+ if test "x${TLS_STUB_LIB_SPEC}" != "x" ; then
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
+
+ vars="\"`${CYGPATH} ${TLS_STUB_LIB_PATH}`\""
+ for i in $vars; do
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
+ case $i in
+ *.lib)
+ # Convert foo.lib to -lfoo for GCC
+ i=-l`echo "$i" | sed -e 's/\.[^.]*$//' -e 's/\.lib.*//'`
+ ;;
+ esac
+ fi
+ PKG_LIBS="$PKG_LIBS $i"
+ done
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TLS_STUB_LIB_PATH ${TLS_STUB_LIB_PATH}" >&5
+$as_echo "using TLS_STUB_LIB_PATH ${TLS_STUB_LIB_PATH}" >&6; }
+ else
+
+ vars="${TLS_STUB_LIB_SPEC}"
+ for i in $vars; do
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
+ case $i in
+ *.lib)
+ # Convert foo.lib to -lfoo for GCC
+ i=-l`echo "$i" | sed -e 's/\.[^.]*$//' -e 's/\.lib.*//'`
+ ;;
+ esac
+ fi
+ PKG_LIBS="$PKG_LIBS $i"
+ done
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TLS_STUB_LIB_SPEC ${TLS_STUB_LIB_SPEC}" >&5
+$as_echo "using TLS_STUB_LIB_SPEC ${TLS_STUB_LIB_SPEC}" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
+$as_echo "file not found" >&6; }
+ fi
+
+else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking For tls_STUB library for LIBS" >&5
+$as_echo_n "checking For tls_STUB library for LIBS... " >&6; }
+ # This simplifies the use of stub libraries by automatically adding
+ # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
+ # but this is called before CONFIG_CFLAGS. More importantly, this adds
+ # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
+ if test "x${tls_STUB_LIB_SPEC}" != "x" ; then
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
+
+ vars="\"`${CYGPATH} ${tls_STUB_LIB_PATH}`\""
+ for i in $vars; do
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
+ case $i in
+ *.lib)
+ # Convert foo.lib to -lfoo for GCC
+ i=-l`echo "$i" | sed -e 's/\.[^.]*$//' -e 's/\.lib.*//'`
+ ;;
+ esac
+ fi
+ PKG_LIBS="$PKG_LIBS $i"
+ done
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tls_STUB_LIB_PATH ${tls_STUB_LIB_PATH}" >&5
+$as_echo "using tls_STUB_LIB_PATH ${tls_STUB_LIB_PATH}" >&6; }
+ else
+
+ vars="${tls_STUB_LIB_SPEC}"
+ for i in $vars; do
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
+ case $i in
+ *.lib)
+ # Convert foo.lib to -lfoo for GCC
+ i=-l`echo "$i" | sed -e 's/\.[^.]*$//' -e 's/\.lib.*//'`
+ ;;
+ esac
+ fi
+ PKG_LIBS="$PKG_LIBS $i"
+ done
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tls_STUB_LIB_SPEC ${tls_STUB_LIB_SPEC}" >&5
+$as_echo "using tls_STUB_LIB_SPEC ${tls_STUB_LIB_SPEC}" >&6; }
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
+$as_echo "file not found" >&6; }
+ fi
+
+fi
+
+fi
+
+
+
+ #
# Ok, lets find the tkblt configuration
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-tkblt
@@ -11133,6 +11408,8 @@ done
#TEA_ADD_STUB_SOURCES([])
#TEA_ADD_TCL_SOURCES([])
+SSLLIBS="/opt/local/lib/libssl.a /opt/local/lib/libcrypto.a"
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
$as_echo_n "checking for xmlInitParser in -lxml2... " >&6; }
if ${ac_cv_lib_xml2_xmlInitParser+:} false; then :
diff --git a/ds9/macosx/configure.ac b/ds9/macosx/configure.ac
index c624acc..8c1adb6 100644
--- a/ds9/macosx/configure.ac
+++ b/ds9/macosx/configure.ac
@@ -73,6 +73,9 @@ TEA_LOAD_CONFIG(tclsignal)
TEA_PATH_CONFIG(tclxml)
TEA_LOAD_CONFIG(tclxml)
+TEA_PATH_CONFIG(tls)
+TEA_LOAD_CONFIG(tls)
+
TEA_PATH_CONFIG(tkblt)
TEA_LOAD_CONFIG(tkblt)
@@ -143,6 +146,8 @@ TEA_ADD_LIBS([-lstdc++])
#TEA_ADD_STUB_SOURCES([])
#TEA_ADD_TCL_SOURCES([])
+SSLLIBS="/opt/local/lib/libssl.a /opt/local/lib/libcrypto.a"
+AC_SUBST(SSLLIBS)
AC_CHECK_LIB([xml2],[xmlInitParser])
#--------------------------------------------------------------------
diff --git a/ds9/macosx/ds9.C b/ds9/macosx/ds9.C
index 17fe17a..741b590 100644
--- a/ds9/macosx/ds9.C
+++ b/ds9/macosx/ds9.C
@@ -40,6 +40,7 @@ extern "C" {
int Tclxpa_Init(Tcl_Interp*);
int Tcliis_Init(Tcl_Interp*);
+ int Tls_Init(Tcl_Interp*);
int Tclxml_Init(Tcl_Interp*);
int Tclxml_libxml2_Init(Tcl_Interp*);
@@ -122,6 +123,12 @@ int SAOAppInit(Tcl_Interp *interp)
Tcl_StaticPackage (interp, "tclcheckdns", Tclcheckdns_Init,
(Tcl_PackageInitProc*)NULL);
+ // Tls
+ if (Tls_Init(interp) == TCL_ERROR)
+ return TCL_ERROR;
+ Tcl_StaticPackage (interp, "tls", Tls_Init,
+ (Tcl_PackageInitProc*)NULL);
+
// Tksao
if (Tksao_Init(interp) == TCL_ERROR)
return TCL_ERROR;
diff --git a/ds9/make.include b/ds9/make.include
index 6182249..7256978 100644
--- a/ds9/make.include
+++ b/ds9/make.include
@@ -22,9 +22,12 @@ $(LIBDIR)/template : $(prefix)/ds9/template
#--------------------------tls
-$(LIBDIR)/tls : $(prefix)/tls/*.tcl
+$(LIBDIR)/tls : $(prefix)/tls/tls.tcl
mkdir -p "$@"
cp -prf $? "$@"
+# must do it this way for win
+ cd "$@"; \
+ echo "pkg_mkIndex . *.tcl; exit" | $(TCLSH_PROG)
#--------------------------tkblt
diff --git a/macosx/Makefile.in b/macosx/Makefile.in
index 10a0c61..2c5384f 100644
--- a/macosx/Makefile.in
+++ b/macosx/Makefile.in
@@ -11,10 +11,9 @@ mandir = @mandir@
OS = @OS@
ARCH = @ARCH@
+TLSFLAGS = @TLSFLAGS@
JOBS = @CORES@
-TLSFLAGS = "--with-ssl-dir=/opt/local"
-
include ./make.include
WITHTCL = --with-tcl=$(prefix)/build/tcl/Development
diff --git a/macosx/configure b/macosx/configure
index df20a2a..a98aa7b 100755
--- a/macosx/configure
+++ b/macosx/configure
@@ -584,6 +584,7 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
CORES
+TLSFLAGS
ARCH
OS
PKG_CFLAGS
@@ -1861,6 +1862,9 @@ ARCH=$with_arch
prefix=$ac_pwd
exec_prefix=$ac_pwd
+TLSFLAGS="--with-ssl-dir=/opt/local"
+
+
CORES=`sysctl -n "hw.ncpu"`
diff --git a/macosx/configure.ac b/macosx/configure.ac
index 61bb20d..e5abba6 100755
--- a/macosx/configure.ac
+++ b/macosx/configure.ac
@@ -44,6 +44,9 @@ AC_SUBST(ARCH)
prefix=$ac_pwd
exec_prefix=$ac_pwd
+TLSFLAGS="--with-ssl-dir=/opt/local"
+AC_SUBST(TLSFLAGS)
+
CORES=`sysctl -n "hw.ncpu"`
AC_SUBST(CORES)