… | |
… | |
239 | support_afterimage=$enableval |
239 | support_afterimage=$enableval |
240 | fi]) |
240 | fi]) |
241 | |
241 | |
242 | AC_ARG_WITH(afterimage_config, |
242 | AC_ARG_WITH(afterimage_config, |
243 | [ --with-afterimage-config=DIR use libAfterImage config script in DIR], |
243 | [ --with-afterimage-config=DIR use libAfterImage config script in DIR], |
244 | [afterimage_config="$withval"]) |
244 | [if test "x$withval" != x; then |
|
|
245 | afterimage_config=$withval/afterimage-config |
|
|
246 | fi]) |
245 | |
247 | |
246 | AC_ARG_ENABLE(afterstep, |
248 | AC_ARG_ENABLE(afterstep, |
247 | [ --enable-afterstep enable integration with AfterStep window manager], |
249 | [ --enable-afterstep enable integration with AfterStep window manager], |
248 | [if test x$enableval = xyes -o x$enableval = xno; then |
250 | [if test x$enableval = xyes -o x$enableval = xno; then |
249 | support_afterstep=$enableval |
251 | support_afterstep=$enableval |
… | |
… | |
437 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
439 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
438 | fi]) |
440 | fi]) |
439 | |
441 | |
440 | dnl# -------------------------------------------------------------------------- |
442 | dnl# -------------------------------------------------------------------------- |
441 | |
443 | |
442 | AC_PATH_PROG(MV, mv, mv) |
|
|
443 | AC_PATH_PROG(CP, cp, cp) |
444 | AC_PATH_PROG(CP, cp, cp) |
444 | AC_PATH_PROG(LN, ln, ln) |
|
|
445 | AC_PATH_PROG(SED, sed, sed) |
445 | AC_PATH_PROG(SED, sed, sed) |
446 | AC_PATH_PROG(ECHO, echo, echo) |
446 | AC_PATH_PROG(ECHO, echo, echo) |
447 | AC_PATH_PROG(CMP, cmp, cmp) |
|
|
448 | AC_PATH_PROG(TIC, tic) |
447 | AC_PATH_PROG(TIC, tic) |
449 | |
448 | |
450 | dnl# need a neat way to detect SVR4 or its features |
449 | dnl# need a neat way to detect SVR4 or its features |
451 | dnl# in src/command.c we use these functions: |
450 | dnl# in src/command.c we use these functions: |
452 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
451 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
… | |
… | |
467 | |
466 | |
468 | LIBAFTERIMAGE_CFLAGS= |
467 | LIBAFTERIMAGE_CFLAGS= |
469 | AFTERIMAGE_LIBS= |
468 | AFTERIMAGE_LIBS= |
470 | have_afterimage= |
469 | have_afterimage= |
471 | |
470 | |
472 | if test x$support_afterimage == xyes; then |
471 | if test x$support_afterimage = xyes; then |
473 | AC_MSG_CHECKING(installed libAfterImage) |
|
|
474 | support_afterimage=no |
472 | support_afterimage=no |
|
|
473 | |
475 | if test "x$afterimage_config" = "x" ; then |
474 | if test "x$afterimage_config" = "x" ; then |
476 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
475 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
477 | else |
|
|
478 | afterimage_config=$afterimage_config/afterimage-config |
|
|
479 | fi |
476 | fi |
|
|
477 | |
|
|
478 | AC_MSG_CHECKING(for libAfterImage) |
480 | if $afterimage_config --version > /dev/null 2>&1 ; then |
479 | if $afterimage_config --version >/dev/null 2>&1 ; then |
481 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
480 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
482 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
481 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
483 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
482 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
484 | support_afterimage=yes |
483 | support_afterimage=yes |
485 | fi |
484 | fi |
486 | fi |
485 | fi |
487 | |
486 | |
488 | if test "x$support_afterimage" = "xyes"; then |
487 | if test "x$support_afterimage" = "xyes"; then |
489 | AC_MSG_RESULT($AFTERIMAGE_LIBS) |
488 | AC_MSG_RESULT($AFTERIMAGE_LIBS) |
490 | else |
489 | else |
491 | AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) |
490 | AC_MSG_RESULT(no) |
492 | fi |
491 | fi |
493 | fi |
492 | fi |
494 | |
493 | |
495 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
494 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
496 | VT_FIND_LIBXPM |
495 | VT_FIND_LIBXPM |
… | |
… | |
955 | |
954 | |
956 | if test x$support_perl = xyes; then |
955 | if test x$support_perl = xyes; then |
957 | support_frills=yes |
956 | support_frills=yes |
958 | fi |
957 | fi |
959 | |
958 | |
960 | AC_SUBST(DEBUG) |
|
|
961 | AC_SUBST(DINCLUDE) |
|
|
962 | AC_SUBST(CFLAGS) |
959 | AC_SUBST(CFLAGS) |
963 | AC_SUBST(CPPFLAGS) |
960 | AC_SUBST(CPPFLAGS) |
964 | AC_SUBST(LDFLAGS) |
961 | AC_SUBST(LDFLAGS) |
965 | AC_SUBST(X_CFLAGS) |
962 | AC_SUBST(X_CFLAGS) |
966 | |
963 | |
967 | dnl# Attack the libs |
964 | dnl# Attack the libs |
968 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
965 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
969 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
970 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
966 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
971 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
967 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
972 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
968 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
973 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
969 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
974 | fi |
970 | fi |
975 | AC_SUBST(DLIB) |
|
|
976 | AC_SUBST(LIBS) |
971 | AC_SUBST(LIBS) |
977 | AC_SUBST(X_LIBS) |
972 | AC_SUBST(X_LIBS) |
978 | AC_SUBST(X_EXTRA_LIBS) |
973 | AC_SUBST(X_EXTRA_LIBS) |
979 | |
974 | |
980 | AC_SUBST(LIBAFTERIMAGE_CFLAGS) |
975 | AC_SUBST(LIBAFTERIMAGE_CFLAGS) |
… | |
… | |
1026 | if test x$support_xpm = xyes; then |
1021 | if test x$support_xpm = xyes; then |
1027 | echo " Xpm library: $XPM_LIBS" |
1022 | echo " Xpm library: $XPM_LIBS" |
1028 | fi |
1023 | fi |
1029 | |
1024 | |
1030 | if test x$support_afterimage = xyes; then |
1025 | if test x$support_afterimage = xyes; then |
1031 | echo " AfterImage library: $AFTERIMAGE_LIBS" |
1026 | echo " AfterImage support: yes" |
1032 | fi |
1027 | fi |
1033 | |
1028 | |
1034 | if test x$support_afterstep = xyes; then |
1029 | if test x$support_afterstep = xyes; then |
1035 | echo " With AfterStep integration" |
1030 | echo " AfterStep integration: yes" |
1036 | fi |
1031 | fi |
1037 | |
1032 | |
1038 | if test x$term != x; then |
1033 | if test x$term != x; then |
1039 | echo " set TERM to: $term" |
1034 | echo " set TERM to: $term" |
1040 | fi |
1035 | fi |