[PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith

GNU grep should work. Just make sure /usr/local/bin comes before /bin in
your $PATH.

J


Sebastian Nohn wrote:

 Latest CVS (PHP5-dev) on Solaris:
 
 Configuring TSRM
 checking for stdarg.h... (cached) yes
 grep: illegal option -- E
 Usage: grep -hblcnsviw pattern file . . .
 
 Regards, Sebastian Nohn


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Zeev Suraski
I don't think we can rely on GNU grep being installed though...

At 17:29 04/02/2003, J Smith wrote:


GNU grep should work. Just make sure /usr/local/bin comes before /bin in
your $PATH.

J


Sebastian Nohn wrote:

 Latest CVS (PHP5-dev) on Solaris:

 Configuring TSRM
 checking for stdarg.h... (cached) yes
 grep: illegal option -- E
 Usage: grep -hblcnsviw pattern file . . .

 Regards, Sebastian Nohn


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
Zeev Suraski wrote:

 I don't think we can rely on GNU grep being installed though...
 

Well, we pretty much need to rely on GNU sed being installed on Solaris, so
why not grep, too? The sed problem comes up when doing the final linking
when building. You usually end up with a collosal libtool line, which makes
Sun's sed explode, as it can only handle about 4000 characters. (You'll end
up with sed reporting that the output line [is] too long.

I haven't fully investigated what Sun tools will bork a build, but Sun's sed
definitely does, and probably a majority of the time. 

J

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, J Smith wrote:

Zeev Suraski wrote:

 I don't think we can rely on GNU grep being installed though...
 

Well, we pretty much need to rely on GNU sed being installed on Solaris, so
why not grep, too? The sed problem comes up when doing the final linking
when building. You usually end up with a collosal libtool line, which makes
Sun's sed explode, as it can only handle about 4000 characters. (You'll end
up with sed reporting that the output line [is] too long.

There should be another version of 'sed' in Solaris which can handle
the long lines though. No idea why they have 2 versions.

--Jani



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Sascha Schumann
 There should be another version of 'sed' in Solaris which can handle
 the long lines though. No idea why they have 2 versions.

IIRC that is due to Solaris' BSD heritage.  Solaris 1 (SunOS 4)
was based on BSD (from the University of California,
Berkeley, hence ucb) and they had to keep those utilities for
their customers in SysV-based Solaris 2.

- Sascha

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, Sascha Schumann wrote:

 There should be another version of 'sed' in Solaris which can handle
 the long lines though. No idea why they have 2 versions.

IIRC that is due to Solaris' BSD heritage.  Solaris 1 (SunOS 4)
was based on BSD (from the University of California,
Berkeley, hence ucb) and they had to keep those utilities for
their customers in SysV-based Solaris 2.

Oh. Well that explains a lot. :)

btw. It seems like that test I added for the broken
sed is not working on some systems. Any ideas why?

--Jani


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
Jani Taskinen wrote:

 
 There should be another version of 'sed' in Solaris which can handle
 the long lines though. No idea why they have 2 versions.
 
 --Jani

Never knew that. Is that part of a standard install, or is it bundled in
some kind of patch, or does it have a different name or something? 

J

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Melvyn Sopacua
At 17:29 4-2-2003, you wrote:


   btw. It seems like that test I added for the broken
sed is not working on some systems. Any ideas why?


That's the grep -E part :)
Just use `egrep' unless any1 knows of a system that doesn't carry egrep?.



With kind regards,

Melvyn Sopacua
?php include(not_reflecting_employers_views.txt); ?


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, Melvyn Sopacua wrote:

At 17:29 4-2-2003, you wrote:

btw. It seems like that test I added for the broken
 sed is not working on some systems. Any ideas why?

That's the grep -E part :)
Just use `egrep' unless any1 knows of a system that doesn't carry egrep?.

egrep is used in PHP 4.3.x..

--Jani



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
Jani Taskinen wrote:

 On Tue, 4 Feb 2003, J Smith wrote:
 
 /usr/xpg4/bin/sed
 
 It should be part of standard install too..
 
 --Jani

I hate Solaris. There's four seds on my system now: /usr/local/bin/sed,
/usr/bin/sed, /usr/ucb/sed and /bin/sed.

Yeah, xpg4 sed seems to work fine. xpg4 grep is working, too, which takes
care of that -E problem.

So, after some testing, the bottom line seems to be...

/usr/local/bin/sed (GNU): works
/usr/xpg4/bin (Sun POSIX stuff): works
/usr/ucb (SunOS BSD-compatible): dies
/bin/sed (Solaris): dies

J

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Sascha Schumann
On Tue, 4 Feb 2003, Melvyn Sopacua wrote:

 At 17:29 4-2-2003, you wrote:

 btw. It seems like that test I added for the broken
  sed is not working on some systems. Any ideas why?

 That's the grep -E part :)
 Just use `egrep' unless any1 knows of a system that doesn't carry egrep?.

egrep is going to be deprecated by POSIX, but I suppose
that switching back to it makes sense for now.

- Sascha

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Melvyn Sopacua
At 19:07 4-2-2003, Sascha Schumann wrote:


On Tue, 4 Feb 2003, Melvyn Sopacua wrote:

 At 17:29 4-2-2003, you wrote:

 btw. It seems like that test I added for the broken
  sed is not working on some systems. Any ideas why?

 That's the grep -E part :)
 Just use `egrep' unless any1 knows of a system that doesn't carry egrep?.

egrep is going to be deprecated by POSIX, but I suppose
that switching back to it makes sense for now.


A few lines down is '$ac_cv_prog_egrep'. Why not move the sed test down and use
that var? (I guess that's AC_PROG_EGREP macro).

IMHO depegrating egrep is 'nice ideal' :).

With kind regards,

Melvyn Sopacua
?php include(not_reflecting_employers_views.txt); ?


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php