… | |
… | |
1367 | --enable-256-color enable 256-color support |
1367 | --enable-256-color enable 256-color support |
1368 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1368 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1369 | --enable-combining enable composition of base and combining characters |
1369 | --enable-combining enable composition of base and combining characters |
1370 | --enable-xft enable xft support on systems that have it |
1370 | --enable-xft enable xft support on systems that have it |
1371 | --enable-font-styles enable bold and italic support |
1371 | --enable-font-styles enable bold and italic support |
1372 | --enable-afterimage enable integration with libAfterImage for background images |
1372 | --enable-afterimage enable integration with libAfterImage for background images (deprecated) |
1373 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1373 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1374 | --enable-startup-notification enable freedesktop startup notification support |
1374 | --enable-startup-notification enable freedesktop startup notification support |
1375 | --enable-transparency enable transparent backgrounds |
1375 | --enable-transparency enable transparent backgrounds |
1376 | --enable-fading enable colors fading when off focus |
1376 | --enable-fading enable colors fading when off focus |
1377 | --enable-rxvt-scroll enable rxvt style scrollbar |
1377 | --enable-rxvt-scroll enable rxvt style scrollbar |
… | |
… | |
4670 | support_scroll_next=yes |
4670 | support_scroll_next=yes |
4671 | support_scroll_xterm=yes |
4671 | support_scroll_xterm=yes |
4672 | support_xim=yes |
4672 | support_xim=yes |
4673 | support_pixbuf=yes |
4673 | support_pixbuf=yes |
4674 | support_startup_notification=yes |
4674 | support_startup_notification=yes |
4675 | support_afterimage=yes |
|
|
4676 | support_xft=yes |
4675 | support_xft=yes |
4677 | support_unicode3=no |
4676 | support_unicode3=no |
4678 | support_combining=yes |
4677 | support_combining=yes |
4679 | support_8bitctrls=no |
4678 | support_8bitctrls=no |
4680 | support_iso14755=yes |
4679 | support_iso14755=yes |
… | |
… | |
4703 | support_utmp=no |
4702 | support_utmp=no |
4704 | support_wtmp=no |
4703 | support_wtmp=no |
4705 | support_xim=no |
4704 | support_xim=no |
4706 | support_pixbuf=no |
4705 | support_pixbuf=no |
4707 | support_startup_notification=no |
4706 | support_startup_notification=no |
4708 | support_afterimage=no |
|
|
4709 | support_xft=no |
4707 | support_xft=no |
4710 | support_unicode3=no |
4708 | support_unicode3=no |
4711 | support_combining=no |
4709 | support_combining=no |
4712 | support_8bitctrls=no |
4710 | support_8bitctrls=no |
4713 | support_iso14755=no |
4711 | support_iso14755=no |
… | |
… | |
4732 | support_utmp=yes |
4730 | support_utmp=yes |
4733 | support_wtmp=yes |
4731 | support_wtmp=yes |
4734 | support_xim=yes |
4732 | support_xim=yes |
4735 | support_pixbuf=yes |
4733 | support_pixbuf=yes |
4736 | support_startup_notification=yes |
4734 | support_startup_notification=yes |
4737 | support_afterimage=yes |
|
|
4738 | support_xft=yes |
4735 | support_xft=yes |
4739 | support_unicode3=yes |
4736 | support_unicode3=yes |
4740 | support_combining=yes |
4737 | support_combining=yes |
4741 | #support_8bitctrls=yes |
4738 | #support_8bitctrls=yes |
4742 | support_iso14755=yes |
4739 | support_iso14755=yes |
… | |
… | |
4746 | fi |
4743 | fi |
4747 | |
4744 | |
4748 | fi |
4745 | fi |
4749 | |
4746 | |
4750 | |
4747 | |
4751 | ASSERTIONS=no |
4748 | support_assertions=no |
4752 | # Check whether --enable-assert was given. |
4749 | # Check whether --enable-assert was given. |
4753 | if test "${enable_assert+set}" = set; then : |
4750 | if test "${enable_assert+set}" = set; then : |
4754 | enableval=$enable_assert; if test x$enableval = xyes; then |
4751 | enableval=$enable_assert; if test x$enableval = xyes; then |
4755 | ASSERTIONS=yes |
4752 | support_assertions=yes |
4756 | fi |
4753 | fi |
4757 | fi |
4754 | fi |
4758 | |
4755 | |
4759 | if test x$ASSERTIONS = xno; then |
4756 | if test x$support_assertions = xno; then |
4760 | |
4757 | |
4761 | $as_echo "#define NDEBUG 1" >>confdefs.h |
4758 | $as_echo "#define NDEBUG 1" >>confdefs.h |
4762 | |
4759 | |
4763 | fi |
4760 | fi |
4764 | |
4761 | |
4765 | WARNINGS=no |
4762 | support_warnings=no |
4766 | # Check whether --enable-warnings was given. |
4763 | # Check whether --enable-warnings was given. |
4767 | if test "${enable_warnings+set}" = set; then : |
4764 | if test "${enable_warnings+set}" = set; then : |
4768 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4765 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4769 | WARNINGS=yes |
4766 | support_warnings=yes |
4770 | fi |
4767 | fi |
4771 | fi |
4768 | fi |
4772 | |
4769 | |
4773 | if test x$GXX = xyes; then |
4770 | if test x$GXX = xyes; then |
4774 | if test $WARNINGS = yes; then |
4771 | if test $support_warnings = yes; then |
4775 | save_CXXFLAGS="$CXXFLAGS" |
4772 | save_CXXFLAGS="$CXXFLAGS" |
4776 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
4773 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4778 | /* end confdefs.h. */ |
4775 | /* end confdefs.h. */ |
4779 | |
4776 | |
4780 | int |
4777 | int |
4781 | main () |
4778 | main () |
… | |
… | |
6424 | |
6421 | |
6425 | |
6422 | |
6426 | |
6423 | |
6427 | AFTERIMAGE_CFLAGS= |
6424 | AFTERIMAGE_CFLAGS= |
6428 | AFTERIMAGE_LIBS= |
6425 | AFTERIMAGE_LIBS= |
6429 | AFTERIMAGE_VERSION= |
|
|
6430 | |
6426 | |
6431 | if test x$support_afterimage = xyes; then |
6427 | if test x$support_afterimage = xyes; then |
6432 | support_afterimage=no |
6428 | support_afterimage=no |
6433 | |
6429 | |
6434 | if test "x$afterimage_config" = "x" ; then |
6430 | if test "x$afterimage_config" = "x" ; then |
… | |
… | |
6475 | |
6471 | |
6476 | fi |
6472 | fi |
6477 | if test "x$afterimage_config" != "xno" ; then |
6473 | if test "x$afterimage_config" != "xno" ; then |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 |
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 |
6479 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
6475 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
6480 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
6476 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
6481 | if test -n "$xAFTERIMAGE_VERSION" ; then |
6477 | if test -n "$AFTERIMAGE_VERSION" ; then |
6482 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6478 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6483 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
6479 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
6484 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
6480 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
6485 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
6481 | libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
6486 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
6482 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
6487 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
6483 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
6488 | support_afterimage=yes |
6484 | support_afterimage=yes |
6489 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
|
|
6490 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
|
|
6491 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
|
|
6492 | fi |
6485 | fi |
6493 | fi |
6486 | fi |
6494 | fi |
6487 | fi |
6495 | if test "x$support_afterimage" = "xyes"; then |
6488 | if test "x$support_afterimage" = "xyes"; then |
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
… | |
… | |
6503 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
6496 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
6504 | |
6497 | |
6505 | else |
6498 | else |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6507 | $as_echo "no" >&6; } |
6500 | $as_echo "no" >&6; } |
|
|
6501 | AFTERIMAGE_CFLAGS= |
|
|
6502 | AFTERIMAGE_LIBS= |
6508 | fi |
6503 | fi |
6509 | fi |
6504 | fi |
6510 | fi |
6505 | fi |
6511 | |
6506 | |
6512 | |
6507 | |
… | |
… | |
6954 | |
6949 | |
6955 | fi |
6950 | fi |
6956 | |
6951 | |
6957 | |
6952 | |
6958 | |
6953 | |
6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5 |
6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
6960 | $as_echo_n "checking where utmp is located... " >&6; } |
6955 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
6961 | if test "${pt_cv_path_utmp+set}" = set; then : |
6956 | if test "${pt_cv_path_utmp+set}" = set; then : |
6962 | $as_echo_n "(cached) " >&6 |
6957 | $as_echo_n "(cached) " >&6 |
6963 | else |
6958 | else |
|
|
6959 | |
6964 | if test "$cross_compiling" = yes; then : |
6960 | if test "$cross_compiling" != yes; then |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
6966 | $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
6967 | else |
|
|
6968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6969 | /* end confdefs.h. */ |
|
|
6970 | #include <stdio.h> |
|
|
6971 | #include <stdlib.h> |
|
|
6972 | #include <sys/stat.h> |
|
|
6973 | |
|
|
6974 | #include <sys/types.h> |
|
|
6975 | #include <utmp.h> |
|
|
6976 | |
|
|
6977 | int main() |
|
|
6978 | { |
|
|
6979 | const char **path, *list[] = { "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
6961 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
6980 | FILE *f = fopen("conftestval", "w"); |
6962 | if test -f "$file"; then |
6981 | if (!f) return 1; |
|
|
6982 | #ifdef UTMP_FILE |
|
|
6983 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
6984 | #elif defined(_PATH_UTMP) |
|
|
6985 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
6986 | #else |
|
|
6987 | for (path = list; *path; path++) { |
|
|
6988 | struct stat st; |
|
|
6989 | if (stat(*path, &st) == 0) { |
|
|
6990 | fprintf(f, "%s\n", *path); |
|
|
6991 | break; |
|
|
6992 | } |
|
|
6993 | } |
|
|
6994 | #endif |
|
|
6995 | return fclose(f) != 0; |
|
|
6996 | } |
|
|
6997 | _ACEOF |
|
|
6998 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6999 | pt_cv_path_utmp=`cat conftestval` |
|
|
7000 | else |
|
|
7001 | pt_cv_path_utmp= |
6963 | pt_cv_path_utmp=$file |
|
|
6964 | break |
|
|
6965 | fi |
|
|
6966 | done |
7002 | fi |
6967 | fi |
7003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7004 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7005 | fi |
|
|
7006 | |
|
|
7007 | fi |
6968 | fi |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
7009 | $as_echo "$pt_cv_path_utmp" >&6; } |
6970 | $as_echo "$pt_cv_path_utmp" >&6; } |
7010 | if test x$pt_cv_path_utmp != x; then |
6971 | if test x$pt_cv_path_utmp != x; then |
7011 | |
6972 | |
7012 | cat >>confdefs.h <<_ACEOF |
6973 | cat >>confdefs.h <<_ACEOF |
7013 | #define UTMP_FILE "$pt_cv_path_utmp" |
6974 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
7014 | _ACEOF |
6975 | _ACEOF |
7015 | |
6976 | |
|
|
6977 | elif test "$cross_compiling" = yes; then |
|
|
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6979 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
7016 | fi |
6980 | fi |
7017 | |
6981 | |
7018 | |
6982 | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5 |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
7020 | $as_echo_n "checking where wtmp is located... " >&6; } |
6984 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
7021 | if test "${pt_cv_path_wtmp+set}" = set; then : |
6985 | if test "${pt_cv_path_wtmp+set}" = set; then : |
7022 | $as_echo_n "(cached) " >&6 |
6986 | $as_echo_n "(cached) " >&6 |
7023 | else |
6987 | else |
|
|
6988 | |
7024 | if test "$cross_compiling" = yes; then : |
6989 | if test "$cross_compiling" != yes; then |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
7026 | $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
7027 | else |
|
|
7028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7029 | /* end confdefs.h. */ |
|
|
7030 | #include <stdio.h> |
|
|
7031 | #include <stdlib.h> |
|
|
7032 | #include <sys/stat.h> |
|
|
7033 | |
|
|
7034 | #include <sys/types.h> |
|
|
7035 | #ifdef HAVE_UTMP_H |
|
|
7036 | #include <utmp.h> |
|
|
7037 | #endif |
|
|
7038 | |
|
|
7039 | int main() |
|
|
7040 | { |
|
|
7041 | const char **path, *list[] = { "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
6990 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
7042 | FILE *f = fopen("conftestval", "w"); |
6991 | if test -f "$file"; then |
7043 | if (!f) return 1; |
|
|
7044 | #ifdef WTMP_FILE |
|
|
7045 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
7046 | #elif defined(_PATH_WTMP) |
|
|
7047 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
7048 | #else |
|
|
7049 | for (path = list; *path; path++) { |
|
|
7050 | struct stat st; |
|
|
7051 | if (stat(*path, &st) == 0) { |
|
|
7052 | fprintf(f, "%s\n", *path); |
|
|
7053 | break; |
|
|
7054 | } |
|
|
7055 | } |
|
|
7056 | #endif |
|
|
7057 | return fclose(f) != 0; |
|
|
7058 | } |
|
|
7059 | _ACEOF |
|
|
7060 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7061 | pt_cv_path_wtmp=`cat conftestval` |
|
|
7062 | else |
|
|
7063 | pt_cv_path_wtmp= |
6992 | pt_cv_path_wtmp=$file |
|
|
6993 | break |
|
|
6994 | fi |
|
|
6995 | done |
7064 | fi |
6996 | fi |
7065 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7066 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7067 | fi |
|
|
7068 | |
|
|
7069 | fi |
6997 | fi |
7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
7071 | $as_echo "$pt_cv_path_wtmp" >&6; } |
6999 | $as_echo "$pt_cv_path_wtmp" >&6; } |
7072 | if test x$pt_cv_path_wtmp != x; then |
7000 | if test x$pt_cv_path_wtmp != x; then |
7073 | |
7001 | |
7074 | cat >>confdefs.h <<_ACEOF |
7002 | cat >>confdefs.h <<_ACEOF |
7075 | #define WTMP_FILE "$pt_cv_path_wtmp" |
7003 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
7076 | _ACEOF |
7004 | _ACEOF |
7077 | |
7005 | |
|
|
7006 | elif test "$cross_compiling" = yes; then |
|
|
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7008 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
7078 | fi |
7009 | fi |
7079 | |
7010 | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5 |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
7081 | $as_echo_n "checking where wtmpx is located... " >&6; } |
7012 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
7082 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
7013 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
7083 | $as_echo_n "(cached) " >&6 |
7014 | $as_echo_n "(cached) " >&6 |
7084 | else |
7015 | else |
|
|
7016 | |
7085 | if test "$cross_compiling" = yes; then : |
7017 | if test "$cross_compiling" != yes; then |
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
7018 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
7087 | $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
7019 | if test -f "$file"; then |
7088 | else |
|
|
7089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7090 | /* end confdefs.h. */ |
|
|
7091 | #include <stdio.h> |
|
|
7092 | #include <stdlib.h> |
|
|
7093 | #include <sys/stat.h> |
|
|
7094 | |
|
|
7095 | #ifdef HAVE_UTMPX_H |
|
|
7096 | #include <utmpx.h> |
|
|
7097 | #endif |
|
|
7098 | |
|
|
7099 | int main() |
|
|
7100 | { |
|
|
7101 | const char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
7102 | FILE *f = fopen("conftestval", "w"); |
|
|
7103 | if (!f) return 1; |
|
|
7104 | #ifdef WTMPX_FILE |
|
|
7105 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
7106 | #elif defined(_PATH_WTMPX) |
|
|
7107 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
7108 | #else |
|
|
7109 | for (path = list; *path; path++) { |
|
|
7110 | struct stat st; |
|
|
7111 | if (stat(*path, &st) == 0) { |
|
|
7112 | fprintf(f, "%s\n", *path); |
|
|
7113 | break; |
|
|
7114 | } |
|
|
7115 | } |
|
|
7116 | #endif |
|
|
7117 | return fclose(f) != 0; |
|
|
7118 | } |
|
|
7119 | _ACEOF |
|
|
7120 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7121 | pt_cv_path_wtmpx=`cat conftestval` |
|
|
7122 | else |
|
|
7123 | pt_cv_path_wtmpx= |
7020 | pt_cv_path_wtmpx=$file |
|
|
7021 | break |
|
|
7022 | fi |
|
|
7023 | done |
7124 | fi |
7024 | fi |
7125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7126 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7127 | fi |
|
|
7128 | |
|
|
7129 | fi |
7025 | fi |
7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7131 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
7027 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
7132 | if test x$pt_cv_path_wtmpx != x; then |
7028 | if test x$pt_cv_path_wtmpx != x; then |
7133 | |
7029 | |
7134 | cat >>confdefs.h <<_ACEOF |
7030 | cat >>confdefs.h <<_ACEOF |
7135 | #define WTMPX_FILE "$pt_cv_path_wtmpx" |
7031 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
7136 | _ACEOF |
7032 | _ACEOF |
7137 | |
7033 | |
|
|
7034 | elif test "$cross_compiling" = yes; then |
|
|
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7036 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
7138 | fi |
7037 | fi |
7139 | |
7038 | |
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5 |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
7141 | $as_echo_n "checking where lastlog is located... " >&6; } |
7040 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
7142 | if test "${pt_cv_path_lastlog+set}" = set; then : |
7041 | if test "${pt_cv_path_lastlog+set}" = set; then : |
7143 | $as_echo_n "(cached) " >&6 |
7042 | $as_echo_n "(cached) " >&6 |
7144 | else |
7043 | else |
|
|
7044 | |
7145 | if test "$cross_compiling" = yes; then : |
7045 | if test "$cross_compiling" != yes; then |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
7046 | for file in "/var/log/lastlog"; do |
7147 | $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
7047 | if test -f "$file"; then |
7148 | else |
|
|
7149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7150 | /* end confdefs.h. */ |
|
|
7151 | #include <stdio.h> |
|
|
7152 | #include <stdlib.h> |
|
|
7153 | #include <sys/stat.h> |
|
|
7154 | |
|
|
7155 | #include <sys/types.h> |
|
|
7156 | #ifdef HAVE_UTMP_H |
|
|
7157 | #include <utmp.h> |
|
|
7158 | #endif |
|
|
7159 | #ifdef HAVE_LASTLOG_H |
|
|
7160 | #include <lastlog.h> |
|
|
7161 | #endif |
|
|
7162 | |
|
|
7163 | int main() |
|
|
7164 | { |
|
|
7165 | const char **path, *list[] = { "/var/log/lastlog", NULL }; |
|
|
7166 | FILE *f = fopen("conftestval", "w"); |
|
|
7167 | if (!f) return 1; |
|
|
7168 | #ifdef LASTLOG_FILE |
|
|
7169 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
7170 | #elif defined(_PATH_LASTLOG) |
|
|
7171 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
7172 | #else |
|
|
7173 | for (path = list; *path; path++) { |
|
|
7174 | struct stat st; |
|
|
7175 | if (stat(*path, &st) == 0) { |
|
|
7176 | fprintf(f, "%s\n", *path); |
|
|
7177 | break; |
|
|
7178 | } |
|
|
7179 | } |
|
|
7180 | #endif |
|
|
7181 | return fclose(f) != 0; |
|
|
7182 | } |
|
|
7183 | _ACEOF |
|
|
7184 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7185 | pt_cv_path_lastlog=`cat conftestval` |
|
|
7186 | else |
|
|
7187 | pt_cv_path_lastlog= |
7048 | pt_cv_path_lastlog=$file |
|
|
7049 | break |
|
|
7050 | fi |
|
|
7051 | done |
7188 | fi |
7052 | fi |
7189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7190 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7191 | fi |
|
|
7192 | |
|
|
7193 | fi |
7053 | fi |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7195 | $as_echo "$pt_cv_path_lastlog" >&6; } |
7055 | $as_echo "$pt_cv_path_lastlog" >&6; } |
7196 | if test x$pt_cv_path_lastlog != x; then |
7056 | if test x$pt_cv_path_lastlog != x; then |
7197 | |
7057 | |
7198 | cat >>confdefs.h <<_ACEOF |
7058 | cat >>confdefs.h <<_ACEOF |
7199 | #define LASTLOG_FILE "$pt_cv_path_lastlog" |
7059 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
7200 | _ACEOF |
7060 | _ACEOF |
7201 | |
7061 | |
|
|
7062 | elif test "$cross_compiling" = yes; then |
|
|
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7064 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
7202 | fi |
7065 | fi |
7203 | |
7066 | |
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5 |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
7205 | $as_echo_n "checking where lastlogx is located... " >&6; } |
7068 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
7206 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
7069 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
7207 | $as_echo_n "(cached) " >&6 |
7070 | $as_echo_n "(cached) " >&6 |
7208 | else |
7071 | else |
|
|
7072 | |
7209 | if test "$cross_compiling" = yes; then : |
7073 | if test "$cross_compiling" != yes; then |
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
7074 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
7211 | $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
7075 | if test -f "$file"; then |
7212 | else |
|
|
7213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7214 | /* end confdefs.h. */ |
|
|
7215 | #include <stdio.h> |
|
|
7216 | #include <stdlib.h> |
|
|
7217 | #include <sys/stat.h> |
|
|
7218 | |
|
|
7219 | #ifdef HAVE_UTMPX_H |
|
|
7220 | #include <utmpx.h> |
|
|
7221 | #endif |
|
|
7222 | |
|
|
7223 | int main() |
|
|
7224 | { |
|
|
7225 | const char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
7226 | FILE *f = fopen("conftestval", "w"); |
|
|
7227 | if (!f) return 1; |
|
|
7228 | #ifdef LASTLOGX_FILE |
|
|
7229 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
7230 | #elif defined(_PATH_LASTLOGX) |
|
|
7231 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
7232 | #else |
|
|
7233 | for (path = list; *path; path++) { |
|
|
7234 | struct stat st; |
|
|
7235 | if (stat(*path, &st) == 0) { |
|
|
7236 | fprintf(f, "%s\n", *path); |
|
|
7237 | break; |
|
|
7238 | } |
|
|
7239 | } |
|
|
7240 | #endif |
|
|
7241 | return fclose(f) != 0; |
|
|
7242 | } |
|
|
7243 | _ACEOF |
|
|
7244 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7245 | pt_cv_path_lastlogx=`cat conftestval` |
|
|
7246 | else |
|
|
7247 | pt_cv_path_lastlogx= |
7076 | pt_cv_path_lastlogx=$file |
|
|
7077 | break |
|
|
7078 | fi |
|
|
7079 | done |
7248 | fi |
7080 | fi |
7249 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7250 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7251 | fi |
|
|
7252 | |
|
|
7253 | fi |
7081 | fi |
7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7255 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
7083 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
7256 | if test x$pt_cv_path_lastlogx != x; then |
7084 | if test x$pt_cv_path_lastlogx != x; then |
7257 | |
7085 | |
7258 | cat >>confdefs.h <<_ACEOF |
7086 | cat >>confdefs.h <<_ACEOF |
7259 | #define LASTLOGX_FILE "$pt_cv_path_lastlogx" |
7087 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
7260 | _ACEOF |
7088 | _ACEOF |
7261 | |
7089 | |
|
|
7090 | elif test "$cross_compiling" = yes; then |
|
|
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7092 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
7262 | fi |
7093 | fi |
7263 | |
7094 | |
7264 | |
7095 | |
7265 | |
7096 | |
7266 | |
7097 | |
… | |
… | |
7550 | |
7381 | |
7551 | fi |
7382 | fi |
7552 | done |
7383 | done |
7553 | |
7384 | |
7554 | |
7385 | |
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
7556 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
7387 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
7557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7558 | /* end confdefs.h. */ |
7389 | /* end confdefs.h. */ |
7559 | #include <stdlib.h> |
7390 | #include <stdlib.h> |
7560 | int |
7391 | int |
7561 | main () |
7392 | main () |
7562 | { |
7393 | { |
… | |
… | |
7568 | if ac_fn_cxx_try_link "$LINENO"; then : |
7399 | if ac_fn_cxx_try_link "$LINENO"; then : |
7569 | unix98_pty=yes |
7400 | unix98_pty=yes |
7570 | |
7401 | |
7571 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
7402 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
7572 | |
7403 | |
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7574 | $as_echo "yes" >&6; } |
7405 | $as_echo "yes" >&6; } |
7575 | else |
7406 | else |
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7577 | $as_echo "no" >&6; } |
7408 | $as_echo "no" >&6; } |
7578 | fi |
7409 | fi |