Line
Link Here
|
0 |
-- xconsole-1.0.6/configure.ac |
0 |
++ xconsole-1.0.6/configure.ac |
Lines 29-38
Link Here
|
29 |
[xconsole]) |
29 |
[xconsole]) |
30 |
AC_CONFIG_SRCDIR([Makefile.am]) |
30 |
AC_CONFIG_SRCDIR([Makefile.am]) |
31 |
AC_CONFIG_HEADERS([config.h]) |
31 |
AC_CONFIG_HEADERS([config.h]) |
|
|
32 |
AC_USE_SYSTEM_EXTENSIONS |
32 |
|
33 |
|
33 |
# Initialize Automake |
34 |
# Initialize Automake |
34 |
AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
35 |
AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
35 |
AM_MAINTAINER_MODE |
|
|
36 |
|
36 |
|
37 |
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS |
37 |
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS |
38 |
m4_ifndef([XORG_MACROS_VERSION], |
38 |
m4_ifndef([XORG_MACROS_VERSION], |
Lines 53-64
Link Here
|
53 |
|
53 |
|
54 |
AC_SEARCH_LIBS(openpty, [util]) |
54 |
AC_SEARCH_LIBS(openpty, [util]) |
55 |
AC_CHECK_FUNC(openpty, [HAS_OPENPTY="yes"]) |
55 |
AC_CHECK_FUNC(openpty, [HAS_OPENPTY="yes"]) |
56 |
if test "x$HAS_OPENPTY" = "xyes" ; then |
56 |
AS_IF([test "x$HAS_OPENPTY" = "xyes"], [ |
57 |
AC_DEFINE([HAS_OPENPTY], 1, |
57 |
AC_DEFINE([HAS_OPENPTY], 1, |
58 |
[Define to 1 if you have the 'openpty' function.]) |
58 |
[Define to 1 if you have the 'openpty' function.]) |
59 |
AC_CHECK_HEADERS([util.h libutil.h pty.h], [break]) |
59 |
AC_CANONICAL_BUILD |
60 |
fi |
60 |
AS_CASE([$build_os], |
61 |
|
61 |
[darwin* | netbsd* | openbsd*], [AC_CHECK_HEADER([util.h], [AC_DEFINE([HAVE_UTIL_H], 1)])], |
|
|
62 |
[freebsd*], [AC_CHECK_HEADER([libutil.h], [AC_DEFINE([HAVE_LIBUTIL_H], 1)])], |
63 |
[*linux-gnu], [AC_CHECK_HEADER([pty.h], [AC_DEFINE([HAVE_PTY_H], 1)])], |
64 |
[AC_CHECK_HEADERS([util.h libutil.h pty.h], [break])] |
65 |
) |
66 |
],[]) |
62 |
|
67 |
|
63 |
AC_CONFIG_FILES([ |
68 |
AC_CONFIG_FILES([ |
64 |
Makefile |
69 |
Makefile |