Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: autoconf question
Home

[Freeciv-Dev] Re: autoconf question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: autoconf question
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 8 Dec 2003 11:52:12 +0000 (GMT)

On Fri, 5 Dec 2003, Jason Dorje Short wrote:
> These macros take an action-if-not-found argument. I believe the
> correct configure test for most functions & headers should therefore be
>
>  AC_CHECK_FUNCS([strcasecmp], [], AC_MSG_ERROR([no strcasecmp]))
>
> or
>
>  AC_CHECK_HEADERS([limits.h], [], AC_MSG_ERROR([no limits.h]))
>
> which will cause configure to fail if the headers or functions aren't
> present.
>
> Is this correct? Does anyone here really know autoconf?

It seems correct to me.

  - Per



[Prev in Thread] Current Thread [Next in Thread]