mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
configure: tidy up comments
- convert `#` comments to `dnl`, except copyright headers, and inline comments in `curl-complilers.m4`. - drop empty comments. - drop line-ending `dnl` markers. (except `zz40-xc-ovr.m4` where it's used to produce a comment in `configure`.) - replace `dnl` line with C comment in `AC_CHECK_HEADERS()`. Verified to produce the same `configure` script except empty lines, `#` comments, and C comments, with autoreconf 2.72. Cherry-picked from #21000 Closes #21246
This commit is contained in:
parent
0a7e1982fe
commit
8a3991e050
19 changed files with 1014 additions and 1033 deletions
135
acinclude.m4
135
acinclude.m4
|
|
@ -32,12 +32,12 @@ dnl result in a set of double-quoted strings the returned expansion will
|
||||||
dnl actually be a single double-quoted string concatenating all them.
|
dnl actually be a single double-quoted string concatenating all them.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_DEF], [
|
AC_DEFUN([CURL_CHECK_DEF], [
|
||||||
AC_REQUIRE([CURL_CPP_P])dnl
|
AC_REQUIRE([CURL_CPP_P])
|
||||||
OLDCPPFLAGS=$CPPFLAGS
|
OLDCPPFLAGS=$CPPFLAGS
|
||||||
# CPPPFLAG comes from CURL_CPP_P
|
dnl CPPPFLAG comes from CURL_CPP_P
|
||||||
CPPFLAGS="$CPPFLAGS $CPPPFLAG"
|
CPPFLAGS="$CPPFLAGS $CPPPFLAG"
|
||||||
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl
|
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])
|
||||||
AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl
|
AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])
|
||||||
if test -z "$SED"; then
|
if test -z "$SED"; then
|
||||||
AC_MSG_ERROR([SED not set. Cannot continue without SED being set.])
|
AC_MSG_ERROR([SED not set. Cannot continue without SED being set.])
|
||||||
fi
|
fi
|
||||||
|
|
@ -70,8 +70,8 @@ AC_DEFUN([CURL_CHECK_DEF], [
|
||||||
AS_VAR_SET(ac_Def, $tmp_exp)
|
AS_VAR_SET(ac_Def, $tmp_exp)
|
||||||
ifelse($3,,[AC_MSG_RESULT([$tmp_exp])])
|
ifelse($3,,[AC_MSG_RESULT([$tmp_exp])])
|
||||||
fi
|
fi
|
||||||
AS_VAR_POPDEF([ac_Def])dnl
|
AS_VAR_POPDEF([ac_Def])
|
||||||
AS_VAR_POPDEF([ac_HaveDef])dnl
|
AS_VAR_POPDEF([ac_HaveDef])
|
||||||
CPPFLAGS=$OLDCPPFLAGS
|
CPPFLAGS=$OLDCPPFLAGS
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ dnl default includes even if no INCLUDES argument is given. This macro
|
||||||
dnl will run silently when invoked with three arguments.
|
dnl will run silently when invoked with three arguments.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_DEF_CC], [
|
AC_DEFUN([CURL_CHECK_DEF_CC], [
|
||||||
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl
|
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])
|
||||||
ifelse($3,,[AC_MSG_CHECKING([for compiler definition of $1])])
|
ifelse($3,,[AC_MSG_CHECKING([for compiler definition of $1])])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_SOURCE(
|
AC_LANG_SOURCE(
|
||||||
|
|
@ -109,7 +109,7 @@ AC_DEFUN([CURL_CHECK_DEF_CC], [
|
||||||
AS_VAR_SET(ac_HaveDef, no)
|
AS_VAR_SET(ac_HaveDef, no)
|
||||||
ifelse($3,,[AC_MSG_RESULT([no])])
|
ifelse($3,,[AC_MSG_RESULT([no])])
|
||||||
fi
|
fi
|
||||||
AS_VAR_POPDEF([ac_HaveDef])dnl
|
AS_VAR_POPDEF([ac_HaveDef])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -152,8 +152,8 @@ AC_DEFUN([CURL_CHECK_AIX_ALL_SOURCE], [
|
||||||
#ifndef _ALL_SOURCE
|
#ifndef _ALL_SOURCE
|
||||||
# undef _ALL_SOURCE
|
# undef _ALL_SOURCE
|
||||||
#endif])
|
#endif])
|
||||||
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
|
AC_BEFORE([$0], [AC_SYS_LARGEFILE])
|
||||||
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
|
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])
|
||||||
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
|
||||||
AC_EGREP_CPP([yes_this_is_aix],[
|
AC_EGREP_CPP([yes_this_is_aix],[
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
|
|
@ -200,7 +200,7 @@ dnl Check for compilable and valid lber.h header,
|
||||||
dnl and check if it is needed even with ldap.h
|
dnl and check if it is needed even with ldap.h
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_LBER], [
|
AC_DEFUN([CURL_CHECK_HEADER_LBER], [
|
||||||
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])
|
||||||
AC_CACHE_CHECK([for lber.h], [curl_cv_header_lber_h], [
|
AC_CACHE_CHECK([for lber.h], [curl_cv_header_lber_h], [
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -233,7 +233,7 @@ AC_DEFUN([CURL_CHECK_HEADER_LBER], [
|
||||||
if test "$curl_cv_header_lber_h" = "yes"; then
|
if test "$curl_cv_header_lber_h" = "yes"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_LBER_H, 1,
|
AC_DEFINE_UNQUOTED(HAVE_LBER_H, 1,
|
||||||
[Define to 1 if you have the lber.h header file.])
|
[Define to 1 if you have the lber.h header file.])
|
||||||
#
|
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
#undef inline
|
#undef inline
|
||||||
|
|
@ -264,7 +264,7 @@ AC_DEFUN([CURL_CHECK_HEADER_LBER], [
|
||||||
],[
|
],[
|
||||||
curl_cv_need_header_lber_h="yes"
|
curl_cv_need_header_lber_h="yes"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
case "$curl_cv_need_header_lber_h" in
|
case "$curl_cv_need_header_lber_h" in
|
||||||
yes)
|
yes)
|
||||||
AC_DEFINE_UNQUOTED(NEED_LBER_H, 1,
|
AC_DEFINE_UNQUOTED(NEED_LBER_H, 1,
|
||||||
|
|
@ -280,7 +280,7 @@ dnl -------------------------------------------------
|
||||||
dnl Check for compilable and valid ldap.h header
|
dnl Check for compilable and valid ldap.h header
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_LDAP], [
|
AC_DEFUN([CURL_CHECK_HEADER_LDAP], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_LBER])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_LBER])
|
||||||
AC_CACHE_CHECK([for ldap.h], [curl_cv_header_ldap_h], [
|
AC_CACHE_CHECK([for ldap.h], [curl_cv_header_ldap_h], [
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -327,7 +327,7 @@ dnl -------------------------------------------------
|
||||||
dnl Check for compilable and valid ldap_ssl.h header
|
dnl Check for compilable and valid ldap_ssl.h header
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_LDAP_SSL], [
|
AC_DEFUN([CURL_CHECK_HEADER_LDAP_SSL], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_LDAP])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_LDAP])
|
||||||
AC_CACHE_CHECK([for ldap_ssl.h], [curl_cv_header_ldap_ssl_h], [
|
AC_CACHE_CHECK([for ldap_ssl.h], [curl_cv_header_ldap_ssl_h], [
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -380,12 +380,12 @@ dnl whitespace separated list of libraries to check
|
||||||
dnl before the WINLDAP default ones.
|
dnl before the WINLDAP default ones.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
|
AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINBER])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_WINBER])
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for WINLDAP libraries])
|
AC_MSG_CHECKING([for WINLDAP libraries])
|
||||||
#
|
|
||||||
u_libs=""
|
u_libs=""
|
||||||
#
|
|
||||||
ifelse($1,,,[
|
ifelse($1,,,[
|
||||||
for x_lib in $1; do
|
for x_lib in $1; do
|
||||||
case "$x_lib" in
|
case "$x_lib" in
|
||||||
|
|
@ -403,10 +403,10 @@ AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
])
|
])
|
||||||
#
|
|
||||||
curl_cv_save_LIBS="$LIBS"
|
curl_cv_save_LIBS="$LIBS"
|
||||||
curl_cv_ldap_LIBS="unknown"
|
curl_cv_ldap_LIBS="unknown"
|
||||||
#
|
|
||||||
for x_nlibs in '' "$u_libs" \
|
for x_nlibs in '' "$u_libs" \
|
||||||
'-lwldap32' ; do
|
'-lwldap32' ; do
|
||||||
if test "$curl_cv_ldap_LIBS" = "unknown"; then
|
if test "$curl_cv_ldap_LIBS" = "unknown"; then
|
||||||
|
|
@ -441,9 +441,9 @@ AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#
|
|
||||||
LIBS="$curl_cv_save_LIBS"
|
LIBS="$curl_cv_save_LIBS"
|
||||||
#
|
|
||||||
case X-"$curl_cv_ldap_LIBS" in
|
case X-"$curl_cv_ldap_LIBS" in
|
||||||
X-unknown)
|
X-unknown)
|
||||||
AC_MSG_RESULT([cannot find WINLDAP libraries])
|
AC_MSG_RESULT([cannot find WINLDAP libraries])
|
||||||
|
|
@ -460,7 +460,6 @@ AC_DEFUN([CURL_CHECK_LIBS_WINLDAP], [
|
||||||
AC_MSG_RESULT([$curl_cv_ldap_LIBS])
|
AC_MSG_RESULT([$curl_cv_ldap_LIBS])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -473,12 +472,12 @@ dnl whitespace separated list of libraries to check
|
||||||
dnl before the default ones.
|
dnl before the default ones.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
|
AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_LDAP])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_LDAP])
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for LDAP libraries])
|
AC_MSG_CHECKING([for LDAP libraries])
|
||||||
#
|
|
||||||
u_libs=""
|
u_libs=""
|
||||||
#
|
|
||||||
ifelse($1,,,[
|
ifelse($1,,,[
|
||||||
for x_lib in $1; do
|
for x_lib in $1; do
|
||||||
case "$x_lib" in
|
case "$x_lib" in
|
||||||
|
|
@ -496,10 +495,10 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
])
|
])
|
||||||
#
|
|
||||||
curl_cv_save_LIBS="$LIBS"
|
curl_cv_save_LIBS="$LIBS"
|
||||||
curl_cv_ldap_LIBS="unknown"
|
curl_cv_ldap_LIBS="unknown"
|
||||||
#
|
|
||||||
for x_nlibs in '' "$u_libs" \
|
for x_nlibs in '' "$u_libs" \
|
||||||
'-lldap' \
|
'-lldap' \
|
||||||
'-lldap -llber' \
|
'-lldap -llber' \
|
||||||
|
|
@ -552,9 +551,9 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#
|
|
||||||
LIBS="$curl_cv_save_LIBS"
|
LIBS="$curl_cv_save_LIBS"
|
||||||
#
|
|
||||||
case X-"$curl_cv_ldap_LIBS" in
|
case X-"$curl_cv_ldap_LIBS" in
|
||||||
X-unknown)
|
X-unknown)
|
||||||
AC_MSG_RESULT([cannot find LDAP libraries])
|
AC_MSG_RESULT([cannot find LDAP libraries])
|
||||||
|
|
@ -568,14 +567,13 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
|
||||||
else
|
else
|
||||||
LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
|
LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
|
||||||
fi
|
fi
|
||||||
# FIXME: Enable when ldap was detected via pkg-config
|
dnl FIXME: Enable when ldap was detected via pkg-config
|
||||||
if false; then
|
if false; then
|
||||||
LIBCURL_PC_REQUIRES_PRIVATE="ldap $LIBCURL_PC_REQUIRES_PRIVATE"
|
LIBCURL_PC_REQUIRES_PRIVATE="ldap $LIBCURL_PC_REQUIRES_PRIVATE"
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([$curl_cv_ldap_LIBS])
|
AC_MSG_RESULT([$curl_cv_ldap_LIBS])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -616,10 +614,10 @@ dnl -------------------------------------------------
|
||||||
dnl Test if the socket recv() function is available,
|
dnl Test if the socket recv() function is available,
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_RECV], [
|
AC_DEFUN([CURL_CHECK_FUNC_RECV], [
|
||||||
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])
|
||||||
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])dnl
|
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])
|
||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for recv])
|
AC_MSG_CHECKING([for recv])
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -646,7 +644,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
curl_cv_recv="no"
|
curl_cv_recv="no"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
if test "$curl_cv_recv" = "yes"; then
|
if test "$curl_cv_recv" = "yes"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_RECV, 1,
|
AC_DEFINE_UNQUOTED(HAVE_RECV, 1,
|
||||||
[Define to 1 if you have the recv function.])
|
[Define to 1 if you have the recv function.])
|
||||||
|
|
@ -662,10 +660,10 @@ dnl -------------------------------------------------
|
||||||
dnl Test if the socket send() function is available,
|
dnl Test if the socket send() function is available,
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
||||||
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])
|
||||||
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])dnl
|
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])
|
||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for send])
|
AC_MSG_CHECKING([for send])
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -693,7 +691,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
curl_cv_send="no"
|
curl_cv_send="no"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
if test "$curl_cv_send" = "yes"; then
|
if test "$curl_cv_send" = "yes"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_SEND, 1,
|
AC_DEFINE_UNQUOTED(HAVE_SEND, 1,
|
||||||
[Define to 1 if you have the send function.])
|
[Define to 1 if you have the send function.])
|
||||||
|
|
@ -709,7 +707,7 @@ dnl -------------------------------------------------
|
||||||
dnl Check for timeval struct
|
dnl Check for timeval struct
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [
|
AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [
|
||||||
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])
|
||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
AC_CACHE_CHECK([for struct timeval], [curl_cv_struct_timeval], [
|
AC_CACHE_CHECK([for struct timeval], [curl_cv_struct_timeval], [
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
|
|
@ -756,7 +754,6 @@ dnl Check if monotonic clock_gettime is available.
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
|
AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
|
||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
AC_MSG_CHECKING([for monotonic clock_gettime])
|
AC_MSG_CHECKING([for monotonic clock_gettime])
|
||||||
#
|
|
||||||
|
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -791,7 +788,7 @@ dnl Check if monotonic clock_gettime is available.
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC_RAW], [
|
AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC_RAW], [
|
||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
AC_MSG_CHECKING([for raw monotonic clock_gettime])
|
AC_MSG_CHECKING([for raw monotonic clock_gettime])
|
||||||
#
|
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
|
|
@ -822,15 +819,15 @@ dnl If monotonic clock_gettime is available then,
|
||||||
dnl check and prepended to LIBS any needed libraries.
|
dnl check and prepended to LIBS any needed libraries.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
||||||
AC_REQUIRE([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC])dnl
|
AC_REQUIRE([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC])
|
||||||
#
|
|
||||||
if test "$curl_func_clock_gettime" = "yes"; then
|
if test "$curl_func_clock_gettime" = "yes"; then
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for clock_gettime in libraries])
|
AC_MSG_CHECKING([for clock_gettime in libraries])
|
||||||
#
|
|
||||||
curl_cv_save_LIBS="$LIBS"
|
curl_cv_save_LIBS="$LIBS"
|
||||||
curl_cv_gclk_LIBS="unknown"
|
curl_cv_gclk_LIBS="unknown"
|
||||||
#
|
|
||||||
for x_xlibs in '' '-lrt' '-lposix4' ; do
|
for x_xlibs in '' '-lrt' '-lposix4' ; do
|
||||||
if test "$curl_cv_gclk_LIBS" = "unknown"; then
|
if test "$curl_cv_gclk_LIBS" = "unknown"; then
|
||||||
if test -z "$x_xlibs"; then
|
if test -z "$x_xlibs"; then
|
||||||
|
|
@ -857,9 +854,9 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
#
|
|
||||||
LIBS="$curl_cv_save_LIBS"
|
LIBS="$curl_cv_save_LIBS"
|
||||||
#
|
|
||||||
case X-"$curl_cv_gclk_LIBS" in
|
case X-"$curl_cv_gclk_LIBS" in
|
||||||
X-unknown)
|
X-unknown)
|
||||||
AC_MSG_RESULT([cannot find clock_gettime])
|
AC_MSG_RESULT([cannot find clock_gettime])
|
||||||
|
|
@ -885,7 +882,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
|
||||||
dnl only do runtime verification when not cross-compiling
|
dnl only do runtime verification when not cross-compiling
|
||||||
if test "$cross_compiling" != "yes" &&
|
if test "$cross_compiling" != "yes" &&
|
||||||
test "$curl_func_clock_gettime" = "yes"; then
|
test "$curl_func_clock_gettime" = "yes"; then
|
||||||
|
|
@ -916,16 +913,14 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
|
||||||
LIBS="$curl_cv_save_LIBS"
|
LIBS="$curl_cv_save_LIBS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
case "$curl_func_clock_gettime" in
|
case "$curl_func_clock_gettime" in
|
||||||
yes)
|
yes)
|
||||||
AC_DEFINE_UNQUOTED(HAVE_CLOCK_GETTIME_MONOTONIC, 1,
|
AC_DEFINE_UNQUOTED(HAVE_CLOCK_GETTIME_MONOTONIC, 1,
|
||||||
[Define to 1 if you have the clock_gettime function and monotonic timer.])
|
[Define to 1 if you have the clock_gettime function and monotonic timer.])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -935,8 +930,8 @@ dnl Verify if network connect function is already available
|
||||||
dnl using current libraries or if another one is required.
|
dnl using current libraries or if another one is required.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
|
AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
|
||||||
AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
|
AC_REQUIRE([CURL_INCLUDES_WINSOCK2])
|
||||||
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])dnl
|
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])
|
||||||
AC_MSG_CHECKING([for connect in libraries])
|
AC_MSG_CHECKING([for connect in libraries])
|
||||||
tst_connect_save_LIBS="$LIBS"
|
tst_connect_save_LIBS="$LIBS"
|
||||||
tst_connect_need_LIBS="unknown"
|
tst_connect_need_LIBS="unknown"
|
||||||
|
|
@ -960,7 +955,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
LIBS="$tst_connect_save_LIBS"
|
LIBS="$tst_connect_save_LIBS"
|
||||||
#
|
|
||||||
case X-"$tst_connect_need_LIBS" in
|
case X-"$tst_connect_need_LIBS" in
|
||||||
X-unknown)
|
X-unknown)
|
||||||
AC_MSG_RESULT([cannot find connect])
|
AC_MSG_RESULT([cannot find connect])
|
||||||
|
|
@ -982,10 +977,10 @@ dnl -------------------------------------------------
|
||||||
dnl Test if the socket select() function is available.
|
dnl Test if the socket select() function is available.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
||||||
AC_REQUIRE([CURL_CHECK_STRUCT_TIMEVAL])dnl
|
AC_REQUIRE([CURL_CHECK_STRUCT_TIMEVAL])
|
||||||
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])dnl
|
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])
|
||||||
AC_CHECK_HEADERS(sys/select.h)
|
AC_CHECK_HEADERS(sys/select.h)
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([for select])
|
AC_MSG_CHECKING([for select])
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -1021,7 +1016,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
curl_cv_select="no"
|
curl_cv_select="no"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
if test "$curl_cv_select" = "yes"; then
|
if test "$curl_cv_select" = "yes"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_SELECT, 1,
|
AC_DEFINE_UNQUOTED(HAVE_SELECT, 1,
|
||||||
[Define to 1 if you have the select function.])
|
[Define to 1 if you have the select function.])
|
||||||
|
|
@ -1132,7 +1127,7 @@ AS_HELP_STRING([--without-ca-path], [Do not use a default CA path]),
|
||||||
capath="$want_capath"
|
capath="$want_capath"
|
||||||
ca="no"
|
ca="no"
|
||||||
elif test "$ca_native" != "no"; then
|
elif test "$ca_native" != "no"; then
|
||||||
# native ca configured, do not look further
|
dnl native ca configured, do not look further
|
||||||
ca="no"
|
ca="no"
|
||||||
capath="no"
|
capath="no"
|
||||||
else
|
else
|
||||||
|
|
@ -1275,7 +1270,7 @@ dnl -------------------------------------------------
|
||||||
dnl Check if curl's Win32 crypto lib can be used
|
dnl Check if curl's Win32 crypto lib can be used
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_WIN32_CRYPTO], [
|
AC_DEFUN([CURL_CHECK_WIN32_CRYPTO], [
|
||||||
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_NATIVE_WINDOWS])
|
||||||
AC_MSG_CHECKING([whether build target supports Win32 crypto API])
|
AC_MSG_CHECKING([whether build target supports Win32 crypto API])
|
||||||
curl_win32_crypto_api="no"
|
curl_win32_crypto_api="no"
|
||||||
if test "$curl_cv_native_windows" = "yes" && test "$curl_cv_winuwp" != "yes"; then
|
if test "$curl_cv_native_windows" = "yes" && test "$curl_cv_winuwp" != "yes"; then
|
||||||
|
|
@ -1391,7 +1386,7 @@ AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
||||||
if test "$PKGCONFIG" != "no"; then
|
if test "$PKGCONFIG" != "no"; then
|
||||||
AC_MSG_CHECKING([for $1 options with pkg-config])
|
AC_MSG_CHECKING([for $1 options with pkg-config])
|
||||||
dnl ask pkg-config about $1
|
dnl ask pkg-config about $1
|
||||||
itexists=`CURL_EXPORT_PCDIR([$2], [$3]) dnl
|
itexists=`CURL_EXPORT_PCDIR([$2], [$3])
|
||||||
$PKGCONFIG --exists $1 >/dev/null 2>&1 && echo 1`
|
$PKGCONFIG --exists $1 >/dev/null 2>&1 && echo 1`
|
||||||
|
|
||||||
if test -z "$itexists"; then
|
if test -z "$itexists"; then
|
||||||
|
|
@ -1420,7 +1415,7 @@ dnl when the configure script runs. For portability reasons, test
|
||||||
dnl harness needs information on how to run the C preprocessor.
|
dnl harness needs information on how to run the C preprocessor.
|
||||||
|
|
||||||
AC_DEFUN([CURL_PREPARE_CONFIGUREHELP_PM], [
|
AC_DEFUN([CURL_PREPARE_CONFIGUREHELP_PM], [
|
||||||
AC_REQUIRE([AC_PROG_CPP])dnl
|
AC_REQUIRE([AC_PROG_CPP])
|
||||||
tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
|
tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
|
||||||
if test -z "$tmp_cpp"; then
|
if test -z "$tmp_cpp"; then
|
||||||
tmp_cpp='cpp'
|
tmp_cpp='cpp'
|
||||||
|
|
@ -1533,16 +1528,16 @@ TEST EINVAL TEST
|
||||||
|
|
||||||
if test "$cpp_p" = "no"; then
|
if test "$cpp_p" = "no"; then
|
||||||
AC_MSG_WARN([failed to figure out cpp -P alternative])
|
AC_MSG_WARN([failed to figure out cpp -P alternative])
|
||||||
# without -P
|
dnl without -P
|
||||||
CPPPFLAG=""
|
CPPPFLAG=""
|
||||||
else
|
else
|
||||||
# with -P
|
dnl with -P
|
||||||
CPPPFLAG="-P"
|
CPPPFLAG="-P"
|
||||||
fi
|
fi
|
||||||
dnl restore CPPFLAGS
|
dnl restore CPPFLAGS
|
||||||
CPPFLAGS=$OLDCPPFLAGS
|
CPPFLAGS=$OLDCPPFLAGS
|
||||||
else
|
else
|
||||||
# without -P
|
dnl without -P
|
||||||
CPPPFLAG=""
|
CPPPFLAG=""
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
|
||||||
208
configure.ac
208
configure.ac
|
|
@ -57,9 +57,9 @@ CURL_CHECK_OPTION_SSLS_EXPORT
|
||||||
|
|
||||||
XC_CHECK_PATH_SEPARATOR
|
XC_CHECK_PATH_SEPARATOR
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# save the configure arguments
|
dnl save the configure arguments
|
||||||
#
|
dnl
|
||||||
CONFIGURE_OPTIONS="\"$ac_configure_args\""
|
CONFIGURE_OPTIONS="\"$ac_configure_args\""
|
||||||
AC_SUBST(CONFIGURE_OPTIONS)
|
AC_SUBST(CONFIGURE_OPTIONS)
|
||||||
|
|
||||||
|
|
@ -207,13 +207,13 @@ dnl See which TLS backend(s) that are requested. Just do all the
|
||||||
dnl TLS AC_ARG_WITH() invokes here and do the checks later
|
dnl TLS AC_ARG_WITH() invokes here and do the checks later
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
OPT_SCHANNEL=no
|
OPT_SCHANNEL=no
|
||||||
AC_ARG_WITH(schannel,dnl
|
AC_ARG_WITH(schannel,
|
||||||
AS_HELP_STRING([--with-schannel],[enable Windows native SSL/TLS]),
|
AS_HELP_STRING([--with-schannel],[enable Windows native SSL/TLS]),
|
||||||
OPT_SCHANNEL=$withval
|
OPT_SCHANNEL=$withval
|
||||||
TLSCHOICE="Schannel")
|
TLSCHOICE="Schannel")
|
||||||
|
|
||||||
OPT_AMISSL=no
|
OPT_AMISSL=no
|
||||||
AC_ARG_WITH(amissl,dnl
|
AC_ARG_WITH(amissl,
|
||||||
AS_HELP_STRING([--with-amissl],[enable Amiga native SSL/TLS (AmiSSL)]),[
|
AS_HELP_STRING([--with-amissl],[enable Amiga native SSL/TLS (AmiSSL)]),[
|
||||||
OPT_AMISSL=$withval
|
OPT_AMISSL=$withval
|
||||||
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
|
TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
|
||||||
|
|
@ -222,7 +222,7 @@ AS_HELP_STRING([--with-amissl],[enable Amiga native SSL/TLS (AmiSSL)]),[
|
||||||
OPT_OPENSSL=no
|
OPT_OPENSSL=no
|
||||||
dnl Default to no CA bundle
|
dnl Default to no CA bundle
|
||||||
ca="no"
|
ca="no"
|
||||||
AC_ARG_WITH(ssl,dnl
|
AC_ARG_WITH(ssl,
|
||||||
AS_HELP_STRING([--with-ssl=PATH],[old version of --with-openssl])
|
AS_HELP_STRING([--with-ssl=PATH],[old version of --with-openssl])
|
||||||
AS_HELP_STRING([--without-ssl], [build without any TLS library]),[
|
AS_HELP_STRING([--without-ssl], [build without any TLS library]),[
|
||||||
OPT_SSL=$withval
|
OPT_SSL=$withval
|
||||||
|
|
@ -234,7 +234,7 @@ AS_HELP_STRING([--without-ssl], [build without any TLS library]),[
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_ARG_WITH(openssl,dnl
|
AC_ARG_WITH(openssl,
|
||||||
AS_HELP_STRING([--with-openssl=PATH],[Where to look for OpenSSL, PATH points
|
AS_HELP_STRING([--with-openssl=PATH],[Where to look for OpenSSL, PATH points
|
||||||
to the SSL installation (default: /usr/local/ssl); when possible, set
|
to the SSL installation (default: /usr/local/ssl); when possible, set
|
||||||
the PKG_CONFIG_PATH environment variable instead of using this option]),
|
the PKG_CONFIG_PATH environment variable instead of using this option]),
|
||||||
|
|
@ -246,7 +246,7 @@ AS_HELP_STRING([--with-openssl=PATH],[Where to look for OpenSSL, PATH points
|
||||||
])
|
])
|
||||||
|
|
||||||
OPT_GNUTLS=no
|
OPT_GNUTLS=no
|
||||||
AC_ARG_WITH(gnutls,dnl
|
AC_ARG_WITH(gnutls,
|
||||||
AS_HELP_STRING([--with-gnutls=PATH],[where to look for GnuTLS, PATH points to the installation root]),[
|
AS_HELP_STRING([--with-gnutls=PATH],[where to look for GnuTLS, PATH points to the installation root]),[
|
||||||
OPT_GNUTLS=$withval
|
OPT_GNUTLS=$withval
|
||||||
if test "x$withval" != "xno"; then
|
if test "x$withval" != "xno"; then
|
||||||
|
|
@ -255,7 +255,7 @@ AS_HELP_STRING([--with-gnutls=PATH],[where to look for GnuTLS, PATH points to th
|
||||||
])
|
])
|
||||||
|
|
||||||
OPT_MBEDTLS=no
|
OPT_MBEDTLS=no
|
||||||
AC_ARG_WITH(mbedtls,dnl
|
AC_ARG_WITH(mbedtls,
|
||||||
AS_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to the installation root]),[
|
AS_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to the installation root]),[
|
||||||
OPT_MBEDTLS=$withval
|
OPT_MBEDTLS=$withval
|
||||||
if test "x$withval" != "xno"; then
|
if test "x$withval" != "xno"; then
|
||||||
|
|
@ -264,7 +264,7 @@ AS_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to
|
||||||
])
|
])
|
||||||
|
|
||||||
OPT_WOLFSSL=no
|
OPT_WOLFSSL=no
|
||||||
AC_ARG_WITH(wolfssl,dnl
|
AC_ARG_WITH(wolfssl,
|
||||||
AS_HELP_STRING([--with-wolfssl=PATH],[where to look for wolfSSL, PATH points to the installation root (default: system lib default)]),[
|
AS_HELP_STRING([--with-wolfssl=PATH],[where to look for wolfSSL, PATH points to the installation root (default: system lib default)]),[
|
||||||
OPT_WOLFSSL=$withval
|
OPT_WOLFSSL=$withval
|
||||||
if test "x$withval" != "xno"; then
|
if test "x$withval" != "xno"; then
|
||||||
|
|
@ -273,7 +273,7 @@ AS_HELP_STRING([--with-wolfssl=PATH],[where to look for wolfSSL, PATH points to
|
||||||
])
|
])
|
||||||
|
|
||||||
OPT_RUSTLS=no
|
OPT_RUSTLS=no
|
||||||
AC_ARG_WITH(rustls,dnl
|
AC_ARG_WITH(rustls,
|
||||||
AS_HELP_STRING([--with-rustls=PATH],[where to look for Rustls, PATH points to the installation root]),[
|
AS_HELP_STRING([--with-rustls=PATH],[where to look for Rustls, PATH points to the installation root]),[
|
||||||
OPT_RUSTLS=$withval
|
OPT_RUSTLS=$withval
|
||||||
if test "x$withval" != "xno"; then
|
if test "x$withval" != "xno"; then
|
||||||
|
|
@ -283,7 +283,7 @@ AS_HELP_STRING([--with-rustls=PATH],[where to look for Rustls, PATH points to th
|
||||||
])
|
])
|
||||||
|
|
||||||
OPT_APPLE_SECTRUST=$curl_cv_apple
|
OPT_APPLE_SECTRUST=$curl_cv_apple
|
||||||
AC_ARG_WITH(apple-sectrust,dnl
|
AC_ARG_WITH(apple-sectrust,
|
||||||
AS_HELP_STRING([--with-apple-sectrust],[enable Apple OS native certificate verification]),[
|
AS_HELP_STRING([--with-apple-sectrust],[enable Apple OS native certificate verification]),[
|
||||||
OPT_APPLE_SECTRUST=$withval
|
OPT_APPLE_SECTRUST=$withval
|
||||||
])
|
])
|
||||||
|
|
@ -293,7 +293,7 @@ AC_SUBST(PERL)
|
||||||
AM_CONDITIONAL(PERL, test -n "$PERL")
|
AM_CONDITIONAL(PERL, test -n "$PERL")
|
||||||
|
|
||||||
TEST_NGHTTPX=nghttpx
|
TEST_NGHTTPX=nghttpx
|
||||||
AC_ARG_WITH(test-nghttpx,dnl
|
AC_ARG_WITH(test-nghttpx,
|
||||||
AS_HELP_STRING([--with-test-nghttpx=PATH],[where to find nghttpx for testing]),
|
AS_HELP_STRING([--with-test-nghttpx=PATH],[where to find nghttpx for testing]),
|
||||||
TEST_NGHTTPX=$withval
|
TEST_NGHTTPX=$withval
|
||||||
if test "x$TEST_NGHTTPX" = "xno"; then
|
if test "x$TEST_NGHTTPX" = "xno"; then
|
||||||
|
|
@ -309,7 +309,7 @@ elif test -x /usr/local/bin/caddy; then
|
||||||
elif test -x "`brew --prefix 2>/dev/null`/bin/caddy"; then
|
elif test -x "`brew --prefix 2>/dev/null`/bin/caddy"; then
|
||||||
CADDY=`brew --prefix`/bin/caddy
|
CADDY=`brew --prefix`/bin/caddy
|
||||||
fi
|
fi
|
||||||
AC_ARG_WITH(test-caddy,dnl
|
AC_ARG_WITH(test-caddy,
|
||||||
AS_HELP_STRING([--with-test-caddy=PATH],[where to find caddy for testing]),
|
AS_HELP_STRING([--with-test-caddy=PATH],[where to find caddy for testing]),
|
||||||
CADDY=$withval
|
CADDY=$withval
|
||||||
if test "x$CADDY" = "xno"; then
|
if test "x$CADDY" = "xno"; then
|
||||||
|
|
@ -325,7 +325,7 @@ elif test -x /usr/local/sbin/vsftpd; then
|
||||||
elif test -x "`brew --prefix 2>/dev/null`/sbin/vsftpd"; then
|
elif test -x "`brew --prefix 2>/dev/null`/sbin/vsftpd"; then
|
||||||
VSFTPD=`brew --prefix`/sbin/vsftpd
|
VSFTPD=`brew --prefix`/sbin/vsftpd
|
||||||
fi
|
fi
|
||||||
AC_ARG_WITH(test-vsftpd,dnl
|
AC_ARG_WITH(test-vsftpd,
|
||||||
AS_HELP_STRING([--with-test-vsftpd=PATH],[where to find vsftpd for testing]),
|
AS_HELP_STRING([--with-test-vsftpd=PATH],[where to find vsftpd for testing]),
|
||||||
VSFTPD=$withval
|
VSFTPD=$withval
|
||||||
if test "x$VSFTPD" = "xno"; then
|
if test "x$VSFTPD" = "xno"; then
|
||||||
|
|
@ -342,7 +342,7 @@ AC_ARG_WITH(test-httpd, [AS_HELP_STRING([--with-test-httpd=PATH],
|
||||||
[request_httpd=$withval], [request_httpd=check])
|
[request_httpd=$withval], [request_httpd=check])
|
||||||
if test "x$request_httpd" = "xcheck" || test "x$request_httpd" = "xyes"; then
|
if test "x$request_httpd" = "xcheck" || test "x$request_httpd" = "xyes"; then
|
||||||
if test -x "/usr/sbin/apache2"; then
|
if test -x "/usr/sbin/apache2"; then
|
||||||
# common location on distros (debian/ubuntu)
|
dnl common location on distros (debian/ubuntu)
|
||||||
HTTPD="/usr/sbin/apache2"
|
HTTPD="/usr/sbin/apache2"
|
||||||
AC_PATH_PROG([APXS], [apxs])
|
AC_PATH_PROG([APXS], [apxs])
|
||||||
if test -z "$APXS"; then
|
if test -z "$APXS"; then
|
||||||
|
|
@ -392,7 +392,7 @@ AC_ARG_WITH(test-danted, [AS_HELP_STRING([--with-test-danted=PATH],
|
||||||
[request_danted=$withval], [request_danted=check])
|
[request_danted=$withval], [request_danted=check])
|
||||||
if test "x$request_danted" = "xcheck" || test "x$request_danted" = "xyes"; then
|
if test "x$request_danted" = "xcheck" || test "x$request_danted" = "xyes"; then
|
||||||
if test -x "/usr/sbin/danted"; then
|
if test -x "/usr/sbin/danted"; then
|
||||||
# common location on distros (debian/ubuntu)
|
dnl common location on distros (debian/ubuntu)
|
||||||
DANTED="/usr/sbin/danted"
|
DANTED="/usr/sbin/danted"
|
||||||
else
|
else
|
||||||
AC_PATH_PROG([DANTED], [danted])
|
AC_PATH_PROG([DANTED], [danted])
|
||||||
|
|
@ -422,7 +422,7 @@ AC_ARG_WITH(test-sshd, [AS_HELP_STRING([--with-test-sshd=PATH],
|
||||||
[request_sshd=$withval], [request_sshd=check])
|
[request_sshd=$withval], [request_sshd=check])
|
||||||
if test "x$request_sshd" = "xcheck" || test "x$request_sshd" = "xyes"; then
|
if test "x$request_sshd" = "xcheck" || test "x$request_sshd" = "xyes"; then
|
||||||
if test -x "/usr/sbin/sshd"; then
|
if test -x "/usr/sbin/sshd"; then
|
||||||
# common location on distros (debian/ubuntu)
|
dnl common location on distros (debian/ubuntu)
|
||||||
SSHD="/usr/sbin/sshd"
|
SSHD="/usr/sbin/sshd"
|
||||||
else
|
else
|
||||||
AC_PATH_PROG([SSHD], [sshd])
|
AC_PATH_PROG([SSHD], [sshd])
|
||||||
|
|
@ -444,10 +444,10 @@ if test "$SSHD_ENABLED" = "no"; then
|
||||||
SFTPD=""
|
SFTPD=""
|
||||||
else
|
else
|
||||||
if test -x "/usr/libexec/sftp-server"; then
|
if test -x "/usr/libexec/sftp-server"; then
|
||||||
# common location on macOS)
|
dnl common location on macOS)
|
||||||
SFTPD="/usr/libexec/sftp-server"
|
SFTPD="/usr/libexec/sftp-server"
|
||||||
elif test -x "/usr/lib/openssh/sftp-server"; then
|
elif test -x "/usr/lib/openssh/sftp-server"; then
|
||||||
# common location on debian
|
dnl common location on debian
|
||||||
SFTPD="/usr/lib/openssh/sftp-server"
|
SFTPD="/usr/lib/openssh/sftp-server"
|
||||||
else
|
else
|
||||||
AC_PATH_PROG([SFTPD], [sftp-server])
|
AC_PATH_PROG([SFTPD], [sftp-server])
|
||||||
|
|
@ -506,7 +506,7 @@ AC_CANONICAL_HOST
|
||||||
dnl Get system canonical name
|
dnl Get system canonical name
|
||||||
AC_DEFINE_UNQUOTED(CURL_OS, "${host}", [cpu-machine-OS])
|
AC_DEFINE_UNQUOTED(CURL_OS, "${host}", [cpu-machine-OS])
|
||||||
|
|
||||||
# Silence warning: ar: 'u' modifier ignored since 'D' is the default
|
dnl Silence warning: ar: 'u' modifier ignored since 'D' is the default
|
||||||
AC_SUBST(AR_FLAGS, [cr])
|
AC_SUBST(AR_FLAGS, [cr])
|
||||||
|
|
||||||
dnl This defines _ALL_SOURCE for AIX
|
dnl This defines _ALL_SOURCE for AIX
|
||||||
|
|
@ -525,9 +525,9 @@ LT_LANG([Windows Resource])
|
||||||
|
|
||||||
AM_CONDITIONAL(NOT_CURL_CI, test -z "$CURL_CI")
|
AM_CONDITIONAL(NOT_CURL_CI, test -z "$CURL_CI")
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Automake conditionals based on libtool related checks
|
dnl Automake conditionals based on libtool related checks
|
||||||
#
|
dnl
|
||||||
|
|
||||||
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSION_INFO],
|
AM_CONDITIONAL([CURL_LT_SHLIB_USE_VERSION_INFO],
|
||||||
[test "$xc_lt_shlib_use_version_info" = "yes"])
|
[test "$xc_lt_shlib_use_version_info" = "yes"])
|
||||||
|
|
@ -536,30 +536,30 @@ AM_CONDITIONAL([CURL_LT_SHLIB_USE_NO_UNDEFINED],
|
||||||
AM_CONDITIONAL([CURL_LT_SHLIB_USE_MIMPURE_TEXT],
|
AM_CONDITIONAL([CURL_LT_SHLIB_USE_MIMPURE_TEXT],
|
||||||
[test "$xc_lt_shlib_use_mimpure_text" = "yes"])
|
[test "$xc_lt_shlib_use_mimpure_text" = "yes"])
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Due to libtool and automake machinery limitations of not allowing
|
dnl Due to libtool and automake machinery limitations of not allowing
|
||||||
# specifying separate CPPFLAGS or CFLAGS when compiling objects for
|
dnl specifying separate CPPFLAGS or CFLAGS when compiling objects for
|
||||||
# inclusion of these in shared or static libraries, we are forced to
|
dnl inclusion of these in shared or static libraries, we are forced to
|
||||||
# build using separate configure runs for shared and static libraries
|
dnl build using separate configure runs for shared and static libraries
|
||||||
# on systems where different CPPFLAGS or CFLAGS are mandatory in order
|
dnl on systems where different CPPFLAGS or CFLAGS are mandatory in order
|
||||||
# to compile objects for each kind of library. Notice that relying on
|
dnl to compile objects for each kind of library. Notice that relying on
|
||||||
# the '-DPIC' CFLAG that libtool provides is not valid given that the
|
dnl the '-DPIC' CFLAG that libtool provides is not valid given that the
|
||||||
# user might for example choose to build static libraries with PIC.
|
dnl user might for example choose to build static libraries with PIC.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
|
dnl Make our Makefile.am files use the staticlib CPPFLAG only when strictly
|
||||||
# targeting a static library and not building its shared counterpart.
|
dnl targeting a static library and not building its shared counterpart.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
AM_CONDITIONAL([USE_CPPFLAG_CURL_STATICLIB],
|
AM_CONDITIONAL([USE_CPPFLAG_CURL_STATICLIB],
|
||||||
[test "$xc_lt_build_static_only" = "yes"])
|
[test "$xc_lt_build_static_only" = "yes"])
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Make staticlib CPPFLAG variable and its definition visible in output
|
dnl Make staticlib CPPFLAG variable and its definition visible in output
|
||||||
# files unconditionally, providing an empty definition unless strictly
|
dnl files unconditionally, providing an empty definition unless strictly
|
||||||
# targeting a static library and not building its shared counterpart.
|
dnl targeting a static library and not building its shared counterpart.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
LIBCURL_PC_CFLAGS_PRIVATE='-DCURL_STATICLIB'
|
LIBCURL_PC_CFLAGS_PRIVATE='-DCURL_STATICLIB'
|
||||||
AC_SUBST(LIBCURL_PC_CFLAGS_PRIVATE)
|
AC_SUBST(LIBCURL_PC_CFLAGS_PRIVATE)
|
||||||
|
|
@ -608,7 +608,6 @@ CURL_SET_COMPILER_OPTIMIZE_OPTS
|
||||||
CURL_SET_COMPILER_WARNING_OPTS
|
CURL_SET_COMPILER_WARNING_OPTS
|
||||||
|
|
||||||
if test "$compiler_id" = "INTEL_UNIX_C"; then
|
if test "$compiler_id" = "INTEL_UNIX_C"; then
|
||||||
#
|
|
||||||
if test "$compiler_num" -ge "1000"; then
|
if test "$compiler_num" -ge "1000"; then
|
||||||
dnl icc 10.X or later
|
dnl icc 10.X or later
|
||||||
CFLAGS="$CFLAGS -shared-intel"
|
CFLAGS="$CFLAGS -shared-intel"
|
||||||
|
|
@ -616,7 +615,6 @@ if test "$compiler_id" = "INTEL_UNIX_C"; then
|
||||||
dnl icc 9.X specific
|
dnl icc 9.X specific
|
||||||
CFLAGS="$CFLAGS -i-dynamic"
|
CFLAGS="$CFLAGS -i-dynamic"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
|
|
@ -650,17 +648,17 @@ CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH
|
||||||
CURL_CHECK_COMPILER_SYMBOL_HIDING
|
CURL_CHECK_COMPILER_SYMBOL_HIDING
|
||||||
|
|
||||||
supports_unittests=yes
|
supports_unittests=yes
|
||||||
# cross-compilation of unit tests static library/programs fails when
|
dnl cross-compilation of unit tests static library/programs fails when
|
||||||
# libcurl shared library is built. This might be due to a libtool or
|
dnl libcurl shared library is built. This might be due to a libtool or
|
||||||
# automake issue. In this case we disable unit tests.
|
dnl automake issue. In this case we disable unit tests.
|
||||||
if test "$cross_compiling" != "no" &&
|
if test "$cross_compiling" != "no" &&
|
||||||
test "$enable_shared" != "no"; then
|
test "$enable_shared" != "no"; then
|
||||||
supports_unittests=no
|
supports_unittests=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
|
dnl IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
|
||||||
# a problem related with OpenSSL headers and library versions not matching.
|
dnl a problem related with OpenSSL headers and library versions not matching.
|
||||||
# Disable unit tests while time to further investigate this is found.
|
dnl Disable unit tests while time to further investigate this is found.
|
||||||
case $host in
|
case $host in
|
||||||
mips-sgi-irix6.5)
|
mips-sgi-irix6.5)
|
||||||
if test "$compiler_id" = "GNU_C"; then
|
if test "$compiler_id" = "GNU_C"; then
|
||||||
|
|
@ -669,9 +667,9 @@ case $host in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# All AIX autobuilds fails unit tests linking against unittests library
|
dnl All AIX autobuilds fails unit tests linking against unittests library
|
||||||
# due to unittests library being built with no symbols or members. Libtool ?
|
dnl due to unittests library being built with no symbols or members. Libtool ?
|
||||||
# Disable unit tests while time to further investigate this is found.
|
dnl Disable unit tests while time to further investigate this is found.
|
||||||
case $host_os in
|
case $host_os in
|
||||||
aix*)
|
aix*)
|
||||||
supports_unittests=no
|
supports_unittests=no
|
||||||
|
|
@ -680,8 +678,8 @@ esac
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_UNITTESTS, test "$supports_unittests" = "yes")
|
AM_CONDITIONAL(BUILD_UNITTESTS, test "$supports_unittests" = "yes")
|
||||||
|
|
||||||
# In order to detect support of sendmmsg() and accept4(), we need to escape the POSIX
|
dnl In order to detect support of sendmmsg() and accept4(), we need to escape the POSIX
|
||||||
# jail by defining _GNU_SOURCE or <sys/socket.h> will not expose it.
|
dnl jail by defining _GNU_SOURCE or <sys/socket.h> will not expose it.
|
||||||
case $host_os in
|
case $host_os in
|
||||||
*linux*|cygwin*|msys*|gnu*)
|
*linux*|cygwin*|msys*|gnu*)
|
||||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||||
|
|
@ -1277,8 +1275,8 @@ if test "$HAVE_GETHOSTBYNAME" != "1"; then
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In UWP mode gethostbyname gets detected via the core libs, but some
|
dnl In UWP mode gethostbyname gets detected via the core libs, but some
|
||||||
# code (in6addr_any) still need ws2_32, so let us detect and add it.
|
dnl code (in6addr_any) still need ws2_32, so let us detect and add it.
|
||||||
if test "$HAVE_GETHOSTBYNAME" != "1" || test "$curl_cv_winuwp" = "yes"; then
|
if test "$HAVE_GETHOSTBYNAME" != "1" || test "$curl_cv_winuwp" = "yes"; then
|
||||||
if test "$curl_cv_native_windows" = "yes"; then
|
if test "$curl_cv_native_windows" = "yes"; then
|
||||||
dnl This is for Winsock systems
|
dnl This is for Winsock systems
|
||||||
|
|
@ -1531,7 +1529,7 @@ dnl Brotli project home page: https://github.com/google/brotli
|
||||||
|
|
||||||
dnl Default to compiler & linker defaults for BROTLI files & libraries.
|
dnl Default to compiler & linker defaults for BROTLI files & libraries.
|
||||||
OPT_BROTLI=off
|
OPT_BROTLI=off
|
||||||
AC_ARG_WITH(brotli,dnl
|
AC_ARG_WITH(brotli,
|
||||||
AS_HELP_STRING([--with-brotli=PATH],[Where to look for brotli, PATH points to the BROTLI installation;
|
AS_HELP_STRING([--with-brotli=PATH],[Where to look for brotli, PATH points to the BROTLI installation;
|
||||||
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
||||||
AS_HELP_STRING([--without-brotli], [disable BROTLI]),
|
AS_HELP_STRING([--without-brotli], [disable BROTLI]),
|
||||||
|
|
@ -1629,7 +1627,7 @@ dnl **********************************************************************
|
||||||
|
|
||||||
dnl Default to compiler & linker defaults for libzstd
|
dnl Default to compiler & linker defaults for libzstd
|
||||||
OPT_ZSTD=off
|
OPT_ZSTD=off
|
||||||
AC_ARG_WITH(zstd,dnl
|
AC_ARG_WITH(zstd,
|
||||||
AS_HELP_STRING([--with-zstd=PATH],[Where to look for libzstd, PATH points to the libzstd installation;
|
AS_HELP_STRING([--with-zstd=PATH],[Where to look for libzstd, PATH points to the libzstd installation;
|
||||||
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
||||||
AS_HELP_STRING([--without-zstd], [disable libzstd]),
|
AS_HELP_STRING([--without-zstd], [disable libzstd]),
|
||||||
|
|
@ -2077,12 +2075,12 @@ case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENAB
|
||||||
Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-amissl or --with-rustls to address this.])
|
Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-amissl or --with-rustls to address this.])
|
||||||
;;
|
;;
|
||||||
x1)
|
x1)
|
||||||
# one SSL backend is enabled
|
dnl one SSL backend is enabled
|
||||||
SSL_ENABLED="1"
|
SSL_ENABLED="1"
|
||||||
AC_MSG_NOTICE([built with one SSL backend])
|
AC_MSG_NOTICE([built with one SSL backend])
|
||||||
;;
|
;;
|
||||||
xD)
|
xD)
|
||||||
# explicitly built without TLS
|
dnl explicitly built without TLS
|
||||||
;;
|
;;
|
||||||
xD*)
|
xD*)
|
||||||
AC_MSG_ERROR([--without-ssl has been set together with an explicit option to use an ssl library
|
AC_MSG_ERROR([--without-ssl has been set together with an explicit option to use an ssl library
|
||||||
|
|
@ -2090,7 +2088,7 @@ Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schann
|
||||||
Since these are conflicting parameters, verify which is the desired one and drop the other.])
|
Since these are conflicting parameters, verify which is the desired one and drop the other.])
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# more than one SSL backend is enabled
|
dnl more than one SSL backend is enabled
|
||||||
SSL_ENABLED="1"
|
SSL_ENABLED="1"
|
||||||
CURL_WITH_MULTI_SSL="1"
|
CURL_WITH_MULTI_SSL="1"
|
||||||
AC_DEFINE(CURL_WITH_MULTI_SSL, 1, [built with multiple SSL backends])
|
AC_DEFINE(CURL_WITH_MULTI_SSL, 1, [built with multiple SSL backends])
|
||||||
|
|
@ -2212,7 +2210,7 @@ dnl **********************************************************************
|
||||||
|
|
||||||
dnl Default to compiler & linker defaults for LIBPSL files & libraries.
|
dnl Default to compiler & linker defaults for LIBPSL files & libraries.
|
||||||
OPT_LIBPSL=off
|
OPT_LIBPSL=off
|
||||||
AC_ARG_WITH(libpsl,dnl
|
AC_ARG_WITH(libpsl,
|
||||||
AS_HELP_STRING([--with-libpsl=PATH],[Where to look for libpsl, PATH points to the LIBPSL installation;
|
AS_HELP_STRING([--with-libpsl=PATH],[Where to look for libpsl, PATH points to the LIBPSL installation;
|
||||||
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
||||||
AS_HELP_STRING([--without-libpsl], [disable LIBPSL]),
|
AS_HELP_STRING([--without-libpsl], [disable LIBPSL]),
|
||||||
|
|
@ -2285,7 +2283,7 @@ dnl Check for libgsasl
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
|
||||||
OPT_LIBGSASL=no
|
OPT_LIBGSASL=no
|
||||||
AC_ARG_WITH(libgsasl,dnl
|
AC_ARG_WITH(libgsasl,
|
||||||
AS_HELP_STRING([--with-libgsasl=PATH],[Where to look for libgsasl, PATH points to the libgsasl installation;
|
AS_HELP_STRING([--with-libgsasl=PATH],[Where to look for libgsasl, PATH points to the libgsasl installation;
|
||||||
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
||||||
AS_HELP_STRING([--without-libgsasl], [disable libgsasl support for SCRAM]),
|
AS_HELP_STRING([--without-libgsasl], [disable libgsasl support for SCRAM]),
|
||||||
|
|
@ -2359,14 +2357,14 @@ dnl **********************************************************************
|
||||||
|
|
||||||
dnl Default to compiler & linker defaults for libssh2 files & libraries.
|
dnl Default to compiler & linker defaults for libssh2 files & libraries.
|
||||||
OPT_LIBSSH2=off
|
OPT_LIBSSH2=off
|
||||||
AC_ARG_WITH(libssh2,dnl
|
AC_ARG_WITH(libssh2,
|
||||||
AS_HELP_STRING([--with-libssh2=PATH],[Where to look for libssh2, PATH points to the libssh2 installation;
|
AS_HELP_STRING([--with-libssh2=PATH],[Where to look for libssh2, PATH points to the libssh2 installation;
|
||||||
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
||||||
AS_HELP_STRING([--with-libssh2], [enable libssh2]),
|
AS_HELP_STRING([--with-libssh2], [enable libssh2]),
|
||||||
OPT_LIBSSH2=$withval, OPT_LIBSSH2=no)
|
OPT_LIBSSH2=$withval, OPT_LIBSSH2=no)
|
||||||
|
|
||||||
OPT_LIBSSH=off
|
OPT_LIBSSH=off
|
||||||
AC_ARG_WITH(libssh,dnl
|
AC_ARG_WITH(libssh,
|
||||||
AS_HELP_STRING([--with-libssh=PATH],[Where to look for libssh, PATH points to the libssh installation;
|
AS_HELP_STRING([--with-libssh=PATH],[Where to look for libssh, PATH points to the libssh installation;
|
||||||
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
|
||||||
AS_HELP_STRING([--with-libssh], [enable libssh]),
|
AS_HELP_STRING([--with-libssh], [enable libssh]),
|
||||||
|
|
@ -2920,17 +2918,17 @@ if test "$want_idn" = "yes"; then
|
||||||
clean_LDFLAGSPC="$LDFLAGSPC"
|
clean_LDFLAGSPC="$LDFLAGSPC"
|
||||||
clean_LIBS="$LIBS"
|
clean_LIBS="$LIBS"
|
||||||
PKGCONFIG="no"
|
PKGCONFIG="no"
|
||||||
#
|
|
||||||
if test "$want_idn_path" != "default"; then
|
if test "$want_idn_path" != "default"; then
|
||||||
dnl path has been specified
|
dnl path has been specified
|
||||||
IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
|
IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
|
||||||
CURL_CHECK_PKGCONFIG(libidn2, [$IDN_PCDIR])
|
CURL_CHECK_PKGCONFIG(libidn2, [$IDN_PCDIR])
|
||||||
if test "$PKGCONFIG" != "no"; then
|
if test "$PKGCONFIG" != "no"; then
|
||||||
IDN_LIBS=`CURL_EXPORT_PCDIR([$IDN_PCDIR]) dnl
|
IDN_LIBS=`CURL_EXPORT_PCDIR([$IDN_PCDIR])
|
||||||
$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
|
$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
|
||||||
IDN_LDFLAGS=`CURL_EXPORT_PCDIR([$IDN_PCDIR]) dnl
|
IDN_LDFLAGS=`CURL_EXPORT_PCDIR([$IDN_PCDIR])
|
||||||
$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
|
$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
|
||||||
IDN_CPPFLAGS=`CURL_EXPORT_PCDIR([$IDN_PCDIR]) dnl
|
IDN_CPPFLAGS=`CURL_EXPORT_PCDIR([$IDN_PCDIR])
|
||||||
$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
|
$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
|
||||||
IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
|
IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
|
||||||
else
|
else
|
||||||
|
|
@ -2953,7 +2951,7 @@ if test "$want_idn" = "yes"; then
|
||||||
IDN_LIBS="-lidn2"
|
IDN_LIBS="-lidn2"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
if test "$PKGCONFIG" != "no"; then
|
if test "$PKGCONFIG" != "no"; then
|
||||||
AC_MSG_NOTICE([pkg-config: IDN_LIBS: "$IDN_LIBS"])
|
AC_MSG_NOTICE([pkg-config: IDN_LIBS: "$IDN_LIBS"])
|
||||||
AC_MSG_NOTICE([pkg-config: IDN_LDFLAGS: "$IDN_LDFLAGS"])
|
AC_MSG_NOTICE([pkg-config: IDN_LDFLAGS: "$IDN_LDFLAGS"])
|
||||||
|
|
@ -2965,12 +2963,12 @@ if test "$want_idn" = "yes"; then
|
||||||
AC_MSG_NOTICE([IDN_CPPFLAGS: "$IDN_CPPFLAGS"])
|
AC_MSG_NOTICE([IDN_CPPFLAGS: "$IDN_CPPFLAGS"])
|
||||||
AC_MSG_NOTICE([IDN_DIR: "$IDN_DIR"])
|
AC_MSG_NOTICE([IDN_DIR: "$IDN_DIR"])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
|
||||||
LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
|
LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
|
||||||
LDFLAGSPC="$LDFLAGSPC $IDN_LDFLAGS"
|
LDFLAGSPC="$LDFLAGSPC $IDN_LDFLAGS"
|
||||||
LIBS="$IDN_LIBS $LIBS"
|
LIBS="$IDN_LIBS $LIBS"
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([if idn2_lookup_ul can be linked])
|
AC_MSG_CHECKING([if idn2_lookup_ul can be linked])
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
AC_LANG_FUNC_LINK_TRY([idn2_lookup_ul])
|
AC_LANG_FUNC_LINK_TRY([idn2_lookup_ul])
|
||||||
|
|
@ -2981,7 +2979,7 @@ if test "$want_idn" = "yes"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
tst_links_libidn="no"
|
tst_links_libidn="no"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
AC_CHECK_HEADERS(idn2.h)
|
AC_CHECK_HEADERS(idn2.h)
|
||||||
|
|
||||||
if test "$tst_links_libidn" = "yes"; then
|
if test "$tst_links_libidn" = "yes"; then
|
||||||
|
|
@ -3013,7 +3011,7 @@ dnl **********************************************************************
|
||||||
OPT_H2="yes"
|
OPT_H2="yes"
|
||||||
|
|
||||||
if test "$disable_http" = "yes"; then
|
if test "$disable_http" = "yes"; then
|
||||||
# without HTTP nghttp2 is no use
|
dnl without HTTP nghttp2 is no use
|
||||||
OPT_H2="no"
|
OPT_H2="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -3054,7 +3052,7 @@ if test "$want_nghttp2" != "no"; then
|
||||||
$PKGCONFIG --libs-only-l libnghttp2`
|
$PKGCONFIG --libs-only-l libnghttp2`
|
||||||
AC_MSG_NOTICE([-l is $LIB_H2])
|
AC_MSG_NOTICE([-l is $LIB_H2])
|
||||||
|
|
||||||
CPP_H2=`CURL_EXPORT_PCDIR([$want_nghttp2_pkg_config_path]) dnl
|
CPP_H2=`CURL_EXPORT_PCDIR([$want_nghttp2_pkg_config_path])
|
||||||
$PKGCONFIG --cflags-only-I libnghttp2`
|
$PKGCONFIG --cflags-only-I libnghttp2`
|
||||||
AC_MSG_NOTICE([-I is $CPP_H2])
|
AC_MSG_NOTICE([-I is $CPP_H2])
|
||||||
|
|
||||||
|
|
@ -3081,8 +3079,8 @@ if test "$want_nghttp2" != "no"; then
|
||||||
CPPFLAGS="$CPPFLAGS $CPP_H2"
|
CPPFLAGS="$CPPFLAGS $CPP_H2"
|
||||||
LIBS="$LIB_H2 $LIBS"
|
LIBS="$LIB_H2 $LIBS"
|
||||||
|
|
||||||
# use nghttp2_session_get_stream_local_window_size to require nghttp2
|
dnl use nghttp2_session_get_stream_local_window_size to require nghttp2
|
||||||
# >= 1.15.0
|
dnl >= 1.15.0
|
||||||
AC_CHECK_LIB(nghttp2, nghttp2_session_get_stream_local_window_size,
|
AC_CHECK_LIB(nghttp2, nghttp2_session_get_stream_local_window_size,
|
||||||
[
|
[
|
||||||
AC_CHECK_HEADERS(nghttp2/nghttp2.h,
|
AC_CHECK_HEADERS(nghttp2/nghttp2.h,
|
||||||
|
|
@ -3111,7 +3109,7 @@ dnl **********************************************************************
|
||||||
OPT_TCP2="no"
|
OPT_TCP2="no"
|
||||||
|
|
||||||
if test "$disable_http" = "yes"; then
|
if test "$disable_http" = "yes"; then
|
||||||
# without HTTP, ngtcp2 is no use
|
dnl without HTTP, ngtcp2 is no use
|
||||||
OPT_TCP2="no"
|
OPT_TCP2="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -3156,7 +3154,7 @@ if test "$want_tcp2" != "no"; then
|
||||||
$PKGCONFIG --libs-only-l libngtcp2`
|
$PKGCONFIG --libs-only-l libngtcp2`
|
||||||
AC_MSG_NOTICE([-l is $LIB_TCP2])
|
AC_MSG_NOTICE([-l is $LIB_TCP2])
|
||||||
|
|
||||||
CPP_TCP2=`CURL_EXPORT_PCDIR([$want_tcp2_path]) dnl
|
CPP_TCP2=`CURL_EXPORT_PCDIR([$want_tcp2_path])
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2`
|
$PKGCONFIG --cflags-only-I libngtcp2`
|
||||||
AC_MSG_NOTICE([-I is $CPP_TCP2])
|
AC_MSG_NOTICE([-I is $CPP_TCP2])
|
||||||
|
|
||||||
|
|
@ -3215,7 +3213,7 @@ if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" && test "$HAVE_LIBR
|
||||||
$PKGCONFIG --libs-only-l libngtcp2_crypto_libressl`
|
$PKGCONFIG --libs-only-l libngtcp2_crypto_libressl`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_LIBRESSL])
|
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_LIBRESSL])
|
||||||
|
|
||||||
CPP_NGTCP2_CRYPTO_LIBRESSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1) dnl
|
CPP_NGTCP2_CRYPTO_LIBRESSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1)
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2_crypto_libressl`
|
$PKGCONFIG --cflags-only-I libngtcp2_crypto_libressl`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_LIBRESSL])
|
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_LIBRESSL])
|
||||||
|
|
||||||
|
|
@ -3276,7 +3274,7 @@ if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" && test "$HAVE_LIBR
|
||||||
$PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
|
$PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_QUICTLS])
|
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_QUICTLS])
|
||||||
|
|
||||||
CPP_NGTCP2_CRYPTO_QUICTLS=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1) dnl
|
CPP_NGTCP2_CRYPTO_QUICTLS=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1)
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
|
$PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_QUICTLS])
|
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_QUICTLS])
|
||||||
|
|
||||||
|
|
@ -3335,7 +3333,7 @@ if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" &&
|
||||||
$PKGCONFIG --libs-only-l libngtcp2_crypto_ossl`
|
$PKGCONFIG --libs-only-l libngtcp2_crypto_ossl`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_OSSL])
|
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_OSSL])
|
||||||
|
|
||||||
CPP_NGTCP2_CRYPTO_OSSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1) dnl
|
CPP_NGTCP2_CRYPTO_OSSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1)
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2_crypto_ossl`
|
$PKGCONFIG --cflags-only-I libngtcp2_crypto_ossl`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_OSSL])
|
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_OSSL])
|
||||||
|
|
||||||
|
|
@ -3395,7 +3393,7 @@ if test "$USE_NGTCP2" = "1" && test "$OPENSSL_ENABLED" = "1" &&
|
||||||
$PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl`
|
$PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_BORINGSSL])
|
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_BORINGSSL])
|
||||||
|
|
||||||
CPP_NGTCP2_CRYPTO_BORINGSSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1) dnl
|
CPP_NGTCP2_CRYPTO_BORINGSSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1)
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl`
|
$PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_BORINGSSL])
|
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_BORINGSSL])
|
||||||
|
|
||||||
|
|
@ -3452,7 +3450,7 @@ if test "$USE_NGTCP2" = "1" && test "$GNUTLS_ENABLED" = "1"; then
|
||||||
$PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
|
$PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_GNUTLS])
|
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_GNUTLS])
|
||||||
|
|
||||||
CPP_NGTCP2_CRYPTO_GNUTLS=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1) dnl
|
CPP_NGTCP2_CRYPTO_GNUTLS=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1)
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
|
$PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_GNUTLS])
|
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_GNUTLS])
|
||||||
|
|
||||||
|
|
@ -3509,7 +3507,7 @@ if test "$USE_NGTCP2" = "1" && test "$WOLFSSL_ENABLED" = "1"; then
|
||||||
$PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
|
$PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_WOLFSSL])
|
AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_WOLFSSL])
|
||||||
|
|
||||||
CPP_NGTCP2_CRYPTO_WOLFSSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1) dnl
|
CPP_NGTCP2_CRYPTO_WOLFSSL=`CURL_EXPORT_PCDIR([$want_tcp2_path], 1)
|
||||||
$PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
|
$PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_WOLFSSL])
|
AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_WOLFSSL])
|
||||||
|
|
||||||
|
|
@ -3559,7 +3557,7 @@ dnl **********************************************************************
|
||||||
OPT_NGHTTP3="yes"
|
OPT_NGHTTP3="yes"
|
||||||
|
|
||||||
if test "$USE_NGTCP2" != "1"; then
|
if test "$USE_NGTCP2" != "1"; then
|
||||||
# without ngtcp2, nghttp3 is of no use for us
|
dnl without ngtcp2, nghttp3 is of no use for us
|
||||||
OPT_NGHTTP3="no"
|
OPT_NGHTTP3="no"
|
||||||
want_nghttp3="no"
|
want_nghttp3="no"
|
||||||
fi
|
fi
|
||||||
|
|
@ -3589,7 +3587,7 @@ curl_http3_msg="no (--with-nghttp3)"
|
||||||
if test "$want_nghttp3" != "no"; then
|
if test "$want_nghttp3" != "no"; then
|
||||||
|
|
||||||
if test "x$USE_NGTCP2" != "x1"; then
|
if test "x$USE_NGTCP2" != "x1"; then
|
||||||
# without ngtcp2, nghttp3 is of no use for us
|
dnl without ngtcp2, nghttp3 is of no use for us
|
||||||
AC_MSG_ERROR([nghttp3 enabled without a QUIC library; enable ngtcp2])
|
AC_MSG_ERROR([nghttp3 enabled without a QUIC library; enable ngtcp2])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -3606,7 +3604,7 @@ if test "$want_nghttp3" != "no"; then
|
||||||
$PKGCONFIG --libs-only-l libnghttp3`
|
$PKGCONFIG --libs-only-l libnghttp3`
|
||||||
AC_MSG_NOTICE([-l is $LIB_NGHTTP3])
|
AC_MSG_NOTICE([-l is $LIB_NGHTTP3])
|
||||||
|
|
||||||
CPP_NGHTTP3=`CURL_EXPORT_PCDIR([$want_nghttp3_path]) dnl
|
CPP_NGHTTP3=`CURL_EXPORT_PCDIR([$want_nghttp3_path])
|
||||||
$PKGCONFIG --cflags-only-I libnghttp3`
|
$PKGCONFIG --cflags-only-I libnghttp3`
|
||||||
AC_MSG_NOTICE([-I is $CPP_NGHTTP3])
|
AC_MSG_NOTICE([-I is $CPP_NGHTTP3])
|
||||||
|
|
||||||
|
|
@ -3665,7 +3663,7 @@ dnl **********************************************************************
|
||||||
OPT_QUICHE="no"
|
OPT_QUICHE="no"
|
||||||
|
|
||||||
if test "$disable_http" = "yes" || test "$USE_NGTCP" = "1"; then
|
if test "$disable_http" = "yes" || test "$USE_NGTCP" = "1"; then
|
||||||
# without HTTP or with ngtcp2, quiche is no use
|
dnl without HTTP or with ngtcp2, quiche is no use
|
||||||
OPT_QUICHE="no"
|
OPT_QUICHE="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -3713,7 +3711,7 @@ if test "$want_quiche" != "no"; then
|
||||||
$PKGCONFIG --libs-only-l quiche`
|
$PKGCONFIG --libs-only-l quiche`
|
||||||
AC_MSG_NOTICE([-l is $LIB_QUICHE])
|
AC_MSG_NOTICE([-l is $LIB_QUICHE])
|
||||||
|
|
||||||
CPP_QUICHE=`CURL_EXPORT_PCDIR([$want_quiche_path]) dnl
|
CPP_QUICHE=`CURL_EXPORT_PCDIR([$want_quiche_path])
|
||||||
$PKGCONFIG --cflags-only-I quiche`
|
$PKGCONFIG --cflags-only-I quiche`
|
||||||
AC_MSG_NOTICE([-I is $CPP_QUICHE])
|
AC_MSG_NOTICE([-I is $CPP_QUICHE])
|
||||||
|
|
||||||
|
|
@ -3806,7 +3804,7 @@ if test "$want_libuv" != "no"; then
|
||||||
$PKGCONFIG --libs-only-l libuv`
|
$PKGCONFIG --libs-only-l libuv`
|
||||||
AC_MSG_NOTICE([-l is $LIB_LIBUV])
|
AC_MSG_NOTICE([-l is $LIB_LIBUV])
|
||||||
|
|
||||||
CPP_LIBUV=`CURL_EXPORT_PCDIR([$want_libuv_path]) dnl
|
CPP_LIBUV=`CURL_EXPORT_PCDIR([$want_libuv_path])
|
||||||
$PKGCONFIG --cflags-only-I libuv`
|
$PKGCONFIG --cflags-only-I libuv`
|
||||||
AC_MSG_NOTICE([-I is $CPP_LIBUV])
|
AC_MSG_NOTICE([-I is $CPP_LIBUV])
|
||||||
|
|
||||||
|
|
@ -3948,11 +3946,9 @@ AC_CHECK_HEADERS(
|
||||||
stdbool.h \
|
stdbool.h \
|
||||||
sys/filio.h \
|
sys/filio.h \
|
||||||
sys/eventfd.h,
|
sys/eventfd.h,
|
||||||
dnl to do if not found
|
|
||||||
[],
|
[],
|
||||||
dnl to do if found
|
|
||||||
[],
|
[],
|
||||||
dnl default includes
|
/* default includes */
|
||||||
[
|
[
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
|
|
@ -4008,11 +4004,11 @@ if test "$ac_cv_sizeof_curl_off_t" -lt 8; then
|
||||||
AC_MSG_ERROR([64-bit curl_off_t is required])
|
AC_MSG_ERROR([64-bit curl_off_t is required])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for ssize_t
|
dnl check for ssize_t
|
||||||
AC_CHECK_TYPE(ssize_t, ,
|
AC_CHECK_TYPE(ssize_t, ,
|
||||||
AC_DEFINE(ssize_t, int, [the signed version of size_t]))
|
AC_DEFINE(ssize_t, int, [the signed version of size_t]))
|
||||||
|
|
||||||
# check for bool type
|
dnl check for bool type
|
||||||
AC_CHECK_TYPE([bool],[
|
AC_CHECK_TYPE([bool],[
|
||||||
AC_DEFINE(HAVE_BOOL_T, 1,
|
AC_DEFINE(HAVE_BOOL_T, 1,
|
||||||
[Define to 1 if bool is an available type.])
|
[Define to 1 if bool is an available type.])
|
||||||
|
|
@ -4026,7 +4022,7 @@ AC_CHECK_TYPE([bool],[
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$curl_cv_native_windows" != "yes"; then
|
if test "$curl_cv_native_windows" != "yes"; then
|
||||||
# check for sa_family_t
|
dnl check for sa_family_t
|
||||||
AC_CHECK_TYPE(sa_family_t,
|
AC_CHECK_TYPE(sa_family_t,
|
||||||
AC_DEFINE(HAVE_SA_FAMILY_T, 1, [Define to 1 if symbol `sa_family_t' exists]),,
|
AC_DEFINE(HAVE_SA_FAMILY_T, 1, [Define to 1 if symbol `sa_family_t' exists]),,
|
||||||
[
|
[
|
||||||
|
|
@ -4034,7 +4030,7 @@ if test "$curl_cv_native_windows" != "yes"; then
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for suseconds_t
|
dnl check for suseconds_t
|
||||||
AC_CHECK_TYPE([suseconds_t],[
|
AC_CHECK_TYPE([suseconds_t],[
|
||||||
AC_DEFINE(HAVE_SUSECONDS_T, 1,
|
AC_DEFINE(HAVE_SUSECONDS_T, 1,
|
||||||
[Define to 1 if suseconds_t is an available type.])
|
[Define to 1 if suseconds_t is an available type.])
|
||||||
|
|
@ -4225,7 +4221,7 @@ if test "$curl_cv_native_windows" != "yes"; then
|
||||||
|
|
||||||
dnl if it was not found without lib, search for it in pthread lib
|
dnl if it was not found without lib, search for it in pthread lib
|
||||||
if test "$HAVE_THREADS_POSIX" != "1"; then
|
if test "$HAVE_THREADS_POSIX" != "1"; then
|
||||||
# assign PTHREAD for pkg-config use
|
dnl assign PTHREAD for pkg-config use
|
||||||
PTHREAD=" -pthread"
|
PTHREAD=" -pthread"
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
|
|
@ -4346,7 +4342,7 @@ AS_HELP_STRING([--disable-sspi],[Disable SSPI]),
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if test "$SCHANNEL_ENABLED" = "1"; then
|
if test "$SCHANNEL_ENABLED" = "1"; then
|
||||||
# --with-schannel implies --enable-sspi
|
dnl --with-schannel implies --enable-sspi
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
@ -4354,7 +4350,7 @@ AS_HELP_STRING([--disable-sspi],[Disable SSPI]),
|
||||||
;;
|
;;
|
||||||
esac ],
|
esac ],
|
||||||
if test "$SCHANNEL_ENABLED" = "1"; then
|
if test "$SCHANNEL_ENABLED" = "1"; then
|
||||||
# --with-schannel implies --enable-sspi
|
dnl --with-schannel implies --enable-sspi
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
@ -4952,9 +4948,9 @@ if test "$want_httpsrr" != "no"; then
|
||||||
curl_httpsrr_msg="enabled (--disable-httpsrr)"
|
curl_httpsrr_msg="enabled (--disable-httpsrr)"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
# no HTTPSRR wanted
|
dnl no HTTPSRR wanted
|
||||||
if test "$want_threaded_resolver" = "yes"; then
|
if test "$want_threaded_resolver" = "yes"; then
|
||||||
# and using the threaded resolver
|
dnl and using the threaded resolver
|
||||||
if test "$USE_ARES" = "1"; then
|
if test "$USE_ARES" = "1"; then
|
||||||
AC_MSG_ERROR([without HTTPS-RR support, asking for both threaded resolver and c-ares support is ambivalent. Please drop one of them.])
|
AC_MSG_ERROR([without HTTPS-RR support, asking for both threaded resolver and c-ares support is ambivalent. Please drop one of them.])
|
||||||
fi
|
fi
|
||||||
|
|
@ -4968,10 +4964,10 @@ if test "$OPENSSL_ENABLED" = "1"; then
|
||||||
AC_CHECK_FUNCS([SSL_set0_wbio])
|
AC_CHECK_FUNCS([SSL_set0_wbio])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$CURL_DISABLE_HTTP" != "1"; then
|
|
||||||
dnl *************************************************************
|
dnl *************************************************************
|
||||||
dnl WebSockets
|
dnl WebSockets
|
||||||
dnl
|
dnl
|
||||||
|
if test "$CURL_DISABLE_HTTP" != "1"; then
|
||||||
AC_MSG_CHECKING([whether to support WebSockets])
|
AC_MSG_CHECKING([whether to support WebSockets])
|
||||||
AC_ARG_ENABLE(websockets,
|
AC_ARG_ENABLE(websockets,
|
||||||
AS_HELP_STRING([--enable-websockets],[Enable WebSockets support])
|
AS_HELP_STRING([--enable-websockets],[Enable WebSockets support])
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: curl
|
# SPDX-License-Identifier: curl
|
||||||
#
|
#
|
||||||
###########################################################################
|
#***************************************************************************
|
||||||
# LIBCURL_CHECK_CONFIG([DEFAULT-ACTION], [MINIMUM-VERSION],
|
# LIBCURL_CHECK_CONFIG([DEFAULT-ACTION], [MINIMUM-VERSION],
|
||||||
# [ACTION-IF-YES], [ACTION-IF-NO])
|
# [ACTION-IF-YES], [ACTION-IF-NO])
|
||||||
# ----------------------------------------------------------
|
# ----------------------------------------------------------
|
||||||
|
|
@ -129,9 +129,9 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||||
if test -z "$LIBCURL"; then
|
if test -z "$LIBCURL"; then
|
||||||
LIBCURL=`$_libcurl_config --libs`
|
LIBCURL=`$_libcurl_config --libs`
|
||||||
|
|
||||||
# This is so silly, but Apple actually has a bug in their
|
dnl This is so silly, but Apple actually has a bug in their
|
||||||
# curl-config script. Fixed in Tiger, but there are still
|
dnl curl-config script. Fixed in Tiger, but there are still
|
||||||
# lots of Panther installs around.
|
dnl lots of Panther installs around.
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
powerpc-apple-darwin7*)
|
powerpc-apple-darwin7*)
|
||||||
LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
|
LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
|
||||||
|
|
@ -139,10 +139,10 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# All curl-config scripts support --feature
|
dnl All curl-config scripts support --feature
|
||||||
_libcurl_features=`$_libcurl_config --feature`
|
_libcurl_features=`$_libcurl_config --feature`
|
||||||
|
|
||||||
# Is it modern enough to have --protocols? (7.12.4)
|
dnl Is it modern enough to have --protocols? (7.12.4)
|
||||||
if test "$_libcurl_version" -ge 461828; then
|
if test "$_libcurl_version" -ge 461828; then
|
||||||
_libcurl_protocols=`$_libcurl_config --protocols`
|
_libcurl_protocols=`$_libcurl_config --protocols`
|
||||||
fi
|
fi
|
||||||
|
|
@ -155,8 +155,8 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||||
|
|
||||||
if test "$_libcurl_try_link" = "yes"; then
|
if test "$_libcurl_try_link" = "yes"; then
|
||||||
|
|
||||||
# we did not find curl-config, so let's see if the user-supplied
|
dnl we did not find curl-config, so let's see if the user-supplied
|
||||||
# link line (or failing that, "-lcurl") is enough.
|
dnl link line (or failing that, "-lcurl") is enough.
|
||||||
LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
|
LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
|
||||||
|
|
||||||
AC_CACHE_CHECK([whether libcurl is usable],
|
AC_CACHE_CHECK([whether libcurl is usable],
|
||||||
|
|
@ -189,8 +189,8 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||||
|
|
||||||
if test "$libcurl_cv_lib_curl_usable" = "yes"; then
|
if test "$libcurl_cv_lib_curl_usable" = "yes"; then
|
||||||
|
|
||||||
# Does curl_free() exist in this version of libcurl?
|
dnl Does curl_free() exist in this version of libcurl?
|
||||||
# If not, fake it with free()
|
dnl If not, fake it with free()
|
||||||
|
|
||||||
_libcurl_save_cppflags=$CPPFLAGS
|
_libcurl_save_cppflags=$CPPFLAGS
|
||||||
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
|
||||||
|
|
@ -219,22 +219,22 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||||
|
|
||||||
if test -z "$_libcurl_protocols"; then
|
if test -z "$_libcurl_protocols"; then
|
||||||
|
|
||||||
# We do not have --protocols; assume that all
|
dnl We do not have --protocols; assume that all
|
||||||
# protocols are available
|
dnl protocols are available
|
||||||
_libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
|
_libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
|
||||||
|
|
||||||
if test "$libcurl_feature_SSL" = "yes"; then
|
if test "$libcurl_feature_SSL" = "yes"; then
|
||||||
_libcurl_protocols="$_libcurl_protocols HTTPS"
|
_libcurl_protocols="$_libcurl_protocols HTTPS"
|
||||||
|
|
||||||
# FTPS was not standards-compliant until version
|
dnl FTPS was not standards-compliant until version
|
||||||
# 7.11.0 (0x070b00 == 461568)
|
dnl 7.11.0 (0x070b00 == 461568)
|
||||||
if test "$_libcurl_version" -ge 461568; then
|
if test "$_libcurl_version" -ge 461568; then
|
||||||
_libcurl_protocols="$_libcurl_protocols FTPS"
|
_libcurl_protocols="$_libcurl_protocols FTPS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# RTSP, IMAP, POP3 and SMTP were added in
|
dnl RTSP, IMAP, POP3 and SMTP were added in
|
||||||
# 7.20.0 (0x071400 == 463872)
|
dnl 7.20.0 (0x071400 == 463872)
|
||||||
if test "$_libcurl_version" -ge 463872; then
|
if test "$_libcurl_version" -ge 463872; then
|
||||||
_libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
|
_libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
|
||||||
fi
|
fi
|
||||||
|
|
@ -262,10 +262,10 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$_libcurl_with" = "xno" || test "$libcurl_cv_lib_curl_usable" != "yes"; then
|
if test "x$_libcurl_with" = "xno" || test "$libcurl_cv_lib_curl_usable" != "yes"; then
|
||||||
# This is the IF-NO path
|
dnl This is the IF-NO path
|
||||||
ifelse([$4],,:,[$4])
|
ifelse([$4],,:,[$4])
|
||||||
else
|
else
|
||||||
# This is the IF-YES path
|
dnl This is the IF-YES path
|
||||||
ifelse([$3],,:,[$3])
|
ifelse([$3],,:,[$3])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
|
||||||
test "amissl" != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
test "amissl" != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
||||||
AMISSL_ENABLED=1
|
AMISSL_ENABLED=1
|
||||||
OPENSSL_ENABLED=1
|
OPENSSL_ENABLED=1
|
||||||
# Use AmiSSL's built-in ca bundle
|
dnl Use AmiSSL's built-in ca bundle
|
||||||
check_for_ca_bundle=1
|
check_for_ca_bundle=1
|
||||||
with_ca_fallback=yes
|
with_ca_fallback=yes
|
||||||
LIBS="-lamisslstubs -lamisslauto $LIBS"
|
LIBS="-lamisslstubs -lamisslauto $LIBS"
|
||||||
|
|
|
||||||
|
|
@ -22,27 +22,26 @@
|
||||||
#
|
#
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
dnl File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 67
|
dnl serial 67
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_COMPILER
|
dnl CURL_CHECK_COMPILER
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Verify if the C compiler being used is known.
|
dnl Verify if the C compiler being used is known.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER], [
|
AC_DEFUN([CURL_CHECK_COMPILER], [
|
||||||
#
|
|
||||||
compiler_id="unknown"
|
compiler_id="unknown"
|
||||||
compiler_ver=""
|
compiler_ver=""
|
||||||
compiler_num="0"
|
compiler_num="0"
|
||||||
#
|
|
||||||
flags_dbg_yes="unknown"
|
flags_dbg_yes="unknown"
|
||||||
flags_opt_all="unknown"
|
flags_opt_all="unknown"
|
||||||
flags_opt_yes="unknown"
|
flags_opt_yes="unknown"
|
||||||
flags_opt_off="unknown"
|
flags_opt_off="unknown"
|
||||||
#
|
|
||||||
flags_prefer_cppflags="no"
|
flags_prefer_cppflags="no"
|
||||||
#
|
|
||||||
CURL_CHECK_COMPILER_DEC_C
|
CURL_CHECK_COMPILER_DEC_C
|
||||||
CURL_CHECK_COMPILER_HPUX_C
|
CURL_CHECK_COMPILER_HPUX_C
|
||||||
CURL_CHECK_COMPILER_IBM_C
|
CURL_CHECK_COMPILER_IBM_C
|
||||||
|
|
@ -57,7 +56,7 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
|
||||||
esac
|
esac
|
||||||
CURL_CHECK_COMPILER_SUNPRO_C
|
CURL_CHECK_COMPILER_SUNPRO_C
|
||||||
CURL_CHECK_COMPILER_TINY_C
|
CURL_CHECK_COMPILER_TINY_C
|
||||||
#
|
|
||||||
if test "$compiler_id" = "unknown"; then
|
if test "$compiler_id" = "unknown"; then
|
||||||
cat <<_EOF 1>&2
|
cat <<_EOF 1>&2
|
||||||
***
|
***
|
||||||
|
|
@ -81,7 +80,7 @@ dnl -------------------------------------------------
|
||||||
dnl Verify if compiler being used is clang.
|
dnl Verify if compiler being used is clang.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
|
AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])dnl
|
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])
|
||||||
AC_MSG_CHECKING([if compiler is clang])
|
AC_MSG_CHECKING([if compiler is clang])
|
||||||
CURL_CHECK_DEF([__clang__], [], [silent])
|
CURL_CHECK_DEF([__clang__], [], [silent])
|
||||||
if test "$curl_cv_have_def___clang__" = "yes"; then
|
if test "$curl_cv_have_def___clang__" = "yes"; then
|
||||||
|
|
@ -184,8 +183,8 @@ dnl Version 4.7 => 407
|
||||||
dnl Version 9.2.1 => 900
|
dnl Version 9.2.1 => 900
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
|
AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER_INTEL_C])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER_INTEL_C])
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER_CLANG])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER_CLANG])
|
||||||
AC_MSG_CHECKING([if compiler is GNU C])
|
AC_MSG_CHECKING([if compiler is GNU C])
|
||||||
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
||||||
if test "$curl_cv_have_def___GNUC__" = "yes" &&
|
if test "$curl_cv_have_def___GNUC__" = "yes" &&
|
||||||
|
|
@ -193,7 +192,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
compiler_id="GNU_C"
|
compiler_id="GNU_C"
|
||||||
AC_MSG_CHECKING([compiler version])
|
AC_MSG_CHECKING([compiler version])
|
||||||
# strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
|
dnl strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
|
||||||
gccver=`$CC -dumpversion | "$SED" 's/-.\{1,\}$//'`
|
gccver=`$CC -dumpversion | "$SED" 's/-.\{1,\}$//'`
|
||||||
gccvhi=`echo $gccver | cut -d . -f1`
|
gccvhi=`echo $gccver | cut -d . -f1`
|
||||||
if echo $gccver | grep -F '.' >/dev/null; then
|
if echo $gccver | grep -F '.' >/dev/null; then
|
||||||
|
|
@ -267,7 +266,7 @@ dnl -------------------------------------------------
|
||||||
dnl Verify if compiler being used is Intel C.
|
dnl Verify if compiler being used is Intel C.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_INTEL_C], [
|
AC_DEFUN([CURL_CHECK_COMPILER_INTEL_C], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])dnl
|
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])
|
||||||
AC_MSG_CHECKING([if compiler is Intel C])
|
AC_MSG_CHECKING([if compiler is Intel C])
|
||||||
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
||||||
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
||||||
|
|
@ -301,7 +300,7 @@ dnl -------------------------------------------------
|
||||||
dnl Verify if compiler being used is SGI MIPS C.
|
dnl Verify if compiler being used is SGI MIPS C.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS_C], [
|
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS_C], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPSPRO_C])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPSPRO_C])
|
||||||
AC_MSG_CHECKING([if compiler is SGI MIPS C])
|
AC_MSG_CHECKING([if compiler is SGI MIPS C])
|
||||||
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
||||||
CURL_CHECK_DEF([__sgi], [], [silent])
|
CURL_CHECK_DEF([__sgi], [], [silent])
|
||||||
|
|
@ -325,7 +324,7 @@ dnl -------------------------------------------------
|
||||||
dnl Verify if compiler being used is SGI MIPSpro C.
|
dnl Verify if compiler being used is SGI MIPSpro C.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPSPRO_C], [
|
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPSPRO_C], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SGI_MIPS_C])dnl
|
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SGI_MIPS_C])
|
||||||
AC_MSG_CHECKING([if compiler is SGI MIPSpro C])
|
AC_MSG_CHECKING([if compiler is SGI MIPSpro C])
|
||||||
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
||||||
CURL_CHECK_DEF([_COMPILER_VERSION], [], [silent])
|
CURL_CHECK_DEF([_COMPILER_VERSION], [], [silent])
|
||||||
|
|
@ -393,8 +392,8 @@ dnl headers from these locations, although on ancient
|
||||||
dnl GNUC versions these warnings are not silenced.
|
dnl GNUC versions these warnings are not silenced.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CONVERT_INCLUDE_TO_ISYSTEM], [
|
AC_DEFUN([CURL_CONVERT_INCLUDE_TO_ISYSTEM], [
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||||
AC_MSG_CHECKING([convert -I options to -isystem])
|
AC_MSG_CHECKING([convert -I options to -isystem])
|
||||||
if test "$compiler_id" = "GNU_C" ||
|
if test "$compiler_id" = "GNU_C" ||
|
||||||
test "$compiler_id" = "CLANG" ||
|
test "$compiler_id" = "CLANG" ||
|
||||||
|
|
@ -513,29 +512,29 @@ dnl depend on configure's debug, optimize or warnings
|
||||||
dnl options.
|
dnl options.
|
||||||
|
|
||||||
AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
#
|
|
||||||
if test "$compiler_id" != "unknown"; then
|
if test "$compiler_id" != "unknown"; then
|
||||||
#
|
|
||||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||||
tmp_save_CFLAGS="$CFLAGS"
|
tmp_save_CFLAGS="$CFLAGS"
|
||||||
tmp_CPPFLAGS=""
|
tmp_CPPFLAGS=""
|
||||||
tmp_CFLAGS=""
|
tmp_CFLAGS=""
|
||||||
#
|
|
||||||
case "$compiler_id" in
|
case "$compiler_id" in
|
||||||
#
|
|
||||||
CLANG|APPLECLANG)
|
CLANG|APPLECLANG)
|
||||||
#
|
|
||||||
dnl Disable warnings for unused arguments, otherwise clang will
|
dnl Disable warnings for unused arguments, otherwise clang will
|
||||||
dnl warn about compile-time arguments used during link-time, like
|
dnl warn about compile-time arguments used during link-time, like
|
||||||
dnl -O and -g and -pedantic.
|
dnl -O and -g and -pedantic.
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
|
tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
|
tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
DEC_C)
|
DEC_C)
|
||||||
#
|
|
||||||
dnl Select strict ANSI C compiler mode
|
dnl Select strict ANSI C compiler mode
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -std1"
|
tmp_CFLAGS="$tmp_CFLAGS -std1"
|
||||||
dnl Turn off optimizer ANSI C aliasing rules
|
dnl Turn off optimizer ANSI C aliasing rules
|
||||||
|
|
@ -545,18 +544,18 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||||
dnl Change some warnings into fatal errors
|
dnl Change some warnings into fatal errors
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
|
tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
GNU_C)
|
GNU_C)
|
||||||
#
|
|
||||||
dnl turn implicit-function-declaration warning into error,
|
dnl turn implicit-function-declaration warning into error,
|
||||||
dnl at least gcc 2.95 and later support this
|
dnl at least gcc 2.95 and later support this
|
||||||
if test "$compiler_num" -ge "295"; then
|
if test "$compiler_num" -ge "295"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
|
tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
HP_UX_C)
|
HP_UX_C)
|
||||||
#
|
|
||||||
dnl Disallow runtime dereferencing of null pointers
|
dnl Disallow runtime dereferencing of null pointers
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -z"
|
tmp_CFLAGS="$tmp_CFLAGS -z"
|
||||||
dnl Disable some remarks
|
dnl Disable some remarks
|
||||||
|
|
@ -564,9 +563,9 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||||
dnl #4255: padding size of struct with n bytes to alignment boundary
|
dnl #4255: padding size of struct with n bytes to alignment boundary
|
||||||
tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
|
tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
IBM_C)
|
IBM_C)
|
||||||
#
|
|
||||||
dnl Ensure that compiler optimizations are always thread-safe.
|
dnl Ensure that compiler optimizations are always thread-safe.
|
||||||
tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
|
tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
|
||||||
dnl Disable type based strict aliasing optimizations, using worst
|
dnl Disable type based strict aliasing optimizations, using worst
|
||||||
|
|
@ -578,9 +577,9 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||||
dnl generating an object code file when compilation has errors.
|
dnl generating an object code file when compilation has errors.
|
||||||
tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
|
tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
INTEL_UNIX_C)
|
INTEL_UNIX_C)
|
||||||
#
|
|
||||||
dnl On Unix this compiler uses gcc's header files, so
|
dnl On Unix this compiler uses gcc's header files, so
|
||||||
dnl we select ANSI C89 dialect plus GNU extensions.
|
dnl we select ANSI C89 dialect plus GNU extensions.
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
|
tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
|
||||||
|
|
@ -598,42 +597,42 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||||
dnl #2259: non-pointer conversion from X to Y may lose significant bits
|
dnl #2259: non-pointer conversion from X to Y may lose significant bits
|
||||||
tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
|
tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
INTEL_WINDOWS_C)
|
INTEL_WINDOWS_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
SGI_MIPS_C)
|
SGI_MIPS_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
SGI_MIPSPRO_C)
|
SGI_MIPSPRO_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
SUNPRO_C)
|
SUNPRO_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
TINY_C)
|
TINY_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
esac
|
esac
|
||||||
#
|
|
||||||
squeeze tmp_CPPFLAGS
|
squeeze tmp_CPPFLAGS
|
||||||
squeeze tmp_CFLAGS
|
squeeze tmp_CFLAGS
|
||||||
#
|
|
||||||
if test -n "$tmp_CFLAGS" || test -n "$tmp_CPPFLAGS"; then
|
if test -n "$tmp_CFLAGS" || test -n "$tmp_CPPFLAGS"; then
|
||||||
AC_MSG_CHECKING([if compiler accepts some basic options])
|
AC_MSG_CHECKING([if compiler accepts some basic options])
|
||||||
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
|
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
|
||||||
|
|
@ -651,7 +650,6 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||||
CFLAGS="$tmp_save_CFLAGS"
|
CFLAGS="$tmp_save_CFLAGS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -662,24 +660,24 @@ dnl Sets compiler specific options/flags which depend
|
||||||
dnl on configure's debug option.
|
dnl on configure's debug option.
|
||||||
|
|
||||||
AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [
|
AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [
|
||||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl
|
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
#
|
|
||||||
if test "$compiler_id" != "unknown"; then
|
if test "$compiler_id" != "unknown"; then
|
||||||
#
|
|
||||||
tmp_save_CFLAGS="$CFLAGS"
|
tmp_save_CFLAGS="$CFLAGS"
|
||||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||||
#
|
|
||||||
tmp_options=""
|
tmp_options=""
|
||||||
tmp_CFLAGS="$CFLAGS"
|
tmp_CFLAGS="$CFLAGS"
|
||||||
tmp_CPPFLAGS="$CPPFLAGS"
|
tmp_CPPFLAGS="$CPPFLAGS"
|
||||||
#
|
|
||||||
if test "$want_debug" = "yes"; then
|
if test "$want_debug" = "yes"; then
|
||||||
AC_MSG_CHECKING([if compiler accepts debug enabling options])
|
AC_MSG_CHECKING([if compiler accepts debug enabling options])
|
||||||
tmp_options="$flags_dbg_yes"
|
tmp_options="$flags_dbg_yes"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
if test "$flags_prefer_cppflags" = "yes"; then
|
if test "$flags_prefer_cppflags" = "yes"; then
|
||||||
CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
|
CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
|
||||||
CFLAGS="$tmp_CFLAGS"
|
CFLAGS="$tmp_CFLAGS"
|
||||||
|
|
@ -699,26 +697,26 @@ dnl Sets compiler specific options/flags which depend
|
||||||
dnl on configure's optimize option.
|
dnl on configure's optimize option.
|
||||||
|
|
||||||
AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
||||||
AC_REQUIRE([CURL_CHECK_OPTION_OPTIMIZE])dnl
|
AC_REQUIRE([CURL_CHECK_OPTION_OPTIMIZE])
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
#
|
|
||||||
if test "$compiler_id" != "unknown"; then
|
if test "$compiler_id" != "unknown"; then
|
||||||
#
|
|
||||||
tmp_save_CFLAGS="$CFLAGS"
|
tmp_save_CFLAGS="$CFLAGS"
|
||||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||||
#
|
|
||||||
tmp_options=""
|
tmp_options=""
|
||||||
tmp_CFLAGS="$CFLAGS"
|
tmp_CFLAGS="$CFLAGS"
|
||||||
tmp_CPPFLAGS="$CPPFLAGS"
|
tmp_CPPFLAGS="$CPPFLAGS"
|
||||||
honor_optimize_option="yes"
|
honor_optimize_option="yes"
|
||||||
#
|
|
||||||
dnl If optimization request setting has not been explicitly specified,
|
dnl If optimization request setting has not been explicitly specified,
|
||||||
dnl it has been derived from the debug setting and initially assumed.
|
dnl it has been derived from the debug setting and initially assumed.
|
||||||
dnl This initially assumed optimizer setting will finally be ignored
|
dnl This initially assumed optimizer setting will finally be ignored
|
||||||
dnl if CFLAGS or CPPFLAGS already hold optimizer flags. This implies
|
dnl if CFLAGS or CPPFLAGS already hold optimizer flags. This implies
|
||||||
dnl that an initially assumed optimizer setting might not be honored.
|
dnl that an initially assumed optimizer setting might not be honored.
|
||||||
#
|
|
||||||
if test "$want_optimize" = "assume_no" ||
|
if test "$want_optimize" = "assume_no" ||
|
||||||
test "$want_optimize" = "assume_yes"; then
|
test "$want_optimize" = "assume_yes"; then
|
||||||
AC_MSG_CHECKING([if compiler optimizer assumed setting might be used])
|
AC_MSG_CHECKING([if compiler optimizer assumed setting might be used])
|
||||||
|
|
@ -738,7 +736,7 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
if test "$honor_optimize_option" = "yes"; then
|
if test "$honor_optimize_option" = "yes"; then
|
||||||
CURL_VAR_STRIP([tmp_CFLAGS],[$flags_opt_all])
|
CURL_VAR_STRIP([tmp_CFLAGS],[$flags_opt_all])
|
||||||
CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_opt_all])
|
CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_opt_all])
|
||||||
|
|
@ -770,7 +768,6 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
||||||
CFLAGS="$tmp_save_CFLAGS"
|
CFLAGS="$tmp_save_CFLAGS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -781,21 +778,21 @@ dnl Sets compiler options/flags which depend on
|
||||||
dnl configure's warnings given option.
|
dnl configure's warnings given option.
|
||||||
|
|
||||||
AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
AC_REQUIRE([CURL_CHECK_OPTION_WARNINGS])dnl
|
AC_REQUIRE([CURL_CHECK_OPTION_WARNINGS])
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
#
|
|
||||||
if test "$compiler_id" != "unknown"; then
|
if test "$compiler_id" != "unknown"; then
|
||||||
#
|
|
||||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||||
tmp_save_CFLAGS="$CFLAGS"
|
tmp_save_CFLAGS="$CFLAGS"
|
||||||
tmp_CPPFLAGS=""
|
tmp_CPPFLAGS=""
|
||||||
tmp_CFLAGS=""
|
tmp_CFLAGS=""
|
||||||
#
|
|
||||||
case "$compiler_id" in
|
case "$compiler_id" in
|
||||||
#
|
|
||||||
CLANG|APPLECLANG)
|
CLANG|APPLECLANG)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
if test "$compiler_num" -ge "302"; then
|
if test "$compiler_num" -ge "302"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pedantic])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pedantic])
|
||||||
|
|
@ -818,12 +815,12 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shorten-64-to-32])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shorten-64-to-32])
|
||||||
#
|
|
||||||
dnl Only clang 1.1 or later
|
dnl Only clang 1.1 or later
|
||||||
if test "$compiler_num" -ge "101"; then
|
if test "$compiler_num" -ge "101"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 2.7 or later
|
dnl Only clang 2.7 or later
|
||||||
if test "$compiler_num" -ge "207"; then
|
if test "$compiler_num" -ge "207"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [address])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [address])
|
||||||
|
|
@ -845,13 +842,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
# tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros"
|
# tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros"
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code unused-parameter])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code unused-parameter])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 2.8 or later
|
dnl Only clang 2.8 or later
|
||||||
if test "$compiler_num" -ge "208"; then
|
if test "$compiler_num" -ge "208"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [ignored-qualifiers])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [ignored-qualifiers])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [vla])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [vla])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 2.9 or later
|
dnl Only clang 2.9 or later
|
||||||
if test "$compiler_num" -ge "209"; then
|
if test "$compiler_num" -ge "209"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
|
||||||
|
|
@ -859,7 +856,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-used-but-marked-unused" # for typecheck-gcc.h with clang 14+, dependency headers
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-used-but-marked-unused" # for typecheck-gcc.h with clang 14+, dependency headers
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-sign-overflow])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-sign-overflow])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 3.0 or later
|
dnl Only clang 3.0 or later
|
||||||
if test "$compiler_num" -ge "300"; then
|
if test "$compiler_num" -ge "300"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [conditional-uninitialized])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [conditional-uninitialized])
|
||||||
|
|
@ -871,7 +868,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-covered-switch-default" # Annoying to fix or silence
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-covered-switch-default" # Annoying to fix or silence
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-disabled-macro-expansion" # for std headers, and curl/curl.h (rare combos)
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-disabled-macro-expansion" # for std headers, and curl/curl.h (rare combos)
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 3.2 or later
|
dnl Only clang 3.2 or later
|
||||||
if test "$compiler_num" -ge "302"; then
|
if test "$compiler_num" -ge "302"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
||||||
|
|
@ -890,29 +887,29 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
if test "$compiler_num" -ge "303"; then
|
if test "$compiler_num" -ge "303"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-documentation-unknown-command"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-documentation-unknown-command"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 3.4 or later
|
dnl Only clang 3.4 or later
|
||||||
if test "$compiler_num" -ge "304"; then
|
if test "$compiler_num" -ge "304"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [header-guard])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [header-guard])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 3.5 or later
|
dnl Only clang 3.5 or later
|
||||||
if test "$compiler_num" -ge "305"; then
|
if test "$compiler_num" -ge "305"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pragmas])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pragmas])
|
||||||
# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) # Not used: Silent in "unity" builds
|
# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) # Not used: Silent in "unity" builds
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 3.6 or later
|
dnl Only clang 3.6 or later
|
||||||
if test "$compiler_num" -ge "306"; then
|
if test "$compiler_num" -ge "306"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only clang 3.9 or later
|
dnl Only clang 3.9 or later
|
||||||
if test "$compiler_num" -ge "309"; then
|
if test "$compiler_num" -ge "309"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [comma])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [comma])
|
||||||
# avoid the varargs warning, fixed in 4.0
|
dnl avoid the varargs warning, fixed in 4.0
|
||||||
# https://bugs.llvm.org/show_bug.cgi?id=29140
|
dnl https://bugs.llvm.org/show_bug.cgi?id=29140
|
||||||
if test "$compiler_num" -lt "400"; then
|
if test "$compiler_num" -lt "400"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
|
||||||
fi
|
fi
|
||||||
|
|
@ -975,20 +972,20 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
DEC_C)
|
DEC_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
dnl Select a higher warning level than default level2
|
dnl Select a higher warning level than default level2
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
|
tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
GNU_C)
|
GNU_C)
|
||||||
#
|
|
||||||
dnl Leave disabled for GCC <4.6, because they lack #pragma features to silence locally.
|
dnl Leave disabled for GCC <4.6, because they lack #pragma features to silence locally.
|
||||||
if test "$want_warnings" = "yes" && test "$compiler_num" -ge "406"; then
|
if test "$want_warnings" = "yes" && test "$compiler_num" -ge "406"; then
|
||||||
#
|
|
||||||
dnl Do not enable -pedantic when cross-compiling with a gcc older
|
dnl Do not enable -pedantic when cross-compiling with a gcc older
|
||||||
dnl than 3.0, to avoid warnings from third party system headers.
|
dnl than 3.0, to avoid warnings from third party system headers.
|
||||||
if test "$cross_compiling" != "yes" ||
|
if test "$cross_compiling" != "yes" ||
|
||||||
|
|
@ -999,11 +996,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -pedantic"
|
tmp_CFLAGS="$tmp_CFLAGS -pedantic"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Set of options we believe *ALL* gcc versions support:
|
dnl Set of options we believe *ALL* gcc versions support:
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [all])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [all])
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -W"
|
tmp_CFLAGS="$tmp_CFLAGS -W"
|
||||||
#
|
|
||||||
dnl Only gcc 1.4 or later
|
dnl Only gcc 1.4 or later
|
||||||
if test "$compiler_num" -ge "104"; then
|
if test "$compiler_num" -ge "104"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pointer-arith write-strings])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pointer-arith write-strings])
|
||||||
|
|
@ -1013,7 +1010,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused shadow])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused shadow])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 2.7 or later
|
dnl Only gcc 2.7 or later
|
||||||
if test "$compiler_num" -ge "207"; then
|
if test "$compiler_num" -ge "207"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [nested-externs])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [nested-externs])
|
||||||
|
|
@ -1024,13 +1021,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-prototypes])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-prototypes])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 2.95 or later
|
dnl Only gcc 2.95 or later
|
||||||
if test "$compiler_num" -ge "295"; then
|
if test "$compiler_num" -ge "295"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [bad-function-cast])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [bad-function-cast])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 2.96 or later
|
dnl Only gcc 2.96 or later
|
||||||
if test "$compiler_num" -ge "296"; then
|
if test "$compiler_num" -ge "296"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [float-equal])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [float-equal])
|
||||||
|
|
@ -1041,7 +1038,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
dnl headers with gcc 2.95.4 on FreeBSD 4.9
|
dnl headers with gcc 2.95.4 on FreeBSD 4.9
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [undef])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [undef])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 3.0 or later
|
dnl Only gcc 3.0 or later
|
||||||
if test "$compiler_num" -ge "300"; then
|
if test "$compiler_num" -ge "300"; then
|
||||||
dnl -Wunreachable-code seems totally unreliable on my gcc 3.3.2 on
|
dnl -Wunreachable-code seems totally unreliable on my gcc 3.3.2 on
|
||||||
|
|
@ -1050,24 +1047,24 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
dnl over making it unusable for generic purposes. Let's not use it.
|
dnl over making it unusable for generic purposes. Let's not use it.
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 3.3 or later
|
dnl Only gcc 3.3 or later
|
||||||
if test "$compiler_num" -ge "303"; then
|
if test "$compiler_num" -ge "303"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [endif-labels strict-prototypes])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [endif-labels strict-prototypes])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 3.4 or later
|
dnl Only gcc 3.4 or later
|
||||||
if test "$compiler_num" -ge "304"; then
|
if test "$compiler_num" -ge "304"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [declaration-after-statement])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [declaration-after-statement])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [old-style-definition])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [old-style-definition])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 4.0 or later
|
dnl Only gcc 4.0 or later
|
||||||
if test "$compiler_num" -ge "400"; then
|
if test "$compiler_num" -ge "400"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-qual])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-qual])
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
|
tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 4.1 or later
|
dnl Only gcc 4.1 or later
|
||||||
if test "$compiler_num" -ge "401"; then
|
if test "$compiler_num" -ge "401"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [attributes])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [attributes])
|
||||||
|
|
@ -1089,12 +1086,12 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
|
# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
|
||||||
# tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros"
|
# tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 4.2 or later
|
dnl Only gcc 4.2 or later
|
||||||
if test "$compiler_num" -ge "402"; then
|
if test "$compiler_num" -ge "402"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 4.3 or later
|
dnl Only gcc 4.3 or later
|
||||||
if test "$compiler_num" -ge "403"; then
|
if test "$compiler_num" -ge "403"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [address])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [address])
|
||||||
|
|
@ -1107,7 +1104,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
dnl required for -Warray-bounds, included in -Wall
|
dnl required for -Warray-bounds, included in -Wall
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
|
tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 4.5 or later
|
dnl Only gcc 4.5 or later
|
||||||
if test "$compiler_num" -ge "405"; then
|
if test "$compiler_num" -ge "405"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [jump-misses-init])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [jump-misses-init])
|
||||||
|
|
@ -1122,24 +1119,24 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 4.6 or later
|
dnl Only gcc 4.6 or later
|
||||||
if test "$compiler_num" -ge "406"; then
|
if test "$compiler_num" -ge "406"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trampolines])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trampolines])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl only gcc 4.8 or later
|
dnl only gcc 4.8 or later
|
||||||
if test "$compiler_num" -ge "408"; then
|
if test "$compiler_num" -ge "408"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
|
tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 5 or later
|
dnl Only gcc 5 or later
|
||||||
if test "$compiler_num" -ge "500"; then
|
if test "$compiler_num" -ge "500"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
|
tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-format-signedness"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-format-signedness"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 6 or later
|
dnl Only gcc 6 or later
|
||||||
if test "$compiler_num" -ge "600"; then
|
if test "$compiler_num" -ge "600"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-negative-value])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-negative-value])
|
||||||
|
|
@ -1149,7 +1146,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-cond])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-cond])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 7 or later
|
dnl Only gcc 7 or later
|
||||||
if test "$compiler_num" -ge "700"; then
|
if test "$compiler_num" -ge "700"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-branches])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-branches])
|
||||||
|
|
@ -1158,33 +1155,32 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
|
tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
|
tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 10 or later
|
dnl Only gcc 10 or later
|
||||||
if test "$compiler_num" -ge "1000"; then
|
if test "$compiler_num" -ge "1000"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [arith-conversion])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [arith-conversion])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 12 or later
|
dnl Only gcc 12 or later
|
||||||
if test "$compiler_num" -ge "1200"; then
|
if test "$compiler_num" -ge "1200"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [array-compare])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [array-compare])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 13 or later
|
dnl Only gcc 13 or later
|
||||||
if test "$compiler_num" -ge "1300"; then
|
if test "$compiler_num" -ge "1300"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-int-mismatch])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-int-mismatch])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [xor-used-as-pow])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [xor-used-as-pow])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Only gcc 15 or later
|
dnl Only gcc 15 or later
|
||||||
if test "$compiler_num" -ge "1500"; then
|
if test "$compiler_num" -ge "1500"; then
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [leading-whitespace=spaces])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [leading-whitespace=spaces])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trailing-whitespace=any])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trailing-whitespace=any])
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unterminated-string-initialization])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unterminated-string-initialization])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
dnl Do not issue warnings for code in system include paths.
|
dnl Do not issue warnings for code in system include paths.
|
||||||
if test "$compiler_num" -ge "300"; then
|
if test "$compiler_num" -ge "300"; then
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
||||||
|
|
@ -1216,23 +1212,23 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-conversion"
|
tmp_CFLAGS="$tmp_CFLAGS -Wno-conversion"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
HP_UX_C)
|
HP_UX_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
dnl Issue all warnings
|
dnl Issue all warnings
|
||||||
tmp_CFLAGS="$tmp_CFLAGS +w1"
|
tmp_CFLAGS="$tmp_CFLAGS +w1"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
IBM_C)
|
IBM_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
INTEL_UNIX_C)
|
INTEL_UNIX_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
if test "$compiler_num" -gt "600"; then
|
if test "$compiler_num" -gt "600"; then
|
||||||
dnl Show errors, warnings, and remarks
|
dnl Show errors, warnings, and remarks
|
||||||
|
|
@ -1266,23 +1262,23 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
dnl Value-safe optimizations on floating-point data
|
dnl Value-safe optimizations on floating-point data
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
|
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
INTEL_WINDOWS_C)
|
INTEL_WINDOWS_C)
|
||||||
#
|
|
||||||
dnl Placeholder
|
dnl Placeholder
|
||||||
tmp_CFLAGS="$tmp_CFLAGS"
|
tmp_CFLAGS="$tmp_CFLAGS"
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
SGI_MIPS_C)
|
SGI_MIPS_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
dnl Perform stricter semantic and lint-like checks
|
dnl Perform stricter semantic and lint-like checks
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
|
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
SGI_MIPSPRO_C)
|
SGI_MIPSPRO_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
dnl Perform stricter semantic and lint-like checks
|
dnl Perform stricter semantic and lint-like checks
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
|
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
|
||||||
|
|
@ -1291,17 +1287,17 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
|
tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
SUNPRO_C)
|
SUNPRO_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
dnl Perform stricter semantic and lint-like checks
|
dnl Perform stricter semantic and lint-like checks
|
||||||
tmp_CFLAGS="$tmp_CFLAGS -v"
|
tmp_CFLAGS="$tmp_CFLAGS -v"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
TINY_C)
|
TINY_C)
|
||||||
#
|
|
||||||
if test "$want_warnings" = "yes"; then
|
if test "$want_warnings" = "yes"; then
|
||||||
dnl Activate all warnings
|
dnl Activate all warnings
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [all])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [all])
|
||||||
|
|
@ -1311,12 +1307,12 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unsupported])
|
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unsupported])
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
#
|
|
||||||
esac
|
esac
|
||||||
#
|
|
||||||
squeeze tmp_CPPFLAGS
|
squeeze tmp_CPPFLAGS
|
||||||
squeeze tmp_CFLAGS
|
squeeze tmp_CFLAGS
|
||||||
#
|
|
||||||
if test -n "$tmp_CFLAGS" || test -n "$tmp_CPPFLAGS"; then
|
if test -n "$tmp_CFLAGS" || test -n "$tmp_CPPFLAGS"; then
|
||||||
AC_MSG_CHECKING([if compiler accepts strict warning options])
|
AC_MSG_CHECKING([if compiler accepts strict warning options])
|
||||||
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
|
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
|
||||||
|
|
@ -1334,7 +1330,6 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||||
CFLAGS="$tmp_save_CFLAGS"
|
CFLAGS="$tmp_save_CFLAGS"
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -1391,7 +1386,7 @@ dnl code file, when the source code tries to define a
|
||||||
dnl type for a constant array with negative dimension.
|
dnl type for a constant array with negative dimension.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE], [
|
AC_DEFUN([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])
|
||||||
AC_MSG_CHECKING([if compiler halts on negative sized arrays])
|
AC_MSG_CHECKING([if compiler halts on negative sized arrays])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -1417,7 +1412,7 @@ dnl result, as a compilation-time condition inside the
|
||||||
dnl type definition of a constant array.
|
dnl type definition of a constant array.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_STRUCT_MEMBER_SIZE], [
|
AC_DEFUN([CURL_CHECK_COMPILER_STRUCT_MEMBER_SIZE], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE])
|
||||||
AC_MSG_CHECKING([if compiler struct member size checking works])
|
AC_MSG_CHECKING([if compiler struct member size checking works])
|
||||||
tst_compiler_check_one_works="unknown"
|
tst_compiler_check_one_works="unknown"
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
|
|
@ -1482,8 +1477,8 @@ dnl shell variable supports_symbol_hiding value as appropriate, as well as
|
||||||
dnl variables symbol_hiding_CFLAGS and symbol_hiding_EXTERN when supported.
|
dnl variables symbol_hiding_CFLAGS and symbol_hiding_EXTERN when supported.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_SYMBOL_HIDING], [
|
AC_DEFUN([CURL_CHECK_COMPILER_SYMBOL_HIDING], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||||
AC_BEFORE([$0],[CURL_CONFIGURE_SYMBOL_HIDING])dnl
|
AC_BEFORE([$0],[CURL_CONFIGURE_SYMBOL_HIDING])
|
||||||
AC_MSG_CHECKING([if compiler supports hiding library internal symbols])
|
AC_MSG_CHECKING([if compiler supports hiding library internal symbols])
|
||||||
supports_symbol_hiding="no"
|
supports_symbol_hiding="no"
|
||||||
symbol_hiding_CFLAGS=""
|
symbol_hiding_CFLAGS=""
|
||||||
|
|
@ -1591,7 +1586,7 @@ dnl code file, when the source code tries to redefine
|
||||||
dnl a prototype which does not match previous one.
|
dnl a prototype which does not match previous one.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH], [
|
AC_DEFUN([CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH], [
|
||||||
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])dnl
|
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])
|
||||||
AC_MSG_CHECKING([if compiler halts on function prototype mismatch])
|
AC_MSG_CHECKING([if compiler halts on function prototype mismatch])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -1663,7 +1658,7 @@ dnl as whitespace separated lists of words. Each word
|
||||||
dnl from VALUE is removed from VARNAME when present.
|
dnl from VALUE is removed from VARNAME when present.
|
||||||
|
|
||||||
AC_DEFUN([CURL_VAR_STRIP], [
|
AC_DEFUN([CURL_VAR_STRIP], [
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
ac_var_stripped=""
|
ac_var_stripped=""
|
||||||
for word1 in $[$1]; do
|
for word1 in $[$1]; do
|
||||||
ac_var_strip_word="no"
|
ac_var_strip_word="no"
|
||||||
|
|
@ -1689,7 +1684,7 @@ dnl Add each compiler warning from NEW-WARNINGS that has not
|
||||||
dnl been disabled via CFLAGS to WARNING-LIST.
|
dnl been disabled via CFLAGS to WARNING-LIST.
|
||||||
|
|
||||||
AC_DEFUN([CURL_ADD_COMPILER_WARNINGS], [
|
AC_DEFUN([CURL_ADD_COMPILER_WARNINGS], [
|
||||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||||
ac_var_added_warnings=""
|
ac_var_added_warnings=""
|
||||||
for warning in [$2]; do
|
for warning in [$2]; do
|
||||||
CURL_VAR_MATCH(CFLAGS, [-Wno-$warning -W$warning])
|
CURL_VAR_MATCH(CFLAGS, [-Wno-$warning -W$warning])
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@
|
||||||
#
|
#
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
dnl File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 19
|
dnl serial 19
|
||||||
|
|
||||||
dnl CURL_CHECK_OPTION_THREADED_RESOLVER
|
dnl CURL_CHECK_OPTION_THREADED_RESOLVER
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
|
|
@ -73,7 +73,7 @@ dnl --enable-ares or --disable-ares, and
|
||||||
dnl set shell variable want_ares as appropriate.
|
dnl set shell variable want_ares as appropriate.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_ARES], [
|
AC_DEFUN([CURL_CHECK_OPTION_ARES], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_LIB_ARES])dnl
|
AC_BEFORE([$0],[CURL_CHECK_LIB_ARES])
|
||||||
AC_MSG_CHECKING([whether to enable c-ares for DNS lookups])
|
AC_MSG_CHECKING([whether to enable c-ares for DNS lookups])
|
||||||
OPT_ARES="default"
|
OPT_ARES="default"
|
||||||
AC_ARG_ENABLE(ares,
|
AC_ARG_ENABLE(ares,
|
||||||
|
|
@ -108,8 +108,8 @@ dnl --enable-debug or --disable-debug, and set shell
|
||||||
dnl variable want_debug value as appropriate.
|
dnl variable want_debug value as appropriate.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_DEBUG], [
|
AC_DEFUN([CURL_CHECK_OPTION_DEBUG], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_OPTION_WARNINGS])dnl
|
AC_BEFORE([$0],[CURL_CHECK_OPTION_WARNINGS])
|
||||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||||
AC_MSG_CHECKING([whether to enable debug build options])
|
AC_MSG_CHECKING([whether to enable debug build options])
|
||||||
OPT_DEBUG_BUILD="default"
|
OPT_DEBUG_BUILD="default"
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
|
|
@ -140,8 +140,8 @@ dnl --enable-optimize or --disable-optimize, and set
|
||||||
dnl shell variable want_optimize value as appropriate.
|
dnl shell variable want_optimize value as appropriate.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_OPTIMIZE], [
|
AC_DEFUN([CURL_CHECK_OPTION_OPTIMIZE], [
|
||||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl
|
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])
|
||||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||||
AC_MSG_CHECKING([whether to enable compiler optimizer])
|
AC_MSG_CHECKING([whether to enable compiler optimizer])
|
||||||
OPT_COMPILER_OPTIMIZE="default"
|
OPT_COMPILER_OPTIMIZE="default"
|
||||||
AC_ARG_ENABLE(optimize,
|
AC_ARG_ENABLE(optimize,
|
||||||
|
|
@ -196,7 +196,7 @@ dnl --enable-symbol-hiding or --disable-symbol-hiding,
|
||||||
dnl setting shell variable want_symbol_hiding value.
|
dnl setting shell variable want_symbol_hiding value.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_SYMBOL_HIDING], [
|
AC_DEFUN([CURL_CHECK_OPTION_SYMBOL_HIDING], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SYMBOL_HIDING])dnl
|
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SYMBOL_HIDING])
|
||||||
AC_MSG_CHECKING([whether to enable hiding of library internal symbols])
|
AC_MSG_CHECKING([whether to enable hiding of library internal symbols])
|
||||||
OPT_SYMBOL_HIDING="default"
|
OPT_SYMBOL_HIDING="default"
|
||||||
AC_ARG_ENABLE(symbol-hiding,
|
AC_ARG_ENABLE(symbol-hiding,
|
||||||
|
|
@ -236,7 +236,7 @@ dnl --disable-rt and set shell variable dontwant_rt
|
||||||
dnl as appropriate.
|
dnl as appropriate.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_RT], [
|
AC_DEFUN([CURL_CHECK_OPTION_RT], [
|
||||||
AC_BEFORE([$0], [CURL_CHECK_LIB_THREADS])dnl
|
AC_BEFORE([$0], [CURL_CHECK_LIB_THREADS])
|
||||||
AC_MSG_CHECKING([whether to disable dependency on -lrt])
|
AC_MSG_CHECKING([whether to disable dependency on -lrt])
|
||||||
OPT_RT="default"
|
OPT_RT="default"
|
||||||
AC_ARG_ENABLE(rt,
|
AC_ARG_ENABLE(rt,
|
||||||
|
|
@ -268,9 +268,9 @@ dnl --enable-warnings or --disable-warnings, and set
|
||||||
dnl shell variable want_warnings as appropriate.
|
dnl shell variable want_warnings as appropriate.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_WARNINGS], [
|
AC_DEFUN([CURL_CHECK_OPTION_WARNINGS], [
|
||||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl
|
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])
|
||||||
AC_BEFORE([$0],[CURL_CHECK_OPTION_WERROR])dnl
|
AC_BEFORE([$0],[CURL_CHECK_OPTION_WERROR])
|
||||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||||
AC_MSG_CHECKING([whether to enable strict compiler warnings])
|
AC_MSG_CHECKING([whether to enable strict compiler warnings])
|
||||||
OPT_COMPILER_WARNINGS="default"
|
OPT_COMPILER_WARNINGS="default"
|
||||||
AC_ARG_ENABLE(warnings,
|
AC_ARG_ENABLE(warnings,
|
||||||
|
|
@ -302,7 +302,7 @@ dnl --enable-werror or --disable-werror, and set
|
||||||
dnl shell variable want_werror as appropriate.
|
dnl shell variable want_werror as appropriate.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_OPTION_WERROR], [
|
AC_DEFUN([CURL_CHECK_OPTION_WERROR], [
|
||||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER])dnl
|
AC_BEFORE([$0],[CURL_CHECK_COMPILER])
|
||||||
AC_MSG_CHECKING([whether to enable compiler warnings as errors])
|
AC_MSG_CHECKING([whether to enable compiler warnings as errors])
|
||||||
OPT_COMPILER_WERROR="default"
|
OPT_COMPILER_WERROR="default"
|
||||||
AC_ARG_ENABLE(werror,
|
AC_ARG_ENABLE(werror,
|
||||||
|
|
@ -332,10 +332,10 @@ dnl -------------------------------------------------
|
||||||
dnl Check for how to set a socket into non-blocking state.
|
dnl Check for how to set a socket into non-blocking state.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_NONBLOCKING_SOCKET], [
|
AC_DEFUN([CURL_CHECK_NONBLOCKING_SOCKET], [
|
||||||
AC_REQUIRE([CURL_CHECK_FUNC_FCNTL])dnl
|
AC_REQUIRE([CURL_CHECK_FUNC_FCNTL])
|
||||||
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET])dnl
|
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET])
|
||||||
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET_CAMEL])dnl
|
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET_CAMEL])
|
||||||
#
|
|
||||||
tst_method="unknown"
|
tst_method="unknown"
|
||||||
|
|
||||||
AC_MSG_CHECKING([how to set a socket into non-blocking mode])
|
AC_MSG_CHECKING([how to set a socket into non-blocking mode])
|
||||||
|
|
@ -391,7 +391,7 @@ dnl When c-ares library support has been requested, performs necessary checks
|
||||||
dnl and adjustments needed to enable support of this library.
|
dnl and adjustments needed to enable support of this library.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
||||||
#
|
|
||||||
if test "$want_ares" = "yes"; then
|
if test "$want_ares" = "yes"; then
|
||||||
dnl c-ares library support has been requested
|
dnl c-ares library support has been requested
|
||||||
clean_CPPFLAGS="$CPPFLAGS"
|
clean_CPPFLAGS="$CPPFLAGS"
|
||||||
|
|
@ -435,12 +435,11 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
||||||
ares_LIBS="-lcares"
|
ares_LIBS="-lcares"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
|
CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
|
||||||
LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
|
LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
|
||||||
LDFLAGSPC="$clean_LDFLAGSPC $ares_LDFLAGS"
|
LDFLAGSPC="$clean_LDFLAGSPC $ares_LDFLAGS"
|
||||||
LIBS="$ares_LIBS $clean_LIBS"
|
LIBS="$ares_LIBS $clean_LIBS"
|
||||||
#
|
|
||||||
|
|
||||||
dnl check if c-ares new enough, 1.16.0 or newer
|
dnl check if c-ares new enough, 1.16.0 or newer
|
||||||
AC_CHECK_FUNC([ares_getaddrinfo],
|
AC_CHECK_FUNC([ares_getaddrinfo],
|
||||||
|
|
@ -452,7 +451,7 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
||||||
LDFLAGS="$clean_LDFLAGS"
|
LDFLAGS="$clean_LDFLAGS"
|
||||||
LDFLAGSPC="$clean_LDFLAGSPC"
|
LDFLAGSPC="$clean_LDFLAGSPC"
|
||||||
LIBS="$clean_LIBS"
|
LIBS="$clean_LIBS"
|
||||||
# prevent usage
|
dnl prevent usage
|
||||||
want_ares="no"
|
want_ares="no"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -74,7 +74,8 @@ if test "x$OPT_GNUTLS" != "xno"; then
|
||||||
addlib=-lgnutls
|
addlib=-lgnutls
|
||||||
addld=-L$OPT_GNUTLS/lib$libsuff
|
addld=-L$OPT_GNUTLS/lib$libsuff
|
||||||
addcflags=-I$OPT_GNUTLS/include
|
addcflags=-I$OPT_GNUTLS/include
|
||||||
version="" # we just do not know
|
dnl we just do not know
|
||||||
|
version=""
|
||||||
gtlslib=$OPT_GNUTLS/lib$libsuff
|
gtlslib=$OPT_GNUTLS/lib$libsuff
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
@ -138,15 +139,15 @@ if test "x$OPT_GNUTLS" != "xno"; then
|
||||||
test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
|
test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$GNUTLS_ENABLED" = "1"; then
|
dnl
|
||||||
dnl ---
|
|
||||||
dnl Check which crypto backend GnuTLS uses
|
dnl Check which crypto backend GnuTLS uses
|
||||||
dnl ---
|
dnl
|
||||||
|
if test "$GNUTLS_ENABLED" = "1"; then
|
||||||
USE_GNUTLS_NETTLE=
|
USE_GNUTLS_NETTLE=
|
||||||
# First check if we can detect either crypto library via transitive linking
|
dnl First check if we can detect either crypto library via transitive linking
|
||||||
AC_CHECK_LIB(gnutls, nettle_MD5Init, [ USE_GNUTLS_NETTLE=1 ])
|
AC_CHECK_LIB(gnutls, nettle_MD5Init, [ USE_GNUTLS_NETTLE=1 ])
|
||||||
|
|
||||||
# If not, try linking directly to both of them to see if they are available
|
dnl If not, try linking directly to both of them to see if they are available
|
||||||
if test -z "$USE_GNUTLS_NETTLE"; then
|
if test -z "$USE_GNUTLS_NETTLE"; then
|
||||||
|
|
||||||
dnl this is with no particular path given
|
dnl this is with no particular path given
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@
|
||||||
#
|
#
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
dnl File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 5
|
dnl serial 5
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl Check for OpenSSL libraries and headers
|
dnl Check for OpenSSL libraries and headers
|
||||||
|
|
@ -85,7 +85,7 @@ if test "x$OPT_OPENSSL" != "xno"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$PKGTEST" != "yes"; then
|
if test "$PKGTEST" != "yes"; then
|
||||||
# try lib64 instead
|
dnl try lib64 instead
|
||||||
OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
|
OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
|
||||||
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
||||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
||||||
|
|
@ -114,13 +114,13 @@ if test "x$OPT_OPENSSL" != "xno"; then
|
||||||
CURL_CHECK_PKGCONFIG(openssl, [$OPENSSL_PCDIR])
|
CURL_CHECK_PKGCONFIG(openssl, [$OPENSSL_PCDIR])
|
||||||
|
|
||||||
if test "$PKGCONFIG" != "no"; then
|
if test "$PKGCONFIG" != "no"; then
|
||||||
SSL_LIBS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl
|
SSL_LIBS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR])
|
||||||
$PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
|
$PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
|
||||||
|
|
||||||
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl
|
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR])
|
||||||
$PKGCONFIG --libs-only-L openssl 2>/dev/null`
|
$PKGCONFIG --libs-only-L openssl 2>/dev/null`
|
||||||
|
|
||||||
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl
|
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR])
|
||||||
$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
|
$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
|
||||||
|
|
||||||
AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
|
AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
|
||||||
|
|
@ -153,12 +153,12 @@ if test "x$OPT_OPENSSL" != "xno"; then
|
||||||
LDFLAGSPC="$CLEANLDFLAGSPC -L$LIB_OPENSSL"
|
LDFLAGSPC="$CLEANLDFLAGSPC -L$LIB_OPENSSL"
|
||||||
fi
|
fi
|
||||||
if test "$PKGCONFIG" = "no" && test -n "$PREFIX_OPENSSL"; then
|
if test "$PKGCONFIG" = "no" && test -n "$PREFIX_OPENSSL"; then
|
||||||
# only set this if pkg-config was not used
|
dnl only set this if pkg-config was not used
|
||||||
CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
|
CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
|
||||||
fi
|
fi
|
||||||
# Linking previously failed, try extra paths from --with-openssl or
|
dnl Linking previously failed, try extra paths from --with-openssl or
|
||||||
# pkg-config. Use a different function name to avoid reusing the earlier
|
dnl pkg-config. Use a different function name to avoid reusing the earlier
|
||||||
# cached result.
|
dnl cached result.
|
||||||
AC_CHECK_LIB(crypto, HMAC_Init_ex,[
|
AC_CHECK_LIB(crypto, HMAC_Init_ex,[
|
||||||
HAVECRYPTO="yes"
|
HAVECRYPTO="yes"
|
||||||
LIBS="-lcrypto $LIBS"], [
|
LIBS="-lcrypto $LIBS"], [
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,10 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: curl
|
# SPDX-License-Identifier: curl
|
||||||
#
|
#
|
||||||
###########################################################################
|
|
||||||
#***************************************************************************
|
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
dnl File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 7
|
dnl serial 7
|
||||||
|
|
||||||
dnl CURL_OVERRIDE_AUTOCONF
|
dnl CURL_OVERRIDE_AUTOCONF
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@
|
||||||
#
|
#
|
||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
dnl File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 10
|
dnl serial 10
|
||||||
|
|
||||||
dnl Note 1
|
dnl Note 1
|
||||||
dnl ------
|
dnl ------
|
||||||
|
|
@ -370,8 +370,8 @@ dnl that it is defined equally for further configure
|
||||||
dnl tests and generated config file.
|
dnl tests and generated config file.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([if _REENTRANT is already defined])
|
AC_MSG_CHECKING([if _REENTRANT is already defined])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -390,7 +390,7 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
tmp_reentrant_initially_defined="no"
|
tmp_reentrant_initially_defined="no"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
if test "$tmp_reentrant_initially_defined" = "no"; then
|
if test "$tmp_reentrant_initially_defined" = "no"; then
|
||||||
AC_MSG_CHECKING([if _REENTRANT is actually needed])
|
AC_MSG_CHECKING([if _REENTRANT is actually needed])
|
||||||
CURL_CHECK_NEED_REENTRANT_SYSTEM
|
CURL_CHECK_NEED_REENTRANT_SYSTEM
|
||||||
|
|
@ -406,7 +406,7 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([if _REENTRANT is onwards defined])
|
AC_MSG_CHECKING([if _REENTRANT is onwards defined])
|
||||||
if test "$tmp_reentrant_initially_defined" = "yes" ||
|
if test "$tmp_reentrant_initially_defined" = "yes" ||
|
||||||
test "$tmp_need_reentrant" = "yes"; then
|
test "$tmp_need_reentrant" = "yes"; then
|
||||||
|
|
@ -415,7 +415,6 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -431,8 +430,8 @@ dnl that it is defined equally for further configure
|
||||||
dnl tests and generated config file.
|
dnl tests and generated config file.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([if _THREAD_SAFE is already defined])
|
AC_MSG_CHECKING([if _THREAD_SAFE is already defined])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
|
@ -451,7 +450,7 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
tmp_thread_safe_initially_defined="no"
|
tmp_thread_safe_initially_defined="no"
|
||||||
])
|
])
|
||||||
#
|
|
||||||
if test "$tmp_thread_safe_initially_defined" = "no"; then
|
if test "$tmp_thread_safe_initially_defined" = "no"; then
|
||||||
AC_MSG_CHECKING([if _THREAD_SAFE is actually needed])
|
AC_MSG_CHECKING([if _THREAD_SAFE is actually needed])
|
||||||
CURL_CHECK_NEED_THREAD_SAFE_SYSTEM
|
CURL_CHECK_NEED_THREAD_SAFE_SYSTEM
|
||||||
|
|
@ -461,7 +460,7 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([if _THREAD_SAFE is onwards defined])
|
AC_MSG_CHECKING([if _THREAD_SAFE is onwards defined])
|
||||||
if test "$tmp_thread_safe_initially_defined" = "yes" ||
|
if test "$tmp_thread_safe_initially_defined" = "yes" ||
|
||||||
test "$tmp_need_thread_safe" = "yes"; then
|
test "$tmp_need_thread_safe" = "yes"; then
|
||||||
|
|
@ -470,5 +469,4 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ if test "x$OPT_RUSTLS" != "xno"; then
|
||||||
CLEANLDFLAGSPC="$LDFLAGSPC"
|
CLEANLDFLAGSPC="$LDFLAGSPC"
|
||||||
CLEANCPPFLAGS="$CPPFLAGS"
|
CLEANCPPFLAGS="$CPPFLAGS"
|
||||||
|
|
||||||
## NEW CODE
|
dnl NEW CODE
|
||||||
|
|
||||||
dnl use pkg-config unless we have been given a path
|
dnl use pkg-config unless we have been given a path
|
||||||
dnl even then, try pkg-config first
|
dnl even then, try pkg-config first
|
||||||
|
|
@ -62,7 +62,7 @@ if test "x$OPT_RUSTLS" != "xno"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$PKGTEST" != "yes"; then
|
if test "$PKGTEST" != "yes"; then
|
||||||
# try lib64 instead
|
dnl try lib64 instead
|
||||||
RUSTLS_PCDIR="$PREFIX_RUSTLS/lib64/pkgconfig"
|
RUSTLS_PCDIR="$PREFIX_RUSTLS/lib64/pkgconfig"
|
||||||
if test -f "$RUSTLS_PCDIR/rustls.pc"; then
|
if test -f "$RUSTLS_PCDIR/rustls.pc"; then
|
||||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$RUSTLS_PCDIR"])
|
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$RUSTLS_PCDIR"])
|
||||||
|
|
@ -109,13 +109,13 @@ if test "x$OPT_RUSTLS" != "xno"; then
|
||||||
CURL_CHECK_PKGCONFIG(rustls, [$RUSTLS_PCDIR])
|
CURL_CHECK_PKGCONFIG(rustls, [$RUSTLS_PCDIR])
|
||||||
|
|
||||||
if test "$PKGCONFIG" != "no"; then
|
if test "$PKGCONFIG" != "no"; then
|
||||||
SSL_LIBS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR]) dnl
|
SSL_LIBS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR])
|
||||||
$PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null`
|
$PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null`
|
||||||
|
|
||||||
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR]) dnl
|
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR])
|
||||||
$PKGCONFIG --libs-only-L rustls 2>/dev/null`
|
$PKGCONFIG --libs-only-L rustls 2>/dev/null`
|
||||||
|
|
||||||
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR]) dnl
|
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR])
|
||||||
$PKGCONFIG --cflags-only-I rustls 2>/dev/null`
|
$PKGCONFIG --cflags-only-I rustls 2>/dev/null`
|
||||||
|
|
||||||
AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
|
AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ if test "x$OPT_SCHANNEL" != "xno"; then
|
||||||
ssl_msg="Schannel"
|
ssl_msg="Schannel"
|
||||||
test "schannel" != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
test "schannel" != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
||||||
SCHANNEL_ENABLED=1
|
SCHANNEL_ENABLED=1
|
||||||
# --with-schannel implies --enable-sspi
|
dnl --with-schannel implies --enable-sspi
|
||||||
AC_DEFINE(USE_WINDOWS_SSPI, 1, [to enable SSPI support])
|
AC_DEFINE(USE_WINDOWS_SSPI, 1, [to enable SSPI support])
|
||||||
USE_WINDOWS_SSPI=1
|
USE_WINDOWS_SSPI=1
|
||||||
curl_sspi_msg="enabled"
|
curl_sspi_msg="enabled"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# serial 1
|
dnl serial 1
|
||||||
|
|
||||||
|
|
||||||
dnl _XC_AUTOMAKE_BODY
|
dnl _XC_AUTOMAKE_BODY
|
||||||
|
|
@ -39,21 +39,20 @@ dnl is used to differentiate automake version 1.14 from older
|
||||||
dnl ones which lack this macro.
|
dnl ones which lack this macro.
|
||||||
|
|
||||||
m4_define([_XC_AUTOMAKE_BODY],
|
m4_define([_XC_AUTOMAKE_BODY],
|
||||||
[dnl
|
[
|
||||||
## --------------------------------------- ##
|
dnl ---------------------------------------
|
||||||
## Start of automake initialization code ##
|
dnl Start of automake initialization code
|
||||||
## --------------------------------------- ##
|
dnl ---------------------------------------
|
||||||
m4_ifdef([_AM_PROG_CC_C_O],
|
m4_ifdef([_AM_PROG_CC_C_O],
|
||||||
[
|
[
|
||||||
AM_INIT_AUTOMAKE([subdir-objects])
|
AM_INIT_AUTOMAKE([subdir-objects])
|
||||||
],[
|
],[
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
])dnl
|
])
|
||||||
## ------------------------------------- ##
|
dnl -------------------------------------
|
||||||
## End of automake initialization code ##
|
dnl End of automake initialization code
|
||||||
## ------------------------------------- ##
|
dnl -------------------------------------
|
||||||
dnl
|
m4_define([$0], [])[]
|
||||||
m4_define([$0], [])[]dnl
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -71,15 +70,15 @@ dnl generate the configure script, otherwise this option
|
||||||
dnl is not used.
|
dnl is not used.
|
||||||
|
|
||||||
AC_DEFUN([XC_AUTOMAKE],
|
AC_DEFUN([XC_AUTOMAKE],
|
||||||
[dnl
|
[
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||||
dnl
|
|
||||||
_XC_AUTOMAKE_BODY
|
_XC_AUTOMAKE_BODY
|
||||||
dnl
|
|
||||||
m4_ifdef([AM_INIT_AUTOMAKE],
|
m4_ifdef([AM_INIT_AUTOMAKE],
|
||||||
[m4_undefine([AM_INIT_AUTOMAKE])])dnl
|
[m4_undefine([AM_INIT_AUTOMAKE])])
|
||||||
dnl
|
|
||||||
m4_define([$0], [])[]dnl
|
m4_define([$0], [])[]
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# serial 1
|
dnl serial 1
|
||||||
|
|
||||||
|
|
||||||
dnl _XC_PROG_CC_PREAMBLE
|
dnl _XC_PROG_CC_PREAMBLE
|
||||||
|
|
@ -46,12 +46,12 @@ AC_DEFUN([_XC_PROG_CC_POSTLUDE], [
|
||||||
CFLAGS=$xc_prog_cc_prev_CFLAGS
|
CFLAGS=$xc_prog_cc_prev_CFLAGS
|
||||||
LDFLAGS=$xc_prog_cc_prev_LDFLAGS
|
LDFLAGS=$xc_prog_cc_prev_LDFLAGS
|
||||||
CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
|
CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
|
||||||
AC_SUBST([CC])dnl
|
AC_SUBST([CC])
|
||||||
AC_SUBST([CPP])dnl
|
AC_SUBST([CPP])
|
||||||
AC_SUBST([LIBS])dnl
|
AC_SUBST([LIBS])
|
||||||
AC_SUBST([CFLAGS])dnl
|
AC_SUBST([CFLAGS])
|
||||||
AC_SUBST([LDFLAGS])dnl
|
AC_SUBST([LDFLAGS])
|
||||||
AC_SUBST([CPPFLAGS])dnl
|
AC_SUBST([CPPFLAGS])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -60,13 +60,13 @@ dnl -------------------------------------------------
|
||||||
dnl Private macro.
|
dnl Private macro.
|
||||||
|
|
||||||
AC_DEFUN([_XC_PROG_CC], [
|
AC_DEFUN([_XC_PROG_CC], [
|
||||||
AC_REQUIRE([_XC_PROG_CC_PREAMBLE])dnl
|
AC_REQUIRE([_XC_PROG_CC_PREAMBLE])
|
||||||
AC_REQUIRE([XC_CHECK_BUILD_FLAGS])dnl
|
AC_REQUIRE([XC_CHECK_BUILD_FLAGS])
|
||||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
AC_REQUIRE([AC_PROG_INSTALL])
|
||||||
AC_REQUIRE([AC_PROG_CC])dnl
|
AC_REQUIRE([AC_PROG_CC])
|
||||||
AC_REQUIRE([AM_PROG_CC_C_O])dnl
|
AC_REQUIRE([AM_PROG_CC_C_O])
|
||||||
AC_REQUIRE([AC_PROG_CPP])dnl
|
AC_REQUIRE([AC_PROG_CPP])
|
||||||
AC_REQUIRE([_XC_PROG_CC_POSTLUDE])dnl
|
AC_REQUIRE([_XC_PROG_CC_POSTLUDE])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -84,14 +84,14 @@ dnl LIBS, LDFLAGS, CFLAGS, CPPFLAGS and IFS from being
|
||||||
dnl unexpectedly changed by underlying macros.
|
dnl unexpectedly changed by underlying macros.
|
||||||
|
|
||||||
AC_DEFUN([XC_CHECK_PROG_CC], [
|
AC_DEFUN([XC_CHECK_PROG_CC], [
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
AC_BEFORE([$0],[_XC_PROG_CC_PREAMBLE])dnl
|
AC_BEFORE([$0],[_XC_PROG_CC_PREAMBLE])
|
||||||
AC_BEFORE([$0],[AC_PROG_INSTALL])dnl
|
AC_BEFORE([$0],[AC_PROG_INSTALL])
|
||||||
AC_BEFORE([$0],[AC_PROG_CC])dnl
|
AC_BEFORE([$0],[AC_PROG_CC])
|
||||||
AC_BEFORE([$0],[AM_PROG_CC_C_O])dnl
|
AC_BEFORE([$0],[AM_PROG_CC_C_O])
|
||||||
AC_BEFORE([$0],[AC_PROG_CPP])dnl
|
AC_BEFORE([$0],[AC_PROG_CPP])
|
||||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||||
AC_BEFORE([$0],[_XC_PROG_CC_POSTLUDE])dnl
|
AC_BEFORE([$0],[_XC_PROG_CC_POSTLUDE])
|
||||||
AC_REQUIRE([_XC_PROG_CC])dnl
|
AC_REQUIRE([_XC_PROG_CC])
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# serial 1
|
dnl serial 1
|
||||||
|
|
||||||
|
|
||||||
dnl _XC_LIBTOOL_PREAMBLE
|
dnl _XC_LIBTOOL_PREAMBLE
|
||||||
|
|
@ -32,23 +32,23 @@ dnl libtool and customizes its default behavior before
|
||||||
dnl libtool code is actually used in script.
|
dnl libtool code is actually used in script.
|
||||||
|
|
||||||
m4_define([_XC_LIBTOOL_PREAMBLE],
|
m4_define([_XC_LIBTOOL_PREAMBLE],
|
||||||
[dnl
|
[
|
||||||
# ------------------------------------ #
|
dnl ------------------------------------
|
||||||
# Determine libtool default behavior #
|
dnl Determine libtool default behavior
|
||||||
# ------------------------------------ #
|
dnl ------------------------------------
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Default behavior is to enable shared and static libraries on systems
|
dnl Default behavior is to enable shared and static libraries on systems
|
||||||
# where libtool knows how to build both library versions, and does not
|
dnl where libtool knows how to build both library versions, and does not
|
||||||
# require separate configuration and build runs for each flavor.
|
dnl require separate configuration and build runs for each flavor.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_lt_want_enable_shared='yes'
|
xc_lt_want_enable_shared='yes'
|
||||||
xc_lt_want_enable_static='yes'
|
xc_lt_want_enable_static='yes'
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# User may have disabled shared or static libraries.
|
dnl User may have disabled shared or static libraries.
|
||||||
#
|
dnl
|
||||||
case "x$enable_shared" in @%:@ (
|
case "x$enable_shared" in @%:@ (
|
||||||
xno)
|
xno)
|
||||||
xc_lt_want_enable_shared='no'
|
xc_lt_want_enable_shared='no'
|
||||||
|
|
@ -64,12 +64,12 @@ if test "$xc_lt_want_enable_shared" = "no" &&
|
||||||
AC_MSG_ERROR([can not disable shared and static libraries simultaneously])
|
AC_MSG_ERROR([can not disable shared and static libraries simultaneously])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Default behavior on systems that require independent configuration
|
dnl Default behavior on systems that require independent configuration
|
||||||
# and build runs for shared and static is to enable shared libraries
|
dnl and build runs for shared and static is to enable shared libraries
|
||||||
# and disable static ones. On these systems option '--disable-shared'
|
dnl and disable static ones. On these systems option '--disable-shared'
|
||||||
# must be used in order to build a proper static library.
|
dnl must be used in order to build a proper static library.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
if test "$xc_lt_want_enable_shared" = "yes" &&
|
if test "$xc_lt_want_enable_shared" = "yes" &&
|
||||||
test "$xc_lt_want_enable_static" = "yes"; then
|
test "$xc_lt_want_enable_static" = "yes"; then
|
||||||
|
|
@ -80,25 +80,25 @@ if test "$xc_lt_want_enable_shared" = "yes" &&
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Make libtool aware of current shared and static library preferences
|
dnl Make libtool aware of current shared and static library preferences
|
||||||
# taking in account that, depending on host characteristics, libtool
|
dnl taking in account that, depending on host characteristics, libtool
|
||||||
# may modify these option preferences later in this configure script.
|
dnl may modify these option preferences later in this configure script.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
enable_shared=$xc_lt_want_enable_shared
|
enable_shared=$xc_lt_want_enable_shared
|
||||||
enable_static=$xc_lt_want_enable_static
|
enable_static=$xc_lt_want_enable_static
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Default behavior is to build PIC objects for shared libraries and
|
dnl Default behavior is to build PIC objects for shared libraries and
|
||||||
# non-PIC objects for static libraries.
|
dnl non-PIC objects for static libraries.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_lt_want_with_pic='default'
|
xc_lt_want_with_pic='default'
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# User may have specified PIC preference.
|
dnl User may have specified PIC preference.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
case "x$with_pic" in @%:@ ((
|
case "x$with_pic" in @%:@ ((
|
||||||
xno)
|
xno)
|
||||||
|
|
@ -109,13 +109,13 @@ case "x$with_pic" in @%:@ ((
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Default behavior on some systems where building a shared library out
|
dnl Default behavior on some systems where building a shared library out
|
||||||
# of non-PIC compiled objects will fail with following linker error
|
dnl of non-PIC compiled objects will fail with following linker error
|
||||||
# "relocation R_X86_64_32 can not be used when making a shared object"
|
dnl "relocation R_X86_64_32 can not be used when making a shared object"
|
||||||
# is to build PIC objects even for static libraries. This behavior may
|
dnl is to build PIC objects even for static libraries. This behavior may
|
||||||
# be overridden using 'configure --disable-shared --without-pic'.
|
dnl be overridden using 'configure --disable-shared --without-pic'.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
if test "$xc_lt_want_with_pic" = "default"; then
|
if test "$xc_lt_want_with_pic" = "default"; then
|
||||||
case $host_cpu in @%:@ (
|
case $host_cpu in @%:@ (
|
||||||
|
|
@ -136,8 +136,8 @@ fi
|
||||||
#
|
#
|
||||||
|
|
||||||
with_pic=$xc_lt_want_with_pic
|
with_pic=$xc_lt_want_with_pic
|
||||||
dnl
|
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -150,22 +150,22 @@ dnl configure script, regardless of libtool version in
|
||||||
dnl use when generating configure script.
|
dnl use when generating configure script.
|
||||||
|
|
||||||
m4_define([_XC_LIBTOOL_BODY],
|
m4_define([_XC_LIBTOOL_BODY],
|
||||||
[dnl
|
[
|
||||||
## ----------------------- ##
|
dnl -----------------------
|
||||||
## Start of libtool code ##
|
dnl Start of libtool code
|
||||||
## ----------------------- ##
|
dnl -----------------------
|
||||||
m4_ifdef([LT_INIT],
|
m4_ifdef([LT_INIT],
|
||||||
[dnl
|
[
|
||||||
LT_INIT([win32-dll])
|
LT_INIT([win32-dll])
|
||||||
],[dnl
|
],[
|
||||||
AC_LIBTOOL_WIN32_DLL
|
AC_LIBTOOL_WIN32_DLL
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
])dnl
|
])
|
||||||
## --------------------- ##
|
dnl ---------------------
|
||||||
## End of libtool code ##
|
dnl End of libtool code
|
||||||
## --------------------- ##
|
dnl ---------------------
|
||||||
dnl
|
dnl
|
||||||
m4_define([$0], [])[]dnl
|
m4_define([$0], [])[]
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -182,7 +182,7 @@ dnl xc_lt_build_shared
|
||||||
dnl xc_lt_build_static
|
dnl xc_lt_build_static
|
||||||
|
|
||||||
m4_define([_XC_CHECK_LT_BUILD_LIBRARIES],
|
m4_define([_XC_CHECK_LT_BUILD_LIBRARIES],
|
||||||
[dnl
|
[
|
||||||
#
|
#
|
||||||
# Verify if finally libtool shared libraries will be built
|
# Verify if finally libtool shared libraries will be built
|
||||||
#
|
#
|
||||||
|
|
@ -208,8 +208,8 @@ case "x$enable_static" in @%:@ ((
|
||||||
AC_MSG_ERROR([unexpected libtool enable_static value: $enable_static])
|
AC_MSG_ERROR([unexpected libtool enable_static value: $enable_static])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
dnl
|
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -222,7 +222,7 @@ dnl provided when building libtool shared libraries.
|
||||||
dnl Result stored in xc_lt_shlib_use_version_info.
|
dnl Result stored in xc_lt_shlib_use_version_info.
|
||||||
|
|
||||||
m4_define([_XC_CHECK_LT_SHLIB_USE_VERSION_INFO],
|
m4_define([_XC_CHECK_LT_SHLIB_USE_VERSION_INFO],
|
||||||
[dnl
|
[
|
||||||
#
|
#
|
||||||
# Verify if libtool shared libraries should be linked using flag -version-info
|
# Verify if libtool shared libraries should be linked using flag -version-info
|
||||||
#
|
#
|
||||||
|
|
@ -238,8 +238,8 @@ case $host_os in @%:@ (
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_MSG_RESULT([$xc_lt_shlib_use_version_info])
|
AC_MSG_RESULT([$xc_lt_shlib_use_version_info])
|
||||||
dnl
|
|
||||||
m4_define([$0], [])[]dnl
|
m4_define([$0], [])[]
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -252,7 +252,7 @@ dnl provided when building libtool shared libraries.
|
||||||
dnl Result stored in xc_lt_shlib_use_no_undefined.
|
dnl Result stored in xc_lt_shlib_use_no_undefined.
|
||||||
|
|
||||||
m4_define([_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED],
|
m4_define([_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED],
|
||||||
[dnl
|
[
|
||||||
#
|
#
|
||||||
# Verify if libtool shared libraries should be linked using flag -no-undefined
|
# Verify if libtool shared libraries should be linked using flag -no-undefined
|
||||||
#
|
#
|
||||||
|
|
@ -270,8 +270,8 @@ case $host_os in @%:@ (
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_MSG_RESULT([$xc_lt_shlib_use_no_undefined])
|
AC_MSG_RESULT([$xc_lt_shlib_use_no_undefined])
|
||||||
dnl
|
|
||||||
m4_define([$0], [])[]dnl
|
m4_define([$0], [])[]
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -284,7 +284,7 @@ dnl provided when building libtool shared libraries.
|
||||||
dnl Result stored in xc_lt_shlib_use_mimpure_text.
|
dnl Result stored in xc_lt_shlib_use_mimpure_text.
|
||||||
|
|
||||||
m4_define([_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT],
|
m4_define([_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT],
|
||||||
[dnl
|
[
|
||||||
#
|
#
|
||||||
# Verify if libtool shared libraries should be linked using flag -mimpure-text
|
# Verify if libtool shared libraries should be linked using flag -mimpure-text
|
||||||
#
|
#
|
||||||
|
|
@ -299,8 +299,8 @@ case $host_os in @%:@ (
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_MSG_RESULT([$xc_lt_shlib_use_mimpure_text])
|
AC_MSG_RESULT([$xc_lt_shlib_use_mimpure_text])
|
||||||
dnl
|
|
||||||
m4_define([$0], [])[]dnl
|
m4_define([$0], [])[]
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -317,7 +317,7 @@ dnl xc_lt_build_shared_with_pic
|
||||||
dnl xc_lt_build_static_with_pic
|
dnl xc_lt_build_static_with_pic
|
||||||
|
|
||||||
m4_define([_XC_CHECK_LT_BUILD_WITH_PIC],
|
m4_define([_XC_CHECK_LT_BUILD_WITH_PIC],
|
||||||
[dnl
|
[
|
||||||
#
|
#
|
||||||
# Find out whether libtool libraries would be built with PIC
|
# Find out whether libtool libraries would be built with PIC
|
||||||
#
|
#
|
||||||
|
|
@ -345,8 +345,8 @@ AC_MSG_CHECKING([whether to build shared libraries with PIC])
|
||||||
AC_MSG_RESULT([$xc_lt_build_shared_with_pic])
|
AC_MSG_RESULT([$xc_lt_build_shared_with_pic])
|
||||||
AC_MSG_CHECKING([whether to build static libraries with PIC])
|
AC_MSG_CHECKING([whether to build static libraries with PIC])
|
||||||
AC_MSG_RESULT([$xc_lt_build_static_with_pic])
|
AC_MSG_RESULT([$xc_lt_build_static_with_pic])
|
||||||
dnl
|
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -361,7 +361,7 @@ dnl xc_lt_build_shared_only
|
||||||
dnl xc_lt_build_static_only
|
dnl xc_lt_build_static_only
|
||||||
|
|
||||||
m4_define([_XC_CHECK_LT_BUILD_SINGLE_VERSION],
|
m4_define([_XC_CHECK_LT_BUILD_SINGLE_VERSION],
|
||||||
[dnl
|
[
|
||||||
#
|
#
|
||||||
# Verify if libtool shared libraries will be built while static not built
|
# Verify if libtool shared libraries will be built while static not built
|
||||||
#
|
#
|
||||||
|
|
@ -387,8 +387,8 @@ else
|
||||||
xc_lt_build_static_only='no'
|
xc_lt_build_static_only='no'
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([$xc_lt_build_static_only])
|
AC_MSG_RESULT([$xc_lt_build_static_only])
|
||||||
dnl
|
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -402,15 +402,15 @@ dnl been executed. See individual check descriptions
|
||||||
dnl for further info.
|
dnl for further info.
|
||||||
|
|
||||||
m4_define([_XC_LIBTOOL_POSTLUDE],
|
m4_define([_XC_LIBTOOL_POSTLUDE],
|
||||||
[dnl
|
[
|
||||||
_XC_CHECK_LT_BUILD_LIBRARIES
|
_XC_CHECK_LT_BUILD_LIBRARIES
|
||||||
_XC_CHECK_LT_SHLIB_USE_VERSION_INFO
|
_XC_CHECK_LT_SHLIB_USE_VERSION_INFO
|
||||||
_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED
|
_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED
|
||||||
_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT
|
_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT
|
||||||
_XC_CHECK_LT_BUILD_WITH_PIC
|
_XC_CHECK_LT_BUILD_WITH_PIC
|
||||||
_XC_CHECK_LT_BUILD_SINGLE_VERSION
|
_XC_CHECK_LT_BUILD_SINGLE_VERSION
|
||||||
dnl
|
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -440,27 +440,27 @@ dnl xc_lt_build_shared_only
|
||||||
dnl xc_lt_build_static_only
|
dnl xc_lt_build_static_only
|
||||||
|
|
||||||
AC_DEFUN([XC_LIBTOOL],
|
AC_DEFUN([XC_LIBTOOL],
|
||||||
[dnl
|
[
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[LT_INIT])dnl
|
AC_BEFORE([$0],[LT_INIT])
|
||||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])dnl
|
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
|
||||||
dnl
|
|
||||||
AC_REQUIRE([XC_CHECK_PATH_SEPARATOR])dnl
|
AC_REQUIRE([XC_CHECK_PATH_SEPARATOR])
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
AC_REQUIRE([AC_PROG_CC])dnl
|
AC_REQUIRE([AC_PROG_CC])
|
||||||
dnl
|
|
||||||
_XC_LIBTOOL_PREAMBLE
|
_XC_LIBTOOL_PREAMBLE
|
||||||
_XC_LIBTOOL_BODY
|
_XC_LIBTOOL_BODY
|
||||||
_XC_LIBTOOL_POSTLUDE
|
_XC_LIBTOOL_POSTLUDE
|
||||||
dnl
|
|
||||||
m4_ifdef([AC_LIBTOOL_WIN32_DLL],
|
m4_ifdef([AC_LIBTOOL_WIN32_DLL],
|
||||||
[m4_undefine([AC_LIBTOOL_WIN32_DLL])])dnl
|
[m4_undefine([AC_LIBTOOL_WIN32_DLL])])
|
||||||
m4_ifdef([AC_PROG_LIBTOOL],
|
m4_ifdef([AC_PROG_LIBTOOL],
|
||||||
[m4_undefine([AC_PROG_LIBTOOL])])dnl
|
[m4_undefine([AC_PROG_LIBTOOL])])
|
||||||
m4_ifdef([LT_INIT],
|
m4_ifdef([LT_INIT],
|
||||||
[m4_undefine([LT_INIT])])dnl
|
[m4_undefine([LT_INIT])])
|
||||||
dnl
|
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# serial 1
|
dnl serial 1
|
||||||
|
|
||||||
|
|
||||||
dnl _XC_CHECK_VAR_LIBS
|
dnl _XC_CHECK_VAR_LIBS
|
||||||
|
|
@ -200,8 +200,8 @@ dnl
|
||||||
dnl Intended to be used early in configure script.
|
dnl Intended to be used early in configure script.
|
||||||
|
|
||||||
AC_DEFUN([XC_CHECK_USER_FLAGS], [
|
AC_DEFUN([XC_CHECK_USER_FLAGS], [
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||||
dnl check order below matters
|
dnl check order below matters
|
||||||
_XC_CHECK_VAR_LIBS
|
_XC_CHECK_VAR_LIBS
|
||||||
_XC_CHECK_VAR_LDFLAGS
|
_XC_CHECK_VAR_LDFLAGS
|
||||||
|
|
@ -229,7 +229,7 @@ dnl
|
||||||
dnl Intended to be used late in configure script.
|
dnl Intended to be used late in configure script.
|
||||||
|
|
||||||
AC_DEFUN([XC_CHECK_BUILD_FLAGS], [
|
AC_DEFUN([XC_CHECK_BUILD_FLAGS], [
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
dnl check order below matters
|
dnl check order below matters
|
||||||
_XC_CHECK_VAR_LIBS
|
_XC_CHECK_VAR_LIBS
|
||||||
_XC_CHECK_VAR_LDFLAGS
|
_XC_CHECK_VAR_LDFLAGS
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,8 @@ dnl Version macros
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Public macros.
|
dnl Public macros.
|
||||||
|
|
||||||
m4_define([XC_CONFIGURE_PREAMBLE_VER_MAJOR],[1])dnl
|
m4_define([XC_CONFIGURE_PREAMBLE_VER_MAJOR],[1])
|
||||||
m4_define([XC_CONFIGURE_PREAMBLE_VER_MINOR],[0])dnl
|
m4_define([XC_CONFIGURE_PREAMBLE_VER_MINOR],[0])
|
||||||
|
|
||||||
|
|
||||||
dnl _XC_CFG_PRE_PREAMBLE
|
dnl _XC_CFG_PRE_PREAMBLE
|
||||||
|
|
@ -50,9 +50,9 @@ XC_CONFIGURE_PREAMBLE_VER_MINOR ##
|
||||||
xc_configure_preamble_ver_major='XC_CONFIGURE_PREAMBLE_VER_MAJOR'
|
xc_configure_preamble_ver_major='XC_CONFIGURE_PREAMBLE_VER_MAJOR'
|
||||||
xc_configure_preamble_ver_minor='XC_CONFIGURE_PREAMBLE_VER_MINOR'
|
xc_configure_preamble_ver_minor='XC_CONFIGURE_PREAMBLE_VER_MINOR'
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Set IFS to space, tab and newline.
|
dnl Set IFS to space, tab and newline.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_space=' '
|
xc_space=' '
|
||||||
xc_tab=' '
|
xc_tab=' '
|
||||||
|
|
@ -60,9 +60,9 @@ xc_newline='
|
||||||
'
|
'
|
||||||
IFS="$xc_space$xc_tab$xc_newline"
|
IFS="$xc_space$xc_tab$xc_newline"
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Set internationalization behavior variables.
|
dnl Set internationalization behavior variables.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
LANG='C'
|
LANG='C'
|
||||||
LC_ALL='C'
|
LC_ALL='C'
|
||||||
|
|
@ -71,9 +71,9 @@ export LANG
|
||||||
export LC_ALL
|
export LC_ALL
|
||||||
export LANGUAGE
|
export LANGUAGE
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Some useful variables.
|
dnl Some useful variables.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_msg_warn='configure: WARNING:'
|
xc_msg_warn='configure: WARNING:'
|
||||||
xc_msg_abrt='Can not continue.'
|
xc_msg_abrt='Can not continue.'
|
||||||
|
|
@ -89,11 +89,11 @@ dnl Emits shell code that verifies that 'echo' command
|
||||||
dnl is available, otherwise aborts execution.
|
dnl is available, otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])dnl
|
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])
|
||||||
#
|
dnl
|
||||||
# Verify that 'echo' command is available, otherwise abort.
|
dnl Verify that 'echo' command is available, otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
|
(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
|
||||||
|
|
@ -102,7 +102,7 @@ case "x$xc_tst_str" in @%:@ ((
|
||||||
:
|
:
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Try built-in echo, and fail.
|
dnl Try built-in echo, and fail.
|
||||||
echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
|
echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
@ -118,11 +118,11 @@ dnl Emits shell code that verifies that 'test' command
|
||||||
dnl is available, otherwise aborts execution.
|
dnl is available, otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_TEST],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_TEST],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||||
#
|
dnl
|
||||||
# Verify that 'test' command is available, otherwise abort.
|
dnl Verify that 'test' command is available, otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
|
(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
|
||||||
|
|
@ -146,11 +146,11 @@ dnl Emits shell code that verifies that 'PATH' variable
|
||||||
dnl is set, otherwise aborts execution.
|
dnl is set, otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_VAR_PATH],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_VAR_PATH],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||||
#
|
dnl
|
||||||
# Verify that 'PATH' variable is set, otherwise abort.
|
dnl Verify that 'PATH' variable is set, otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
|
(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
|
||||||
|
|
@ -174,11 +174,11 @@ dnl Emits shell code that verifies that 'expr' command
|
||||||
dnl is available, otherwise aborts execution.
|
dnl is available, otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
#
|
dnl
|
||||||
# Verify that 'expr' command is available, otherwise abort.
|
dnl Verify that 'expr' command is available, otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
|
xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
|
||||||
|
|
@ -206,11 +206,11 @@ dnl script bootstrapping itself. No fancy testing for a
|
||||||
dnl proper 'sed' this early, that should be done later.
|
dnl proper 'sed' this early, that should be done later.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_SED],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_SED],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
#
|
dnl
|
||||||
# Verify that 'sed' utility is found within 'PATH', otherwise abort.
|
dnl Verify that 'sed' utility is found within 'PATH', otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
||||||
|
|
@ -239,11 +239,11 @@ dnl script bootstrapping itself. No fancy testing for a
|
||||||
dnl proper 'grep' this early, that should be done later.
|
dnl proper 'grep' this early, that should be done later.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
#
|
dnl
|
||||||
# Verify that 'grep' utility is found within 'PATH', otherwise abort.
|
dnl Verify that 'grep' utility is found within 'PATH', otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
(`echo "$xc_tst_str" 2>/dev/null \
|
(`echo "$xc_tst_str" 2>/dev/null \
|
||||||
|
|
@ -268,11 +268,11 @@ dnl Emits shell code that verifies that 'tr' utility
|
||||||
dnl is found within 'PATH', otherwise aborts execution.
|
dnl is found within 'PATH', otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_TR],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_TR],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
#
|
dnl
|
||||||
# Verify that 'tr' utility is found within 'PATH', otherwise abort.
|
dnl Verify that 'tr' utility is found within 'PATH', otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
|
xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
|
||||||
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
||||||
|
|
@ -297,11 +297,11 @@ dnl Emits shell code that verifies that 'wc' utility
|
||||||
dnl is found within 'PATH', otherwise aborts execution.
|
dnl is found within 'PATH', otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_WC],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_WC],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||||
#
|
dnl
|
||||||
# Verify that 'wc' utility is found within 'PATH', otherwise abort.
|
dnl Verify that 'wc' utility is found within 'PATH', otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown unknown unknown unknown'
|
xc_tst_str='unknown unknown unknown unknown'
|
||||||
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
||||||
|
|
@ -326,11 +326,11 @@ dnl Emits shell code that verifies that 'cat' utility
|
||||||
dnl is found within 'PATH', otherwise aborts execution.
|
dnl is found within 'PATH', otherwise aborts execution.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT],
|
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||||
#
|
dnl
|
||||||
# Verify that 'cat' utility is found within 'PATH', otherwise abort.
|
dnl Verify that 'cat' utility is found within 'PATH', otherwise abort.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
xc_tst_str='unknown'
|
xc_tst_str='unknown'
|
||||||
xc_tst_str=`cat <<_EOT 2>/dev/null \
|
xc_tst_str=`cat <<_EOT 2>/dev/null \
|
||||||
|
|
@ -367,13 +367,13 @@ dnl Non-empty user provided 'PATH_SEPARATOR' always
|
||||||
dnl overrides the auto-detected one.
|
dnl overrides the auto-detected one.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_CHECK_PATH_SEPARATOR],
|
AC_DEFUN([_XC_CFG_PRE_CHECK_PATH_SEPARATOR],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||||
#
|
dnl
|
||||||
# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
|
dnl Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
# Directory count in 'PATH' when using a colon separator.
|
dnl Directory count in 'PATH' when using a colon separator.
|
||||||
xc_tst_dirs_col='x'
|
xc_tst_dirs_col='x'
|
||||||
xc_tst_prev_IFS=$IFS; IFS=':'
|
xc_tst_prev_IFS=$IFS; IFS=':'
|
||||||
for xc_tst_dir in $PATH; do
|
for xc_tst_dir in $PATH; do
|
||||||
|
|
@ -383,7 +383,7 @@ done
|
||||||
IFS=$xc_tst_prev_IFS
|
IFS=$xc_tst_prev_IFS
|
||||||
xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
|
xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
|
||||||
|
|
||||||
# Directory count in 'PATH' when using a semicolon separator.
|
dnl Directory count in 'PATH' when using a semicolon separator.
|
||||||
xc_tst_dirs_sem='x'
|
xc_tst_dirs_sem='x'
|
||||||
xc_tst_prev_IFS=$IFS; IFS=';'
|
xc_tst_prev_IFS=$IFS; IFS=';'
|
||||||
for xc_tst_dir in $PATH; do
|
for xc_tst_dir in $PATH; do
|
||||||
|
|
@ -394,30 +394,30 @@ IFS=$xc_tst_prev_IFS
|
||||||
xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
|
xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
|
||||||
|
|
||||||
if test "$xc_tst_dirs_sem" -eq "$xc_tst_dirs_col"; then
|
if test "$xc_tst_dirs_sem" -eq "$xc_tst_dirs_col"; then
|
||||||
# When both counting methods give the same result we do not want to
|
dnl When both counting methods give the same result we do not want to
|
||||||
# chose one over the other, and consider auto-detection not possible.
|
dnl chose one over the other, and consider auto-detection not possible.
|
||||||
if test -z "$PATH_SEPARATOR"; then
|
if test -z "$PATH_SEPARATOR"; then
|
||||||
# User should provide the correct 'PATH_SEPARATOR' definition.
|
dnl User should provide the correct 'PATH_SEPARATOR' definition.
|
||||||
# Until then, guess that it is colon!
|
dnl Until then, guess that it is colon!
|
||||||
echo "$xc_msg_warn path separator not determined, guessing colon" >&2
|
echo "$xc_msg_warn path separator not determined, guessing colon" >&2
|
||||||
PATH_SEPARATOR=':'
|
PATH_SEPARATOR=':'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Separator with the greater directory count is the auto-detected one.
|
dnl Separator with the greater directory count is the auto-detected one.
|
||||||
if test "$xc_tst_dirs_sem" -gt "$xc_tst_dirs_col"; then
|
if test "$xc_tst_dirs_sem" -gt "$xc_tst_dirs_col"; then
|
||||||
xc_tst_auto_separator=';'
|
xc_tst_auto_separator=';'
|
||||||
else
|
else
|
||||||
xc_tst_auto_separator=':'
|
xc_tst_auto_separator=':'
|
||||||
fi
|
fi
|
||||||
if test -z "$PATH_SEPARATOR"; then
|
if test -z "$PATH_SEPARATOR"; then
|
||||||
# Use the auto-detected one when not already set.
|
dnl Use the auto-detected one when not already set.
|
||||||
PATH_SEPARATOR=$xc_tst_auto_separator
|
PATH_SEPARATOR=$xc_tst_auto_separator
|
||||||
elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
|
elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
|
||||||
echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
|
echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
xc_PATH_SEPARATOR=$PATH_SEPARATOR
|
xc_PATH_SEPARATOR=$PATH_SEPARATOR
|
||||||
AC_SUBST([PATH_SEPARATOR])dnl
|
AC_SUBST([PATH_SEPARATOR])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -426,19 +426,19 @@ dnl -------------------------------------------------
|
||||||
dnl Private macro.
|
dnl Private macro.
|
||||||
|
|
||||||
AC_DEFUN([_XC_CFG_PRE_POSTLUDE],
|
AC_DEFUN([_XC_CFG_PRE_POSTLUDE],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])dnl
|
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])
|
||||||
dnl
|
|
||||||
xc_configure_preamble_result='yes'
|
xc_configure_preamble_result='yes'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
@ -471,58 +471,58 @@ dnl script is making it override autoconf and libtool
|
||||||
dnl PATH_SEPARATOR check.
|
dnl PATH_SEPARATOR check.
|
||||||
|
|
||||||
AC_DEFUN([XC_CONFIGURE_PREAMBLE],
|
AC_DEFUN([XC_CONFIGURE_PREAMBLE],
|
||||||
[dnl
|
[
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_PREAMBLE])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_PREAMBLE])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_SED])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_SED])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_CHECK_PATH_SEPARATOR])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_CHECK_PATH_SEPARATOR])
|
||||||
AC_BEFORE([$0],[_XC_CFG_PRE_POSTLUDE])dnl
|
AC_BEFORE([$0],[_XC_CFG_PRE_POSTLUDE])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[AC_CHECK_TOOL])dnl
|
AC_BEFORE([$0],[AC_CHECK_TOOL])
|
||||||
AC_BEFORE([$0],[AC_CHECK_PROG])dnl
|
AC_BEFORE([$0],[AC_CHECK_PROG])
|
||||||
AC_BEFORE([$0],[AC_CHECK_TOOLS])dnl
|
AC_BEFORE([$0],[AC_CHECK_TOOLS])
|
||||||
AC_BEFORE([$0],[AC_CHECK_PROGS])dnl
|
AC_BEFORE([$0],[AC_CHECK_PROGS])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[AC_PATH_TOOL])dnl
|
AC_BEFORE([$0],[AC_PATH_TOOL])
|
||||||
AC_BEFORE([$0],[AC_PATH_PROG])dnl
|
AC_BEFORE([$0],[AC_PATH_PROG])
|
||||||
AC_BEFORE([$0],[AC_PATH_PROGS])dnl
|
AC_BEFORE([$0],[AC_PATH_PROGS])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_SED])dnl
|
AC_BEFORE([$0],[AC_PROG_SED])
|
||||||
AC_BEFORE([$0],[AC_PROG_GREP])dnl
|
AC_BEFORE([$0],[AC_PROG_GREP])
|
||||||
AC_BEFORE([$0],[AC_PROG_LN_S])dnl
|
AC_BEFORE([$0],[AC_PROG_LN_S])
|
||||||
AC_BEFORE([$0],[AC_PROG_MKDIR_P])dnl
|
AC_BEFORE([$0],[AC_PROG_MKDIR_P])
|
||||||
AC_BEFORE([$0],[AC_PROG_INSTALL])dnl
|
AC_BEFORE([$0],[AC_PROG_INSTALL])
|
||||||
AC_BEFORE([$0],[AC_PROG_MAKE_SET])dnl
|
AC_BEFORE([$0],[AC_PROG_MAKE_SET])
|
||||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[LT_INIT])dnl
|
AC_BEFORE([$0],[LT_INIT])
|
||||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])dnl
|
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
|
||||||
dnl
|
|
||||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])dnl
|
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])dnl
|
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])dnl
|
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])
|
||||||
AC_REQUIRE([_XC_CFG_PRE_POSTLUDE])dnl
|
AC_REQUIRE([_XC_CFG_PRE_POSTLUDE])
|
||||||
dnl
|
|
||||||
m4_pattern_forbid([^_*XC])dnl
|
m4_pattern_forbid([^_*XC])
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -540,13 +540,13 @@ dnl Override when using autoconf 2.53 and newer.
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
m4_ifdef([_AS_PATH_SEPARATOR_PREPARE],
|
m4_ifdef([_AS_PATH_SEPARATOR_PREPARE],
|
||||||
[dnl
|
[
|
||||||
m4_undefine([_AS_PATH_SEPARATOR_PREPARE])dnl
|
m4_undefine([_AS_PATH_SEPARATOR_PREPARE])
|
||||||
m4_defun([_AS_PATH_SEPARATOR_PREPARE],
|
m4_defun([_AS_PATH_SEPARATOR_PREPARE],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])dnl
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
@ -554,14 +554,14 @@ dnl Override when using autoconf 2.50 to 2.52
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
m4_ifdef([_AC_INIT_PREPARE_FS_SEPARATORS],
|
m4_ifdef([_AC_INIT_PREPARE_FS_SEPARATORS],
|
||||||
[dnl
|
[
|
||||||
m4_undefine([_AC_INIT_PREPARE_FS_SEPARATORS])dnl
|
m4_undefine([_AC_INIT_PREPARE_FS_SEPARATORS])
|
||||||
m4_defun([_AC_INIT_PREPARE_FS_SEPARATORS],
|
m4_defun([_AC_INIT_PREPARE_FS_SEPARATORS],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||||
ac_path_separator=$PATH_SEPARATOR
|
ac_path_separator=$PATH_SEPARATOR
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])dnl
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
@ -569,14 +569,14 @@ dnl Override when using libtool 1.4.2
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
m4_ifdef([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
m4_ifdef([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
||||||
[dnl
|
[
|
||||||
m4_undefine([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
|
m4_undefine([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])
|
||||||
m4_defun([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
m4_defun([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
||||||
[dnl
|
[
|
||||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||||
lt_cv_sys_path_separator=$PATH_SEPARATOR
|
lt_cv_sys_path_separator=$PATH_SEPARATOR
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])dnl
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -610,43 +610,43 @@ dnl generated configure script will be done where first
|
||||||
dnl direct or indirect usage of this macro happens.
|
dnl direct or indirect usage of this macro happens.
|
||||||
|
|
||||||
AC_DEFUN([XC_CHECK_PATH_SEPARATOR],
|
AC_DEFUN([XC_CHECK_PATH_SEPARATOR],
|
||||||
[dnl
|
[
|
||||||
AC_PREREQ([2.50])dnl
|
AC_PREREQ([2.50])
|
||||||
|
|
||||||
|
AC_BEFORE([$0],[AC_CHECK_TOOL])
|
||||||
|
AC_BEFORE([$0],[AC_CHECK_PROG])
|
||||||
|
AC_BEFORE([$0],[AC_CHECK_TOOLS])
|
||||||
|
AC_BEFORE([$0],[AC_CHECK_PROGS])
|
||||||
|
|
||||||
|
AC_BEFORE([$0],[AC_PATH_TOOL])
|
||||||
|
AC_BEFORE([$0],[AC_PATH_PROG])
|
||||||
|
AC_BEFORE([$0],[AC_PATH_PROGS])
|
||||||
|
|
||||||
|
AC_BEFORE([$0],[AC_PROG_SED])
|
||||||
|
AC_BEFORE([$0],[AC_PROG_GREP])
|
||||||
|
AC_BEFORE([$0],[AC_PROG_LN_S])
|
||||||
|
AC_BEFORE([$0],[AC_PROG_MKDIR_P])
|
||||||
|
AC_BEFORE([$0],[AC_PROG_INSTALL])
|
||||||
|
AC_BEFORE([$0],[AC_PROG_MAKE_SET])
|
||||||
|
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||||
|
|
||||||
|
AC_BEFORE([$0],[LT_INIT])
|
||||||
|
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||||
|
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
|
||||||
|
|
||||||
|
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
AC_BEFORE([$0],[AC_CHECK_TOOL])dnl
|
dnl Check that 'XC_CONFIGURE_PREAMBLE' has already run.
|
||||||
AC_BEFORE([$0],[AC_CHECK_PROG])dnl
|
|
||||||
AC_BEFORE([$0],[AC_CHECK_TOOLS])dnl
|
|
||||||
AC_BEFORE([$0],[AC_CHECK_PROGS])dnl
|
|
||||||
dnl
|
dnl
|
||||||
AC_BEFORE([$0],[AC_PATH_TOOL])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PATH_PROG])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PATH_PROGS])dnl
|
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_SED])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_GREP])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_LN_S])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_MKDIR_P])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_INSTALL])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_MAKE_SET])dnl
|
|
||||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
|
||||||
dnl
|
|
||||||
AC_BEFORE([$0],[LT_INIT])dnl
|
|
||||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
|
||||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])dnl
|
|
||||||
dnl
|
|
||||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
|
||||||
dnl
|
|
||||||
#
|
|
||||||
# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
|
|
||||||
#
|
|
||||||
|
|
||||||
if test -z "$xc_configure_preamble_result"; then
|
if test -z "$xc_configure_preamble_result"; then
|
||||||
AC_MSG_ERROR([xc_configure_preamble_result not set (internal problem)])
|
AC_MSG_ERROR([xc_configure_preamble_result not set (internal problem)])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
dnl
|
||||||
# Check that 'PATH_SEPARATOR' has already been set.
|
dnl Check that 'PATH_SEPARATOR' has already been set.
|
||||||
#
|
dnl
|
||||||
|
|
||||||
if test -z "$xc_PATH_SEPARATOR"; then
|
if test -z "$xc_PATH_SEPARATOR"; then
|
||||||
AC_MSG_ERROR([xc_PATH_SEPARATOR not set (internal problem)])
|
AC_MSG_ERROR([xc_PATH_SEPARATOR not set (internal problem)])
|
||||||
|
|
@ -661,7 +661,7 @@ if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
|
||||||
AC_MSG_RESULT([$xc_PATH_SEPARATOR])
|
AC_MSG_RESULT([$xc_PATH_SEPARATOR])
|
||||||
AC_MSG_ERROR([path separator mismatch (internal or config.site problem)])
|
AC_MSG_ERROR([path separator mismatch (internal or config.site problem)])
|
||||||
fi
|
fi
|
||||||
dnl
|
|
||||||
m4_pattern_forbid([^_*XC])dnl
|
m4_pattern_forbid([^_*XC])
|
||||||
m4_define([$0],[])dnl
|
m4_define([$0],[])
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
# serial 1
|
dnl serial 1
|
||||||
|
|
||||||
|
|
||||||
dnl The funny name of this file is intentional in order to make it
|
dnl The funny name of this file is intentional in order to make it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue