~ubuntu-branches/debian/sid/xscreensaver/sid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Tormod Volden
  • Date: 2011-04-22 23:07:13 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110422230713-wcixfinu45mm7vsx
Tags: 5.13-1
* New upstream version 5.13
  - Passwords that contain UTF-8 non-Latin1 chars are now typeable
  - pt_BR translation (thanks Sérgio Cipolla!) (Closes: #586230)
  - Fix memory leak in gltext (LP: #768032)
* Build without gdm and libgnome2-dev (Closes: #618165)
* Add Suggests on gdm3 or kdm-gdmcompat because gdmflexiserver
  can be used for the "New Login" functionality (see bug #304406)
* Remove obsolete gdmflexiserver options
* xscreensaver.desktop changes:
  - Do not set StartupNotify.
  - Do not specify svg icon. Closes: #618723 (LP: #603222)
* Fix installation path for xscreensaver-daemon.desktop 
* debian/xscreensaver.preinst: Check version before
  deleting obsolete configuration files (Closes: #588288)
* Bump Standards-Version to 3.9.2 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
            thing which allows the Ctrl-Sh-Reset key sequence to be
38
38
            temporarily disabled.)])
39
39
 
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.])
48
 
 
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
53
 
            exists.)])
54
 
 
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.])
58
 
 
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.])
 
49
 
 
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
 
55
#            exists.)])
 
56
 
 
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.])
 
61
 
 
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.])
62
66
 
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.)])
96
100
 
 
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
 
105
            exists.)])
 
106
 
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
1310
1320
###############################################################################
1311
1321
#
1312
1322
#       Handle the --with-configdir option
1313
 
#       Help for --with-x-app-defaults option added..
 
1323
#       Help for --with-x-app-defaults option added.
1314
1324
#
1315
1325
###############################################################################
1316
1326
 
1351
1361
#
1352
1362
###############################################################################
1353
1363
 
1354
 
have_sgi=no
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.  
1361
 
 
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
1366
 
at all.
1367
 
 
1368
 
Screen blanking and idle-detection options:
1369
 
 
1370
 
  --with-sgi-ext          Include support for the SGI SCREEN_SAVER extension.],
1371
 
  [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
1372
 
 
1373
 
HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
1374
 
 
1375
 
if test "$with_sgi" = yes; then
1376
 
  AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
1377
 
                    [have_sgi=yes
1378
 
                     AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
1379
 
                    [#include <X11/Xlib.h>])
1380
 
 
1381
 
elif test "$with_sgi" != no; then
1382
 
  echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
1383
 
  exit 1
1384
 
fi
 
1364
#have_sgi=no
 
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.  
 
1371
#
 
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
 
1376
#at all.
 
1377
#
 
1378
#Screen blanking and idle-detection options:
 
1379
#
 
1380
#  --with-sgi-ext          Include support for the SGI SCREEN_SAVER extension.],
 
1381
#  [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
 
1382
#
 
1383
#HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
 
1384
#
 
1385
#if test "$with_sgi" = yes; then
 
1386
#  AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
 
1387
#                    [have_sgi=yes
 
1388
#                     AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
 
1389
#                    [#include <X11/Xlib.h>])
 
1390
#
 
1391
#elif test "$with_sgi" != no; then
 
1392
#  echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
 
1393
#  exit 1
 
1394
#fi
1385
1395
 
1386
1396
 
1387
1397
###############################################################################
1390
1400
#
1391
1401
###############################################################################
1392
1402
 
1393
 
have_xidle=no
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])
1398
 
 
1399
 
HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
1400
 
 
1401
 
if test "$with_xidle" = yes; then
1402
 
  AC_CHECK_X_HEADER(X11/extensions/xidle.h,
1403
 
                    [have_xidle=yes
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"
1408
 
  exit 1
1409
 
fi
 
1403
#have_xidle=no
 
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])
 
1408
#
 
1409
#HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
 
1410
#
 
1411
#if test "$with_xidle" = yes; then
 
1412
#  AC_CHECK_X_HEADER(X11/extensions/xidle.h,
 
1413
#                    [have_xidle=yes
 
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"
 
1418
#  exit 1
 
1419
#fi
1410
1420
 
1411
1421
 
1412
1422
###############################################################################
1415
1425
#
1416
1426
###############################################################################
1417
1427
 
1418
 
have_sgivc=no
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])
1423
 
 
1424
 
HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
1425
 
 
1426
 
if test "$with_sgivc" = yes; then
1427
 
 
1428
 
  # first check for XSGIvc.h
1429
 
  AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
1430
 
                    [#include <X11/Xlib.h>])
1431
 
 
1432
 
  # if that succeeded, then check for the -lXsgivc
1433
 
  if test "$have_sgivc" = yes; then
1434
 
    have_sgivc=no
1435
 
    AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
1436
 
                  [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
1437
 
                  -lXext -lX11)
1438
 
  fi
1439
 
 
1440
 
  # if that succeeded, then we've really got it.
1441
 
  if test "$have_sgivc" = yes; then
1442
 
    AC_DEFINE(HAVE_SGI_VC_EXTENSION)
1443
 
  fi
1444
 
 
1445
 
elif test "$with_sgivc" != no; then
1446
 
  echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
1447
 
  exit 1
1448
 
fi
 
1428
#have_sgivc=no
 
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])
 
1433
#
 
1434
#HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
 
1435
#
 
1436
#if test "$with_sgivc" = yes; then
 
1437
#
 
1438
#  # first check for XSGIvc.h
 
1439
#  AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
 
1440
#                    [#include <X11/Xlib.h>])
 
1441
#
 
1442
#  # if that succeeded, then check for the -lXsgivc
 
1443
#  if test "$have_sgivc" = yes; then
 
1444
#    have_sgivc=no
 
1445
#    AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
 
1446
#                  [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
 
1447
#                  -lXext -lX11)
 
1448
#  fi
 
1449
#
 
1450
#  # if that succeeded, then we've really got it.
 
1451
#  if test "$have_sgivc" = yes; then
 
1452
#    AC_DEFINE(HAVE_SGI_VC_EXTENSION)
 
1453
#  fi
 
1454
#
 
1455
#elif test "$with_sgivc" != no; then
 
1456
#  echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
 
1457
#  exit 1
 
1458
#fi
1449
1459
 
1450
1460
 
1451
1461
###############################################################################
1545
1555
 
1546
1556
###############################################################################
1547
1557
#
 
1558
#       Check for the XINPUT server extension.
 
1559
#
 
1560
###############################################################################
 
1561
 
 
1562
have_xinput=no
 
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])
 
1567
 
 
1568
HANDLE_X_PATH_ARG(with_xinput, --with-xinput-ext, XINPUT)
 
1569
 
 
1570
if test "$with_xinput" = yes; then
 
1571
 
 
1572
  # first check for Xinput.h
 
1573
  AC_CHECK_X_HEADER(X11/extensions/XInput.h, [have_xinput=yes],,
 
1574
                    [#include <X11/Xlib.h>])
 
1575
 
 
1576
  # if that succeeded, then check for libXi
 
1577
  if test "$have_xinput" = yes; then
 
1578
    have_xinput=no
 
1579
    AC_CHECK_X_LIB(Xi, XListInputDevices,
 
1580
                   [have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"],
 
1581
                   [true], -lXext -lX11)
 
1582
  fi
 
1583
 
 
1584
  # if that succeeded, then we've really got it.
 
1585
  if test "$have_xinput" = yes; then
 
1586
    AC_DEFINE(HAVE_XINPUT)
 
1587
  fi
 
1588
 
 
1589
elif test "$with_xinput" != no; then
 
1590
  echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
 
1591
  exit 1
 
1592
fi
 
1593
 
 
1594
 
 
1595
###############################################################################
 
1596
#
1548
1597
#       Check for the XF86VMODE server extension (for virtual screens.)
1549
1598
#
1550
1599
###############################################################################
1871
1920
  [with_pam="$withval"; with_pam_req="$withval"],[with_pam=$with_pam_default])
1872
1921
 
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"])
1878
1927
 
2297
2346
#
2298
2347
###############################################################################
2299
2348
 
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'
2303
2352
 
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
2310
2359
 
2311
2360
if test "$enable_locking" = no ; then
2313
2362
  with_login_manager=no
2314
2363
fi
2315
2364
 
2316
 
if test -n "$with_login_manager_req" ; then
2317
 
  ac_cv_login_manager_program=""
2318
 
 
2319
 
 if test "$with_login_manager_req" = "yes" ; then
2320
 
   with_login_manager_req=$default_login_manager
2321
 
 fi
2322
 
 
2323
 
  case "$with_login_manager_req" in
2324
 
    no)
2325
 
      with_login_manager=""
2326
 
    ;;
2327
 
    /*)
2328
 
      # absolute path
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
2332
 
        AC_MSG_RESULT(yes)
2333
 
      else
2334
 
        AC_MSG_RESULT(no)
2335
 
        with_login_manager=""
2336
 
      fi
2337
 
    ;;
2338
 
    *)
2339
 
      # relative path
2340
 
      set dummy $with_login_manager_req ; login_manager_tmp=$2
2341
 
      # don't cache
2342
 
      unset ac_cv_path_login_manager_tmp
 
2365
case "$with_login_manager_req" in
 
2366
  no)
 
2367
    with_login_manager=""
 
2368
  ;;
 
2369
 
 
2370
  yes|unspecified)
 
2371
    # Try both defaults, use the one that exists.
 
2372
 
 
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"
 
2378
    else
 
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"
 
2384
      else
2345
2385
        with_login_manager=""
2346
 
      else
2347
 
        with_login_manager="$login_manager_tmp"
2348
2386
      fi
2349
 
    ;;
2350
 
  esac
2351
 
  ac_cv_login_manager_program="$with_login_manager"
2352
 
 
2353
 
elif test -n "$ac_cv_login_manager_program"; then
2354
 
  AC_MSG_RESULT([checking for login_manager... (cached) $ac_cv_login_manager_program])
2355
 
fi
 
2387
    fi
 
2388
  ;;
 
2389
 
 
2390
  /*)
 
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
 
2395
      AC_MSG_RESULT(yes)
 
2396
    else
 
2397
      AC_MSG_RESULT(no)
 
2398
      with_login_manager=""
 
2399
    fi
 
2400
  ;;
 
2401
 
 
2402
  *)
 
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=""
 
2409
    else
 
2410
      with_login_manager="$login_manager_tmp"
 
2411
    fi
 
2412
  ;;
 
2413
esac
 
2414
ac_cv_login_manager_program="$with_login_manager"
2356
2415
 
2357
2416
NEW_LOGIN_COMMAND_P=''
2358
2417
NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
2359
2418
 
 
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))
 
2424
else
 
2425
  AC_MSG_RESULT($NEW_LOGIN_COMMAND)
2363
2426
fi
2364
2427
 
2365
2428
 
2366
 
 
2367
2429
###############################################################################
2368
2430
#
2369
2431
#       Check for -lgtk (and Gnome stuff)
2529
2591
have_motif=no
2530
2592
with_motif_req=unspecified
2531
2593
AC_ARG_WITH(motif,[  --with-motif            Use the Motif toolkit for the user interface
2532
 
                          (not recommended.)],
 
2594
                          (no longer supported.)],
2533
2595
  [with_motif="$withval"; with_motif_req="$withval"],[with_motif=no])
2534
2596
 
2535
2597
HANDLE_X_PATH_ARG(with_motif, --with-motif, Motif)
3350
3412
with_imagedir_req=unspecified
3351
3413
 
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
3482
3544
with_browser_req=unspecified
3483
3545
 
3484
3546
AC_ARG_WITH(browser,
3485
 
[  --with-browser=BROWSER   Specify the browser to show help URL.],
 
3547
[  --with-browser=BROWSER  Specify the web browser used to show the help URL.],
3486
3548
  [with_browser="$withval"; with_browser_req="$withval"],
3487
3549
  [with_browser=no ])
3488
3550
# no HANDLE_X_PATH_ARG for this one