source: freewrt/package/openssh/patches/cross-compile.patch@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.8 KB
  • openssh-4.0p1

    diff -Nur openssh-4.0p1/configure openssh-4.0p1.patched/configure
    old new  
    55245524*-*-linux*)
    55255525        no_dev_ptmx=1
    55265526        check_for_libcrypt_later=1
    5527         check_for_openpty_ctty_bug=1
     5527        check_for_openpty_ctty_bug=0
    55285528        cat >>confdefs.h <<\_ACEOF
    55295529#define DONT_TRY_OTHER_AF 1
    55305530_ACEOF
     
    1281012810fi
    1281112811fi
    1281212812
    12813 if test ! -z "$check_for_openpty_ctty_bug"; then
    12814         echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
    12815 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
    12816         if test "$cross_compiling" = yes; then
    12817   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    12818 See \`config.log' for more details." >&5
    12819 echo "$as_me: error: cannot run test program while cross compiling
    12820 See \`config.log' for more details." >&2;}
    12821    { (exit 1); exit 1; }; }
    12822 else
    12823   cat >conftest.$ac_ext <<_ACEOF
    12824 /* confdefs.h.  */
    12825 _ACEOF
    12826 cat confdefs.h >>conftest.$ac_ext
    12827 cat >>conftest.$ac_ext <<_ACEOF
    12828 /* end confdefs.h.  */
    12829 
    12830 #include <stdio.h>
    12831 #include <sys/fcntl.h>
    12832 #include <sys/types.h>
    12833 #include <sys/wait.h>
    12834 
    12835 int
    12836 main()
    12837 {
    12838         pid_t pid;
    12839         int fd, ptyfd, ttyfd, status;
    12840 
    12841         pid = fork();
    12842         if (pid < 0) {          /* failed */
    12843                 exit(1);
    12844         } else if (pid > 0) {   /* parent */
    12845                 waitpid(pid, &status, 0);
    12846                 if (WIFEXITED(status))
    12847                         exit(WEXITSTATUS(status));
    12848                 else
    12849                         exit(2);
    12850         } else {                /* child */
    12851                 close(0); close(1); close(2);
    12852                 setsid();
    12853                 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
    12854                 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
    12855                 if (fd >= 0)
    12856                         exit(3);        /* Acquired ctty: broken */
    12857                 else
    12858                         exit(0);        /* Did not acquire ctty: OK */
    12859         }
    12860 }
    12861 
    12862 _ACEOF
    12863 rm -f conftest$ac_exeext
    12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12865   (eval $ac_link) 2>&5
    12866   ac_status=$?
    12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    12869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12870   (eval $ac_try) 2>&5
    12871   ac_status=$?
    12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12873   (exit $ac_status); }; }; then
    12874 
    12875                         echo "$as_me:$LINENO: result: yes" >&5
    12876 echo "${ECHO_T}yes" >&6
    12877 
    12878 else
    12879   echo "$as_me: program exited with status $ac_status" >&5
    12880 echo "$as_me: failed program was:" >&5
    12881 sed 's/^/| /' conftest.$ac_ext >&5
    12882 
    12883 ( exit $ac_status )
    12884 
    12885                         echo "$as_me:$LINENO: result: no" >&5
    12886 echo "${ECHO_T}no" >&6
    12887                         cat >>confdefs.h <<\_ACEOF
    12888 #define SSHD_ACQUIRES_CTTY 1
    12889 _ACEOF
    12890 
    12891 
    12892 
    12893 fi
    12894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    12895 fi
    12896 fi
    1289712813
    1289812814if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
    1289912815        echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
Note: See TracBrowser for help on using the repository browser.