# Patch for not to run some tests while cross compiling

- Thread: https://externals.io/message/15146
- Original archive: https://news-web.php.net/php.internals/15146
- Started by Kamesh Jayachandran on 2005-02-22T09:22:01+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15146 — Kamesh Jayachandran — 2005-02-22T09:22:01+00:00

URL: https://externals.io/message/15146#15146

Hi All,
I am working for NetWare port of PHP. I am trying to use the autoconf
based build system to build the binaries meant to run for NetWare with
build system being Linux.(Cross compilation).

While running ./configure with corresponding options I got errors
stating "cannot run tests while cross compiling.". I have a fix for this
located at,
http://puggy.symonds.net/~kameshj/Zend.m4.patch
Can someone review it and apply the patch?

With regards
Kamesh Jayachandran

---

## #15148 — Jani Taskinen — 2005-02-22T13:53:41+00:00

URL: https://externals.io/message/15146#15148 · In reply to: #15146

> Hi All,
> I am working for NetWare port of PHP. I am trying to use the autoconf
> based build system to build the binaries meant to run for NetWare with
> build system being Linux.(Cross compilation).
>
> While running ./configure with corresponding options I got errors
> stating "cannot run tests while cross compiling.". I have a fix for this
> located at,
> http://puggy.symonds.net/~kameshj/Zend.m4.patch
> Can someone review it and apply the patch?

     Committed, without the echo though as that is superfluous.

     --Jani

---

## #15164 — Kamesh Jayachandran — 2005-02-23T07:24:33+00:00

URL: https://externals.io/message/15146#15164 · In reply to: #15148

Hi Jani,
Thanks for commiting the patch. But it does not work.
The last param to AC_TRY_RUN need to be a non empty shell construct for
cross compilation to go through(empty construct won't help).

Please apply my new patch against the current HEAD(Now instead of echo
the patch do test 1)
http://puggy.symonds.net/~kameshj/Zend.m4.patch

With regards
Kamesh Jayachandran

On Tue, 22 Feb 2005 15:53:41 +0200 (EET), "Jani Taskinen"
<sniper@iki.fi> said:
> 
> 
> > […]
> 
>      Committed, without the echo though as that is superfluous.
> 
>      --Jani

---

## #15165 — Jani Taskinen — 2005-02-23T07:51:45+00:00

URL: https://externals.io/message/15146#15165 · In reply to: #15164

Committed, again something else. :)

     --Jani




> Hi Jani,
> Thanks for commiting the patch. But it does not work.
> The last param to AC_TRY_RUN need to be a non empty shell construct for
> cross compilation to go through(empty construct won't help).
>
> Please apply my new patch against the current HEAD(Now instead of echo
> the patch do test 1)
> http://puggy.symonds.net/~kameshj/Zend.m4.patch
>
> With regards
> Kamesh Jayachandran
>
> On Tue, 22 Feb 2005 15:53:41 +0200 (EET), "Jani Taskinen"
> <sniper@iki.fi> said:
> > […]
