Bugzilla – Attachment 977 Details for
Bug 1097
Cross-compile fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace AC_TRY_RUN with AC_COMPILE_IFELSE
openssh-crosscompile.patch (text/plain), 3.75 KB, created by
Darren Tucker
on 2005-09-30 11:50:48 AEST
(
hide
)
Description:
Replace AC_TRY_RUN with AC_COMPILE_IFELSE
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2005-09-30 11:50:48 AEST
Size:
3.75 KB
patch
obsolete
>Index: configure.ac >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v >retrieving revision 1.296 >diff -u -p -r1.296 configure.ac >--- configure.ac 22 Sep 2005 10:19:54 -0000 1.296 >+++ configure.ac 29 Sep 2005 09:40:26 -0000 >@@ -769,8 +769,8 @@ AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADER > ac_cv_have_broken_dirname, [ > save_LIBS="$LIBS" > LIBS="$LIBS -lgen" >- AC_TRY_RUN( >- [ >+ AC_RUN_IFELSE( >+ [AC_LANG_SOURCE([[ > #include <libgen.h> > #include <string.h> > >@@ -785,9 +785,10 @@ int main(int argc, char **argv) { > exit(0); > } > } >- ], >+ ]])], >+ [ ac_cv_have_broken_dirname="no" ], >+ [ ac_cv_have_broken_dirname="yes" ], > [ ac_cv_have_broken_dirname="no" ], >- [ ac_cv_have_broken_dirname="yes" ] > ) > LIBS="$save_LIBS" > ]) >@@ -1002,10 +1003,12 @@ AC_ARG_WITH(skey, > SKEY_MSG="yes" > > AC_MSG_CHECKING([for s/key support]) >- AC_TRY_RUN( >+ AC_TRY_COMPILE( > [ > #include <stdio.h> > #include <skey.h> >+ ], >+ [ > int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } > ], > [AC_MSG_RESULT(yes)], >@@ -1377,15 +1380,15 @@ fi > dnl see whether mkstemp() requires XXXXXX > if test "x$ac_cv_func_mkdtemp" = "xyes" ; then > AC_MSG_CHECKING([for (overly) strict mkstemp]) >-AC_TRY_RUN( >- [ >+AC_RUN_IFELSE( >+ [AC_LANG_SOURCE([[ > #include <stdlib.h> > main() { char template[]="conftest.mkstemp-test"; > if (mkstemp(template) == -1) > exit(1); > unlink(template); exit(0); > } >- ], >+ ]])], > [ > AC_MSG_RESULT(no) > ], >@@ -1403,8 +1406,8 @@ fi > dnl make sure that openpty does not reacquire controlling terminal > if test ! -z "$check_for_openpty_ctty_bug"; then > AC_MSG_CHECKING(if openpty correctly handles controlling tty) >- AC_TRY_RUN( >- [ >+ AC_RUN_IFELSE( >+ [AC_LANG_SOURCE([[ > #include <stdio.h> > #include <sys/fcntl.h> > #include <sys/types.h> >@@ -1436,13 +1439,16 @@ main() > exit(0); /* Did not acquire ctty: OK */ > } > } >- ], >+ ]])], > [ > AC_MSG_RESULT(yes) > ], > [ > AC_MSG_RESULT(no) > AC_DEFINE(SSHD_ACQUIRES_CTTY) >+ ], >+ [ >+ AC_MSG_RESULT(cross-compiling, assuming yes) > ] > ) > fi >@@ -1450,8 +1456,8 @@ fi > if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ > test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then > AC_MSG_CHECKING(if getaddrinfo seems to work) >- AC_TRY_RUN( >- [ >+ AC_RUN_IFELSE( >+ [AC_LANG_SOURCE([[ > #include <stdio.h> > #include <sys/socket.h> > #include <netdb.h> >@@ -1505,13 +1511,16 @@ main(void) > } > exit(0); > } >- ], >+ ]])], > [ > AC_MSG_RESULT(yes) > ], > [ > AC_MSG_RESULT(no) > AC_DEFINE(BROKEN_GETADDRINFO) >+ ], >+ [ >+ AC_MSG_RESULT(cross-compiling, assuming yes) > ] > ) > fi >@@ -1519,8 +1528,8 @@ fi > if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ > test "x$check_for_aix_broken_getaddrinfo" = "x1"; then > AC_MSG_CHECKING(if getaddrinfo seems to work) >- AC_TRY_RUN( >- [ >+ AC_RUN_IFELSE( >+ [AC_LANG_SOURCE([[ > #include <stdio.h> > #include <sys/socket.h> > #include <netdb.h> >@@ -1562,7 +1571,7 @@ main(void) > } > exit(0); > } >- ], >+ ]])], > [ > AC_MSG_RESULT(yes) > AC_DEFINE(AIX_GETNAMEINFO_HACK, 1, >@@ -1572,6 +1581,8 @@ main(void) > [ > AC_MSG_RESULT(no) > AC_DEFINE(BROKEN_GETADDRINFO) >+ ], >+ AC_MSG_RESULT(cross-compiling, assuming no) > ] > ) > fi >@@ -3129,8 +3140,8 @@ $external_path_file .]) > If PATH is defined in $external_path_file, ensure the path to scp is included, > otherwise scp will not work.]) > fi >- AC_TRY_RUN( >- [ >+ AC_RUN_IFELSE( >+ [AC_LANG_SOURCE([[ > /* find out what STDPATH is */ > #include <stdio.h> > #ifdef HAVE_PATHS_H >@@ -3162,7 +3173,8 @@ main() > > exit(0); > } >- ], [ user_path=`cat conftest.stdpath` ], >+ ]])], >+ [ user_path=`cat conftest.stdpath` ], > [ user_path="/usr/bin:/bin:/usr/sbin:/sbin" ], > [ user_path="/usr/bin:/bin:/usr/sbin:/sbin" ] > )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1097
:
977
|
998