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.62 by sasha, Wed Jul 25 22:41:45 2007 UTC vs.
Revision 1.73 by ayin, Sat Aug 4 10:46:22 2007 UTC

95dnl AC_ENABLE_STATIC(yes)dnl# libtool 95dnl AC_ENABLE_STATIC(yes)dnl# libtool
96dnl AC_PROG_LIBTOOL()dnl# libtool 96dnl AC_PROG_LIBTOOL()dnl# libtool
97 97
98support_frills=yes 98support_frills=yes
99support_inheritpixmap=yes 99support_inheritpixmap=yes
100support_tinting=yes
101support_fading=yes 100support_fading=yes
102support_keepscrolling=yes 101support_keepscrolling=yes
103support_selectionscrolling=yes 102support_selectionscrolling=yes
104support_mousewheel=yes 103support_mousewheel=yes
105support_mouseslipwheel=yes 104support_mouseslipwheel=yes
108support_scroll_rxvt=yes 107support_scroll_rxvt=yes
109support_scroll_next=yes 108support_scroll_next=yes
110support_scroll_xterm=yes 109support_scroll_xterm=yes
111support_scroll_plain=yes 110support_scroll_plain=yes
112support_xim=yes 111support_xim=yes
113support_xpm=yes
114support_afterimage=yes 112support_afterimage=yes
115support_afterstep=yes 113support_afterstep=yes
116support_xft=yes 114support_xft=yes
117support_unicode3=no 115support_unicode3=no
118support_combining=yes 116support_combining=yes
138 NOTE: automatically enabled with --enable-shared], 136 NOTE: automatically enabled with --enable-shared],
139 [ 137 [
140 if test x$enableval = xno; then 138 if test x$enableval = xno; then
141 support_frills=no 139 support_frills=no
142 support_inheritpixmap=no 140 support_inheritpixmap=no
143 support_tinting=no
144 support_fading=no 141 support_fading=no
145 support_keepscrolling=no 142 support_keepscrolling=no
146 support_selectionscrolling=no 143 support_selectionscrolling=no
147 support_lastlog=no 144 support_lastlog=no
148 support_mousewheel=no 145 support_mousewheel=no
154 support_scroll_xterm=no 151 support_scroll_xterm=no
155 support_scroll_plain=no 152 support_scroll_plain=no
156 support_utmp=no 153 support_utmp=no
157 support_wtmp=no 154 support_wtmp=no
158 support_xim=no 155 support_xim=no
159 support_xpm=no
160 support_afterimage=no 156 support_afterimage=no
161 support_afterstep=no 157 support_afterstep=no
162 support_xft=no 158 support_xft=no
163 support_unicode3=no 159 support_unicode3=no
164 support_combining=no 160 support_combining=no
169 codesets= 165 codesets=
170 fi 166 fi
171 if test x$enableval = xyes; then 167 if test x$enableval = xyes; then
172 support_frills=yes 168 support_frills=yes
173 support_inheritpixmap=yes 169 support_inheritpixmap=yes
174 support_tinting=yes
175 support_fading=yes 170 support_fading=yes
176 support_keepscrolling=yes 171 support_keepscrolling=yes
177 support_selectionscrolling=yes 172 support_selectionscrolling=yes
178 support_lastlog=yes 173 support_lastlog=yes
179 support_mousewheel=yes 174 support_mousewheel=yes
185 support_scroll_xterm=yes 180 support_scroll_xterm=yes
186 support_scroll_plain=yes 181 support_scroll_plain=yes
187 support_utmp=yes 182 support_utmp=yes
188 support_wtmp=yes 183 support_wtmp=yes
189 support_xim=yes 184 support_xim=yes
190 support_xpm=yes
191 support_afterimage=yes 185 support_afterimage=yes
192 support_afterstep=yes 186 support_afterstep=yes
193 support_xft=yes 187 support_xft=yes
194 support_unicode3=yes 188 support_unicode3=yes
195 support_combining=yes 189 support_combining=yes
223 [ --enable-font-styles enable bold and italic support], 217 [ --enable-font-styles enable bold and italic support],
224 [if test x$enableval = xyes -o x$enableval = xno; then 218 [if test x$enableval = xyes -o x$enableval = xno; then
225 support_styles=$enableval 219 support_styles=$enableval
226 fi]) 220 fi])
227 221
228AC_ARG_ENABLE(xpm-background,
229 [ --enable-xpm-background enable background pixmaps],
230 [if test x$enableval = xyes -o x$enableval = xno; then
231 support_xpm=$enableval
232 fi])
233
234AC_ARG_ENABLE(afterimage, 222AC_ARG_ENABLE(afterimage,
235 [ --enable-afterimage enable integration with libAfterImage for background images], 223 [ --enable-afterimage enable integration with libAfterImage for background images],
236 [if test x$enableval = xyes -o x$enableval = xno; then 224 [if test x$enableval = xyes -o x$enableval = xno; then
237 support_afterimage=$enableval 225 support_afterimage=$enableval
238 fi]) 226 fi])
241 [ --with-afterimage-config=DIR use libAfterImage config script in DIR], 229 [ --with-afterimage-config=DIR use libAfterImage config script in DIR],
242 [if test "x$withval" != x; then 230 [if test "x$withval" != x; then
243 afterimage_config=$withval/afterimage-config 231 afterimage_config=$withval/afterimage-config
244 fi]) 232 fi])
245 233
246AC_ARG_ENABLE(afterstep, 234dnl AC_ARG_ENABLE(afterstep,
247 [ --enable-afterstep enable integration with AfterStep window manager], 235dnl [ --enable-afterstep enable integration with AfterStep window manager],
248 [if test x$enableval = xyes -o x$enableval = xno; then 236dnl [if test x$enableval = xyes -o x$enableval = xno; then
249 support_afterstep=$enableval 237dnl support_afterstep=$enableval
250 fi]) 238dnl fi])
251 239
252AC_ARG_ENABLE(transparency, 240AC_ARG_ENABLE(transparency,
253 [ --enable-transparency enable transparent backgrounds], 241 [ --enable-transparency enable transparent backgrounds],
254 [if test x$enableval = xyes -o x$enableval = xno; then 242 [if test x$enableval = xyes -o x$enableval = xno; then
255 support_inheritpixmap=$enableval 243 support_inheritpixmap=$enableval
256 fi])
257
258AC_ARG_ENABLE(tinting,
259 [ --enable-tinting enable tinting of transparent bg],
260 [if test x$enableval = xyes -o x$enableval = xno; then
261 support_tinting=$enableval
262 fi]) 244 fi])
263 245
264AC_ARG_ENABLE(fading, 246AC_ARG_ENABLE(fading,
265 [ --enable-fading enable colors fading when off focus], 247 [ --enable-fading enable colors fading when off focus],
266 [if test x$enableval = xyes -o x$enableval = xno; then 248 [if test x$enableval = xyes -o x$enableval = xno; then
454dnl## #endif 436dnl## #endif
455dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?)) 437dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?))
456 438
457AC_PATH_XTRA 439AC_PATH_XTRA
458 440
459dnl# the only reasonable way to find libXpm is do-it-yourself
460dnl# only check if we want xpm-background
461
462LIBAFTERIMAGE_CFLAGS= 441AFTERIMAGE_CFLAGS=
463AFTERIMAGE_LIBS= 442AFTERIMAGE_LIBS=
464have_afterimage=
465AFTERIMAGE_VERSION= 443AFTERIMAGE_VERSION=
466 444
467if test x$support_afterimage = xyes; then 445if test x$support_afterimage = xyes; then
468 support_afterimage=no 446 support_afterimage=no
469 447
470 if test "x$afterimage_config" = "x" ; then 448 if test "x$afterimage_config" = "x" ; then
471 AC_PATH_PROG(afterimage_config, afterimage-config, no) 449 AC_PATH_PROG(afterimage_config, afterimage-config, no)
472 fi 450 fi
473 AC_PROG_AWK 451 if test "x$afterimage_config" != "xno" ; then
474 AC_MSG_CHECKING(for libAfterImage version >= 1.15 ) 452 AC_MSG_CHECKING(for libAfterImage version >= 1.15)
475 AFTERIMAGE_VERSION=`$afterimage_config --version` 453 xAFTERIMAGE_VERSION=`$afterimage_config --version`
476 if test -n $AFTERIMAGE_VERSION ; then 454 if test -n "$xAFTERIMAGE_VERSION" ; then
477 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 455 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
478 AFTERIMAGE_LIBS=`$afterimage_config --libs` 456 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
479 if test "x$AFTERIMAGE_LIBS" != "x"; then 457 if test "x$xAFTERIMAGE_LIBS" != "x"; then
480 libai_ver_major=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $1}'` 458 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
481 libai_ver_minor=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $2}'` 459 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
482 if test "$libai_ver_major -gt 1 -o ($libai_ver_major -eq 1 -a $libai_ver_minor -ge 15)"; then 460 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
483 support_afterimage=yes; 461 support_afterimage=yes
462 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
463 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
464 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
465 fi
484 fi 466 fi
485 fi 467 fi
486 fi
487
488 if test "x$support_afterimage" = "xyes"; then 468 if test "x$support_afterimage" = "xyes"; then
489 AC_MSG_RESULT($AFTERIMAGE_LIBS) 469 AC_MSG_RESULT($AFTERIMAGE_LIBS)
490 else 470 else
491 AC_MSG_RESULT(no) 471 AC_MSG_RESULT(no)
492 fi 472 fi
493fi
494
495if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
496 VT_FIND_LIBXPM
497 if test x$no_xpm = xyes; then
498 support_xpm=needsmanualspecification
499 fi 473 fi
500fi 474fi
501 475
502dnl# -------------------------------------------------------------------------- 476dnl# --------------------------------------------------------------------------
503dnl# CHECKING FOR HEADER FILES 477dnl# CHECKING FOR HEADER FILES
780 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) 754 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
781fi 755fi
782if test x$support_fading = xyes; then 756if test x$support_fading = xyes; then
783 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) 757 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
784fi 758fi
785if test x$support_tinting = xyes; then
786 AC_DEFINE(TINTING, 1, Define if you want your background to be tinted)
787fi
788if test x$support_inheritpixmap = xyes; then 759if test x$support_inheritpixmap = xyes; then
789 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) 760 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
790fi 761fi
791if test x$support_keepscrolling = xno; then 762if test x$support_keepscrolling = xno; then
792 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) 763 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed)
793fi 764fi
794if test x$support_selectionscrolling = xyes; then 765if test x$support_selectionscrolling = xyes; then
795 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) 766 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen)
796fi 767fi
768if test x$support_frills = xyes; then
769 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
770fi
797if test x$support_mousewheel = xyes; then 771if test x$support_mousewheel = xyes; then
798 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) 772 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
799fi 773fi
800if test x$support_mouseslipwheel = xyes; then 774if test x$support_mouseslipwheel = xyes; then
801 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) 775 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling)
802fi 776fi
803if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
804 AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libXpm or libAfterImage)
805fi
806
807if test x$support_afterimage = xyes; then 777if test x$support_afterimage = xyes; then
808 AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing) 778 AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing)
779 AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libAfterImage)
809fi 780fi
810 781
811if test x$support_afterstep = xyes; then 782dnl if test x$support_afterstep = xyes; then
812 AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager) 783dnl AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager)
813fi 784dnl fi
814 785
815if test x$support_scroll_rxvt = xyes; then 786if test x$support_scroll_rxvt = xyes; then
816 AC_DEFINE(RXVT_SCROLLBAR, 1, Support Rxvt original style scrollbars) 787 AC_DEFINE(RXVT_SCROLLBAR, 1, Support Rxvt original style scrollbars)
817 scrolltypes="rxvt" 788 scrolltypes="rxvt"
818fi 789fi
884 PERL_O=rxvtperl.o 855 PERL_O=rxvtperl.o
885 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 856 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
886 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 857 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
887 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 858 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
888 else 859 else
889 AC_MSG_RESULT([no, unable to link]) 860 AC_MSG_ERROR([no, unable to link])
890 rxvt_perl_link=no
891 fi 861 fi
892 else 862 else
893 AC_MSG_RESULT([no working perl found, or perl not version >= 5.8]) 863 AC_MSG_ERROR([no working perl found, or perl not version >= 5.8])
894 support_perl=no
895 fi 864 fi
896fi 865fi
897AC_SUBST(PERLLIB) 866AC_SUBST(PERLLIB)
898AC_SUBST(PERLFLAGS) 867AC_SUBST(PERLFLAGS)
899AC_SUBST(PERLPRIVLIBEXP) 868AC_SUBST(PERLPRIVLIBEXP)
900AC_SUBST(PERL) 869AC_SUBST(PERL)
901AC_SUBST(IF_PERL) 870AC_SUBST(IF_PERL)
902AC_SUBST(PERL_O) 871AC_SUBST(PERL_O)
903 872
904if test x$support_perl = xyes; then
905 support_frills=yes
906fi
907
908if test x$support_frills = xyes; then
909 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
910fi
911
912AC_SUBST(CFLAGS) 873AC_SUBST(CFLAGS)
913AC_SUBST(CPPFLAGS) 874AC_SUBST(CPPFLAGS)
914AC_SUBST(LDFLAGS) 875AC_SUBST(LDFLAGS)
915AC_SUBST(X_CFLAGS) 876AC_SUBST(X_CFLAGS)
916 877
917dnl# Attack the libs 878dnl# Attack the libs
918AC_SUBST(LIBS) 879AC_SUBST(LIBS)
919AC_SUBST(X_LIBS) 880AC_SUBST(X_LIBS)
920AC_SUBST(X_EXTRA_LIBS) 881AC_SUBST(X_EXTRA_LIBS)
921 882
922AC_SUBST(LIBAFTERIMAGE_CFLAGS) 883AC_SUBST(AFTERIMAGE_CFLAGS)
923AC_SUBST(AFTERIMAGE_LIBS) 884AC_SUBST(AFTERIMAGE_LIBS)
924 885
925AC_ARG_PROGRAM 886AC_ARG_PROGRAM
926 887
927dnl# test for "sun" or "__sun__" before include sys_ioctl 888dnl# test for "sun" or "__sun__" before include sys_ioctl
963 Install path: ${prefix}/bin 924 Install path: ${prefix}/bin
964 Compiler: $CXX 925 Compiler: $CXX
965 Compiler flags: $CXXFLAGS 926 Compiler flags: $CXXFLAGS
966 Linker: $LINKER" 927 Linker: $LINKER"
967 928
968if test x$support_xpm = xyes; then
969 echo " Xpm library: $XPM_LIBS"
970fi
971
972if test x$support_afterimage = xyes; then
973 echo " AfterImage support: yes"
974fi
975
976if test x$support_afterstep = xyes; then
977 echo " AfterStep integration: yes"
978fi
979
980if test x$term != x; then 929if test x$term != x; then
981 echo " set TERM to: $term" 930 echo " set TERM to: $term"
982fi 931fi
983if test x$terminfo != x; then 932if test x$terminfo != x; then
984 echo " set TERMINFO to: $terminfo" 933 echo " set TERMINFO to: $terminfo"
988if test x$RESFALLBACK != x; then 937if test x$RESFALLBACK != x; then
989 echo " resource class fallback: $RESFALLBACK" 938 echo " resource class fallback: $RESFALLBACK"
990fi 939fi
991echo 940echo
992echo " embedded perl: $support_perl" 941echo " embedded perl: $support_perl"
942echo " libafterimage: $support_afterimage"
943dnl echo " AfterStep integration: $support_afterstep"
993echo 944echo
994if test x$support_xpm = xneedsmanualspecification; then
995 echo ".----------------------------------------------------------------."
996 echo ". WARNING: --enable-xpm-background was specified however the ."
997 echo ". XPM includes files and libraries could not be found. ."
998 echo ". XPM backgrounds are now being DISABLED! If you want ."
999 echo ". to use them you should rerun configure with the ."
1000 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
1001 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
1002 echo ".----------------------------------------------------------------."
1003fi
1004if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 945if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
1005 echo ".----------------------------------------------------------------." 946 echo ".----------------------------------------------------------------."
1006 echo ". WARNING: --enable-xim was specified however the locale support ." 947 echo ". WARNING: --enable-xim was specified however the locale support ."
1007 echo ". functions could not be found. ." 948 echo ". functions could not be found. ."
1008 echo ". XIM is now being DISABLED! ." 949 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines