diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-03-13 00:32:43 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-03-13 00:32:43 +0000 |
commit | 4eee65febaa4e06c28bcd79efd1df21a07f516db (patch) | |
tree | 61549d32da02f7ea405ef34384660bf044b9e051 /build/apr_common.m4 | |
parent | d723beaef7a2c733cf7a4d0e2efeb121881c3868 (diff) | |
download | libapr-4eee65febaa4e06c28bcd79efd1df21a07f516db.tar.gz |
Stop messing around with _FOO_SOURCE things mid-configure: enable
_GNU_SOURCE for glibc-based systems in the platform hints. (and avoid
jumping through hoops to define _{XOPEN,BSD,SVID}_SOURCE which are all
implied by _GNU_SOURCE anyway)
* build/apr_hints.m4: Define _GNU_SOURCE in CPPFLAGS for GNU/HURD and
GNU/Linux.
* build/apr_common.m4: Remove tricks to get glibc to expose crypt_r.
* configure.in: Remove tricks to get glibc to expose pthread_rwlock_t.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64972 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_common.m4')
-rw-r--r-- | build/apr_common.m4 | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index 4b3294a71..73a435726 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -546,30 +546,15 @@ crypt_r("passwd", "hash", &buffer); ], ac_cv_crypt_r_style=struct_crypt_data) fi dnl -if test "$ac_cv_crypt_r_style" = "none"; then -dnl same as previous test, but see if defining _GNU_SOURCE helps -AC_TRY_COMPILE([ -#define _GNU_SOURCE -#include <crypt.h> -],[ -struct crypt_data buffer; -crypt_r("passwd", "hash", &buffer); -], ac_cv_crypt_r_style=struct_crypt_data_gnu_source) -fi -dnl ]) if test "$ac_cv_crypt_r_style" = "cryptd"; then AC_DEFINE(CRYPT_R_CRYPTD, 1, [Define if crypt_r has uses CRYPTD]) fi # if we don't combine these conditions, CRYPT_R_STRUCT_CRYPT_DATA # will end up defined twice -if test "$ac_cv_crypt_r_style" = "struct_crypt_data" -o \ - "$ac_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then +if test "$ac_cv_crypt_r_style" = "struct_crypt_data"; then AC_DEFINE(CRYPT_R_STRUCT_CRYPT_DATA, 1, [Define if crypt_r uses struct crypt_data]) fi -if test "$ac_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then - APR_ADDTO(CPPFLAGS, [-D_GNU_SOURCE]) -fi ]) dnl |