ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.145 by sf-exg, Wed Jun 1 10:53:07 2011 UTC vs.
Revision 1.149 by sf-exg, Sun Nov 27 15:18:44 2011 UTC

609PERL 609PERL
610XFT_CONFIG 610XFT_CONFIG
611AFTERIMAGE_LIBS 611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS 612AFTERIMAGE_CFLAGS
613afterimage_config 613afterimage_config
614STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS
614PIXBUF_LIBS 616PIXBUF_LIBS
615PIXBUF_CFLAGS 617PIXBUF_CFLAGS
616PKG_CONFIG 618PKG_CONFIG
617X_EXTRA_LIBS 619X_EXTRA_LIBS
618X_LIBS 620X_LIBS
699enable_xft 701enable_xft
700enable_font_styles 702enable_font_styles
701enable_afterimage 703enable_afterimage
702with_afterimage_config 704with_afterimage_config
703enable_pixbuf 705enable_pixbuf
706enable_startup_notification
704enable_transparency 707enable_transparency
705enable_fading 708enable_fading
706enable_rxvt_scroll 709enable_rxvt_scroll
707enable_next_scroll 710enable_next_scroll
708enable_xterm_scroll 711enable_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
4673support_scroll_rxvt=yes 4677support_scroll_rxvt=yes
4674support_scroll_next=yes 4678support_scroll_next=yes
4675support_scroll_xterm=yes 4679support_scroll_xterm=yes
4676support_xim=yes 4680support_xim=yes
4677support_pixbuf=yes 4681support_pixbuf=yes
4682support_startup_notification=yes
4678support_afterimage=yes 4683support_afterimage=yes
4679support_xft=yes 4684support_xft=yes
4680support_unicode3=no 4685support_unicode3=no
4681support_combining=yes 4686support_combining=yes
4682support_8bitctrls=no 4687support_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.
4864if test "${enable_pixbuf+set}" = set; then : 4871if 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
4875fi
4876
4877
4878# Check whether --enable-startup-notification was given.
4879if 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
4868fi 4883fi
4869 4884
4870 4885
4871# Check whether --enable-transparency was given. 4886# Check whether --enable-transparency was given.
6346fi 6361fi
6347 6362
6348 6363
6349 6364
6350 6365
6366STARTUP_NOTIFICATION_CFLAGS=
6367STARTUP_NOTIFICATION_LIBS=
6368
6369if 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.
6372set 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; }
6375if ${ac_cv_path_PKG_CONFIG+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377else
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
6384for as_dir in $PATH
6385do
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
6394done
6395 done
6396IFS=$as_save_IFS
6397
6398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6399 ;;
6400esac
6401fi
6402PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6403if test -n "$PKG_CONFIG"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6405$as_echo "$PKG_CONFIG" >&6; }
6406else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
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
6430fi
6431
6432
6433
6434
6351AFTERIMAGE_CFLAGS= 6435AFTERIMAGE_CFLAGS=
6352AFTERIMAGE_LIBS= 6436AFTERIMAGE_LIBS=
6353AFTERIMAGE_VERSION= 6437AFTERIMAGE_VERSION=
6354 6438
6355if test x$support_afterimage = xyes; then 6439if test x$support_afterimage = xyes; then
6878 6962
6879fi 6963fi
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; }
6885if ${pt_cv_path_utmp+:} false; then : 6969if ${pt_cv_path_utmp+:} false; then :
6886 $as_echo_n "(cached) " >&6 6970 $as_echo_n "(cached) " >&6
6887else 6971else
6972
6888 if test "$cross_compiling" = yes; then : 6973if 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;}
6891else
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
6901int 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
6922if ac_fn_cxx_try_run "$LINENO"; then :
6923 pt_cv_path_utmp=`cat conftestval`
6924else
6925 pt_cv_path_utmp= 6976 pt_cv_path_utmp=$file
6977 break
6978 fi
6979 done
6926fi 6980fi
6927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6928 conftest.$ac_objext conftest.beam conftest.$ac_ext
6929fi
6930
6931fi 6981fi
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; }
6934if test x$pt_cv_path_utmp != x; then 6984if test x$pt_cv_path_utmp != x; then
6935 6985
6936cat >>confdefs.h <<_ACEOF 6986cat >>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
6990elif 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;}
6940fi 6993fi
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; }
6945if ${pt_cv_path_wtmp+:} false; then : 6998if ${pt_cv_path_wtmp+:} false; then :
6946 $as_echo_n "(cached) " >&6 6999 $as_echo_n "(cached) " >&6
6947else 7000else
7001
6948 if test "$cross_compiling" = yes; then : 7002if 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;}
6951else
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
6963int 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
6984if ac_fn_cxx_try_run "$LINENO"; then :
6985 pt_cv_path_wtmp=`cat conftestval`
6986else
6987 pt_cv_path_wtmp= 7005 pt_cv_path_wtmp=$file
7006 break
7007 fi
7008 done
6988fi 7009fi
6989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6990 conftest.$ac_objext conftest.beam conftest.$ac_ext
6991fi
6992
6993fi 7010fi
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; }
6996if test x$pt_cv_path_wtmp != x; then 7013if test x$pt_cv_path_wtmp != x; then
6997 7014
6998cat >>confdefs.h <<_ACEOF 7015cat >>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
7019elif 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;}
7002fi 7022fi
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; }
7006if ${pt_cv_path_wtmpx+:} false; then : 7026if ${pt_cv_path_wtmpx+:} false; then :
7007 $as_echo_n "(cached) " >&6 7027 $as_echo_n "(cached) " >&6
7008else 7028else
7029
7009 if test "$cross_compiling" = yes; then : 7030if 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
7012else
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
7023int 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
7044if ac_fn_cxx_try_run "$LINENO"; then :
7045 pt_cv_path_wtmpx=`cat conftestval`
7046else
7047 pt_cv_path_wtmpx= 7033 pt_cv_path_wtmpx=$file
7034 break
7035 fi
7036 done
7048fi 7037fi
7049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7050 conftest.$ac_objext conftest.beam conftest.$ac_ext
7051fi
7052
7053fi 7038fi
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; }
7056if test x$pt_cv_path_wtmpx != x; then 7041if test x$pt_cv_path_wtmpx != x; then
7057 7042
7058cat >>confdefs.h <<_ACEOF 7043cat >>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
7047elif 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;}
7062fi 7050fi
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; }
7066if ${pt_cv_path_lastlog+:} false; then : 7054if ${pt_cv_path_lastlog+:} false; then :
7067 $as_echo_n "(cached) " >&6 7055 $as_echo_n "(cached) " >&6
7068else 7056else
7057
7069 if test "$cross_compiling" = yes; then : 7058if 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
7072else
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
7087int 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
7108if ac_fn_cxx_try_run "$LINENO"; then :
7109 pt_cv_path_lastlog=`cat conftestval`
7110else
7111 pt_cv_path_lastlog= 7061 pt_cv_path_lastlog=$file
7062 break
7063 fi
7064 done
7112fi 7065fi
7113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7114 conftest.$ac_objext conftest.beam conftest.$ac_ext
7115fi
7116
7117fi 7066fi
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; }
7120if test x$pt_cv_path_lastlog != x; then 7069if test x$pt_cv_path_lastlog != x; then
7121 7070
7122cat >>confdefs.h <<_ACEOF 7071cat >>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
7075elif 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;}
7126fi 7078fi
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; }
7130if ${pt_cv_path_lastlogx+:} false; then : 7082if ${pt_cv_path_lastlogx+:} false; then :
7131 $as_echo_n "(cached) " >&6 7083 $as_echo_n "(cached) " >&6
7132else 7084else
7085
7133 if test "$cross_compiling" = yes; then : 7086if 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
7136else
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
7147int 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
7168if ac_fn_cxx_try_run "$LINENO"; then :
7169 pt_cv_path_lastlogx=`cat conftestval`
7170else
7171 pt_cv_path_lastlogx= 7089 pt_cv_path_lastlogx=$file
7090 break
7091 fi
7092 done
7172fi 7093fi
7173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7174 conftest.$ac_objext conftest.beam conftest.$ac_ext
7175fi
7176
7177fi 7094fi
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; }
7180if test x$pt_cv_path_lastlogx != x; then 7097if test x$pt_cv_path_lastlogx != x; then
7181 7098
7182cat >>confdefs.h <<_ACEOF 7099cat >>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
7103elif 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;}
7186fi 7106fi
7187 7107
7188 7108
7189 7109
7190 7110
7474 7394
7475fi 7395fi
7476done 7396done
7477 7397
7478 7398
7479have_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; }
7483if 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
7490else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495case $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 ;;
7520esac
7521
7522if 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 7401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h. */ 7402/* end confdefs.h. */
7527#include <stdlib.h> 7403#include <stdlib.h>
7528int 7404int
7529main () 7405main ()
7530{ 7406{
7536if ac_fn_cxx_try_link "$LINENO"; then : 7412if 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; }
7543else 7419else
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; }
7546fi 7422fi
7547rm -f core conftest.err conftest.$ac_objext \ 7423rm -f core conftest.err conftest.$ac_objext \
7548 conftest$ac_exeext conftest.$ac_ext 7424 conftest$ac_exeext conftest.$ac_ext
7549fi
7550 7425
7551if test -z "$unix98_pty"; then 7426if 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; }
7554if ${ac_cv_search_openpty+:} false; then : 7429if ${ac_cv_search_openpty+:} false; then :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines