cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl 7.0.8 configure troubles

From: Bjorn Reese <breese_at_mail1.stofanet.dk>
Date: Wed, 12 Jul 2000 19:07:11 +0000

Rich Gray wrote:

> cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../include -Aa -DA1.0
> -D_HPUX_SOURCE -c file.c
> cpp: "", line 0: warning 2003: Illegal argument to '-D' option.
>
> (yeah, it complains about the -D_HPUX_SOURCE, but requires it to work... :-\

Maybe the old cc has a different option to define macros from the command-line.
Fortunately, I do not have easy access to a HP-UX 9 cc anylonger, so I cannot
check this for you.

Another thing you should consider is to use -Ae instead of -Aa (AFAICR, -Aa is
strictly ANSI C89 compliant, whereas -Ae allows extensions). Another possibility
is to use aCC, if available.

> Seems like CFLAGS is just broken somehow.

Try changing the hardcoded "CFLAGS= ..." line in lib/Makefile.in to
"CFLAGS=@CFLAGS@" and rerun configure.
Received on 2000-07-12