37
37
thing which allows the Ctrl-Sh-Reset key sequence to be
38
38
temporarily disabled.)])
40
AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
41
[Define this if you have the XIDLE extension installed. If you
42
have the XIDLE extension, this is recommended. (You have this
43
extension if the file /usr/include/X11/extensions/xidle.h
44
exists.) Turning on this flag lets XScreenSaver work better with
45
servers which support this extension; but it will still work
46
with servers which do not suport it, so it's a good idea to
47
compile in support for it if you can.])
49
AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
50
[Define this if you have the MIT-SCREEN-SAVER extension
51
installed. See the caveats about this extension, above.
52
(It's available if /usr/include/X11/extensions/scrnsaver.h
55
AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
56
[Define this if you have the SGI SCREEN_SAVER extension. This is
57
standard on Irix systems, and not available elsewhere.])
59
AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
60
[Define this if you have the SGI-VIDEO-CONTROL extension. This
61
is standard on Irix systems, and not available elsewhere.])
40
# This only ever existed in X11R4 and X11R5.
41
#AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
42
# [Define this if you have the XIDLE extension installed. If you
43
# have the XIDLE extension, this is recommended. (You have this
44
# extension if the file /usr/include/X11/extensions/xidle.h
45
# exists.) Turning on this flag lets XScreenSaver work better with
46
# servers which support this extension; but it will still work
47
# with servers which do not suport it, so it's a good idea to
48
# compile in support for it if you can.])
50
# Using this extension will crash your X server and make fading not work.
51
#AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
52
# [Define this if you have the MIT-SCREEN-SAVER extension
53
# installed. See the caveats about this extension, above.
54
# (It's available if /usr/include/X11/extensions/scrnsaver.h
57
# This only ever existed on SGI hardware.
58
#AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
59
# [Define this if you have the SGI SCREEN_SAVER extension. This is
60
# standard on Irix systems, and not available elsewhere.])
62
# This only ever existed on SGI hardware.
63
#AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
64
# [Define this if you have the SGI-VIDEO-CONTROL extension. This
65
# is standard on Irix systems, and not available elsewhere.])
63
67
AH_TEMPLATE([HAVE_DPMS_EXTENSION],
64
68
[Define this if you have the XDPMS extension. This is standard
94
98
elsewhere. (It's available if the file
95
99
/usr/include/X11/extensions/Xinerama.h exists.)])
101
AH_TEMPLATE([HAVE_XINPUT],
102
[Define this if you have the Xinput extension. This is
103
standard since X11R5, and is thus almost everywhere.
104
(It's available if the file /usr/include/X11/extensions/XInput.h
97
107
AH_TEMPLATE([HAVE_XF86MISCSETGRABKEYSSTATE],
98
108
[Define this if you have the XF86MiscSetGrabKeysState function
99
109
(which allows the Ctrl-Alt-KP_star and Ctrl-Alt-KP_slash key
1352
1362
###############################################################################
1355
with_sgi_req=unspecified
1356
AC_ARG_WITH(sgi-ext,
1357
[Except where noted, all of the --with options below can also take a
1358
directory argument: for example, `--with-motif=/opt/Motif'. That would
1359
cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
1360
to be added to the -L list, assuming those directories exist.
1362
By default, support for each of these options will be built in, if the
1363
relevant library routines exist. At run time, they will then be used
1364
only if the X server being used supports them. Each --with option has
1365
a corresponding --without option, to override building support for them
1368
Screen blanking and idle-detection options:
1370
--with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
1371
[with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
1373
HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
1375
if test "$with_sgi" = yes; then
1376
AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
1378
AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
1379
[#include <X11/Xlib.h>])
1381
elif test "$with_sgi" != no; then
1382
echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
1365
#with_sgi_req=unspecified
1366
#AC_ARG_WITH(sgi-ext,
1367
#[Except where noted, all of the --with options below can also take a
1368
#directory argument: for example, `--with-motif=/opt/Motif'. That would
1369
#cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
1370
#to be added to the -L list, assuming those directories exist.
1372
#By default, support for each of these options will be built in, if the
1373
#relevant library routines exist. At run time, they will then be used
1374
#only if the X server being used supports them. Each --with option has
1375
#a corresponding --without option, to override building support for them
1378
#Screen blanking and idle-detection options:
1380
# --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
1381
# [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
1383
#HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
1385
#if test "$with_sgi" = yes; then
1386
# AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
1388
# AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
1389
# [#include <X11/Xlib.h>])
1391
#elif test "$with_sgi" != no; then
1392
# echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
1387
1397
###############################################################################
1391
1401
###############################################################################
1394
with_xidle_req=unspecified
1395
AC_ARG_WITH(xidle-ext,
1396
[ --with-xidle-ext Include support for the XIDLE extension.],
1397
[with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
1399
HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
1401
if test "$with_xidle" = yes; then
1402
AC_CHECK_X_HEADER(X11/extensions/xidle.h,
1404
AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
1405
[#include <X11/Xlib.h>])
1406
elif test "$with_xidle" != no; then
1407
echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
1404
#with_xidle_req=unspecified
1405
#AC_ARG_WITH(xidle-ext,
1406
#[ --with-xidle-ext Include support for the XIDLE extension.],
1407
# [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
1409
#HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
1411
#if test "$with_xidle" = yes; then
1412
# AC_CHECK_X_HEADER(X11/extensions/xidle.h,
1414
# AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
1415
# [#include <X11/Xlib.h>])
1416
#elif test "$with_xidle" != no; then
1417
# echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
1412
1422
###############################################################################
1416
1426
###############################################################################
1419
with_sgivc_req=unspecified
1420
AC_ARG_WITH(sgivc-ext,
1421
[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
1422
[with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
1424
HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
1426
if test "$with_sgivc" = yes; then
1428
# first check for XSGIvc.h
1429
AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
1430
[#include <X11/Xlib.h>])
1432
# if that succeeded, then check for the -lXsgivc
1433
if test "$have_sgivc" = yes; then
1435
AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
1436
[have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
1440
# if that succeeded, then we've really got it.
1441
if test "$have_sgivc" = yes; then
1442
AC_DEFINE(HAVE_SGI_VC_EXTENSION)
1445
elif test "$with_sgivc" != no; then
1446
echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
1429
#with_sgivc_req=unspecified
1430
#AC_ARG_WITH(sgivc-ext,
1431
#[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
1432
# [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
1434
#HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
1436
#if test "$with_sgivc" = yes; then
1438
# # first check for XSGIvc.h
1439
# AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
1440
# [#include <X11/Xlib.h>])
1442
# # if that succeeded, then check for the -lXsgivc
1443
# if test "$have_sgivc" = yes; then
1445
# AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
1446
# [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
1450
# # if that succeeded, then we've really got it.
1451
# if test "$have_sgivc" = yes; then
1452
# AC_DEFINE(HAVE_SGI_VC_EXTENSION)
1455
#elif test "$with_sgivc" != no; then
1456
# echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
1451
1461
###############################################################################
1546
1556
###############################################################################
1558
# Check for the XINPUT server extension.
1560
###############################################################################
1563
with_xinput_req=unspecified
1564
AC_ARG_WITH(xinput-ext,
1565
[ --with-xinput-ext Include support for the XInput extension.],
1566
[with_xinput="$withval"; with_xinput_req="$withval"], [with_xinput=yes])
1568
HANDLE_X_PATH_ARG(with_xinput, --with-xinput-ext, XINPUT)
1570
if test "$with_xinput" = yes; then
1572
# first check for Xinput.h
1573
AC_CHECK_X_HEADER(X11/extensions/XInput.h, [have_xinput=yes],,
1574
[#include <X11/Xlib.h>])
1576
# if that succeeded, then check for libXi
1577
if test "$have_xinput" = yes; then
1579
AC_CHECK_X_LIB(Xi, XListInputDevices,
1580
[have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"],
1581
[true], -lXext -lX11)
1584
# if that succeeded, then we've really got it.
1585
if test "$have_xinput" = yes; then
1586
AC_DEFINE(HAVE_XINPUT)
1589
elif test "$with_xinput" != no; then
1590
echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
1595
###############################################################################
1548
1597
# Check for the XF86VMODE server extension (for virtual screens.)
1550
1599
###############################################################################
1871
1920
[with_pam="$withval"; with_pam_req="$withval"],[with_pam=$with_pam_default])
1873
1922
AC_ARG_WITH([pam_service_name],
1874
AC_HELP_STRING([--with-pam-service-name=NAME],
1875
[NAME is the name of the PAM service that
1923
AC_HELP_STRING([--with-pam-service-name],
1924
[NAME arg is the name of the PAM service that
1876
1925
xscreensaver will authenticate as.]),
1877
1926
[pam_service_name="$withval"],[pam_service_name="xscreensaver"])
2298
2347
###############################################################################
2300
have_login_manager=no
2301
2349
with_login_manager_req=unspecified
2302
default_login_manager='gdmflexiserver -ls'
2350
default_login_manager_1='gdmflexiserver -ls'
2351
default_login_manager_2='kdmctl reserve'
2304
2353
AC_ARG_WITH(login-manager,
2305
2354
[ --with-login-manager Put a "New Login" button on the unlock dialog that
2306
runs a login manager such as gdmflexiserver.],
2355
runs a login manager like gdmflexiserver or kdmctl.],
2307
2356
[with_login_manager="$withval"; with_login_manager_req="$withval"],
2308
[with_login_manager=no])
2357
[with_login_manager=yes])
2309
2358
# no HANDLE_X_PATH_ARG for this one
2311
2360
if test "$enable_locking" = no ; then
2313
2362
with_login_manager=no
2316
if test -n "$with_login_manager_req" ; then
2317
ac_cv_login_manager_program=""
2319
if test "$with_login_manager_req" = "yes" ; then
2320
with_login_manager_req=$default_login_manager
2323
case "$with_login_manager_req" in
2325
with_login_manager=""
2329
set dummy $with_login_manager_req ; login_manager_tmp=$2
2330
AC_MSG_CHECKING([for $login_manager_tmp])
2331
if test -x "$login_manager_tmp" ; then
2335
with_login_manager=""
2340
set dummy $with_login_manager_req ; login_manager_tmp=$2
2342
unset ac_cv_path_login_manager_tmp
2365
case "$with_login_manager_req" in
2367
with_login_manager=""
2371
# Try both defaults, use the one that exists.
2373
set dummy $default_login_manager_1 ; login_manager_tmp=$2
2374
unset ac_cv_path_login_manager_tmp # don't cache
2375
AC_PATH_PROG(login_manager_tmp, $login_manager_tmp, [])
2376
if test ! -z "$login_manager_tmp" ; then
2377
with_login_manager="$default_login_manager_1"
2379
set dummy $default_login_manager_2 ; login_manager_tmp=$2
2380
unset ac_cv_path_login_manager_tmp # don't cache
2343
2381
AC_PATH_PROG(login_manager_tmp, $login_manager_tmp, [])
2344
if test -z "$login_manager_tmp" ; then
2382
if test ! -z "$login_manager_tmp" ; then
2383
with_login_manager="$default_login_manager_2"
2345
2385
with_login_manager=""
2347
with_login_manager="$login_manager_tmp"
2351
ac_cv_login_manager_program="$with_login_manager"
2353
elif test -n "$ac_cv_login_manager_program"; then
2354
AC_MSG_RESULT([checking for login_manager... (cached) $ac_cv_login_manager_program])
2391
# absolute path specified on cmd line
2392
set dummy $with_login_manager_req ; login_manager_tmp=$2
2393
AC_MSG_CHECKING([for $login_manager_tmp])
2394
if test -x "$login_manager_tmp" ; then
2398
with_login_manager=""
2403
# relative path specified on cmd line
2404
set dummy $with_login_manager_req ; login_manager_tmp=$2
2405
unset ac_cv_path_login_manager_tmp # don't cache
2406
AC_PATH_PROG(login_manager_tmp, $login_manager_tmp, [])
2407
if test -z "$login_manager_tmp" ; then
2408
with_login_manager=""
2410
with_login_manager="$login_manager_tmp"
2414
ac_cv_login_manager_program="$with_login_manager"
2357
2416
NEW_LOGIN_COMMAND_P=''
2358
2417
NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
2419
AC_MSG_CHECKING(for login manager)
2360
2420
if test -z "$NEW_LOGIN_COMMAND" ; then
2361
NEW_LOGIN_COMMAND="$default_login_manager"
2421
NEW_LOGIN_COMMAND="$default_login_manager_1"
2362
2422
NEW_LOGIN_COMMAND_P='! '
2423
AC_MSG_RESULT($NEW_LOGIN_COMMAND (disabled))
2425
AC_MSG_RESULT($NEW_LOGIN_COMMAND)
2367
2429
###############################################################################
2369
2431
# Check for -lgtk (and Gnome stuff)
3350
3412
with_imagedir_req=unspecified
3352
3414
AC_ARG_WITH(image-directory,
3353
[ --with-image-directory=DIR By default, some demos may display random images
3354
from this directory.],
3415
[ --with-image-directory Arg is the default directory from which some demos
3416
will choose random images to display.],
3355
3417
[with_imagedir="$withval"; with_imagedir_req="$withval"],
3356
3418
[with_imagedir=yes])
3357
3419
# no HANDLE_X_PATH_ARG for this one