aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nxssh/files/autotools.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/nxssh/files/autotools.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/nxssh/files/autotools.patch')
-rw-r--r--recipes/nxssh/files/autotools.patch91
1 files changed, 91 insertions, 0 deletions
diff --git a/recipes/nxssh/files/autotools.patch b/recipes/nxssh/files/autotools.patch
new file mode 100644
index 0000000000..3cc436a323
--- /dev/null
+++ b/recipes/nxssh/files/autotools.patch
@@ -0,0 +1,91 @@
+Index: nxssh/m4/openssh.m4
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ nxssh/m4/openssh.m4 2008-11-27 23:40:04.338830066 +0100
+@@ -0,0 +1,86 @@
++dnl $Id: aclocal.m4,v 1.6 2005/09/19 16:33:39 tim Exp $
++dnl
++dnl OpenSSH-specific autoconf macros
++dnl
++
++
++dnl OSSH_CHECK_HEADER_FOR_FIELD(field, header, symbol)
++dnl Does AC_EGREP_HEADER on 'header' for the string 'field'
++dnl If found, set 'symbol' to be defined. Cache the result.
++dnl TODO: This is not foolproof, better to compile and read from there
++AC_DEFUN(OSSH_CHECK_HEADER_FOR_FIELD, [
++# look for field '$1' in header '$2'
++ dnl This strips characters illegal to m4 from the header filename
++ ossh_safe=`echo "$2" | sed 'y%./+-%__p_%'`
++ dnl
++ ossh_varname="ossh_cv_$ossh_safe""_has_"$1
++ AC_MSG_CHECKING(for $1 field in $2)
++ AC_CACHE_VAL($ossh_varname, [
++ AC_EGREP_HEADER($1, $2, [ dnl
++ eval "$ossh_varname=yes" dnl
++ ], [ dnl
++ eval "$ossh_varname=no" dnl
++ ]) dnl
++ ])
++ ossh_result=`eval 'echo $'"$ossh_varname"`
++ if test -n "`echo $ossh_varname`"; then
++ AC_MSG_RESULT($ossh_result)
++ if test "x$ossh_result" = "xyes"; then
++ AC_DEFINE($3, 1, [Define if you have $1 in $2])
++ fi
++ else
++ AC_MSG_RESULT(no)
++ fi
++])
++
++dnl OSSH_PATH_ENTROPY_PROG(variablename, command):
++dnl Tidiness function, sets 'undef' if not found, and does the AC_SUBST
++AC_DEFUN(OSSH_PATH_ENTROPY_PROG, [
++ AC_PATH_PROG($1, $2)
++ if test -z "[$]$1" ; then
++ $1="undef"
++ fi
++ AC_SUBST($1)
++])
++
++dnl Check for socklen_t: historically on BSD it is an int, and in
++dnl POSIX 1g it is a type of its own, but some platforms use different
++dnl types for the argument to getsockopt, getpeername, etc. So we
++dnl have to test to find something that will work.
++AC_DEFUN([TYPE_SOCKLEN_T],
++[
++ AC_CHECK_TYPE([socklen_t], ,[
++ AC_MSG_CHECKING([for socklen_t equivalent])
++ AC_CACHE_VAL([curl_cv_socklen_t_equiv],
++ [
++ # Systems have either "struct sockaddr *" or
++ # "void *" as the second argument to getpeername
++ curl_cv_socklen_t_equiv=
++ for arg2 in "struct sockaddr" void; do
++ for t in int size_t unsigned long "unsigned long"; do
++ AC_TRY_COMPILE([
++ #include <sys/types.h>
++ #include <sys/socket.h>
++
++ int getpeername (int, $arg2 *, $t *);
++ ],[
++ $t len;
++ getpeername(0,0,&len);
++ ],[
++ curl_cv_socklen_t_equiv="$t"
++ break
++ ])
++ done
++ done
++
++ if test "x$curl_cv_socklen_t_equiv" = x; then
++ AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
++ fi
++ ])
++ AC_MSG_RESULT($curl_cv_socklen_t_equiv)
++ AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
++ [type to use in place of socklen_t if not defined])],
++ [#include <sys/types.h>
++#include <sys/socket.h>])
++])
++