2 dnl# Process this file with autoconf to produce a configure script.
7 AC_CONFIG_SRCDIR([src/feature.h])
8 AC_CONFIG_HEADER(config.h:config.h.in)
14 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
15 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
21 echo "configuring for rxvt $VERSION"
24 orig_CXXFLAGS="$CXXFLAGS"
26 dnl# Checks for programs.
37 dnl check wether we can link with gcc -lsupc++
38 if test x$GCC = xyes && test x$GXX = xyes; then
39 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it
40 AC_MSG_CHECKING([for working libsupc++])
47 [AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }],[])],
50 AC_MSG_RESULT([no, making everything bigger and slower])
57 AC_SUBST(LINKER,[$LINKER])
59 dnl# --------------------------------------------------------------------------
60 dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
62 if test -z "$orig_CXXFLAGS"; then
63 if test x$GCC = xyes && test "x$GXX" = xyes; then
64 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
65 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"])
74 AC_DEFINE(_XOPEN_SOURCE, 500, Needed to get declarations for msg_control and msg_controllen on Solaris)
78 dnl# FreeBSD needs to link libxpg4
79 AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])])
81 dnl# solaris needs to link libnsl and socket
82 AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])])
83 AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])])
86 support_inheritpixmap=yes
88 support_keepscrolling=yes
89 support_selectionscrolling=yes
90 support_mousewheel=yes
91 support_mouseslipwheel=yes
92 support_text_blink=yes
93 support_pointer_blank=yes
94 support_scroll_rxvt=yes
95 support_scroll_next=yes
96 support_scroll_xterm=yes
98 support_afterimage=yes
102 support_combining=yes
109 dnl# --------------------------------------------------------------------------
110 dnl# CHECKING COMMAND LINE OPTIONS
111 dnl# --------------------------------------------------------------------------
113 AC_ARG_ENABLE(everything,
114 [ --enable-everything enable standard non-multichoice features
115 NOTE: this option is order dependent],
117 if test x$enableval = xno; then
119 support_inheritpixmap=no
121 support_keepscrolling=no
122 support_selectionscrolling=no
124 support_mousewheel=no
125 support_mouseslipwheel=no
126 support_text_blink=no
127 support_pointer_blank=no
128 support_scroll_rxvt=no
129 support_scroll_next=no
130 support_scroll_xterm=no
134 support_afterimage=no
145 if test x$enableval = xyes; then
147 support_inheritpixmap=yes
149 support_keepscrolling=yes
150 support_selectionscrolling=yes
152 support_mousewheel=yes
153 support_mouseslipwheel=yes
154 support_text_blink=yes
155 support_pointer_blank=yes
156 support_scroll_rxvt=yes
157 support_scroll_next=yes
158 support_scroll_xterm=yes
162 support_afterimage=yes
163 support_afterstep=yes
166 support_combining=yes
167 #support_8bitctrls=yes
176 AC_ARG_ENABLE(assert,
177 [ --enable-assert enable assertions],
178 [if test x$enableval = xyes; then
181 if test x$ASSERTIONS = xno; then
182 AC_DEFINE(NDEBUG, 1, Disable assertions (good for debugging))
186 AC_ARG_ENABLE(warnings,
187 [ --enable-warnings turn on g++ warnings],
188 [if test x$enableval = xyes; then
191 if test x$GXX = xyes; then
192 if test $WARNINGS = yes; then
193 save_CXXFLAGS="$CXXFLAGS"
194 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
195 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="$save_CXXFLAGS"])
197 CXXFLAGS="$CXXFLAGS -w"
201 AC_ARG_ENABLE(unicode3,
202 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
203 [if test x$enableval = xyes -o x$enableval = xno; then
204 support_unicode3=$enableval
207 AC_ARG_ENABLE(combining,
208 [ --enable-combining enable composition of base and combining characters],
209 [if test x$enableval = xyes -o x$enableval = xno; then
210 support_combining=$enableval
214 [ --enable-xft enable xft support on systems that have it],
215 [if test x$enableval = xyes -o x$enableval = xno; then
216 support_xft=$enableval
219 AC_ARG_ENABLE(font-styles,
220 [ --enable-font-styles enable bold and italic support],
221 [if test x$enableval = xyes -o x$enableval = xno; then
222 support_styles=$enableval
225 AC_ARG_ENABLE(afterimage,
226 [ --enable-afterimage enable integration with libAfterImage for background images],
227 [if test x$enableval = xyes -o x$enableval = xno; then
228 support_afterimage=$enableval
231 AC_ARG_WITH(afterimage_config,
232 [ --with-afterimage-config=DIR use libAfterImage config script in DIR],
233 [if test "x$withval" != x; then
234 afterimage_config=$withval/afterimage-config
237 dnl AC_ARG_ENABLE(afterstep,
238 dnl [ --enable-afterstep enable integration with AfterStep window manager],
239 dnl [if test x$enableval = xyes -o x$enableval = xno; then
240 dnl support_afterstep=$enableval
243 AC_ARG_ENABLE(transparency,
244 [ --enable-transparency enable transparent backgrounds],
245 [if test x$enableval = xyes -o x$enableval = xno; then
246 support_inheritpixmap=$enableval
249 AC_ARG_ENABLE(fading,
250 [ --enable-fading enable colors fading when off focus],
251 [if test x$enableval = xyes -o x$enableval = xno; then
252 support_fading=$enableval
255 AC_ARG_ENABLE(rxvt-scroll,
256 [ --enable-rxvt-scroll enable rxvt style scrollbar],
257 [if test x$enableval = xyes -o x$enableval = xno; then
258 support_scroll_rxvt=$enableval
261 AC_ARG_ENABLE(next-scroll,
262 [ --enable-next-scroll enable NeXT style scrollbar],
263 [if test x$enableval = xyes -o x$enableval = xno; then
264 support_scroll_next=$enableval
267 AC_ARG_ENABLE(xterm-scroll,
268 [ --enable-xterm-scroll enable Xterm style scrollbar],
269 [if test x$enableval = xyes -o x$enableval = xno; then
270 support_scroll_xterm=$enableval
274 [ --enable-perl enable embedded perl interpreter],
275 [if test x$enableval = xyes -o x$enableval = xno; then
276 support_perl=$enableval
279 AC_ARG_WITH(codesets,
280 [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
281 [codesets="$withval"])
284 [ --enable-xim XIM (X Input Method) protocol support],
285 [if test x$enableval = xyes -o x$enableval = xno; then
286 support_xim=$enableval
289 AC_ARG_ENABLE(backspace-key,
290 [ --disable-backspace-key disable handling of the backspace key],
291 [if test x$enableval = xno; then
292 AC_DEFINE(NO_BACKSPACE_KEY, 1, Define if you don't want support for the backspace key)
295 AC_ARG_ENABLE(delete-key,
296 [ --disable-delete-key disable handling of the delete key],
297 [if test x$enableval = xno; then
298 AC_DEFINE(NO_DELETE_KEY, 1, Define if you don't want support for the (non-keypad) delete key)
301 AC_ARG_ENABLE(resources,
302 [ --disable-resources disable all resource checking],
303 [if test x$enableval = xno; then
304 AC_DEFINE(NO_RESOURCES, 1, Define if you don't want any resources read)
307 AC_ARG_ENABLE(8bitctrls,
308 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
309 [if test x$enableval = xyes -o x$enableval = xno; then
310 support_8bitctrls=$enableval
314 AC_ARG_ENABLE(fallback,
315 [ --enable-fallback@<:@=CLASS@:>@ fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
317 test x$enableval = xyes && enableval=Rxvt
318 test x$enableval = xno && enableval=
319 RESFALLBACK="$enableval"
322 if test x$RESFALLBACK != x; then
323 AC_DEFINE_UNQUOTED(RESFALLBACK, "$RESFALLBACK", [Fallback resource class])
327 AC_ARG_WITH(res-name,
328 [ --with-res-name=NAME use this as default resource name (default: urxvt)],
329 [RESNAME="$withval"])
330 AC_DEFINE_UNQUOTED(RESNAME,"$RESNAME", [Default resource name])
333 AC_ARG_WITH(res-class,
334 [ --with-res-class=CLASS use this as the resource class (default: URxvt)],
335 [RESCLASS="$withval"])
336 AC_DEFINE_UNQUOTED(RESCLASS,"$RESCLASS", [Resource class])
340 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
341 [RXVTNAME="$withval"])
342 AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name])
344 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
347 AC_ARG_ENABLE(swapscreen,
348 [ --disable-swapscreen disable swap screen support],
349 [if test x$enableval = xno; then
350 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace)
353 AC_ARG_ENABLE(iso14755,
354 [ --enable-iso14755 enable support for extended ISO 14755 modes],
355 [if test x$enableval = xyes -o x$enableval = xno; then
356 support_iso14755=$enableval
359 AC_ARG_ENABLE(frills,
360 [ --enable-frills enable support for rarely used features],
361 [if test x$enableval = xyes -o x$enableval = xno; then
362 support_frills=$enableval
365 AC_ARG_ENABLE(keepscrolling,
366 [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press],
367 [if test x$enableval = xyes -o x$enableval = xno; then
368 support_keepscrolling=$enableval
371 AC_ARG_ENABLE(selectionscrolling,
372 [ --enable-selectionscrolling enable scrolling during selections],
373 [if test x$enableval = xyes -o x$enableval = xno; then
374 support_selectionscrolling=$enableval
377 AC_ARG_ENABLE(mousewheel,
378 [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5],
379 [if test x$enableval = xyes -o x$enableval = xno; then
380 support_mousewheel=$enableval
383 AC_ARG_ENABLE(slipwheeling,
384 [ --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)],
385 [if test x$enableval = xyes -o x$enableval = xno; then
386 support_mouseslipwheel=$enableval
389 AC_ARG_ENABLE(smart-resize,
390 [ --enable-smart-resize enable smart growth/shrink behaviour],
391 [if test x$enableval = xyes; then
392 AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior)
395 AC_ARG_ENABLE(text-blink,
396 [ --enable-text-blink enable blinking text],
397 [if test x$enableval = xyes -o x$enableval = xno; then
398 support_text_blink=$enableval
401 AC_ARG_ENABLE(pointer-blank,
402 [ --enable-pointer-blank enable pointer blank when typing or inactive pointer],
403 [if test x$enableval = xyes -o x$enableval = xno; then
404 support_pointer_blank=$enableval
408 [ --with-term=NAME set the terminal to NAME (default: rxvt)],
409 [if test x$withval != x; then
410 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval"
413 AC_ARG_WITH(terminfo,
414 [ --with-terminfo=PATH set the path to the terminfo tree to PATH],
415 [if test x$withval != x; then
416 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
419 dnl# --------------------------------------------------------------------------
421 LIBEV_M4_AVOID_LIBRT=1
422 m4_include([libev/libev.m4])
424 dnl# --------------------------------------------------------------------------
426 AC_PATH_PROG(TIC, tic, :)
434 if test x$support_afterimage = xyes; then
435 support_afterimage=no
437 if test "x$afterimage_config" = "x" ; then
438 AC_PATH_PROG(afterimage_config, afterimage-config, no)
440 if test "x$afterimage_config" != "xno" ; then
441 AC_MSG_CHECKING(for libAfterImage version >= 1.15)
442 xAFTERIMAGE_VERSION=`$afterimage_config --version`
443 if test -n "$xAFTERIMAGE_VERSION" ; then
444 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
445 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
446 if test "x$xAFTERIMAGE_LIBS" != "x"; then
447 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
448 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
449 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
450 support_afterimage=yes
451 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
452 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
453 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
457 if test "x$support_afterimage" = "xyes"; then
458 AC_MSG_RESULT($AFTERIMAGE_LIBS)
465 dnl# --------------------------------------------------------------------------
466 dnl# CHECKING FOR HEADER FILES
467 dnl# --------------------------------------------------------------------------
478 AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer,
479 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])])
480 if test x$rxvt_cv_xpointer = xyes; then
481 AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef)
484 AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_xlib_illegal_access,
487 #define XLIB_ILLEGAL_ACCESS
488 #include <X11/Xlib.h>
491 dpy->xdefaults = (char *)0;
493 [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no]
495 if test x$rxvt_xlib_illegal_access = xyes; then
496 AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it)
499 dnl# --------------------------------------------------------------------------
500 dnl# CHECKING FOR MISSING TYPEDEFS
501 dnl# --------------------------------------------------------------------------
502 dnl# Missing typedefs and replacements
511 dnl# --------------------------------------------------------------------------
512 dnl# CHECKING FOR LIBRARY FUNCTIONS
513 dnl# --------------------------------------------------------------------------
514 AC_CHECK_FUNCS(unsetenv)
518 dnl# --------------------------------------------------------------------------
520 dnl# --------------------------------------------------------------------------
521 dnl# --------------------------------------------------------------------------
523 dnl# this is a really hack test for some basic Xlocale stuff
526 CFLAGS="$CFLAGS $X_CFLAGS"
527 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
528 if test x$support_xim = xyes; then
529 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
530 [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
534 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
535 exit (XSupportsLocale() ? 0 : 1);
538 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
540 if test x$rxvt_cv_func_xlocale = xyes; then
541 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input)
542 AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
544 #include <X11/Xlib.h>
546 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
550 cb.callback = im_destroy_cb;
552 ],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
554 if test x$rxvt_broken_ximcb = xyes; then
555 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
560 AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale,
561 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1
562 #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])])
563 if test x$rxvt_cv_func_xsetlocale = xyes; then
564 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works)
569 AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale,
570 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <clocale>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_setlocale=yes],[rxvt_cv_func_setlocale=no])])
571 if test x$rxvt_cv_func_setlocale = xyes; then
572 AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works)
575 AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo,
576 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])])
577 if test x$rxvt_cv_func_nl_langinfo = xyes; then
578 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
587 dnl# --------------------------------------------------------------------------
588 dnl# now add and remove other stuff
589 dnl# --------------------------------------------------------------------------
590 if test x$support_xft = xyes; then
591 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
592 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
593 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
594 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
596 AC_PATH_PROG(XFT_CONFIG, xft-config, no)
597 if test $XFT_CONFIG != no; then
598 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
599 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
605 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
606 AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no])
609 if test x$support_xft = xyes; then
610 AC_DEFINE(XFT, 1, Define to enable xft support)
613 if test x$support_styles = xyes; then
614 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)
616 if test x$support_iso14755 = xyes; then
617 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)
619 if test x$support_8bitctrls = xyes; then
620 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
622 if test x$support_fading = xyes; then
623 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
625 if test x$support_inheritpixmap = xyes; then
626 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
628 if test x$support_keepscrolling = xno; then
629 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed)
631 if test x$support_selectionscrolling = xyes; then
632 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen)
634 if test x$support_frills = xyes; then
635 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
637 if test x$support_mousewheel = xyes; then
638 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
640 if test x$support_mouseslipwheel = xyes; then
641 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling)
643 if test x$support_afterimage = xyes; then
644 AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing)
645 AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps. Needs libAfterImage)
648 dnl if test x$support_afterstep = xyes; then
649 dnl AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager)
653 AC_DEFINE(PLAIN_SCROLLBAR, 1, Support plain style scrollbars)
655 if test x$support_scroll_rxvt = xyes; then
656 AC_DEFINE(RXVT_SCROLLBAR, 1, Support Rxvt original style scrollbars)
657 scrolltypes="$scrolltypes rxvt"
659 if test x$support_scroll_next = xyes; then
660 AC_DEFINE(NEXT_SCROLLBAR, 1, Support NeXT style scrollbars)
661 scrolltypes="$scrolltypes next"
663 if test x$support_scroll_xterm = xyes; then
664 AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars)
665 scrolltypes="$scrolltypes xterm"
667 if test x$support_pointer_blank = xyes; then
668 AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing)
670 if test x$support_text_blink = xyes; then
671 AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support)
673 if test x$support_unicode3 = xyes; then
674 AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0)
676 if test x$support_combining = xyes; then
677 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
679 if test x$codesets = xall; then
680 codesets=jp,jp-ext,kr,zh,zh-ext
682 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
683 AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
684 for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
686 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
687 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
688 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
689 ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;;
690 ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;;
695 if test x$support_perl = xyes; then
696 AC_PATH_PROG(PERL, perl5)
697 AC_PATH_PROG(PERL, perl)
699 AC_MSG_CHECKING(for $PERL suitability)
700 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
702 save_CXXFLAGS="$CXXFLAGS"
704 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
705 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
706 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
711 PerlInterpreter *perl = perl_alloc ();
712 ]])],[rxvt_perl_link=yes],[rxvt_perl_link=no])
713 CXXFLAGS="$save_CXXFLAGS"
716 if test x$rxvt_perl_link = xyes; then
718 AC_DEFINE(ENABLE_PERL, 1, Define if you can embed a perl interpreter)
721 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
722 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
723 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
725 AC_MSG_ERROR([no, unable to link])
728 AC_MSG_ERROR([no working perl found, or perl not version >= 5.8])
733 AC_SUBST(PERLPRIVLIBEXP)
746 AC_SUBST(X_EXTRA_LIBS)
748 AC_SUBST(AFTERIMAGE_CFLAGS)
749 AC_SUBST(AFTERIMAGE_LIBS)
753 AC_CONFIG_FILES([Makefile \
761 Rxvt version: $VERSION : $DATE
762 Source code location: $srcdir
763 Install path: ${prefix}/bin
765 Compiler flags: $CXXFLAGS
768 if test x$term != x; then
769 echo " set TERM to: $term"
771 if test x$terminfo != x; then
772 echo " set TERMINFO to: $terminfo"
774 echo " default resource name: $RESNAME"
775 echo " resource class: $RESCLASS"
776 if test x$RESFALLBACK != x; then
777 echo " resource class fallback: $RESFALLBACK"
780 echo " embedded perl: $support_perl"
781 echo " libafterimage: $support_afterimage"
782 dnl echo " AfterStep integration: $support_afterstep"
784 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
785 echo ".----------------------------------------------------------------."
786 echo ". WARNING: --enable-xim was specified however the locale support ."
787 echo ". functions could not be found. ."
788 echo ". XIM is now being DISABLED! ."
789 echo ".----------------------------------------------------------------."
792 echo "*** Optionally check src/feature.h for further, rarely used options ***"