ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.152 by sf-exg, Tue Jun 16 11:56:37 2015 UTC vs.
Revision 1.156 by sf-exg, Thu May 13 19:40:27 2021 UTC

1dnl# 1dnl#
2dnl# Process this file with autoconf to produce a configure script. 2dnl# Process this file with autoconf to produce a configure script.
3dnl# 3dnl#
4 4
5AC_INIT 5AC_INIT
6AC_PREREQ(2.50) 6AC_PREREQ(2.71)
7AC_CONFIG_SRCDIR([src/feature.h]) 7AC_CONFIG_SRCDIR([src/feature.h])
8AC_CONFIG_HEADER(config.h:config.h.in) 8AC_CONFIG_HEADERS(config.h:config.h.in)
9 9
10AC_CANONICAL_HOST 10AC_CANONICAL_HOST
11 11
12dnl RXVT version 12dnl RXVT version
13changequote(, )dnl 13changequote(, )dnl
26dnl# Checks for programs. 26dnl# Checks for programs.
27AC_PROG_CC 27AC_PROG_CC
28AC_PROG_CXX 28AC_PROG_CXX
29AC_PROG_INSTALL 29AC_PROG_INSTALL
30 30
31AC_AIX 31AC_USE_SYSTEM_EXTENSIONS
32AC_GNU_SOURCE
33AC_ISC_POSIX
34AC_LANG(C++) 32AC_LANG(C++)
33
34if test "$ac_prog_cxx_stdcxx" != cxx11; then
35 AC_MSG_ERROR([the compiler does not support C++11])
36fi
35 37
36LINKER="$CXX" 38LINKER="$CXX"
37dnl check whether we can link with gcc -lsupc++ 39dnl check whether we can link with gcc -lsupc++
38if test x$GCC = xyes && test x$GXX = xyes; then 40if test x$GCC = xyes && test x$GXX = xyes; then
39 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it 41 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it
293 [ --disable-delete-key disable handling of the delete key], 295 [ --disable-delete-key disable handling of the delete key],
294 [if test x$enableval = xno; then 296 [if test x$enableval = xno; then
295 AC_DEFINE(NO_DELETE_KEY, 1, Define if you don't want support for the (non-keypad) delete key) 297 AC_DEFINE(NO_DELETE_KEY, 1, Define if you don't want support for the (non-keypad) delete key)
296 fi]) 298 fi])
297 299
300support_resources=yes
298AC_ARG_ENABLE(resources, 301AC_ARG_ENABLE(resources,
299 [ --disable-resources disable all resource checking], 302 [ --disable-resources disable all resource checking],
300 [if test x$enableval = xno; then 303 [if test x$enableval = xno; then
301 AC_DEFINE(NO_RESOURCES, 1, Define if you don't want any resources read) 304 support_resources=no
302 fi]) 305 fi])
303 306
304AC_ARG_ENABLE(8bitctrls, 307AC_ARG_ENABLE(8bitctrls,
305 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 308 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
306 [if test x$enableval = xyes -o x$enableval = xno; then 309 [if test x$enableval = xyes -o x$enableval = xno; then
410 [ --with-terminfo=PATH set the path to the terminfo tree to PATH], 413 [ --with-terminfo=PATH set the path to the terminfo tree to PATH],
411 [if test x$withval != x; then 414 [if test x$withval != x; then
412 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 415 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
413 fi]) 416 fi])
414 417
418if test x$support_resources = xno; then
419 if test x$support_frills = xyes || test x$support_perl = xyes; then
420 AC_MSG_ERROR([--disable-resources requires --disable-frills --disable-perl])
421 fi
422
423 AC_DEFINE(NO_RESOURCES, 1, Define if you don't want any resources read)
424fi
425
415dnl# -------------------------------------------------------------------------- 426dnl# --------------------------------------------------------------------------
416 427
417LIBEV_M4_AVOID_LIBRT=1 428LIBEV_M4_AVOID_LIBRT=1
418m4_include([libev/libev.m4]) 429m4_include([libev/libev.m4])
419 430
449 ], [:]) 460 ], [:])
450fi 461fi
451 462
452AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 463AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
453AC_SUBST(STARTUP_NOTIFICATION_LIBS) 464AC_SUBST(STARTUP_NOTIFICATION_LIBS)
465
466if test x$support_frills = xyes; then
467 RXVT_CHECK_MODULES([XMU], [xmu], [
468 X_LIBS="$XMU_LIBS $X_LIBS"
469 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
470 AC_DEFINE(HAVE_XMU, 1, Define to enable Xmu support)
471 ], [:])
472fi
454 473
455dnl# -------------------------------------------------------------------------- 474dnl# --------------------------------------------------------------------------
456dnl# CHECKING FOR HEADER FILES 475dnl# CHECKING FOR HEADER FILES
457dnl# -------------------------------------------------------------------------- 476dnl# --------------------------------------------------------------------------
458AC_CHECK_HEADERS( \ 477AC_CHECK_HEADERS( \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines