| Index: source/configure.ac
|
| diff --git a/source/configure.ac b/source/configure.ac
|
| index b30c8d0313ee801808f63548d7e4df820243d23c..595bd122cee88d62e38dbffd8266dd55eb81d78c 100644
|
| --- a/source/configure.ac
|
| +++ b/source/configure.ac
|
| @@ -1,12 +1,14 @@
|
| # -*-autoconf-*-
|
| -AC_COPYRIGHT([ Copyright (c) 1999-2014, International Business Machines Corporation and others. All Rights Reserved. ])
|
| +AC_COPYRIGHT([ Copyright (c) 1999-2015, International Business Machines Corporation and others. All Rights Reserved. ])
|
| # configure.in for ICU
|
| # Stephen F. Booth, heavily modified by Yves and others
|
|
|
| +# NOTE: please use 'autoreconf' to rebuild, otherwise 'aclocal && autoconf'.
|
| +
|
| # Check for autoconf version
|
| -AC_PREREQ(2.68)
|
| +AC_PREREQ(2.69)
|
|
|
| -# Process this file with autoconf to produce a configure script
|
| +# Process this file with autoreconf to produce a configure script
|
| AC_INIT([ICU],
|
| m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"),
|
| [http://icu-project.org/bugs],
|
| @@ -409,9 +411,25 @@ if test "x$ac_cv_header_elf_h" = "xyes"; then
|
| CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
|
| fi
|
|
|
| +# Enable/disable plugins
|
| +AC_ARG_ENABLE(plugins,
|
| + [ --enable-plugins enable plugins [default=no]],
|
| + [case "${enableval}" in
|
| + yes) plugins=true ;;
|
| + no) plugins=false ;;
|
| + *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
|
| + esac],
|
| + plugins=false)
|
| +ICU_CONDITIONAL(PLUGINS, test "$plugins" = true)
|
| +
|
| +if test "x$plugins" = "xtrue"; then
|
| + UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
|
| +fi
|
| +
|
| +
|
| U_ENABLE_DYLOAD=1
|
| enable=yes
|
| -AC_MSG_CHECKING([whether to enable dynamic loading of plugins])
|
| +AC_MSG_CHECKING([whether to enable dynamic loading of plugins. Ignored if plugins disabled.])
|
| AC_ARG_ENABLE(dyload,
|
| [ --disable-dyload disable dynamic loading [default=no]],
|
| [ case "${enableval}" in
|
| @@ -519,75 +537,71 @@ AC_SUBST(U_HAVE_ATOMIC)
|
| AC_LANG_POP([C++])
|
|
|
| # Always build ICU with multi-threading support.
|
| -threads=true
|
| -ICU_USE_THREADS=1
|
| OLD_LIBS=${LIBS}
|
|
|
| -if test $threads = true; then
|
| - # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
|
| - # and must do this before seaching for pthread_mutex_destroy, or
|
| - # we will pick up libpthreads.so not libpthread.so
|
| - # If this fails, then we must test for HPUX specials, before
|
| - # moving on to a more generic test
|
| +# For Compaq Tru64 (OSF1), we must look for pthread_attr_init
|
| +# and must do this before seaching for pthread_mutex_destroy, or
|
| +# we will pick up libpthreads.so not libpthread.so
|
| +# If this fails, then we must test for HPUX specials, before
|
| +# moving on to a more generic test
|
|
|
| - AC_CHECK_LIB(pthread, pthread_attr_init)
|
| - if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
|
| - ICU_USE_THREADS=1
|
| - else
|
| - # Locate the right library for POSIX threads. We look for the
|
| - # symbols in the libraries first, because on Solaris libc provides
|
| - # pthread_create but libpthread has the real code :(
|
| - # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
|
| - # FreeBSD users may need libpthread if they do not have libc_r.
|
| +AC_CHECK_LIB(pthread, pthread_attr_init)
|
| +if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
|
| + :
|
| +else
|
| + # Locate the right library for POSIX threads. We look for the
|
| + # symbols in the libraries first, because on Solaris libc provides
|
| + # pthread_create but libpthread has the real code :(
|
| + # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
|
| + # FreeBSD users may need libpthread if they do not have libc_r.
|
|
|
| - AC_SEARCH_LIBS_FIRST(pthread_mutex_destroy, pthread pthreads c_r )
|
| + AC_SEARCH_LIBS_FIRST(pthread_mutex_destroy, pthread pthreads c_r )
|
|
|
| - if test "$ac_cv_search_pthread_mutex_destroy" != no; then
|
| - ICU_USE_THREADS=1
|
| - else
|
| - # For HP 11
|
| - AC_CHECK_LIB(pthread, pthread_mutex_init)
|
| - if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
|
| - ICU_USE_THREADS=1
|
| - fi
|
| + if test "$ac_cv_search_pthread_mutex_destroy" != no; then
|
| + :
|
| + else
|
| + # For HP 11
|
| + AC_CHECK_LIB(pthread, pthread_mutex_init)
|
| + if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
|
| + :
|
| fi
|
| + fi
|
|
|
| - AC_CHECK_FUNC(pthread_mutex_lock)
|
| + AC_CHECK_FUNC(pthread_mutex_lock)
|
|
|
| - if test $ac_cv_func_pthread_mutex_lock = yes; then
|
| - ICU_USE_THREADS=1
|
| - fi
|
| + if test $ac_cv_func_pthread_mutex_lock = yes; then
|
| + :
|
| fi
|
| - # Check to see if we are using CygWin with MSVC
|
| - case "${host}" in
|
| - *-pc-cygwin*|*-pc-mingw*)
|
| - # For gcc, the thread options are set by mh-mingw/mh-cygwin
|
| - # For msvc, the thread options are set by runConfigureICU
|
| - ICU_USE_THREADS=1
|
| - ;;
|
| - *-*-hpux*)
|
| - # Add -mt because it does several nice things on newer compilers.
|
| - case "${icu_cv_host_frag}" in
|
| - mh-hpux-acc)
|
| - OLD_CXXFLAGS="${CXXFLAGS}"
|
| - CXXFLAGS="${CXXFLAGS} -mt"
|
| - if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
|
| - CXXFLAGS="${OLD_CXXFLAGS}"
|
| - else
|
| - UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
|
| - fi
|
| - ;;
|
| - esac
|
| +fi
|
| +# Check to see if we are using CygWin with MSVC
|
| +case "${host}" in
|
| +*-pc-cygwin*|*-pc-mingw*)
|
| + # For gcc, the thread options are set by mh-mingw/mh-cygwin
|
| + # For msvc, the thread options are set by runConfigureICU
|
| + :
|
| + ;;
|
| +*-*-hpux*)
|
| + # Add -mt because it does several nice things on newer compilers.
|
| + case "${icu_cv_host_frag}" in
|
| + mh-hpux-acc)
|
| + OLD_CXXFLAGS="${CXXFLAGS}"
|
| + CXXFLAGS="${CXXFLAGS} -mt"
|
| + if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
|
| + CXXFLAGS="${OLD_CXXFLAGS}"
|
| + else
|
| + UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
|
| + fi
|
| ;;
|
| - *-*-solaris*)
|
| - case "${icu_cv_host_frag}" in
|
| - mh-solaris)
|
| - LIBS="${LIBS} -mt"
|
| - ;;
|
| - esac
|
| + esac
|
| + ;;
|
| +*-*-solaris*)
|
| + case "${icu_cv_host_frag}" in
|
| + mh-solaris)
|
| + LIBS="${LIBS} -mt"
|
| ;;
|
| esac
|
| -fi
|
| + ;;
|
| +esac
|
|
|
| AC_ARG_ENABLE(weak-threads,
|
| [ --enable-weak-threads weakly reference the threading library [default=no]],
|
| @@ -649,7 +663,10 @@ sparc-*-solaris*)
|
| GENCCODE_ASSEMBLY="-a sun"
|
| ;;
|
| ia64-*-hpux*)
|
| - GENCCODE_ASSEMBLY="-a aCC-ia64"
|
| +# There has been some issues with building ICU data on HPUX ia64 aCC
|
| +# when using the assemble code setting below. For now, build without
|
| +# assemble code for this platform. This will increase the build time.
|
| +# GENCCODE_ASSEMBLY="-a aCC-ia64"
|
| ;;
|
| esac
|
| AC_SUBST(GENCCODE_ASSEMBLY)
|
|
|