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

Comparing rxvt-unicode/configure (file contents):
Revision 1.65 by root, Wed Jan 11 00:59:58 2006 UTC vs.
Revision 1.66 by root, Wed Jan 11 19:55:33 2006 UTC

10183 10183
10184 10184
10185 10185
10186 10186
10187 10187
10188
10189for ac_func in \ 10188for ac_func in \
10190 atexit \ 10189 atexit \
10191 revoke \ 10190 revoke \
10192 unsetenv \ 10191 unsetenv \
10193 setutent \ 10192 setutent \
10194 seteuid \ 10193 seteuid \
10195 setreuid \ 10194 setreuid \
10196 setsid \ 10195 setsid \
10197 setpgrp \ 10196 setpgrp \
10198 setpgid \ 10197 setpgid \
10199 openpty \
10200 _getpty \ 10198 _getpty \
10201 grantpt \ 10199 grantpt \
10202 unlockpt \ 10200 unlockpt \
10203 isastream \ 10201 isastream \
10204 on_exit \ 10202 on_exit \
12042rm -f conftest.err conftest.$ac_objext \ 12040rm -f conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext 12041 conftest$ac_exeext conftest.$ac_ext
12044fi 12042fi
12045echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 12043echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
12046echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 12044echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
12047if test x$rxvt_cv_func_getpt = xyes; then 12045if test x$rxvt_cv_func_getpt = xno; then
12048 12046 echo "$as_me:$LINENO: checking for openpty" >&5
12047echo $ECHO_N "checking for openpty... $ECHO_C" >&6
12048if test "${ac_cv_func_openpty+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12049cat >>confdefs.h <<\_ACEOF 12055cat >>conftest.$ac_ext <<_ACEOF
12050#define HAVE_GETPT 1 12056/* end confdefs.h. */
12057/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059#define openpty innocuous_openpty
12060
12061/* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char openpty (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12065
12066#ifdef __STDC__
12067# include <limits.h>
12068#else
12069# include <assert.h>
12070#endif
12071
12072#undef openpty
12073
12074/* Override any gcc2 internal prototype to avoid an error. */
12075#ifdef __cplusplus
12076extern "C"
12077{
12078#endif
12079/* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081char openpty ();
12082/* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085#if defined (__stub_openpty) || defined (__stub___openpty)
12086choke me
12087#else
12088char (*f) () = openpty;
12089#endif
12090#ifdef __cplusplus
12091}
12092#endif
12093
12094int
12095main ()
12096{
12097return f != openpty;
12098 ;
12099 return 0;
12100}
12051_ACEOF 12101_ACEOF
12102rm -f conftest.$ac_objext conftest$ac_exeext
12103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_func_openpty=yes
12124else
12125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
12128ac_cv_func_openpty=no
12129fi
12130rm -f conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132fi
12133echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12134echo "${ECHO_T}$ac_cv_func_openpty" >&6
12135if test $ac_cv_func_openpty = yes; then
12136 :
12137else
12138 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12139echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12140if test "${ac_cv_lib_util_openpty+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 ac_check_lib_save_LIBS=$LIBS
12144LIBS="-lutil $LIBS"
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */
12151
12152/* Override any gcc2 internal prototype to avoid an error. */
12153#ifdef __cplusplus
12154extern "C"
12155#endif
12156/* We use char because int might match the return type of a gcc2
12157 builtin and then its argument prototype would still apply. */
12158char openpty ();
12159int
12160main ()
12161{
12162openpty ();
12163 ;
12164 return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext conftest$ac_exeext
12168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169 (eval $ac_link) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_util_openpty=yes
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193ac_cv_lib_util_openpty=no
12194fi
12195rm -f conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197LIBS=$ac_check_lib_save_LIBS
12198fi
12199echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12200echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12201if test $ac_cv_lib_util_openpty = yes; then
12202 LIBS="$LIBS -lutil"
12203fi
12204
12205fi
12052 12206
12053fi 12207fi
12054 12208
12055echo "$as_me:$LINENO: checking for pty/tty type" >&5 12209echo "$as_me:$LINENO: checking for pty/tty type" >&5
12056echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12210echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12057if test "${rxvt_cv_ptys+set}" = set; then 12211if test "${rxvt_cv_ptys+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6 12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else 12213else
12060 if test x$ac_cv_func_openpty = xyes; then 12214 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12061 rxvt_cv_ptys=OPENPTY 12215 rxvt_cv_ptys=OPENPTY
12062 else if test x$ac_cv_func__getpty = xyes; then 12216 else if test x$ac_cv_func__getpty = xyes; then
12063 rxvt_cv_ptys=SGI4 12217 rxvt_cv_ptys=SGI4
12064 else if test -c /dev/ttyp20; then 12218 else if test -c /dev/ttyp20; then
12065 rxvt_cv_ptys=SCO 12219 rxvt_cv_ptys=SCO
12819 12973
12820 12974
12821 12975
12822 12976
12823 12977
12824if text x$support_perl = xyes; then 12978if test x$support_perl = xyes; then
12825 support_frills=yes 12979 support_frills=yes
12826fi 12980fi
12827 12981
12828 12982
12829CFLAGS=${CFLAGS--O} 12983CFLAGS=${CFLAGS--O}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines