diff options
author | Yang Tse <yangsita@gmail.com> | 2013-02-19 14:11:26 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-03-08 13:22:33 +0100 |
commit | 715b499c79deffd360004165c28dca9c9c34a812 (patch) | |
tree | 21ca523b69b34225664a71cf7205a6f33115cc3d /configure.ac | |
parent | f454e82dc74de1c54b54a227a01a0bcc3edb8014 (diff) | |
download | c-ares-715b499c79deffd360004165c28dca9c9c34a812.tar.gz c-ares-715b499c79deffd360004165c28dca9c9c34a812.tar.bz2 c-ares-715b499c79deffd360004165c28dca9c9c34a812.zip |
configure: use XC_LIBTOOL for portability across libtool versions
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/configure.ac b/configure.ac index 1176e7c..b65c1b0 100644 --- a/configure.ac +++ b/configure.ac @@ -97,34 +97,19 @@ case $host_os in ;; esac -dnl support building of Windows DLLs -AC_LIBTOOL_WIN32_DLL +XC_LIBTOOL -dnl force libtool to build static libraries with PIC on AMD64-Linux & FreeBSD -AC_MSG_CHECKING([if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)]) -case $host in - x86_64*linux*|amd64*freebsd*|ia64*freebsd*) - AC_MSG_RESULT([yes]) - with_pic=yes - ;; - *) - AC_MSG_RESULT([no]) - ;; -esac +# +# Automake conditionals based on libtool related checks +# -AC_MSG_CHECKING([if compiler is icc (to build with PIC)]) -case $CC in - icc | */icc) - AC_MSG_RESULT([yes]) - with_pic=yes - ;; - *) - AC_MSG_RESULT([no]) - ;; -esac +AM_CONDITIONAL([CARES_LT_SHLIB_USE_VERSION_INFO], + [test "x$xc_lt_shlib_use_version_info" = 'xyes']) +AM_CONDITIONAL([CARES_LT_SHLIB_USE_NO_UNDEFINED], + [test "x$xc_lt_shlib_use_no_undefined" = 'xyes']) +AM_CONDITIONAL([CARES_LT_SHLIB_USE_MIMPURE_TEXT], + [test "x$xc_lt_shlib_use_mimpure_text" = 'xyes']) -dnl libtool setup -AC_PROG_LIBTOOL AC_MSG_CHECKING([if we need CARES_BUILDING_LIBRARY]) use_cppflag_cares_building_library="no" @@ -179,9 +164,6 @@ CARES_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE CARES_CHECK_COMPILER_PROTOTYPE_MISMATCH CARES_CHECK_COMPILER_SYMBOL_HIDING -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) |