… | |
… | |
63 | dnl# -------------------------------------------------------------------------- |
63 | dnl# -------------------------------------------------------------------------- |
64 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
64 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
65 | dnl# |
65 | dnl# |
66 | if test -z "$orig_CXXFLAGS"; then |
66 | if test -z "$orig_CXXFLAGS"; then |
67 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
67 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
68 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
68 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
69 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [], [CXXFLAGS="-g -O3"]) |
69 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [], [CXXFLAGS="-g -O3"]) |
70 | else |
70 | else |
71 | CXXFLAGS="-O" |
71 | CXXFLAGS="-O" |
72 | fi |
72 | fi |
73 | CFLAGS="$CXXFLAGS" |
73 | CFLAGS="$CXXFLAGS" |
… | |
… | |
105 | [AC_MSG_RESULT(no)]) |
105 | [AC_MSG_RESULT(no)]) |
106 | |
106 | |
107 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
107 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
108 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
108 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
109 | dnl AC_PROG_LIBTOOL()dnl# libtool |
109 | dnl AC_PROG_LIBTOOL()dnl# libtool |
110 | |
|
|
111 | MALLOC_TYPE=S |
|
|
112 | |
110 | |
113 | support_frills=yes |
111 | support_frills=yes |
114 | support_inheritpixmap=yes |
112 | support_inheritpixmap=yes |
115 | support_tinting=yes |
113 | support_tinting=yes |
116 | support_fading=yes |
114 | support_fading=yes |
… | |
… | |
237 | [ --enable-font-styles enable bold and italic support], |
235 | [ --enable-font-styles enable bold and italic support], |
238 | [if test x$enableval = xyes -o x$enableval = xno; then |
236 | [if test x$enableval = xyes -o x$enableval = xno; then |
239 | support_styles=$enableval |
237 | support_styles=$enableval |
240 | fi]) |
238 | fi]) |
241 | |
239 | |
242 | AC_ARG_ENABLE(utmp, |
|
|
243 | [ --enable-utmp enable utmp (utmpx) support], |
|
|
244 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
245 | support_utmp=$enableval |
|
|
246 | fi]) |
|
|
247 | |
|
|
248 | AC_ARG_ENABLE(wtmp, |
|
|
249 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)], |
|
|
250 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
251 | support_wtmp=$enableval |
|
|
252 | fi]) |
|
|
253 | |
|
|
254 | AC_ARG_ENABLE(lastlog, |
|
|
255 | [ --enable-lastlog enable lastlog support (requires --enable-utmp)], |
|
|
256 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
257 | support_lastlog=$enableval |
|
|
258 | fi]) |
|
|
259 | |
|
|
260 | AC_ARG_ENABLE(xpm-background, |
240 | AC_ARG_ENABLE(xpm-background, |
261 | [ --enable-xpm-background enable XPM background pixmaps], |
241 | [ --enable-xpm-background enable XPM background pixmaps], |
262 | [if test x$enableval = xyes -o x$enableval = xno; then |
242 | [if test x$enableval = xyes -o x$enableval = xno; then |
263 | support_xpm=$enableval |
243 | support_xpm=$enableval |
264 | fi]) |
244 | fi]) |
… | |
… | |
431 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous)], |
411 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous)], |
432 | [if test x$enableval = xyes -o x$enableval = xno; then |
412 | [if test x$enableval = xyes -o x$enableval = xno; then |
433 | support_mouseslipwheel=$enableval |
413 | support_mouseslipwheel=$enableval |
434 | fi]) |
414 | fi]) |
435 | |
415 | |
436 | AC_ARG_ENABLE(dmalloc, |
|
|
437 | [ --enable-dmalloc enable Gray Watson's malloc - for debugging use], |
|
|
438 | [if test x$enableval = xyes; then |
|
|
439 | MALLOC_TYPE=G |
|
|
440 | DEBUG=-DDEBUG_MALLOC |
|
|
441 | DLIB="-L/usr/local/lib -ldmalloc" |
|
|
442 | DINCLUDE=-I/usr/local/include |
|
|
443 | fi]) |
|
|
444 | |
|
|
445 | AC_ARG_ENABLE(dlmalloc, |
|
|
446 | [ --enable-dlmalloc enable Doug Lea's malloc - for production use |
|
|
447 | NOTE: enable only one malloc package], |
|
|
448 | [if test x$enableval = xyes; then |
|
|
449 | MALLOC_TYPE=D |
|
|
450 | DEBUG= |
|
|
451 | DLIB="-L/usr/local/lib -ldlmalloc" |
|
|
452 | DINCLUDE= |
|
|
453 | fi]) |
|
|
454 | |
|
|
455 | AC_ARG_ENABLE(smart-resize, |
416 | AC_ARG_ENABLE(smart-resize, |
456 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
417 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
457 | [if test x$enableval = xyes; then |
418 | [if test x$enableval = xyes; then |
458 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
419 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
459 | fi]) |
420 | fi]) |
… | |
… | |
483 | fi]) |
444 | fi]) |
484 | |
445 | |
485 | dnl# -------------------------------------------------------------------------- |
446 | dnl# -------------------------------------------------------------------------- |
486 | |
447 | |
487 | AC_PATH_PROG(MV, mv, mv) |
448 | AC_PATH_PROG(MV, mv, mv) |
488 | AC_PATH_PROG(RM, rm, rm) |
|
|
489 | AC_PATH_PROG(CP, cp, cp) |
449 | AC_PATH_PROG(CP, cp, cp) |
490 | AC_PATH_PROG(LN, ln, ln) |
450 | AC_PATH_PROG(LN, ln, ln) |
491 | AC_PATH_PROG(SED, sed, sed) |
451 | AC_PATH_PROG(SED, sed, sed) |
492 | AC_PATH_PROG(ECHO, echo, echo) |
452 | AC_PATH_PROG(ECHO, echo, echo) |
493 | AC_PATH_PROG(CMP, cmp, cmp) |
453 | AC_PATH_PROG(CMP, cmp, cmp) |
… | |
… | |
855 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
815 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
856 | fi |
816 | fi |
857 | if test x$support_mouseslipwheel = xyes; then |
817 | if test x$support_mouseslipwheel = xyes; then |
858 | AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
818 | AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
859 | fi |
819 | fi |
860 | if test x$support_utmp = xyes; then |
|
|
861 | AC_DEFINE(UTMP_SUPPORT, 1, Define if you want to have utmp/utmpx support) |
|
|
862 | fi |
|
|
863 | if test x$support_wtmp = xyes; then |
|
|
864 | AC_DEFINE(WTMP_SUPPORT, 1, Define if you want to have wtmp support when utmp/utmpx is enabled) |
|
|
865 | fi |
|
|
866 | if test x$support_lastlog = xyes; then |
|
|
867 | AC_DEFINE(LASTLOG_SUPPORT, 1, Define if you want to have lastlog support when utmp/utmpx is enabled) |
|
|
868 | fi |
|
|
869 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
820 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
870 | if test x$rxvt_cv_func_xlocale = xyes; then |
821 | if test x$rxvt_cv_func_xlocale = xyes; then |
871 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
822 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
872 | fi |
823 | fi |
873 | fi |
824 | fi |
… | |
… | |
1032 | Install path: ${prefix}/bin |
983 | Install path: ${prefix}/bin |
1033 | Compiler: $CXX |
984 | Compiler: $CXX |
1034 | Compiler flags: $CFLAGS |
985 | Compiler flags: $CFLAGS |
1035 | Linker: $LINKER" |
986 | Linker: $LINKER" |
1036 | |
987 | |
1037 | if test "$MALLOC_TYPE" = S; then |
|
|
1038 | echo " malloc support: system default" |
|
|
1039 | fi |
|
|
1040 | if test "$MALLOC_TYPE" = G; then |
|
|
1041 | echo " malloc support: Gray Watson's dmalloc" |
|
|
1042 | fi |
|
|
1043 | if test "$MALLOC_TYPE" = D; then |
|
|
1044 | echo " malloc support: Doug Lea's malloc" |
|
|
1045 | fi |
|
|
1046 | |
|
|
1047 | if test x$support_xpm = xyes; then |
988 | if test x$support_xpm = xyes; then |
1048 | echo " Xpm library: $XPM_LIBS" |
989 | echo " Xpm library: $XPM_LIBS" |
1049 | fi |
990 | fi |
1050 | |
991 | |
1051 | if test x$support_utmp != xyes; then |
|
|
1052 | echo " utmp support: disabled" |
|
|
1053 | echo |
|
|
1054 | else |
|
|
1055 | echo " utmp support: enabled |
|
|
1056 | utmp file: $path_utmp |
|
|
1057 | utmpx file: $path_utmpx |
|
|
1058 | wtmp file: $path_wtmp |
|
|
1059 | wtmpx file: $path_wtmpx |
|
|
1060 | lastlog file: $path_lastlog |
|
|
1061 | lastlogx file: $path_lastlogx" |
|
|
1062 | fi |
|
|
1063 | if test x$term != x; then |
992 | if test x$term != x; then |
1064 | echo " set TERM to: $term" |
993 | echo " set TERM to: $term" |
1065 | fi |
994 | fi |
1066 | if test x$terminfo != x; then |
995 | if test x$terminfo != x; then |
1067 | echo " set TERMINFO to: $terminfo" |
996 | echo " set TERMINFO to: $terminfo" |