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.38 by ayin, Mon May 7 13:43:39 2007 UTC vs.
Revision 1.49 by ayin, Wed Jun 13 11:19:41 2007 UTC

13changequote(, )dnl 13changequote(, )dnl
14VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 14VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
16dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 16dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
17changequote([, ])dnl 17changequote([, ])dnl
18AC_SUBST(VERSION)dnl 18AC_SUBST(VERSION)dnl
19AC_SUBST(DATE)dnl 19AC_SUBST(DATE)dnl
20AC_SUBST(LSMDATE)dnl 20AC_SUBST(LSMDATE)dnl
21AC_SUBST(LIBVERSION)dnl 21AC_SUBST(LIBVERSION)dnl
22echo "" 22echo ""
23echo "configuring for rxvt $VERSION" 23echo "configuring for rxvt $VERSION"
24echo "" 24echo ""
25 25
26orig_CXXFLAGS="$CXXFLAGS" 26orig_CXXFLAGS="$CXXFLAGS"
111support_scroll_next=yes 111support_scroll_next=yes
112support_scroll_xterm=yes 112support_scroll_xterm=yes
113support_scroll_plain=yes 113support_scroll_plain=yes
114support_xim=yes 114support_xim=yes
115support_xpm=yes 115support_xpm=yes
116support_afterimage=yes
117support_afterstep=yes
116support_xft=yes 118support_xft=yes
117support_unicode3=no 119support_unicode3=no
118support_combining=yes 120support_combining=yes
119support_8bitctrls=no 121support_8bitctrls=no
120support_iso14755=yes 122support_iso14755=yes
155 support_scroll_plain=no 157 support_scroll_plain=no
156 support_utmp=no 158 support_utmp=no
157 support_wtmp=no 159 support_wtmp=no
158 support_xim=no 160 support_xim=no
159 support_xpm=no 161 support_xpm=no
162 support_afterimage=no
163 support_afterstep=no
160 support_xft=no 164 support_xft=no
161 support_unicode3=no 165 support_unicode3=no
162 support_combining=no 166 support_combining=no
163 support_8bitctrls=no 167 support_8bitctrls=no
164 support_iso14755=no 168 support_iso14755=no
184 support_scroll_plain=yes 188 support_scroll_plain=yes
185 support_utmp=yes 189 support_utmp=yes
186 support_wtmp=yes 190 support_wtmp=yes
187 support_xim=yes 191 support_xim=yes
188 support_xpm=yes 192 support_xpm=yes
193 support_afterimage=yes
194 support_afterstep=yes
189 support_xft=yes 195 support_xft=yes
190 support_unicode3=yes 196 support_unicode3=yes
191 support_combining=yes 197 support_combining=yes
192 #support_8bitctrls=yes 198 #support_8bitctrls=yes
193 support_iso14755=yes 199 support_iso14755=yes
220 [if test x$enableval = xyes -o x$enableval = xno; then 226 [if test x$enableval = xyes -o x$enableval = xno; then
221 support_styles=$enableval 227 support_styles=$enableval
222 fi]) 228 fi])
223 229
224AC_ARG_ENABLE(xpm-background, 230AC_ARG_ENABLE(xpm-background,
225 [ --enable-xpm-background enable XPM background pixmaps], 231 [ --enable-xpm-background enable background pixmaps],
226 [if test x$enableval = xyes -o x$enableval = xno; then 232 [if test x$enableval = xyes -o x$enableval = xno; then
227 support_xpm=$enableval 233 support_xpm=$enableval
234 fi])
235
236AC_ARG_ENABLE(afterimage,
237 [ --enable-afterimage enable integration with libAfterImage for background images],
238 [if test x$enableval = xyes -o x$enableval = xno; then
239 support_afterimage=$enableval
240 fi])
241
242AC_ARG_WITH(afterimage_config,
243 [ --with-afterimage-config=DIR use libAfterImage config script in DIR],
244 [if test "x$withval" != x; then
245 afterimage_config=$withval/afterimage-config
246 fi])
247
248AC_ARG_ENABLE(afterstep,
249 [ --enable-afterstep enable integration with AfterStep window manager],
250 [if test x$enableval = xyes -o x$enableval = xno; then
251 support_afterstep=$enableval
228 fi]) 252 fi])
229 253
230AC_ARG_ENABLE(transparency, 254AC_ARG_ENABLE(transparency,
231 [ --enable-transparency enable transparent backgrounds], 255 [ --enable-transparency enable transparent backgrounds],
232 [if test x$enableval = xyes -o x$enableval = xno; then 256 [if test x$enableval = xyes -o x$enableval = xno; then
441AC_PATH_XTRA 465AC_PATH_XTRA
442 466
443dnl# the only reasonable way to find libXpm is do-it-yourself 467dnl# the only reasonable way to find libXpm is do-it-yourself
444dnl# only check if we want xpm-background 468dnl# only check if we want xpm-background
445 469
470LIBAFTERIMAGE_CFLAGS=
471AFTERIMAGE_LIBS=
472have_afterimage=
473
446if test x$support_xpm = xyes; then 474if test x$support_afterimage = xyes; then
475 support_afterimage=no
476
477 if test "x$afterimage_config" = "x" ; then
478 AC_PATH_PROG(afterimage_config, afterimage-config, no)
479 fi
480
481 AC_MSG_CHECKING(for libAfterImage)
482 if $afterimage_config --version >/dev/null 2>&1 ; then
483 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
484 AFTERIMAGE_LIBS=`$afterimage_config --libs`
485 if test "x$AFTERIMAGE_LIBS" != "x"; then
486 support_afterimage=yes
487 fi
488 fi
489
490 if test "x$support_afterimage" = "xyes"; then
491 AC_MSG_RESULT($AFTERIMAGE_LIBS)
492 else
493 AC_MSG_RESULT(no)
494 fi
495fi
496
497if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
447 VT_FIND_LIBXPM 498 VT_FIND_LIBXPM
448 if test x$no_xpm = xyes; then 499 if test x$no_xpm = xyes; then
449 support_xpm=needsmanualspecification 500 support_xpm=needsmanualspecification
450 fi 501 fi
451fi 502fi
505#include <stdlib.h> 556#include <stdlib.h>
506main() 557main()
507{ 558{
508 exit(0); 559 exit(0);
509 (void) XOpenDisplay("foobar"); 560 (void) XOpenDisplay("foobar");
510}]])],[rxvt_cv_rpath=yes],[rxvt_cv_rpath=no],[dnl 561}]])],[rxvt_cv_rpath=yes],[rxvt_cv_rpath=no],[dnl
511 AC_MSG_WARN(You may need to check the LIBS line)])]) 562 AC_MSG_WARN(You may need to check the LIBS line)])])
512if test x$rxvt_cv_rpath != xyes; then 563if test x$rxvt_cv_rpath != xyes; then
513 changequote(, )dnl 564 changequote(, )dnl
514 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 565 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
515 changequote([, ])dnl 566 changequote([, ])dnl
516 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 567 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
519#include <stdlib.h> 570#include <stdlib.h>
520main() 571main()
521{ 572{
522 exit(0); 573 exit(0);
523 (void) XOpenDisplay("foobar"); 574 (void) XOpenDisplay("foobar");
524}]])],[rxvt_cv_R=yes],[rxvt_cv_R=no],[rxvt_cv_R=no])]) 575}]])],[rxvt_cv_R=yes],[rxvt_cv_R=no],[rxvt_cv_R=no])])
525 if test x$rxvt_cv_R != xyes; then 576 if test x$rxvt_cv_R != xyes; then
526 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 577 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
527 fi 578 fi
528fi 579fi
529 580
663dnl# find ttys/ttytab 714dnl# find ttys/ttytab
664AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab, 715AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab,
665[for ttys_file in dnl 716[for ttys_file in dnl
666 /etc/ttys /etc/ttytab; 717 /etc/ttys /etc/ttytab;
667do 718do
668 if test -f "$ttys_file" ; then 719 if test -f "$ttys_file" ; then
669 rxvt_cv_path_ttytab=$ttys_file 720 rxvt_cv_path_ttytab=$ttys_file
670 break 721 break
671 fi 722 fi
672done 723done
673]) 724])
803if test x$support_xim = xyes -o x$multichar_set = xyes; then 854if test x$support_xim = xyes -o x$multichar_set = xyes; then
804 if test x$rxvt_cv_func_xlocale = xyes; then 855 if test x$rxvt_cv_func_xlocale = xyes; then
805 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) 856 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input)
806 fi 857 fi
807fi 858fi
808if test x$support_xpm = xyes; then 859if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
809 AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libXpm) 860 AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libXpm or libAfterImage)
810fi 861fi
862
863if test x$support_afterimage = xyes; then
864 AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing)
865fi
866
867if test x$support_afterstep = xyes; then
868 AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager)
869fi
870
811if test x$support_scroll_rxvt = xyes; then 871if test x$support_scroll_rxvt = xyes; then
812 AC_DEFINE(RXVT_SCROLLBAR, 1, Support Rxvt original style scrollbars) 872 AC_DEFINE(RXVT_SCROLLBAR, 1, Support Rxvt original style scrollbars)
813 scrolltypes="rxvt" 873 scrolltypes="rxvt"
814fi 874fi
815if test x$support_scroll_next = xyes; then 875if test x$support_scroll_next = xyes; then
897 957
898if test x$support_perl = xyes; then 958if test x$support_perl = xyes; then
899 support_frills=yes 959 support_frills=yes
900fi 960fi
901 961
902AC_SUBST(DEBUG)
903AC_SUBST(DINCLUDE)
904AC_SUBST(CFLAGS) 962AC_SUBST(CFLAGS)
905AC_SUBST(CPPFLAGS) 963AC_SUBST(CPPFLAGS)
906AC_SUBST(LDFLAGS) 964AC_SUBST(LDFLAGS)
907AC_SUBST(X_CFLAGS) 965AC_SUBST(X_CFLAGS)
908 966
909dnl# Attack the libs 967dnl# Attack the libs
910if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 968if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
911 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
912 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 969 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
913 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` 970 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
914 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` 971 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
915 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 972 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
916fi 973fi
917AC_SUBST(DLIB)
918AC_SUBST(LIBS) 974AC_SUBST(LIBS)
919AC_SUBST(X_LIBS) 975AC_SUBST(X_LIBS)
920AC_SUBST(X_EXTRA_LIBS) 976AC_SUBST(X_EXTRA_LIBS)
977
978AC_SUBST(LIBAFTERIMAGE_CFLAGS)
979AC_SUBST(AFTERIMAGE_LIBS)
921 980
922AC_ARG_PROGRAM 981AC_ARG_PROGRAM
923 982
924dnl# test for "sun" or "__sun__" before include sys_ioctl 983dnl# test for "sun" or "__sun__" before include sys_ioctl
925 984
964 1023
965if test x$support_xpm = xyes; then 1024if test x$support_xpm = xyes; then
966 echo " Xpm library: $XPM_LIBS" 1025 echo " Xpm library: $XPM_LIBS"
967fi 1026fi
968 1027
1028if test x$support_afterimage = xyes; then
1029 echo " AfterImage support: yes"
1030fi
1031
1032if test x$support_afterstep = xyes; then
1033 echo " AfterStep integration: yes"
1034fi
1035
969if test x$term != x; then 1036if test x$term != x; then
970 echo " set TERM to: $term" 1037 echo " set TERM to: $term"
971fi 1038fi
972if test x$terminfo != x; then 1039if test x$terminfo != x; then
973 echo " set TERMINFO to: $terminfo" 1040 echo " set TERMINFO to: $terminfo"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines