~ubuntu-branches/ubuntu/quantal/xdm/quantal

« back to all changes in this revision

Viewing changes to m4/ac_define_dir.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2010-04-19 20:55:56 UTC
  • mfrom: (1.1.9 upstream) (9.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20100419205556-9tgxo1rdu2c7vy8y
Tags: 1:1.1.10-1
* New upstream release.
  - don't delete the pid file from child xdm processes, closes: #372114
  - clear the "Login incorrect" message properly on next login,
    closes: #525596.  Thanks, Martin Dickopp!
  - fix xdmcp with net.ipv6.bindv6only=1
* Patches merged upstream:
  - 02_xdm_zombie_no_error.diff
  - 15_xdm_openfiles.diff
  - 90_xdm_write_dummy_auth.diff
  - 91_xdm_saveserverauth_logging.diff
  - log_sourcing_better.diff
  - selinux_support.diff
  - storepid_rewrite.diff
* Xstartup: use id -u $USER, not id -u, since this script is run as root.
  See #118677.
* debian/rules: delete libtool m4 files on clean.
* Introduce virtual facility x-display-manager for insserv
  (closes: #554839).  Thanks, Jonas Meurer!
* debian/rules: kill gratuitous uses of $(CURDIR).
* debian/xdm.pam: @include common-* after pam_env and friends, so that we
  still set env vars if e.g. common-auth contains a 'sufficient' module
  (closes: #444483).
* debian/xdm.init: add Short-Description (closes: #510085).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ===========================================================================
 
2
#          http://www.nongnu.org/autoconf-archive/ac_define_dir.html
 
3
# ===========================================================================
 
4
#
 
5
# SYNOPSIS
 
6
#
 
7
#   AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
 
8
#
 
9
# DESCRIPTION
 
10
#
 
11
#   This macro sets VARNAME to the expansion of the DIR variable, taking
 
12
#   care of fixing up ${prefix} and such.
 
13
#
 
14
#   VARNAME is then offered as both an output variable and a C preprocessor
 
15
#   symbol.
 
16
#
 
17
#   Example:
 
18
#
 
19
#      AC_DEFINE_DIR([DATADIR], [datadir], [Where data are placed to.])
 
20
#
 
21
# LICENSE
 
22
#
 
23
#   Copyright (c) 2008 Stepan Kasal <kasal@ucw.cz>
 
24
#   Copyright (c) 2008 Andreas Schwab <schwab@suse.de>
 
25
#   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
 
26
#   Copyright (c) 2008 Alexandre Oliva
 
27
#
 
28
#   Copying and distribution of this file, with or without modification, are
 
29
#   permitted in any medium without royalty provided the copyright notice
 
30
#   and this notice are preserved.
 
31
 
 
32
AC_DEFUN([AC_DEFINE_DIR], [
 
33
  prefix_NONE=
 
34
  exec_prefix_NONE=
 
35
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
 
36
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
 
37
dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn
 
38
dnl refers to ${prefix}.  Thus we have to use `eval' twice.
 
39
  eval ac_define_dir="\"[$]$2\""
 
40
  eval ac_define_dir="\"$ac_define_dir\""
 
41
  AC_SUBST($1, "$ac_define_dir")
 
42
  AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3])
 
43
  test "$prefix_NONE" && prefix=NONE
 
44
  test "$exec_prefix_NONE" && exec_prefix=NONE
 
45
])