diff options
-rw-r--r-- | Makefile.am | 19 | ||||
-rw-r--r-- | acconfig.h | 19 | ||||
-rw-r--r-- | ace/Cached_Connect_Strategy_T.cpp | 4 | ||||
-rw-r--r-- | configure.in | 173 |
4 files changed, 137 insertions, 78 deletions
diff --git a/Makefile.am b/Makefile.am index f1179f4a954..a26a29c847a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -75,25 +75,6 @@ release: confexecdir=$(libdir) confexec_DATA = aceConf.sh -## We create aceConf.sh here and not from configure because we want -## to get the paths expanded correctly. Macros like srcdir are given -## the value NONE in configure if the user doesn't specify them (this -## is an autoconf feature, not a bug). -aceConf.sh: aceConf.sh.in Makefile -## Use sed and then mv to avoid problems if the user interrupts. - sed -e 's,\@ACE_LIBDIR\@,$(ACE_LIBDIR),g' \ - -e 's,\@ACE_INCLUDEDIR\@,$(ACE_INCLUDEDIR),g' \ - -e 's,\@ACE_LIBS\@,$(ACE_LIBS),g' \ - -e 's,\@CXXFLAGS\@,$(CXXFLAGS),g' \ - < $(srcdir)/aceConf.sh.in > aceConf.tmp \ - && mv aceConf.tmp aceConf.sh - -ace-config.1: ace-config.1.in Makefile -## Use sed and then mv to avoid problems if the user interrupts. - sed -e 's,\@libdir\@,$(libdir),g' \ - < $(srcdir)/ace-config.1.in > ace-config.1.tmp \ - && mv ace-config.1.tmp ace-config.1 - ## Directories to include in the distribution but which I am too lazy to ## create Makefile.am files for. A Makefile.am for these directories isn't ## needed anyway. diff --git a/acconfig.h b/acconfig.h index 109941c3506..d7871b80523 100644 --- a/acconfig.h +++ b/acconfig.h @@ -51,23 +51,6 @@ #undef ACE_HAS_TANDEM_SIGNALS #undef ACE_HAS_IRIX_53_SIGNALS -/* - * TODO: These two next #defines have an #undef before them, in - * case the variable being defined already had a value. - * The #undefs are being picked up by configure, and are commented out! - */ -#undef ACE_THREAD_MIN_PRIORITY -#if defined (ACE_THREAD_MIN_PRIORITY) -# undef PTHREAD_MIN_PRIORITY -# define PTHREAD_MIN_PRIORITY ACE_THREAD_MIN_PRIORITY -#endif /* #if defined (ACE_THREAD_MIN_PRIORITY) */ - -#undef ACE_THREAD_MAX_PRIORITY -#if defined (ACE_THREAD_MAX_PRIORITY) -# undef PTHREAD_MAX_PRIORITY -# define PTHREAD_MAX_PRIORITY ACE_THREAD_MAX_PRIORITY -#endif /* #if defined (ACE_THREAD_MAX_PRIORITY) */ - #undef PTHREAD_STACK_MIN #undef PTHREAD_STACK_MAX @@ -1479,6 +1462,8 @@ version 1.1). */ #undef ACE_WSOCK_VERSION +#undef HAVE_RESTARTABLE_SYSCALLS + /* @BOTTOM@ */ /* All lines below "@BOTTOM@" will be placed at the bottom of config.h.in. */ diff --git a/ace/Cached_Connect_Strategy_T.cpp b/ace/Cached_Connect_Strategy_T.cpp index ff660ff20ed..2de037a73cf 100644 --- a/ace/Cached_Connect_Strategy_T.cpp +++ b/ace/Cached_Connect_Strategy_T.cpp @@ -17,10 +17,6 @@ #include "ace/WFMO_Reactor.h" #include "ace/Pair_T.h" -#if defined (ACE_LACKS_INLINE_FUNCTIONS) -#include "ace/Cached_Connect_Strategy_T.i" -#endif /* ACE_LACKS_INLINE_FUNCTIONS */ - ACE_RCSID(ace, Cached_Connect_Strategy_T, "$Id$") #define ACE_T1 class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class CACHING_STRATEGY, class ATTRIBUTES, class MUTEX diff --git a/configure.in b/configure.in index f057b744a5e..ece1e13798d 100644 --- a/configure.in +++ b/configure.in @@ -4499,38 +4499,129 @@ ${ace_pthread_key_create}(0, ace_destructor); ],) ]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS -dnl FIXME: These tests look sloppy to me. -Ossama - AC_CACHE_CHECK(for minimum thread priority, - ace_cv_lib_pthread_pthread_min_priority,[ - ace_cv_lib_pthread_pthread_min_priority=0 - AC_EGREP_HEADER(PTHREAD_MIN_PRIORITY, pthread.h, - ace_cv_lib_pthread_pthread_min_priority=PTHREAD_MIN_PRIORITY) - AC_EGREP_HEADER(PX_PRIO_MIN, pthread.h, - ace_cv_lib_pthread_pthread_min_priority=PX_PRIO_MIN) - ]) - AC_DEFINE_UNQUOTED(ACE_THREAD_MIN_PRIORITY, - $ace_cv_lib_pthread_pthread_min_priority) - - AC_CACHE_CHECK(for maximum thread priority, - ace_cv_lib_pthread_pthread_max_priority,[ - ace_cv_lib_pthread_pthread_max_priority=99 - case "$target" in - *linux*) - if test "$ac_cv_func_pthread_sigmask" = yes; then - ace_cv_lib_pthread_pthread_max_priority=99 - else - ace_cv_lib_pthread_pthread_max_priority=32 - fi - ;; - *) - esac - AC_EGREP_HEADER(PTHREAD_MAX_PRIORITY, pthread.h, - ace_cv_lib_pthread_pthread_max_priority=PTHREAD_MAX_PRIORITY) - AC_EGREP_HEADER(PX_PRIO_MAX, pthread.h, - ace_cv_lib_pthread_pthread_max_priority=PX_PRIO_MAX) - ]) - AC_DEFINE_UNQUOTED(ACE_THREAD_MAX_PRIORITY, - $ace_cv_lib_pthread_pthread_max_priority) + +AC_CHECK_FUNC([sched_get_priority_min], + [ + dnl Do nothing + ], + [ + AC_EGREP_CPP([ace_has_pthread_min_priority],, + [ +dnl Check PTHREAD_MIN_PRIORITY is a macro. +#include <pthread.h> +#ifdef PTHREAD_MIN_PRIORITY + ace_has_pthread_min_priority +#endif /* PTHREAD_MIN_PRIORITY */ + ], + [ + dnl Since we PTHREAD_MAX_PRIORITY, denote that PX_PRIO_MAX should + dnl not be used. + ace_has_px_prio_min=no + ], + [ + dnl Check if PTHREAD_MIN_PRIORITY is not a macro. + AC_EGREP_HEADER([PTHREAD_MIN_PRIORITY], [pthread.h], + [ + dnl Since we PTHREAD_MAX_PRIORITY, denote that PX_PRIO_MAX should + dnl not be used. + ace_has_px_prio_min=no + ], + [ + dnl PTHREAD_MIN_PRIORITY doesn't appear to be defined, so + dnl check if the platform defines PX_PRIO_MIN, instead. + + dnl Check if PX_PRIO_MIN is defined. + AC_EGREP_CPP([ace_has_px_prio_min], + [ + dnl Check PX_PRIO_MIN is a macro. +#include <pthread.h> +#ifdef PX_PRIO_MIN + ace_has_px_prio_min +#endif /* PX_PRIO_MIN */ + ], + [ + ace_has_px_prio_min=yes + ], + [ + dnl Check if PX_PRIO_MIN is not a macro. + AC_EGREP_HEADER([PX_PRIO_MIN], [pthread.h], + [ + ace_has_px_prio_min=yes + ], + [ + ace_has_px_prio_min=no + ]) + ]) + ]) + ]) + ]) + + if test "$ace_has_px_prio_min" = yes; then + AC_DEFINE(PTHREAD_MIN_PRIORITY, + PX_PRIO_MIN, + [Minimum thread priority]) + fi + +AC_CHECK_FUNC([sched_get_priority_max], + [ + dnl Do nothing + ], + [ + AC_EGREP_CPP([ace_has_pthread_max_priority], + [ +dnl Check PTHREAD_MAX_PRIORITY is a macro. +#include <pthread.h> +#ifdef PTHREAD_MAX_PRIORITY + ace_has_pthread_max_priority +#endif /* PTHREAD_MAX_PRIORITY */ + ], + [ + dnl Since we PTHREAD_MAX_PRIORITY, denote that PX_PRIO_MAX should + dnl not be used. + ace_has_px_prio_max=no + ], + [ + dnl Check if PTHREAD_MAX_PRIORITY is not a macro. + AC_EGREP_HEADER([PTHREAD_MAX_PRIORITY], [pthread.h], + [ + dnl Since we PTHREAD_MAX_PRIORITY, denote that PX_PRIO_MAX should + dnl not be used. + ace_has_px_prio_max=no + ], + [ + dnl PTHREAD_MAX_PRIORITY doesn't appear to be defined, so + dnl check if the platform defines PX_PRIO_MAX, instead. + + dnl Check if PX_PRIO_MAX is defined. + AC_EGREP_CPP([ace_has_px_prio_max], + [ + dnl Check PX_PRIO_MIN is a macro. +#include <pthread.h> +#ifdef PX_PRIO_MAX + ace_has_px_prio_max +#endif /* PX_PRIO_MAX */ + ], + [ + ace_has_px_prio_max=yes + ], + [ + dnl Check if PX_PRIO_MAX is not a macro. + AC_EGREP_HEADER([PX_PRIO_MAX], [pthread.h], + [ + ace_has_px_prio_max=yes + ], + [ + ace_has_px_prio_max=no + ]) + ]) + ]) + ]) + ]) + if test "$ace_has_px_prio_max" = yes; then + AC_DEFINE(PTHREAD_MAX_PRIORITY, + PX_PRIO_MAX, + [Maximum thread priority]) + fi fi dnl test "$ace_has_pthreads" = yes @@ -7253,8 +7344,8 @@ the file \`ACE-INSTALL.html'. ]) ]) -dnl Check for ACE iostream support -ACE_CACHE_CHECK(for ACE iostream support, +dnl Check for ACE_IOStream support +ACE_CACHE_CHECK(for ACE_IOStream support, ace_cv_feature_ace_iostream, [ dnl We want an empty ace/config.h to prevent multiple defines @@ -7331,6 +7422,10 @@ ACE_CACHE_CHECK(if ACE needs minimum iostream header inclusion, ]) ], AC_DEFINE(ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION),) +dnl @@ I don't think that this test is correct. The only way I could +dnl get ACE_Addr::sap_any to work was to explicitly cast it to the +dnl a constant reference of the derived type. +dnl -Ossama dnl Check if compiler can't handle the static ACE_Addr::sap_any construct ACE_CACHE_CHECK(for ACE_addr::sap_any support, ace_cv_lib_sap_any_support, @@ -7346,10 +7441,10 @@ ACE_CACHE_CHECK(for ACE_addr::sap_any support, typedef ACE_UINT64_TYPEDEF ACE_UINT64; #endif /* ACE_UINT64_TYPEDEF */ -#include "ace/Addr.cpp" +#include "ace/FILE_Addr.h" ], [ - int a=0; a += 1; + ACE_FILE_Addr ace_file ((const ACE_FILE_Addr &) ACE_Addr::sap_any); ], [ ace_cv_lib_sap_any_support=yes @@ -7364,10 +7459,10 @@ ACE_CACHE_CHECK(for ACE_addr::sap_any support, #endif /* ACE_UINT64_TYPEDEF */ #define ACE_HAS_BROKEN_SAP_ANY -#include "ace/Addr.cpp" +#include "ace/FILE_Addr.h" ], [ - int a=0; a += 1; + ACE_FILE_Addr ace_file ((const ACE_FILE_Addr &) ACE_Addr::sap_any); ], [ ace_cv_lib_sap_any_support=no @@ -7478,6 +7573,8 @@ dnl created first. AC_OUTPUT([ Makefile ace-config + ace-config.1 + aceConf.sh ace/Makefile apps/Makefile apps/gperf/Makefile |