mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. But, autoconf 2.62 version of AC_AIX defines _ALL_SOURCE along with other four preprocessor symbols no matter if the system is AIX or not. To keep the traditional behaviour, as well as an uniform one, across autoconf versions AC_AIX is replaced with our own internal macro.
This commit is contained in:
parent
8d012181b0
commit
b4fdccf87a
6 changed files with 81 additions and 6 deletions
29
acinclude.m4
29
acinclude.m4
|
|
@ -116,6 +116,34 @@ CURL_DEF_TOKEN $1
|
|||
])
|
||||
|
||||
|
||||
dnl CURL_CHECK_AIX_ALL_SOURCE
|
||||
dnl -------------------------------------------------
|
||||
dnl Provides a replacement of traditional AC_AIX with
|
||||
dnl an uniform behaviour across all autoconf versions,
|
||||
dnl and with our own placement rules.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_AIX_ALL_SOURCE], [
|
||||
AH_VERBATIM([_ALL_SOURCE],
|
||||
[/* Define to 1 if OS is AIX. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif])
|
||||
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
|
||||
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
|
||||
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
||||
AC_EGREP_CPP([yes_this_is_aix],[
|
||||
#ifdef _AIX
|
||||
yes_this_is_aix
|
||||
#endif
|
||||
],[
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_DEFINE(_ALL_SOURCE)
|
||||
],[
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
dnl CURL_CHECK_HEADER_WINDOWS
|
||||
dnl -------------------------------------------------
|
||||
dnl Check for compilable and valid windows.h header
|
||||
|
|
@ -3504,3 +3532,4 @@ AC_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
|
|||
fi
|
||||
])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue