summaryrefslogtreecommitdiffstats
path: root/ds9/unix
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-01-28 21:51:22 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-01-28 21:51:22 (GMT)
commit149c3ef42a455325226870f7e26849b8386695fc (patch)
tree36c5c03a8462b54381374f6f0fd315bfd54b6d42 /ds9/unix
parent9e6d8759d5ef440c73852d09437986dcc6290376 (diff)
downloadblt-149c3ef42a455325226870f7e26849b8386695fc.zip
blt-149c3ef42a455325226870f7e26849b8386695fc.tar.gz
blt-149c3ef42a455325226870f7e26849b8386695fc.tar.bz2
fix configure
Diffstat (limited to 'ds9/unix')
-rwxr-xr-xds9/unix/configure77
-rw-r--r--ds9/unix/configure.ac2
2 files changed, 77 insertions, 2 deletions
diff --git a/ds9/unix/configure b/ds9/unix/configure
index ac97db0..23f9bd6 100755
--- a/ds9/unix/configure
+++ b/ds9/unix/configure
@@ -651,6 +651,8 @@ CFLAGS_DEBUG
RC
CELIB_DIR
AR
+STUBS_BUILD
+SHARED_BUILD
TCL_THREADS
XMKMF
TK_INCLUDES
@@ -941,6 +943,8 @@ with_tclinclude
with_tkinclude
with_x
enable_threads
+enable_shared
+enable_stubs
enable_64bit
enable_64bit_vis
enable_rpath
@@ -1573,6 +1577,9 @@ Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-threads build with threads
+ --enable-shared build and link with shared libraries (default: on)
+ --enable-stubs build and link with stub libraries. Always true for
+ shared builds (default: on)
--enable-64bit enable 64bit support (default: off)
--enable-64bit-vis enable 64bit Sparc VIS support (default: off)
--disable-rpath disable rpath support (default: on)
@@ -12092,7 +12099,75 @@ $as_echo "$as_me: WARNING:
# building as a shared library instead of a static library.
#--------------------------------------------------------------------
-#TEA_ENABLE_SHARED
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
+$as_echo_n "checking how to build libraries... " >&6; }
+ # Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then :
+ enableval=$enable_shared; shared_ok=$enableval
+else
+ shared_ok=yes
+fi
+
+
+ if test "${enable_shared+set}" = set; then
+ enableval="$enable_shared"
+ shared_ok=$enableval
+ else
+ shared_ok=yes
+ fi
+
+ # Check whether --enable-stubs was given.
+if test "${enable_stubs+set}" = set; then :
+ enableval=$enable_stubs; stubs_ok=$enableval
+else
+ stubs_ok=yes
+fi
+
+
+ if test "${enable_stubs+set}" = set; then
+ enableval="$enable_stubs"
+ stubs_ok=$enableval
+ else
+ stubs_ok=yes
+ fi
+
+ # Stubs are always enabled for shared builds
+ if test "$shared_ok" = "yes" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
+$as_echo "shared" >&6; }
+ SHARED_BUILD=1
+ STUBS_BUILD=1
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
+$as_echo "static" >&6; }
+ SHARED_BUILD=0
+
+$as_echo "#define STATIC_BUILD 1" >>confdefs.h
+
+ if test "$stubs_ok" = "yes" ; then
+ STUBS_BUILD=1
+ else
+ STUBS_BUILD=0
+ fi
+ fi
+ if test "${STUBS_BUILD}" = "1" ; then
+
+$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
+
+
+$as_echo "#define USE_TCLOO_STUBS 1" >>confdefs.h
+
+ if test "${TEA_WINDOWINGSYSTEM}" != ""; then
+
+$as_echo "#define USE_TK_STUBS 1" >>confdefs.h
+
+ fi
+ fi
+
+
+
+
#--------------------------------------------------------------------
# This macro figures out what flags to use with the compiler/linker
diff --git a/ds9/unix/configure.ac b/ds9/unix/configure.ac
index 93b9243..7738d4e 100644
--- a/ds9/unix/configure.ac
+++ b/ds9/unix/configure.ac
@@ -208,7 +208,7 @@ TEA_ENABLE_THREADS
# building as a shared library instead of a static library.
#--------------------------------------------------------------------
-#TEA_ENABLE_SHARED
+TEA_ENABLE_SHARED
#--------------------------------------------------------------------
# This macro figures out what flags to use with the compiler/linker