Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Oct 2006 15:03:36 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        ports@freebsd.org
Subject:   Re: [rizzo@icir.org: [asterisk-dev] autoconf issues for FreeBSD]
Message-ID:  <20061006150336.gaobej59b4cw4wwo@webmail.leidinger.net>
In-Reply-To: <20061004132843.A34553@xorpc.icir.org>
References:  <20061004132843.A34553@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Luigi Rizzo <rizzo@icir.org> (from Wed, 4 Oct 2006 13:28:43 -0700):

> any autoconf guru here who can help me with the problem described below ?
>
> basically, what is the proper way to tell configure.ac to set CPPFLAGS
> and LDFLAGS properly (i.e. according to platform conventions) without
> having to put platform-specific code in configure.ac or invoking
> ./configure with these values set ?

I don't know about such a way.

If you put something like your proposal into place, I suggest to =20
change it a little bit. The way outlined below discards any user =20
specified settings. So I suggest to use FOO=3D"$FOO bar" instead of =20
FOO=3Dbar. This way an user can override the search order.

Bye,
Alexander.

>
> Index: configure.ac
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- configure.ac        (revision 44374)
> +++ configure.ac        (working copy)
> @@ -30,6 +30,8 @@
>  case "${host_os}" in
>       freebsd*)
>       ac_default_prefix=3D/usr/local
> +     CPPFLAGS=3D-I/usr/local/include
> +     LDFLAGS=3D-L/usr/local/lib
>       ;;
>       *)
>       ac_default_prefix=3D/usr

Bye,
Alexander.

--=20
I don't mind arguing with myself.
It's when I lose that it bothers me.
=09=09-- Richard Powers

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID =3D B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID =3D 72077137




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061006150336.gaobej59b4cw4wwo>