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.158 by sf-exg, Sun Nov 7 14:13:40 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
10AC_CANONICAL_HOST
11 9
12dnl RXVT version 10dnl RXVT version
13changequote(, )dnl
14VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 11VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
15DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 12DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
16changequote([, ])dnl
17AC_SUBST(VERSION)dnl 13AC_SUBST(VERSION)dnl
18AC_SUBST(DATE)dnl 14AC_SUBST(DATE)dnl
19 15
20echo "" 16echo ""
21echo "configuring for rxvt $VERSION" 17echo "configuring for rxvt $VERSION"
26dnl# Checks for programs. 22dnl# Checks for programs.
27AC_PROG_CC 23AC_PROG_CC
28AC_PROG_CXX 24AC_PROG_CXX
29AC_PROG_INSTALL 25AC_PROG_INSTALL
30 26
31AC_AIX 27AC_USE_SYSTEM_EXTENSIONS
32AC_GNU_SOURCE
33AC_ISC_POSIX
34AC_LANG(C++) 28AC_LANG(C++)
29
30if test "$ac_prog_cxx_stdcxx" != cxx11; then
31 AC_MSG_ERROR([the compiler does not support C++11])
32fi
35 33
36LINKER="$CXX" 34LINKER="$CXX"
37dnl check whether we can link with gcc -lsupc++ 35dnl check whether we can link with gcc -lsupc++
38if test x$GCC = xyes && test x$GXX = xyes; then 36if test x$GCC = xyes && test x$GXX = xyes; then
39 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it 37 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it
111 support_frills=no 109 support_frills=no
112 support_inheritpixmap=no 110 support_inheritpixmap=no
113 support_fading=no 111 support_fading=no
114 support_keepscrolling=no 112 support_keepscrolling=no
115 support_selectionscrolling=no 113 support_selectionscrolling=no
116 support_lastlog=no
117 support_mousewheel=no 114 support_mousewheel=no
118 support_mouseslipwheel=no 115 support_mouseslipwheel=no
119 support_text_blink=no 116 support_text_blink=no
120 support_pointer_blank=no 117 support_pointer_blank=no
121 support_scroll_rxvt=no 118 support_scroll_rxvt=no
122 support_scroll_next=no 119 support_scroll_next=no
123 support_scroll_xterm=no 120 support_scroll_xterm=no
124 support_utmp=no
125 support_wtmp=no
126 support_xim=no 121 support_xim=no
127 support_pixbuf=no 122 support_pixbuf=no
128 support_startup_notification=no 123 support_startup_notification=no
129 support_xft=no 124 support_xft=no
130 support_unicode3=no 125 support_unicode3=no
139 support_frills=yes 134 support_frills=yes
140 support_inheritpixmap=yes 135 support_inheritpixmap=yes
141 support_fading=yes 136 support_fading=yes
142 support_keepscrolling=yes 137 support_keepscrolling=yes
143 support_selectionscrolling=yes 138 support_selectionscrolling=yes
144 support_lastlog=yes
145 support_mousewheel=yes 139 support_mousewheel=yes
146 support_mouseslipwheel=yes 140 support_mouseslipwheel=yes
147 support_text_blink=yes 141 support_text_blink=yes
148 support_pointer_blank=yes 142 support_pointer_blank=yes
149 support_scroll_rxvt=yes 143 support_scroll_rxvt=yes
150 support_scroll_next=yes 144 support_scroll_next=yes
151 support_scroll_xterm=yes 145 support_scroll_xterm=yes
152 support_utmp=yes
153 support_wtmp=yes
154 support_xim=yes 146 support_xim=yes
155 support_pixbuf=yes 147 support_pixbuf=yes
156 support_startup_notification=yes 148 support_startup_notification=yes
157 support_xft=yes 149 support_xft=yes
158 support_unicode3=yes 150 support_unicode3=yes
293 [ --disable-delete-key disable handling of the delete key], 285 [ --disable-delete-key disable handling of the delete key],
294 [if test x$enableval = xno; then 286 [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) 287 AC_DEFINE(NO_DELETE_KEY, 1, Define if you don't want support for the (non-keypad) delete key)
296 fi]) 288 fi])
297 289
290support_resources=yes
298AC_ARG_ENABLE(resources, 291AC_ARG_ENABLE(resources,
299 [ --disable-resources disable all resource checking], 292 [ --disable-resources disable all resource checking],
300 [if test x$enableval = xno; then 293 [if test x$enableval = xno; then
301 AC_DEFINE(NO_RESOURCES, 1, Define if you don't want any resources read) 294 support_resources=no
302 fi]) 295 fi])
303 296
304AC_ARG_ENABLE(8bitctrls, 297AC_ARG_ENABLE(8bitctrls,
305 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 298 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
306 [if test x$enableval = xyes -o x$enableval = xno; then 299 [if test x$enableval = xyes -o x$enableval = xno; then
410 [ --with-terminfo=PATH set the path to the terminfo tree to PATH], 403 [ --with-terminfo=PATH set the path to the terminfo tree to PATH],
411 [if test x$withval != x; then 404 [if test x$withval != x; then
412 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 405 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
413 fi]) 406 fi])
414 407
408if test x$support_resources = xno; then
409 if test x$support_frills = xyes || test x$support_perl = xyes; then
410 AC_MSG_ERROR([--disable-resources requires --disable-frills --disable-perl])
411 fi
412
413 AC_DEFINE(NO_RESOURCES, 1, Define if you don't want any resources read)
414fi
415
415dnl# -------------------------------------------------------------------------- 416dnl# --------------------------------------------------------------------------
416 417
417LIBEV_M4_AVOID_LIBRT=1 418LIBEV_M4_AVOID_LIBRT=1
418m4_include([libev/libev.m4]) 419m4_include([libev/libev.m4])
419 420
422AC_PATH_PROG(TIC, tic, :) 423AC_PATH_PROG(TIC, tic, :)
423 424
424AC_PATH_XTRA 425AC_PATH_XTRA
425 426
426AC_PATH_TOOL(PKG_CONFIG, pkg-config, no) 427AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
428
429RXVT_CHECK_MODULES([PTYTTY], [libptytty], [:], [
430 AC_MSG_ERROR([unable to find libptytty])
431])
432
433AC_SUBST(PTYTTY_CFLAGS)
434AC_SUBST(PTYTTY_LIBS)
427 435
428image_lib=none 436image_lib=none
429 437
430PIXBUF_CFLAGS= 438PIXBUF_CFLAGS=
431PIXBUF_LIBS= 439PIXBUF_LIBS=
449 ], [:]) 457 ], [:])
450fi 458fi
451 459
452AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 460AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
453AC_SUBST(STARTUP_NOTIFICATION_LIBS) 461AC_SUBST(STARTUP_NOTIFICATION_LIBS)
462
463if test x$support_frills = xyes; then
464 RXVT_CHECK_MODULES([XMU], [xmu], [
465 X_LIBS="$XMU_LIBS $X_LIBS"
466 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
467 AC_DEFINE(HAVE_XMU, 1, Define to enable Xmu support)
468 ], [:])
469fi
454 470
455dnl# -------------------------------------------------------------------------- 471dnl# --------------------------------------------------------------------------
456dnl# CHECKING FOR HEADER FILES 472dnl# CHECKING FOR HEADER FILES
457dnl# -------------------------------------------------------------------------- 473dnl# --------------------------------------------------------------------------
458AC_CHECK_HEADERS( \ 474AC_CHECK_HEADERS( \
493 509
494dnl# -------------------------------------------------------------------------- 510dnl# --------------------------------------------------------------------------
495dnl# CHECKING FOR LIBRARY FUNCTIONS 511dnl# CHECKING FOR LIBRARY FUNCTIONS
496dnl# -------------------------------------------------------------------------- 512dnl# --------------------------------------------------------------------------
497AC_CHECK_FUNCS(unsetenv) 513AC_CHECK_FUNCS(unsetenv)
498
499UTMP_CHECK
500 514
501dnl# -------------------------------------------------------------------------- 515dnl# --------------------------------------------------------------------------
502 516
503dnl# -------------------------------------------------------------------------- 517dnl# --------------------------------------------------------------------------
504dnl# -------------------------------------------------------------------------- 518dnl# --------------------------------------------------------------------------
554[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) 568[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])])
555if test x$rxvt_cv_func_nl_langinfo = xyes; then 569if test x$rxvt_cv_func_nl_langinfo = xyes; then
556 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 570 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
557fi 571fi
558 572
559SCM_RIGHTS_CHECK
560
561PTY_CHECK
562
563TTY_GROUP_CHECK
564
565dnl# -------------------------------------------------------------------------- 573dnl# --------------------------------------------------------------------------
566dnl# now add and remove other stuff 574dnl# now add and remove other stuff
567dnl# -------------------------------------------------------------------------- 575dnl# --------------------------------------------------------------------------
568support_image=no 576support_image=no
569if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 577if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines