diff options
author | das <das@noemail.net> | 2009-07-14 08:35:53 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2009-07-14 08:35:53 (GMT) |
commit | 34e33095734536567da04cae1fcba14f71360069 (patch) | |
tree | a45a37b843885319bf6f7e667c808aa8b9007bfa /unix | |
parent | 0f1d3a9a2471d542e7c0dc2604a6176871806383 (diff) | |
download | tk-34e33095734536567da04cae1fcba14f71360069.zip tk-34e33095734536567da04cae1fcba14f71360069.tar.gz tk-34e33095734536567da04cae1fcba14f71360069.tar.bz2 |
autoconf-2.59
FossilOrigin-Name: 67dd2f8cb8220d8bf8d5ca75fb85bbd7ae0a8a1e
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/configure | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/unix/configure b/unix/configure index 41173a68..09aba93 100755 --- a/unix/configure +++ b/unix/configure @@ -863,6 +863,7 @@ Optional Features: --enable-symbols build with debugging symbols (default: off) --enable-aqua=yes|carbon|no use Aqua windowingsystem on Mac OS X (default: no) + --enable-xss use XScreenSaver for activity timer (default: on) --enable-xft use freetype/fontconfig/xft (default: on) --enable-framework package shared libraries in MacOSX frameworks (default: off) @@ -10179,7 +10180,23 @@ if test $tk_aqua = no; then tk_oldLibs=$LIBS LIBS="$tk_oldLibs $XLIBSW" xss_header_found=no - echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5 + xss_lib_found=no + echo "$as_me:$LINENO: checking whether to try to use XScreenSaver" >&5 +echo $ECHO_N "checking whether to try to use XScreenSaver... $ECHO_C" >&6 + # Check whether --enable-xss or --disable-xss was given. +if test "${enable_xss+set}" = set; then + enableval="$enable_xss" + enable_xss=$enableval +else + enable_xss=yes +fi; + if test "$enable_xss" = "no" ; then + echo "$as_me:$LINENO: result: $enable_xss" >&5 +echo "${ECHO_T}$enable_xss" >&6 + else + echo "$as_me:$LINENO: result: $enable_xss" >&5 +echo "${ECHO_T}$enable_xss" >&6 + echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -10229,13 +10246,12 @@ echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then - xss_header_found=yes + xss_header_found=yes fi - xss_lib_found=no - echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo" >&5 + echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo" >&5 echo $ECHO_N "checking for XScreenSaverQueryInfo... $ECHO_C" >&6 if test "${ac_cv_func_XScreenSaverQueryInfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -10329,7 +10345,7 @@ if test $ac_cv_func_XScreenSaverQueryInfo = yes; then : else - echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXext" >&5 + echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXext" >&5 echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXext... $ECHO_C" >&6 if test "${ac_cv_lib_Xext_XScreenSaverQueryInfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -10395,12 +10411,12 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverQueryInfo" >&5 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverQueryInfo" >&6 if test $ac_cv_lib_Xext_XScreenSaverQueryInfo = yes; then - XLIBSW="$XLIBSW -lXext" - xss_lib_found=yes + XLIBSW="$XLIBSW -lXext" + xss_lib_found=yes else - echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXss" >&5 + echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXss" >&5 echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXss... $ECHO_C" >&6 if test "${ac_cv_lib_Xss_XScreenSaverQueryInfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -10466,14 +10482,14 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverQueryInfo" >&5 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverQueryInfo" >&6 if test $ac_cv_lib_Xss_XScreenSaverQueryInfo = yes; then - if test "$tcl_cv_ld_weak_l" = yes; then - # On Darwin, weak link libXss if possible, - # as it is only available on Tiger or later. - XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext" - else - XLIBSW="$XLIBSW -lXss -lXext" - fi - xss_lib_found=yes + if test "$tcl_cv_ld_weak_l" = yes; then + # On Darwin, weak link libXss if possible, + # as it is only available on Tiger or later. + XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext" + else + XLIBSW="$XLIBSW -lXss -lXext" + fi + xss_lib_found=yes fi @@ -10483,7 +10499,8 @@ fi fi - if test $xss_lib_found = yes -a $xss_header_found = yes; then + fi + if test $enable_xss = yes -a $xss_lib_found = yes -a $xss_header_found = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_XSS 1 |