… | |
… | |
13 | changequote(, )dnl |
13 | changequote(, )dnl |
14 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
14 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
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 | echo "" |
22 | echo "" |
23 | echo "configuring for rxvt $VERSION" |
23 | echo "configuring for rxvt $VERSION" |
24 | echo "" |
24 | echo "" |
25 | |
25 | |
26 | orig_CXXFLAGS="$CXXFLAGS" |
26 | orig_CXXFLAGS="$CXXFLAGS" |
… | |
… | |
468 | have_afterimage= |
468 | have_afterimage= |
469 | |
469 | |
470 | if test x$support_afterimage == xyes; then |
470 | if test x$support_afterimage == xyes; then |
471 | AC_MSG_CHECKING(installed libAfterImage) |
471 | AC_MSG_CHECKING(installed libAfterImage) |
472 | support_afterimage=no |
472 | support_afterimage=no |
473 | if test "$afterimage_config" = "NO" ; then |
473 | if test "$afterimage_config" = "NO" ; then |
474 | if afterimage-config --version > /dev/null 2>&1 ; then |
474 | if afterimage-config --version > /dev/null 2>&1 ; then |
475 | afterimage_config=afterimage-config |
475 | afterimage_config=afterimage-config |
476 | else |
476 | else |
477 | if test -x /usr/local/bin/afterimage-config; then |
477 | if test -x /usr/local/bin/afterimage-config; then |
478 | afterimage_config=/usr/local/bin/afterimage-config |
478 | afterimage_config=/usr/local/bin/afterimage-config |
479 | fi |
479 | fi |
480 | fi |
480 | fi |
481 | else |
481 | else |
482 | afterimage_config=$afterimage_config/afterimage-config |
482 | afterimage_config=$afterimage_config/afterimage-config |
483 | fi |
483 | fi |
484 | if $afterimage_config --version > /dev/null 2>&1 ; then |
484 | if $afterimage_config --version > /dev/null 2>&1 ; then |
485 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
485 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
486 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
486 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
487 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
487 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
488 | support_afterimage=yes |
488 | support_afterimage=yes |
489 | fi |
489 | fi |
490 | fi |
490 | fi |
491 | |
491 | |
492 | if test "x$support_afterimage" = "xyes"; then |
492 | if test "x$support_afterimage" = "xyes"; then |
493 | AC_MSG_RESULT($AFTERIMAGE_LIBS) |
493 | AC_MSG_RESULT($AFTERIMAGE_LIBS) |
494 | else |
494 | else |
495 | AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) |
495 | AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) |
… | |
… | |
558 | #include <stdlib.h> |
558 | #include <stdlib.h> |
559 | main() |
559 | main() |
560 | { |
560 | { |
561 | exit(0); |
561 | exit(0); |
562 | (void) XOpenDisplay("foobar"); |
562 | (void) XOpenDisplay("foobar"); |
563 | }]])],[rxvt_cv_rpath=yes],[rxvt_cv_rpath=no],[dnl |
563 | }]])],[rxvt_cv_rpath=yes],[rxvt_cv_rpath=no],[dnl |
564 | AC_MSG_WARN(You may need to check the LIBS line)])]) |
564 | AC_MSG_WARN(You may need to check the LIBS line)])]) |
565 | if test x$rxvt_cv_rpath != xyes; then |
565 | if test x$rxvt_cv_rpath != xyes; then |
566 | changequote(, )dnl |
566 | changequote(, )dnl |
567 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
567 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
568 | changequote([, ])dnl |
568 | changequote([, ])dnl |
569 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
569 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
… | |
… | |
572 | #include <stdlib.h> |
572 | #include <stdlib.h> |
573 | main() |
573 | main() |
574 | { |
574 | { |
575 | exit(0); |
575 | exit(0); |
576 | (void) XOpenDisplay("foobar"); |
576 | (void) XOpenDisplay("foobar"); |
577 | }]])],[rxvt_cv_R=yes],[rxvt_cv_R=no],[rxvt_cv_R=no])]) |
577 | }]])],[rxvt_cv_R=yes],[rxvt_cv_R=no],[rxvt_cv_R=no])]) |
578 | if test x$rxvt_cv_R != xyes; then |
578 | if test x$rxvt_cv_R != xyes; then |
579 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
579 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
580 | fi |
580 | fi |
581 | fi |
581 | fi |
582 | |
582 | |
… | |
… | |
716 | dnl# find ttys/ttytab |
716 | dnl# find ttys/ttytab |
717 | AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab, |
717 | AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab, |
718 | [for ttys_file in dnl |
718 | [for ttys_file in dnl |
719 | /etc/ttys /etc/ttytab; |
719 | /etc/ttys /etc/ttytab; |
720 | do |
720 | do |
721 | if test -f "$ttys_file" ; then |
721 | if test -f "$ttys_file" ; then |
722 | rxvt_cv_path_ttytab=$ttys_file |
722 | rxvt_cv_path_ttytab=$ttys_file |
723 | break |
723 | break |
724 | fi |
724 | fi |
725 | done |
725 | done |
726 | ]) |
726 | ]) |