mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
c-ares' --enable-curldebug adjustments
This commit is contained in:
parent
7dbd502931
commit
9418c56fd3
@ -110,22 +110,6 @@ esac
|
|||||||
dnl libtool setup
|
dnl libtool setup
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
CARES_CHECK_CURLDEBUG
|
|
||||||
|
|
||||||
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if we need -no-undefined])
|
|
||||||
case $host in
|
|
||||||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
|
||||||
need_no_undefined=yes
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
need_no_undefined=no
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_MSG_RESULT($need_no_undefined)
|
|
||||||
AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
|
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl platform/compiler/architecture specific checks/flags
|
dnl platform/compiler/architecture specific checks/flags
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
@ -161,6 +145,12 @@ esac
|
|||||||
CARES_CHECK_COMPILER_HALT_ON_ERROR
|
CARES_CHECK_COMPILER_HALT_ON_ERROR
|
||||||
CARES_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
|
CARES_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE
|
||||||
|
|
||||||
|
CARES_CHECK_NO_UNDEFINED
|
||||||
|
AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)
|
||||||
|
|
||||||
|
CARES_CHECK_CURLDEBUG
|
||||||
|
AM_CONDITIONAL(CURLDEBUG, test x$want_curldebug = xyes)
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
dnl Compilation based checks should not be done before this point.
|
dnl Compilation based checks should not be done before this point.
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
# File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 53
|
# serial 54
|
||||||
|
|
||||||
|
|
||||||
dnl CARES_CHECK_COMPILER
|
dnl CARES_CHECK_COMPILER
|
||||||
@ -24,6 +24,7 @@ dnl -------------------------------------------------
|
|||||||
dnl Verify if the C compiler being used is known.
|
dnl Verify if the C compiler being used is known.
|
||||||
|
|
||||||
AC_DEFUN([CARES_CHECK_COMPILER], [
|
AC_DEFUN([CARES_CHECK_COMPILER], [
|
||||||
|
AC_BEFORE([$0],[CARES_CHECK_NO_UNDEFINED])dnl
|
||||||
#
|
#
|
||||||
compiler_id="unknown"
|
compiler_id="unknown"
|
||||||
compiler_num="0"
|
compiler_num="0"
|
||||||
@ -1095,20 +1096,13 @@ AC_DEFUN([CARES_CHECK_CURLDEBUG], [
|
|||||||
supports_curldebug="no"
|
supports_curldebug="no"
|
||||||
fi
|
fi
|
||||||
if test "$supports_curldebug" != "no"; then
|
if test "$supports_curldebug" != "no"; then
|
||||||
if test "$enable_shared" = "yes"; then
|
if test "$enable_shared" = "yes" &&
|
||||||
if test "x$allow_undefined" = "xno"; then
|
test "$need_no_undefined" = "yes"; then
|
||||||
supports_curldebug="no"
|
supports_curldebug="no"
|
||||||
elif test "x$allow_undefined_flag" = "xunsupported"; then
|
AC_MSG_WARN([shared library does not support undefined symbols.])
|
||||||
supports_curldebug="no"
|
|
||||||
elif test "x$need_no_undefined" = "xyes"; then
|
|
||||||
supports_curldebug="no"
|
|
||||||
fi
|
|
||||||
if test "$supports_curldebug" = "no"; then
|
|
||||||
AC_MSG_WARN([shared library does not support undefined symbols.])
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
|
if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
|
||||||
AC_MSG_WARN([source not embedded in curl's CVS tree.])
|
AC_MSG_WARN([c-ares source not embedded in curl's CVS tree.])
|
||||||
supports_curldebug="no"
|
supports_curldebug="no"
|
||||||
elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
|
elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
|
||||||
AC_MSG_WARN([curl's buildconf has not been run.])
|
AC_MSG_WARN([curl's buildconf has not been run.])
|
||||||
@ -1159,6 +1153,32 @@ AC_DEFUN([CARES_CHECK_CURLDEBUG], [
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl CARES_CHECK_NO_UNDEFINED
|
||||||
|
dnl -------------------------------------------------
|
||||||
|
|
||||||
|
AC_DEFUN([CARES_CHECK_NO_UNDEFINED], [
|
||||||
|
AC_BEFORE([$0],[CARES_CHECK_CURLDEBUG])dnl
|
||||||
|
AC_MSG_CHECKING([if we need -no-undefined])
|
||||||
|
need_no_undefined="no"
|
||||||
|
case $host in
|
||||||
|
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
||||||
|
need_no_undefined="yes"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if test "x$allow_undefined" = "xno"; then
|
||||||
|
need_no_undefined="yes"
|
||||||
|
elif test "x$allow_undefined_flag" = "xunsupported"; then
|
||||||
|
need_no_undefined="yes"
|
||||||
|
fi
|
||||||
|
case $compiler_id in
|
||||||
|
IBM_C | INTEL_UNIX_C | INTEL_WINDOWS_C | SUNPRO_C)
|
||||||
|
need_no_undefined="yes"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT($need_no_undefined)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CARES_CHECK_PROG_CC
|
dnl CARES_CHECK_PROG_CC
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Check for compiler program, preventing CFLAGS and
|
dnl Check for compiler program, preventing CFLAGS and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user