Index: configure.in ================================================================== --- configure.in +++ configure.in @@ -156,8 +156,21 @@ AC_MSG_CHECKING([how to use $tcltls_ssl_lib]) LIBS="${LIBS} ${TCLTLS_SSL_LIBS}" CFLAGS="${CFLAGS} ${TCLTLS_SSL_CFLAGS}" CPPFLAGS="${CPPFLAGS} ${TCLTLS_SSL_CPPFLAGS}" AC_MSG_RESULT([$TCLTLS_SSL_CPPFLAGS $TCLTLS_SSL_CFLAGS $TCLTLS_SSL_LIBS]) + +dnl Sync the RPATH if requested +if test "$TCLEXT_BUILD" != 'static'; then + tcltls_rpath='yes' + AC_ARG_ENABLE([rpath], AS_HELP_STRING([--disable-rpath], [disable setting of rpath]), [ + if test "$enableval" = 'no'; then + tcltls_rpath='no' + fi + ]) + if test "$tcltls_rpath" = 'yes'; then + DC_SYNC_RPATH + fi +fi dnl Produce output AC_OUTPUT(Makefile pkgIndex.tcl)