apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apr hints.m4
Date Wed, 29 Nov 2000 00:17:05 GMT
Note that hints.m4 is a "last resort". The hope is that everything can be
determined via autoconf feature tests, rather than per-platform tweaks.

I would imagine that it is possible to discover whether
_XOPEN_SOURCE_EXTENDED is need by writing an autoconf test. Doing so would
make it work on any platform, rather than just HP/UX.

Cheers,
-g

On Tue, Nov 28, 2000 at 10:43:02PM -0000, brane@locus.apache.org wrote:
> brane       00/11/28 14:43:01
> 
>   Modified:    .        hints.m4
>   Log:
>   HP-UX needs _XOPEN_SOURCE_EXTENDED to find hl_error in <netdb.h>.
>   
>   Revision  Changes    Path
>   1.25      +3 -3      apr/hints.m4
>   
>   Index: hints.m4
>   ===================================================================
>   RCS file: /home/cvs/apr/hints.m4,v
>   retrieving revision 1.24
>   retrieving revision 1.25
>   diff -u -r1.24 -r1.25
>   --- hints.m4	2000/11/28 21:31:52	1.24
>   +++ hints.m4	2000/11/28 22:43:00	1.25
>   @@ -82,11 +82,11 @@
>    	APR_SETIFNULL(CFLAGS, [-DHIUX])
>    	;;
>        *-hp-hpux11.*)
>   -	APR_SETIFNULL(CFLAGS, [-DHPUX11])
>   +	APR_SETIFNULL(CFLAGS, [-DHPUX11 -D_XOPEN_SOURCE_EXTENDED])
>    	APR_SETIFNULL(LIBS, [-lm -lpthread])
>    	;;
>        *-hp-hpux10.*)
>   -	APR_SETIFNULL(CFLAGS, [-DHPUX10])
>   +	APR_SETIFNULL(CFLAGS, [-DHPUX10 -D_XOPEN_SOURCE_EXTENDED])
>     	case $host in
>     	  *-hp-hpux10.01)
>    dnl	       # We know this is a problem in 10.01.
>   @@ -96,7 +96,7 @@
>     	esac
>    	;;
>        *-hp-hpux*)
>   -	APR_SETIFNULL(CFLAGS, [-DHPUX])
>   +	APR_SETIFNULL(CFLAGS, [-DHPUX -D_XOPEN_SOURCE_EXTENDED])
>    	APR_SETIFNULL(LIBS, [-lm])
>    	;;
>        *-linux-*)
>   
>   
>   

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message