… | |
… | |
609 | PERL |
609 | PERL |
610 | XFT_CONFIG |
610 | XFT_CONFIG |
611 | AFTERIMAGE_LIBS |
611 | AFTERIMAGE_LIBS |
612 | AFTERIMAGE_CFLAGS |
612 | AFTERIMAGE_CFLAGS |
613 | afterimage_config |
613 | afterimage_config |
|
|
614 | STARTUP_NOTIFICATION_LIBS |
|
|
615 | STARTUP_NOTIFICATION_CFLAGS |
614 | PIXBUF_LIBS |
616 | PIXBUF_LIBS |
615 | PIXBUF_CFLAGS |
617 | PIXBUF_CFLAGS |
616 | PKG_CONFIG |
618 | PKG_CONFIG |
617 | X_EXTRA_LIBS |
619 | X_EXTRA_LIBS |
618 | X_LIBS |
620 | X_LIBS |
… | |
… | |
699 | enable_xft |
701 | enable_xft |
700 | enable_font_styles |
702 | enable_font_styles |
701 | enable_afterimage |
703 | enable_afterimage |
702 | with_afterimage_config |
704 | with_afterimage_config |
703 | enable_pixbuf |
705 | enable_pixbuf |
|
|
706 | enable_startup_notification |
704 | enable_transparency |
707 | enable_transparency |
705 | enable_fading |
708 | enable_fading |
706 | enable_rxvt_scroll |
709 | enable_rxvt_scroll |
707 | enable_next_scroll |
710 | enable_next_scroll |
708 | enable_xterm_scroll |
711 | enable_xterm_scroll |
… | |
… | |
1374 | --enable-combining enable composition of base and combining characters |
1377 | --enable-combining enable composition of base and combining characters |
1375 | --enable-xft enable xft support on systems that have it |
1378 | --enable-xft enable xft support on systems that have it |
1376 | --enable-font-styles enable bold and italic support |
1379 | --enable-font-styles enable bold and italic support |
1377 | --enable-afterimage enable integration with libAfterImage for background images |
1380 | --enable-afterimage enable integration with libAfterImage for background images |
1378 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1381 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
|
|
1382 | --enable-startup-notification enable freedesktop startup notification support |
1379 | --enable-transparency enable transparent backgrounds |
1383 | --enable-transparency enable transparent backgrounds |
1380 | --enable-fading enable colors fading when off focus |
1384 | --enable-fading enable colors fading when off focus |
1381 | --enable-rxvt-scroll enable rxvt style scrollbar |
1385 | --enable-rxvt-scroll enable rxvt style scrollbar |
1382 | --enable-next-scroll enable NeXT style scrollbar |
1386 | --enable-next-scroll enable NeXT style scrollbar |
1383 | --enable-xterm-scroll enable Xterm style scrollbar |
1387 | --enable-xterm-scroll enable Xterm style scrollbar |
… | |
… | |
4673 | support_scroll_rxvt=yes |
4677 | support_scroll_rxvt=yes |
4674 | support_scroll_next=yes |
4678 | support_scroll_next=yes |
4675 | support_scroll_xterm=yes |
4679 | support_scroll_xterm=yes |
4676 | support_xim=yes |
4680 | support_xim=yes |
4677 | support_pixbuf=yes |
4681 | support_pixbuf=yes |
|
|
4682 | support_startup_notification=yes |
4678 | support_afterimage=yes |
4683 | support_afterimage=yes |
4679 | support_xft=yes |
4684 | support_xft=yes |
4680 | support_unicode3=no |
4685 | support_unicode3=no |
4681 | support_combining=yes |
4686 | support_combining=yes |
4682 | support_8bitctrls=no |
4687 | support_8bitctrls=no |
… | |
… | |
4705 | support_scroll_xterm=no |
4710 | support_scroll_xterm=no |
4706 | support_utmp=no |
4711 | support_utmp=no |
4707 | support_wtmp=no |
4712 | support_wtmp=no |
4708 | support_xim=no |
4713 | support_xim=no |
4709 | support_pixbuf=no |
4714 | support_pixbuf=no |
|
|
4715 | support_startup_notification=no |
4710 | support_afterimage=no |
4716 | support_afterimage=no |
4711 | support_xft=no |
4717 | support_xft=no |
4712 | support_unicode3=no |
4718 | support_unicode3=no |
4713 | support_combining=no |
4719 | support_combining=no |
4714 | support_8bitctrls=no |
4720 | support_8bitctrls=no |
… | |
… | |
4733 | support_scroll_xterm=yes |
4739 | support_scroll_xterm=yes |
4734 | support_utmp=yes |
4740 | support_utmp=yes |
4735 | support_wtmp=yes |
4741 | support_wtmp=yes |
4736 | support_xim=yes |
4742 | support_xim=yes |
4737 | support_pixbuf=yes |
4743 | support_pixbuf=yes |
|
|
4744 | support_startup_notification=yes |
4738 | support_afterimage=yes |
4745 | support_afterimage=yes |
4739 | support_xft=yes |
4746 | support_xft=yes |
4740 | support_unicode3=yes |
4747 | support_unicode3=yes |
4741 | support_combining=yes |
4748 | support_combining=yes |
4742 | #support_8bitctrls=yes |
4749 | #support_8bitctrls=yes |
… | |
… | |
4862 | |
4869 | |
4863 | # Check whether --enable-pixbuf was given. |
4870 | # Check whether --enable-pixbuf was given. |
4864 | if test "${enable_pixbuf+set}" = set; then : |
4871 | if test "${enable_pixbuf+set}" = set; then : |
4865 | enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
4872 | enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
4866 | support_pixbuf=$enableval |
4873 | support_pixbuf=$enableval |
|
|
4874 | fi |
|
|
4875 | fi |
|
|
4876 | |
|
|
4877 | |
|
|
4878 | # Check whether --enable-startup-notification was given. |
|
|
4879 | if test "${enable_startup_notification+set}" = set; then : |
|
|
4880 | enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4881 | support_startup_notification=$enableval |
4867 | fi |
4882 | fi |
4868 | fi |
4883 | fi |
4869 | |
4884 | |
4870 | |
4885 | |
4871 | # Check whether --enable-transparency was given. |
4886 | # Check whether --enable-transparency was given. |
… | |
… | |
6346 | fi |
6361 | fi |
6347 | |
6362 | |
6348 | |
6363 | |
6349 | |
6364 | |
6350 | |
6365 | |
|
|
6366 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6367 | STARTUP_NOTIFICATION_LIBS= |
|
|
6368 | |
|
|
6369 | if test x$support_startup_notification = xyes; then |
|
|
6370 | support_startup_notification=no |
|
|
6371 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
6372 | set dummy pkg-config; ac_word=$2 |
|
|
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
6374 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
6375 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
|
|
6376 | $as_echo_n "(cached) " >&6 |
|
|
6377 | else |
|
|
6378 | case $PKG_CONFIG in |
|
|
6379 | [\\/]* | ?:[\\/]*) |
|
|
6380 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
6381 | ;; |
|
|
6382 | *) |
|
|
6383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6384 | for as_dir in $PATH |
|
|
6385 | do |
|
|
6386 | IFS=$as_save_IFS |
|
|
6387 | test -z "$as_dir" && as_dir=. |
|
|
6388 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
6390 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
6391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6392 | break 2 |
|
|
6393 | fi |
|
|
6394 | done |
|
|
6395 | done |
|
|
6396 | IFS=$as_save_IFS |
|
|
6397 | |
|
|
6398 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
6399 | ;; |
|
|
6400 | esac |
|
|
6401 | fi |
|
|
6402 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
6403 | if test -n "$PKG_CONFIG"; then |
|
|
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
|
|
6405 | $as_echo "$PKG_CONFIG" >&6; } |
|
|
6406 | else |
|
|
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6408 | $as_echo "no" >&6; } |
|
|
6409 | fi |
|
|
6410 | |
|
|
6411 | |
|
|
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
|
|
6413 | $as_echo_n "checking for libstartup-notification... " >&6; } |
|
|
6414 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
|
|
6415 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
|
|
6416 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
|
|
6417 | support_startup_notification=yes |
|
|
6418 | fi |
|
|
6419 | |
|
|
6420 | if test x$support_startup_notification = xyes; then |
|
|
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6422 | $as_echo "ok" >&6; } |
|
|
6423 | |
|
|
6424 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6425 | |
|
|
6426 | else |
|
|
6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6428 | $as_echo "no" >&6; } |
|
|
6429 | fi |
|
|
6430 | fi |
|
|
6431 | |
|
|
6432 | |
|
|
6433 | |
|
|
6434 | |
6351 | AFTERIMAGE_CFLAGS= |
6435 | AFTERIMAGE_CFLAGS= |
6352 | AFTERIMAGE_LIBS= |
6436 | AFTERIMAGE_LIBS= |
6353 | AFTERIMAGE_VERSION= |
6437 | AFTERIMAGE_VERSION= |
6354 | |
6438 | |
6355 | if test x$support_afterimage = xyes; then |
6439 | if test x$support_afterimage = xyes; then |
… | |
… | |
6878 | |
6962 | |
6879 | fi |
6963 | fi |
6880 | |
6964 | |
6881 | |
6965 | |
6882 | |
6966 | |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5 |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
6884 | $as_echo_n "checking where utmp is located... " >&6; } |
6968 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
6885 | if ${pt_cv_path_utmp+:} false; then : |
6969 | if ${pt_cv_path_utmp+:} false; then : |
6886 | $as_echo_n "(cached) " >&6 |
6970 | $as_echo_n "(cached) " >&6 |
6887 | else |
6971 | else |
|
|
6972 | |
6888 | if test "$cross_compiling" = yes; then : |
6973 | if test "$cross_compiling" != yes; then |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
6890 | $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
6891 | else |
|
|
6892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6893 | /* end confdefs.h. */ |
|
|
6894 | #include <stdio.h> |
|
|
6895 | #include <stdlib.h> |
|
|
6896 | #include <sys/stat.h> |
|
|
6897 | |
|
|
6898 | #include <sys/types.h> |
|
|
6899 | #include <utmp.h> |
|
|
6900 | |
|
|
6901 | int main() |
|
|
6902 | { |
|
|
6903 | char **path, *list[] = { "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
6974 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
6904 | FILE *f = fopen("conftestval", "w"); |
6975 | if test -f "$file"; then |
6905 | if (!f) return 1; |
|
|
6906 | #ifdef UTMP_FILE |
|
|
6907 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
6908 | #elif defined(_PATH_UTMP) |
|
|
6909 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
6910 | #else |
|
|
6911 | for (path = list; *path; path++) { |
|
|
6912 | struct stat st; |
|
|
6913 | if (stat(*path, &st) == 0) { |
|
|
6914 | fprintf(f, "%s\n", *path); |
|
|
6915 | break; |
|
|
6916 | } |
|
|
6917 | } |
|
|
6918 | #endif |
|
|
6919 | return fclose(f) != 0; |
|
|
6920 | } |
|
|
6921 | _ACEOF |
|
|
6922 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6923 | pt_cv_path_utmp=`cat conftestval` |
|
|
6924 | else |
|
|
6925 | pt_cv_path_utmp= |
6976 | pt_cv_path_utmp=$file |
|
|
6977 | break |
|
|
6978 | fi |
|
|
6979 | done |
6926 | fi |
6980 | fi |
6927 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6928 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6929 | fi |
|
|
6930 | |
|
|
6931 | fi |
6981 | fi |
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
6933 | $as_echo "$pt_cv_path_utmp" >&6; } |
6983 | $as_echo "$pt_cv_path_utmp" >&6; } |
6934 | if test x$pt_cv_path_utmp != x; then |
6984 | if test x$pt_cv_path_utmp != x; then |
6935 | |
6985 | |
6936 | cat >>confdefs.h <<_ACEOF |
6986 | cat >>confdefs.h <<_ACEOF |
6937 | #define UTMP_FILE "$pt_cv_path_utmp" |
6987 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
6938 | _ACEOF |
6988 | _ACEOF |
6939 | |
6989 | |
|
|
6990 | elif test "$cross_compiling" = yes; then |
|
|
6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6992 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
6940 | fi |
6993 | fi |
6941 | |
6994 | |
6942 | |
6995 | |
6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5 |
6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
6944 | $as_echo_n "checking where wtmp is located... " >&6; } |
6997 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
6945 | if ${pt_cv_path_wtmp+:} false; then : |
6998 | if ${pt_cv_path_wtmp+:} false; then : |
6946 | $as_echo_n "(cached) " >&6 |
6999 | $as_echo_n "(cached) " >&6 |
6947 | else |
7000 | else |
|
|
7001 | |
6948 | if test "$cross_compiling" = yes; then : |
7002 | if test "$cross_compiling" != yes; then |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
6950 | $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
6951 | else |
|
|
6952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6953 | /* end confdefs.h. */ |
|
|
6954 | #include <stdio.h> |
|
|
6955 | #include <stdlib.h> |
|
|
6956 | #include <sys/stat.h> |
|
|
6957 | |
|
|
6958 | #include <sys/types.h> |
|
|
6959 | #ifdef HAVE_UTMP_H |
|
|
6960 | #include <utmp.h> |
|
|
6961 | #endif |
|
|
6962 | |
|
|
6963 | int main() |
|
|
6964 | { |
|
|
6965 | char **path, *list[] = { "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
7003 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
6966 | FILE *f = fopen("conftestval", "w"); |
7004 | if test -f "$file"; then |
6967 | if (!f) return 1; |
|
|
6968 | #ifdef WTMP_FILE |
|
|
6969 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
6970 | #elif defined(_PATH_WTMP) |
|
|
6971 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
6972 | #else |
|
|
6973 | for (path = list; *path; path++) { |
|
|
6974 | struct stat st; |
|
|
6975 | if (stat(*path, &st) == 0) { |
|
|
6976 | fprintf(f, "%s\n", *path); |
|
|
6977 | break; |
|
|
6978 | } |
|
|
6979 | } |
|
|
6980 | #endif |
|
|
6981 | return fclose(f) != 0; |
|
|
6982 | } |
|
|
6983 | _ACEOF |
|
|
6984 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6985 | pt_cv_path_wtmp=`cat conftestval` |
|
|
6986 | else |
|
|
6987 | pt_cv_path_wtmp= |
7005 | pt_cv_path_wtmp=$file |
|
|
7006 | break |
|
|
7007 | fi |
|
|
7008 | done |
6988 | fi |
7009 | fi |
6989 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6990 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6991 | fi |
|
|
6992 | |
|
|
6993 | fi |
7010 | fi |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
6995 | $as_echo "$pt_cv_path_wtmp" >&6; } |
7012 | $as_echo "$pt_cv_path_wtmp" >&6; } |
6996 | if test x$pt_cv_path_wtmp != x; then |
7013 | if test x$pt_cv_path_wtmp != x; then |
6997 | |
7014 | |
6998 | cat >>confdefs.h <<_ACEOF |
7015 | cat >>confdefs.h <<_ACEOF |
6999 | #define WTMP_FILE "$pt_cv_path_wtmp" |
7016 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
7000 | _ACEOF |
7017 | _ACEOF |
7001 | |
7018 | |
|
|
7019 | elif test "$cross_compiling" = yes; then |
|
|
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7021 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
7002 | fi |
7022 | fi |
7003 | |
7023 | |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5 |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
7005 | $as_echo_n "checking where wtmpx is located... " >&6; } |
7025 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
7006 | if ${pt_cv_path_wtmpx+:} false; then : |
7026 | if ${pt_cv_path_wtmpx+:} false; then : |
7007 | $as_echo_n "(cached) " >&6 |
7027 | $as_echo_n "(cached) " >&6 |
7008 | else |
7028 | else |
|
|
7029 | |
7009 | if test "$cross_compiling" = yes; then : |
7030 | if test "$cross_compiling" != yes; then |
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
7031 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
7011 | $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
7032 | if test -f "$file"; then |
7012 | else |
|
|
7013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7014 | /* end confdefs.h. */ |
|
|
7015 | #include <stdio.h> |
|
|
7016 | #include <stdlib.h> |
|
|
7017 | #include <sys/stat.h> |
|
|
7018 | |
|
|
7019 | #ifdef HAVE_UTMPX_H |
|
|
7020 | #include <utmpx.h> |
|
|
7021 | #endif |
|
|
7022 | |
|
|
7023 | int main() |
|
|
7024 | { |
|
|
7025 | char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
7026 | FILE *f = fopen("conftestval", "w"); |
|
|
7027 | if (!f) return 1; |
|
|
7028 | #ifdef WTMPX_FILE |
|
|
7029 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
7030 | #elif defined(_PATH_WTMPX) |
|
|
7031 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
7032 | #else |
|
|
7033 | for (path = list; *path; path++) { |
|
|
7034 | struct stat st; |
|
|
7035 | if (stat(*path, &st) == 0) { |
|
|
7036 | fprintf(f, "%s\n", *path); |
|
|
7037 | break; |
|
|
7038 | } |
|
|
7039 | } |
|
|
7040 | #endif |
|
|
7041 | return fclose(f) != 0; |
|
|
7042 | } |
|
|
7043 | _ACEOF |
|
|
7044 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7045 | pt_cv_path_wtmpx=`cat conftestval` |
|
|
7046 | else |
|
|
7047 | pt_cv_path_wtmpx= |
7033 | pt_cv_path_wtmpx=$file |
|
|
7034 | break |
|
|
7035 | fi |
|
|
7036 | done |
7048 | fi |
7037 | fi |
7049 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7050 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7051 | fi |
|
|
7052 | |
|
|
7053 | fi |
7038 | fi |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7055 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
7040 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
7056 | if test x$pt_cv_path_wtmpx != x; then |
7041 | if test x$pt_cv_path_wtmpx != x; then |
7057 | |
7042 | |
7058 | cat >>confdefs.h <<_ACEOF |
7043 | cat >>confdefs.h <<_ACEOF |
7059 | #define WTMPX_FILE "$pt_cv_path_wtmpx" |
7044 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
7060 | _ACEOF |
7045 | _ACEOF |
7061 | |
7046 | |
|
|
7047 | elif test "$cross_compiling" = yes; then |
|
|
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7049 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
7062 | fi |
7050 | fi |
7063 | |
7051 | |
7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5 |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
7065 | $as_echo_n "checking where lastlog is located... " >&6; } |
7053 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
7066 | if ${pt_cv_path_lastlog+:} false; then : |
7054 | if ${pt_cv_path_lastlog+:} false; then : |
7067 | $as_echo_n "(cached) " >&6 |
7055 | $as_echo_n "(cached) " >&6 |
7068 | else |
7056 | else |
|
|
7057 | |
7069 | if test "$cross_compiling" = yes; then : |
7058 | if test "$cross_compiling" != yes; then |
7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
7059 | for file in "/var/log/lastlog"; do |
7071 | $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
7060 | if test -f "$file"; then |
7072 | else |
|
|
7073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7074 | /* end confdefs.h. */ |
|
|
7075 | #include <stdio.h> |
|
|
7076 | #include <stdlib.h> |
|
|
7077 | #include <sys/stat.h> |
|
|
7078 | |
|
|
7079 | #include <sys/types.h> |
|
|
7080 | #ifdef HAVE_UTMP_H |
|
|
7081 | #include <utmp.h> |
|
|
7082 | #endif |
|
|
7083 | #ifdef HAVE_LASTLOG_H |
|
|
7084 | #include <lastlog.h> |
|
|
7085 | #endif |
|
|
7086 | |
|
|
7087 | int main() |
|
|
7088 | { |
|
|
7089 | char **path, *list[] = { "/var/log/lastlog", NULL }; |
|
|
7090 | FILE *f = fopen("conftestval", "w"); |
|
|
7091 | if (!f) return 1; |
|
|
7092 | #ifdef LASTLOG_FILE |
|
|
7093 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
7094 | #elif defined(_PATH_LASTLOG) |
|
|
7095 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
7096 | #else |
|
|
7097 | for (path = list; *path; path++) { |
|
|
7098 | struct stat st; |
|
|
7099 | if (stat(*path, &st) == 0) { |
|
|
7100 | fprintf(f, "%s\n", *path); |
|
|
7101 | break; |
|
|
7102 | } |
|
|
7103 | } |
|
|
7104 | #endif |
|
|
7105 | return fclose(f) != 0; |
|
|
7106 | } |
|
|
7107 | _ACEOF |
|
|
7108 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7109 | pt_cv_path_lastlog=`cat conftestval` |
|
|
7110 | else |
|
|
7111 | pt_cv_path_lastlog= |
7061 | pt_cv_path_lastlog=$file |
|
|
7062 | break |
|
|
7063 | fi |
|
|
7064 | done |
7112 | fi |
7065 | fi |
7113 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7114 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7115 | fi |
|
|
7116 | |
|
|
7117 | fi |
7066 | fi |
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7119 | $as_echo "$pt_cv_path_lastlog" >&6; } |
7068 | $as_echo "$pt_cv_path_lastlog" >&6; } |
7120 | if test x$pt_cv_path_lastlog != x; then |
7069 | if test x$pt_cv_path_lastlog != x; then |
7121 | |
7070 | |
7122 | cat >>confdefs.h <<_ACEOF |
7071 | cat >>confdefs.h <<_ACEOF |
7123 | #define LASTLOG_FILE "$pt_cv_path_lastlog" |
7072 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
7124 | _ACEOF |
7073 | _ACEOF |
7125 | |
7074 | |
|
|
7075 | elif test "$cross_compiling" = yes; then |
|
|
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7077 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
7126 | fi |
7078 | fi |
7127 | |
7079 | |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5 |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
7129 | $as_echo_n "checking where lastlogx is located... " >&6; } |
7081 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
7130 | if ${pt_cv_path_lastlogx+:} false; then : |
7082 | if ${pt_cv_path_lastlogx+:} false; then : |
7131 | $as_echo_n "(cached) " >&6 |
7083 | $as_echo_n "(cached) " >&6 |
7132 | else |
7084 | else |
|
|
7085 | |
7133 | if test "$cross_compiling" = yes; then : |
7086 | if test "$cross_compiling" != yes; then |
7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
7087 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
7135 | $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
7088 | if test -f "$file"; then |
7136 | else |
|
|
7137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7138 | /* end confdefs.h. */ |
|
|
7139 | #include <stdio.h> |
|
|
7140 | #include <stdlib.h> |
|
|
7141 | #include <sys/stat.h> |
|
|
7142 | |
|
|
7143 | #ifdef HAVE_UTMPX_H |
|
|
7144 | #include <utmpx.h> |
|
|
7145 | #endif |
|
|
7146 | |
|
|
7147 | int main() |
|
|
7148 | { |
|
|
7149 | char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
7150 | FILE *f = fopen("conftestval", "w"); |
|
|
7151 | if (!f) return 1; |
|
|
7152 | #ifdef LASTLOGX_FILE |
|
|
7153 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
7154 | #elif defined(_PATH_LASTLOGX) |
|
|
7155 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
7156 | #else |
|
|
7157 | for (path = list; *path; path++) { |
|
|
7158 | struct stat st; |
|
|
7159 | if (stat(*path, &st) == 0) { |
|
|
7160 | fprintf(f, "%s\n", *path); |
|
|
7161 | break; |
|
|
7162 | } |
|
|
7163 | } |
|
|
7164 | #endif |
|
|
7165 | return fclose(f) != 0; |
|
|
7166 | } |
|
|
7167 | _ACEOF |
|
|
7168 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7169 | pt_cv_path_lastlogx=`cat conftestval` |
|
|
7170 | else |
|
|
7171 | pt_cv_path_lastlogx= |
7089 | pt_cv_path_lastlogx=$file |
|
|
7090 | break |
|
|
7091 | fi |
|
|
7092 | done |
7172 | fi |
7093 | fi |
7173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7174 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7175 | fi |
|
|
7176 | |
|
|
7177 | fi |
7094 | fi |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7179 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
7096 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
7180 | if test x$pt_cv_path_lastlogx != x; then |
7097 | if test x$pt_cv_path_lastlogx != x; then |
7181 | |
7098 | |
7182 | cat >>confdefs.h <<_ACEOF |
7099 | cat >>confdefs.h <<_ACEOF |
7183 | #define LASTLOGX_FILE "$pt_cv_path_lastlogx" |
7100 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
7184 | _ACEOF |
7101 | _ACEOF |
7185 | |
7102 | |
|
|
7103 | elif test "$cross_compiling" = yes; then |
|
|
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7105 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
7186 | fi |
7106 | fi |
7187 | |
7107 | |
7188 | |
7108 | |
7189 | |
7109 | |
7190 | |
7110 | |
… | |
… | |
7474 | |
7394 | |
7475 | fi |
7395 | fi |
7476 | done |
7396 | done |
7477 | |
7397 | |
7478 | |
7398 | |
7479 | have_clone=no |
|
|
7480 | |
|
|
7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
|
|
7482 | $as_echo_n "checking for /dev/ptc... " >&6; } |
|
|
7483 | if test -e /dev/ptc; then |
|
|
7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7485 | $as_echo "yes" >&6; } |
|
|
7486 | |
|
|
7487 | $as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h |
|
|
7488 | |
|
|
7489 | have_clone=yes |
|
|
7490 | else |
|
|
7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7492 | $as_echo "no" >&6; } |
|
|
7493 | fi |
|
|
7494 | |
|
|
7495 | case $host in |
|
|
7496 | *-*-cygwin*) |
|
|
7497 | have_clone=yes |
|
|
7498 | |
|
|
7499 | $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h |
|
|
7500 | |
|
|
7501 | ;; |
|
|
7502 | *) |
|
|
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
|
|
7504 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
|
|
7505 | if test -e /dev/ptmx; then |
|
|
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7507 | $as_echo "yes" >&6; } |
|
|
7508 | |
|
|
7509 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
|
|
7510 | |
|
|
7511 | |
|
|
7512 | $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h |
|
|
7513 | |
|
|
7514 | have_clone=yes |
|
|
7515 | else |
|
|
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7517 | $as_echo "no" >&6; } |
|
|
7518 | fi |
|
|
7519 | ;; |
|
|
7520 | esac |
|
|
7521 | |
|
|
7522 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
7524 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
7400 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
7525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7526 | /* end confdefs.h. */ |
7402 | /* end confdefs.h. */ |
7527 | #include <stdlib.h> |
7403 | #include <stdlib.h> |
7528 | int |
7404 | int |
7529 | main () |
7405 | main () |
7530 | { |
7406 | { |
… | |
… | |
7536 | if ac_fn_cxx_try_link "$LINENO"; then : |
7412 | if ac_fn_cxx_try_link "$LINENO"; then : |
7537 | unix98_pty=yes |
7413 | unix98_pty=yes |
7538 | |
7414 | |
7539 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
7415 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
7540 | |
7416 | |
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7542 | $as_echo "yes" >&6; } |
7418 | $as_echo "yes" >&6; } |
7543 | else |
7419 | else |
7544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7545 | $as_echo "no" >&6; } |
7421 | $as_echo "no" >&6; } |
7546 | fi |
7422 | fi |
7547 | rm -f core conftest.err conftest.$ac_objext \ |
7423 | rm -f core conftest.err conftest.$ac_objext \ |
7548 | conftest$ac_exeext conftest.$ac_ext |
7424 | conftest$ac_exeext conftest.$ac_ext |
7549 | fi |
|
|
7550 | |
7425 | |
7551 | if test -z "$unix98_pty"; then |
7426 | if test -z "$unix98_pty"; then |
7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
7553 | $as_echo_n "checking for library containing openpty... " >&6; } |
7428 | $as_echo_n "checking for library containing openpty... " >&6; } |
7554 | if ${ac_cv_search_openpty+:} false; then : |
7429 | if ${ac_cv_search_openpty+:} false; then : |