… | |
… | |
17 | changequote([, ])dnl |
17 | changequote([, ])dnl |
18 | AC_SUBST(VERSION)dnl |
18 | AC_SUBST(VERSION)dnl |
19 | AC_SUBST(DATE)dnl |
19 | AC_SUBST(DATE)dnl |
20 | AC_SUBST(LSMDATE)dnl |
20 | AC_SUBST(LSMDATE)dnl |
21 | AC_SUBST(LIBVERSION)dnl |
21 | AC_SUBST(LIBVERSION)dnl |
|
|
22 | |
22 | echo "" |
23 | echo "" |
23 | echo "configuring for rxvt $VERSION" |
24 | echo "configuring for rxvt $VERSION" |
24 | echo "" |
25 | echo "" |
25 | |
26 | |
26 | orig_CXXFLAGS="$CXXFLAGS" |
27 | orig_CXXFLAGS="$CXXFLAGS" |
… | |
… | |
62 | dnl# -------------------------------------------------------------------------- |
63 | dnl# -------------------------------------------------------------------------- |
63 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
64 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
64 | dnl# |
65 | dnl# |
65 | if test -z "$orig_CXXFLAGS"; then |
66 | if test -z "$orig_CXXFLAGS"; then |
66 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
67 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
67 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
68 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
68 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) |
69 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) |
69 | else |
70 | else |
70 | CXXFLAGS="-O" |
71 | CXXFLAGS="-O" |
71 | fi |
72 | fi |
72 | CFLAGS="$CXXFLAGS" |
73 | CFLAGS="$CXXFLAGS" |
… | |
… | |
130 | fi |
131 | fi |
131 | AC_SUBST(INSTALL_LIBRXVT) |
132 | AC_SUBST(INSTALL_LIBRXVT) |
132 | |
133 | |
133 | AC_ARG_ENABLE(everything, |
134 | AC_ARG_ENABLE(everything, |
134 | [ --enable-everything enable standard non-multichoice features |
135 | [ --enable-everything enable standard non-multichoice features |
135 | NOTE: this option is order dependent |
136 | NOTE: this option is order dependent], |
136 | NOTE: automatically enabled with --enable-shared], |
|
|
137 | [ |
137 | [ |
138 | if test x$enableval = xno; then |
138 | if test x$enableval = xno; then |
139 | support_frills=no |
139 | support_frills=no |
140 | support_inheritpixmap=no |
140 | support_inheritpixmap=no |
141 | support_fading=no |
141 | support_fading=no |
… | |
… | |
281 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
281 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
282 | [if test x$enableval = xyes -o x$enableval = xno; then |
282 | [if test x$enableval = xyes -o x$enableval = xno; then |
283 | support_scroll_xterm=$enableval |
283 | support_scroll_xterm=$enableval |
284 | fi]) |
284 | fi]) |
285 | |
285 | |
|
|
286 | AC_ARG_ENABLE(plain-scroll, |
|
|
287 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
288 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
289 | support_scroll_plain=$enableval |
|
|
290 | fi]) |
|
|
291 | |
286 | AC_ARG_ENABLE(perl, |
292 | AC_ARG_ENABLE(perl, |
287 | [ --enable-perl enable embedded perl interpreter], |
293 | [ --enable-perl enable embedded perl interpreter], |
288 | [if test x$enableval = xyes -o x$enableval = xno; then |
294 | [if test x$enableval = xyes -o x$enableval = xno; then |
289 | support_perl=$enableval |
295 | support_perl=$enableval |
290 | fi]) |
|
|
291 | |
|
|
292 | AC_ARG_ENABLE(plain-scroll, |
|
|
293 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
294 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
295 | support_scroll_plain=$enableval |
|
|
296 | fi]) |
296 | fi]) |
297 | |
297 | |
298 | AC_ARG_WITH(codesets, |
298 | AC_ARG_WITH(codesets, |
299 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
299 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
300 | [codesets="$withval"]) |
300 | [codesets="$withval"]) |
… | |
… | |
435 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
435 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
436 | fi]) |
436 | fi]) |
437 | |
437 | |
438 | dnl# -------------------------------------------------------------------------- |
438 | dnl# -------------------------------------------------------------------------- |
439 | |
439 | |
|
|
440 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
441 | m4_include([libev/libev.m4]) |
|
|
442 | |
|
|
443 | dnl# -------------------------------------------------------------------------- |
|
|
444 | |
440 | AC_PATH_PROG(TIC, tic, :) |
445 | AC_PATH_PROG(TIC, tic, :) |
441 | |
|
|
442 | dnl# need a neat way to detect SVR4 or its features |
|
|
443 | dnl# in src/command.c we use these functions: |
|
|
444 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
|
|
445 | dnl# - but are these also defined for other systems? |
|
|
446 | |
|
|
447 | dnl# hack to find if this is SVR4 -- who knows? |
|
|
448 | dnl## AC_MSG_CHECKING(for SVR4) |
|
|
449 | dnl## AC_EGREP_CPP(yes, |
|
|
450 | dnl## [#if defined (SVR4) || defined (_SVR4) || defined (__svr4__) |
|
|
451 | dnl## yes; |
|
|
452 | dnl## #endif |
|
|
453 | dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?)) |
|
|
454 | |
446 | |
455 | AC_PATH_XTRA |
447 | AC_PATH_XTRA |
456 | |
448 | |
457 | AFTERIMAGE_CFLAGS= |
449 | AFTERIMAGE_CFLAGS= |
458 | AFTERIMAGE_LIBS= |
450 | AFTERIMAGE_LIBS= |
… | |
… | |
642 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
634 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
643 | dnl# -------------------------------------------------------------------------- |
635 | dnl# -------------------------------------------------------------------------- |
644 | AC_TYPE_SIGNAL |
636 | AC_TYPE_SIGNAL |
645 | dnl> AC_FUNC_VPRINTF |
637 | dnl> AC_FUNC_VPRINTF |
646 | |
638 | |
647 | AC_CHECK_FUNCS( \ |
639 | AC_CHECK_FUNCS(unsetenv) |
648 | unsetenv \ |
|
|
649 | setutent \ |
|
|
650 | on_exit \ |
|
|
651 | ) |
|
|
652 | |
640 | |
653 | UTMP_CHECK |
641 | UTMP_CHECK |
654 | |
642 | |
655 | dnl# -------------------------------------------------------------------------- |
643 | dnl# -------------------------------------------------------------------------- |
656 | |
|
|
657 | dnl# find ttys/ttytab |
|
|
658 | AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab, |
|
|
659 | [for ttys_file in dnl |
|
|
660 | /etc/ttys /etc/ttytab; |
|
|
661 | do |
|
|
662 | if test -f "$ttys_file" ; then |
|
|
663 | rxvt_cv_path_ttytab=$ttys_file |
|
|
664 | break |
|
|
665 | fi |
|
|
666 | done |
|
|
667 | ]) |
|
|
668 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
669 | AC_DEFINE_UNQUOTED(TTYTAB_FILENAME, "$rxvt_cv_path_ttytab", Define location of ttys/ttytab) |
|
|
670 | fi |
|
|
671 | |
644 | |
672 | dnl# -------------------------------------------------------------------------- |
645 | dnl# -------------------------------------------------------------------------- |
673 | dnl# -------------------------------------------------------------------------- |
646 | dnl# -------------------------------------------------------------------------- |
674 | |
647 | |
675 | dnl# this is a really hack test for some basic Xlocale stuff |
648 | dnl# this is a really hack test for some basic Xlocale stuff |
… | |
… | |
740 | dnl# now add and remove other stuff |
713 | dnl# now add and remove other stuff |
741 | dnl# -------------------------------------------------------------------------- |
714 | dnl# -------------------------------------------------------------------------- |
742 | if test x$support_xft = xyes; then |
715 | if test x$support_xft = xyes; then |
743 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
716 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
744 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
717 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
745 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
718 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
746 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
719 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
747 | else |
720 | else |
748 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
721 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
749 | if test $XFT_CONFIG != no; then |
722 | if test $XFT_CONFIG != no; then |
750 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
723 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
751 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
724 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
752 | fi |
725 | fi |
753 | fi |
726 | fi |
754 | |
727 | |
|
|
728 | save_LIBS="$LIBS" |
|
|
729 | LIBS="$LIBS $X_LIBS" |
755 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
730 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
756 | AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no]) |
731 | AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no]) |
|
|
732 | LIBS="$save_LIBS" |
757 | |
733 | |
758 | if test x$support_xft = xyes; then |
734 | if test x$support_xft = xyes; then |
759 | AC_DEFINE(XFT, 1, Define to enable xft support) |
735 | AC_DEFINE(XFT, 1, Define to enable xft support) |
760 | fi |
736 | fi |
761 | fi |
737 | fi |