[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

970617: building netCDF on an HP-UX <something>



Bill,

>Date: Thu, 17 Jul 1997 16:07:31 -0400 
>From: Bill Hudson <address@hidden>
>Organization: Pennsylvania State University/Applied Research Laboratory
>To: Steve Emmerson <address@hidden>
>Subject: Re: 970617: building netCDF on an HP-UX <something> 
>Keywords: 199707151311.HAA19835

In the above message, you wrote:

>   As I entered the commands on the HP Console I received back:
> 
> #export CPPFLAGS='-DNDEBUG -D_HPUX_SOURCE'
> CPPFLAGS=-DNDEBUG -D_HPUX_SOURCE: is not an identifier
> #export CC=cc
> CC=cc: is not an identifier
> #export CFLAGS='-O -Aa'
> CFLAGS=-O -Aa: is not an identifier
> #export FC=
> FC=: is not an identifier
> #export CXX=CC
> CXX=CC: is not an identifier

Ah, a brain-damaged sh(1) shell.

Do exactly what I previously said, but substitute the following for step
#2:

    make clean
    rm config.cache
    CPPFLAGS='-DNDEBUG -D_HPUX_SOURCE'
    export CPPFLAGS
    CC=cc
    export CC
    CFLAGS='+O1 -Aa'
    export CFLAGS
    FC=
    export FC
    CXX=CC
    export CXX
    ./configure >configure.log 2>&1

>  The configure.log file didn't have any error outputs and the macros.make
> file still showed "CFLAGS = -O"

Right.  It didn't work.

> 
> Also shouldn't I replace the -O with a +O1 in the CFLAGS statement as I
> mentioned yesterday (see below)?

Yes.  I made that substitution above.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>