~ubuntu-branches/ubuntu/karmic/x11-xserver-utils/karmic

« back to all changes in this revision

Viewing changes to xrdb/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin, Julien Cristau, Brice Goglin
  • Date: 2007-08-17 09:58:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070817095834-ywge2nyzj1s3rqnd
Tags: 7.3+1
[ Julien Cristau ]
* iceauth 1.0.2.
  + removes blank line in the manpage (closes: #25285).
* xmodmap 1.0.3.
  + manpage updated to state that -pm is the default (closes: #236198)
* xgamma 1.0.2.
  + the manpage now explains how to print the gamma value more clearly
    (closes: #296021).
* xsetroot 1.0.2.
* xrdb 1.0.4.
  + fixes manpage typo (closes: #276286).
* Add upstream URL to debian/copyright, and update it from xgamma's COPYING
  file.

[ Brice Goglin ]
* Add menu entries for xrefresh and xvidtune.
* sessreg 1.0.3.
* xset 1.0.3.
* Add myself to Uploaders, and remove Branden with his permission.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
dnl  Copyright 2005 Red Hat, Inc.
 
3
dnl 
 
4
dnl  Permission to use, copy, modify, distribute, and sell this software and its
 
5
dnl  documentation for any purpose is hereby granted without fee, provided that
 
6
dnl  the above copyright notice appear in all copies and that both that
 
7
dnl  copyright notice and this permission notice appear in supporting
 
8
dnl  documentation, and that the name of Red Hat not be used in
 
9
dnl  advertising or publicity pertaining to distribution of the software without
 
10
dnl  specific, written prior permission.  Red Hat makes no
 
11
dnl  representations about the suitability of this software for any purpose.  It
 
12
dnl  is provided "as is" without express or implied warranty.
 
13
dnl 
 
14
dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
15
dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 
16
dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
17
dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
18
dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
19
dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
20
dnl  PERFORMANCE OF THIS SOFTWARE.
 
21
dnl
 
22
dnl Process this file with autoconf to create configure.
 
23
 
 
24
AC_PREREQ([2.57])
 
25
AC_INIT(xrdb,[1.0.4], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xrdb)
 
26
AM_INIT_AUTOMAKE([dist-bzip2])
 
27
AM_MAINTAINER_MODE
 
28
 
 
29
AM_CONFIG_HEADER(config.h)
 
30
 
 
31
AC_PROG_CC
 
32
AC_PROG_INSTALL
 
33
 
 
34
AC_CHECK_FUNC([mkstemp], 
 
35
   AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the `mkstemp' function.]))
 
36
 
 
37
# Find MAXHOSTNAMELEN definition
 
38
# Common hidey holes:
 
39
#  BSD & Linux - <sys/param.h>
 
40
#  Solaris - <netdb.h>
 
41
 
 
42
AC_CHECK_DECL([MAXHOSTNAMELEN],[FOUND_MAXHOSTNAMELEN=yes])
 
43
 
 
44
if test x$FOUND_MAXHOSTNAMELEN != xyes ; then
 
45
        AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN])
 
46
 
 
47
        FOUND_MAXHOSTNAMELEN='not found'
 
48
 
 
49
        AC_COMPILE_IFELSE(
 
50
            AC_LANG_PROGRAM([#include <sys/param.h>],
 
51
                            [int h = MAXHOSTNAMELEN;]),
 
52
            [FOUND_MAXHOSTNAMELEN='sys/param.h'
 
53
             AC_DEFINE(NEED_SYS_PARAM_H,1,
 
54
               [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])])
 
55
 
 
56
        AC_COMPILE_IFELSE(
 
57
            AC_LANG_PROGRAM([#include <netdb.h>],
 
58
                            [int h = MAXHOSTNAMELEN;]),
 
59
            [FOUND_MAXHOSTNAMELEN='netdb.h'
 
60
             AC_DEFINE(NEED_NETDB_H,1,
 
61
               [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])])
 
62
 
 
63
        AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN])
 
64
fi
 
65
 
 
66
# xrdb needs to know where to find cpp at runtime - previously set as CppCmd
 
67
# in Imake config files for each OS
 
68
AC_ARG_WITH([cpp], 
 
69
        AC_HELP_STRING([--with-cpp=path],
 
70
                       [path to cpp command for xrdb to use at runtime]), 
 
71
        [AC_MSG_CHECKING(for cpp)
 
72
        CPP_PATH=$withval
 
73
        AC_MSG_RESULT($CPP_PATH)], 
 
74
        [AC_PATH_PROG([CPP_PATH],[cpp], [cpp], 
 
75
 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])])
 
76
AC_DEFINE_UNQUOTED([CPP], "$CPP_PATH", [Path to CPP program])
 
77
 
 
78
# Checks for pkg-config packages
 
79
PKG_CHECK_MODULES(XRDB, xmuu x11)
 
80
AC_SUBST(XRDB_CFLAGS)
 
81
AC_SUBST(XRDB_LIBS)
 
82
 
 
83
XORG_MANPAGE_SECTIONS
 
84
XORG_RELEASE_VERSION
 
85
 
 
86
AC_OUTPUT([Makefile])