From: | "Kardos, Dr(dot) Andreas" <kardos(at)repas-aeg(dot)de> |
---|---|
To: | "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | <pgsql-ports(at)postgresql(dot)org> |
Subject: | Re: [PORTS] QNX4 port |
Date: | 1999-12-20 15:14:48 |
Message-ID: | 005401bf4afc$f518f210$99301eac@nt-kardos.Dr.repas.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
Bruce Momjian wrote:
>> Bruce Momjian wrote:
>> >OK, my fix is to modify configure.in to lowercase $host before
>> >comparison. Hopefully 'tr' works on QNX.
>>
>>
>> I havn't got the new sources yet, but this will definitly not work since
>> $host is already lower case ("i386-pc-qnx4").
>> The upper case "QNX" comes from "uname -s" as was stated below.
>>
>> uname -s | tr '[:upper:]' '[:lower:]'
>> returns "qnx" on QNX4.
>
>But configure.in has:
>
> if test "$GUESS"
> then TEMPLATE="$GUESS"
> else
> # Last chance ... maybe uname -s will match an entry.
> TEMPLATE=`uname -s | tr A-Z a-z`
> fi
>
>Why does this fail?
Above you stated "lowercase $host" but not "lowercase uname -s". $host is
"i386-pc-qnx4". Therefore it doesn't make sense to lowercase $host if you
want to get the string "qnx". Remember, I have not got the new source yet to
have a look at it. So I can comment only what you have written in the mail.
TEMPLATE=`uname -s | tr A-Z a-z`
will not work too because A-Z and a-z must be enclosed in square brackets on
QNX4. So you can use
TEMPLATE=`uname -s | tr [A-Z] [a-z]`
or
TEMPLATE=`uname -s | tr [:upper:] [:lower:]`
Andreas Kardos
PS: Don't forget "configure" itself.
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 1999-12-20 17:02:52 | Re: [PORTS] RE:POSTGRES_INCLUDE and POSTGRES_LIB?? |
Previous Message | Bruce Momjian | 1999-12-20 14:38:03 | Re: [PORTS] QNX4 port |